CodeBlock::m_instructionCount is wrong
[WebKit-https.git] / Source / JavaScriptCore / llint / LLIntSlowPaths.cpp
index 5a8358b..7c83295 100644 (file)
@@ -357,7 +357,7 @@ static FunctionWhitelist& ensureGlobalJITWhitelist()
 
 inline bool shouldJIT(CodeBlock* codeBlock)
 {
-    if (!Options::bytecodeRangeToJITCompile().isInRange(codeBlock->instructionCount())
+    if (!Options::bytecodeRangeToJITCompile().isInRange(codeBlock->instructionsSize())
         || !ensureGlobalJITWhitelist().contains(codeBlock))
         return false;