fourthTier: CFA should defend against results seeming inconsistent due to a watchpoin...
[WebKit.git] / Source / JavaScriptCore / dfg / DFGFixupPhase.cpp
index f4d80aa..9067423 100644 (file)
@@ -1112,7 +1112,7 @@ private:
         
         JSObject* stringPrototypeObject = asObject(stringObjectStructure->storedPrototype());
         Structure* stringPrototypeStructure = stringPrototypeObject->structure();
-        if (stringPrototypeStructure->transitionWatchpointSetHasBeenInvalidated())
+        if (!m_graph.m_watchpoints.isStillValid(stringPrototypeStructure->transitionWatchpointSet()))
             return false;
         
         if (stringPrototypeStructure->isDictionary())