Fix endless OSR exits when creating a rope that contains an object that ToPrimitive...
[WebKit-https.git] / Source / JavaScriptCore / dfg / DFGGraph.h
index 7ca0ac79ddc9dbd7d770eb65d534fe677e031a3d..1ff1b35d28254fe4ecadb0a808e810955272e10a 100644 (file)
@@ -318,6 +318,8 @@ public:
             && negate->canSpeculateInt52(pass);
     }
 
+    bool canOptimizeStringObjectAccess(const CodeOrigin&);
+
     bool roundShouldSpeculateInt32(Node* arithRound, PredictionPass pass)
     {
         ASSERT(arithRound->op() == ArithRound);
@@ -913,7 +915,9 @@ public:
     bool m_hasDebuggerEnabled;
     bool m_hasExceptionHandlers { false };
 private:
-    
+
+    bool isStringPrototypeMethodSane(JSObject* stringPrototype, Structure* stringPrototypeStructure, UniquedStringImpl*);
+
     void handleSuccessor(Vector<BasicBlock*, 16>& worklist, BasicBlock*, BasicBlock* successor);
     
     AddSpeculationMode addImmediateShouldSpeculateInt32(Node* add, bool variableShouldSpeculateInt32, Node* operand, Node*immediate, RareCaseProfilingSource source)