Changeset 41243 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Feb 25, 2009, 11:04:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/ArrayPrototype.cpp
r41168 r41243 27 27 #include "CodeBlock.h" 28 28 #include "Interpreter.h" 29 #include "JIT.h" 29 30 #include "ObjectPrototype.h" 30 31 #include "Lookup.h" … … 68 69 if (callType != CallTypeJS) 69 70 return false; 70 71 return callData.js.functionBody->bytecode(callData.js.scopeChain).isNumericCompareFunction(); 71 72 CodeBlock& codeBlock = callData.js.functionBody->bytecode(callData.js.scopeChain); 73 #if ENABLE(JIT) 74 // If the JIT is enabled then we need to preserve the invariant that every 75 // function with a CodeBlock also has JIT code. 76 if (!codeBlock.jitCode()) 77 JIT::compile(callData.js.scopeChain->globalData, &codeBlock); 78 #endif 79 80 return codeBlock.isNumericCompareFunction(); 72 81 } 73 82
Note:
See TracChangeset
for help on using the changeset viewer.