CodeBlock::m_instructionCount is wrong
[WebKit-https.git] / Source / JavaScriptCore / dfg / DFGCapabilities.h
index cf84e7a..4da89ab 100644 (file)
@@ -166,7 +166,7 @@ inline CapabilityLevel inlineFunctionForCapabilityLevel(CodeBlock* codeBlock, Co
 
 inline bool isSmallEnoughToInlineCodeInto(CodeBlock* codeBlock)
 {
-    return codeBlock->instructionCount() <= Options::maximumInliningCallerSize();
+    return codeBlock->bytecodeCost() <= Options::maximumInliningCallerBytecodeCost();
 }
 
 } } // namespace JSC::DFG