StackLayoutPhase should use CodeBlock::usesArguments rather than FunctionExecutable...
[WebKit-https.git] / Source / JavaScriptCore / dfg / DFGGraph.h
index c19829b..5898b80 100644 (file)
@@ -406,6 +406,14 @@ public:
         return hasExitSite(node->origin.semantic, exitKind);
     }
     
+    bool usesArguments(InlineCallFrame* inlineCallFrame)
+    {
+        if (!inlineCallFrame)
+            return m_profiledBlock->usesArguments();
+        
+        return baselineCodeBlockForInlineCallFrame(inlineCallFrame)->usesArguments();
+    }
+    
     VirtualRegister argumentsRegisterFor(InlineCallFrame* inlineCallFrame)
     {
         if (!inlineCallFrame)