Changeset 60376 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- May 28, 2010, 2:18:35 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Executable.cpp
r59339 r60376 189 189 { 190 190 CodeBlock* codeBlock = &bytecodeForCall(exec, scopeChainNode); 191 m_jitCodeForCall = JIT::compile(scopeChainNode->globalData, codeBlock );191 m_jitCodeForCall = JIT::compile(scopeChainNode->globalData, codeBlock, &m_jitCodeForCallWithArityCheck); 192 192 193 193 #if !ENABLE(OPCODE_SAMPLING) … … 200 200 { 201 201 CodeBlock* codeBlock = &bytecodeForConstruct(exec, scopeChainNode); 202 m_jitCodeForConstruct = JIT::compile(scopeChainNode->globalData, codeBlock );202 m_jitCodeForConstruct = JIT::compile(scopeChainNode->globalData, codeBlock, &m_jitCodeForConstructWithArityCheck); 203 203 204 204 #if !ENABLE(OPCODE_SAMPLING) -
trunk/JavaScriptCore/runtime/Executable.h
r60117 r60376 87 87 JITCode m_jitCodeForCall; 88 88 JITCode m_jitCodeForConstruct; 89 MacroAssemblerCodePtr m_jitCodeForCallWithArityCheck; 90 MacroAssemblerCodePtr m_jitCodeForConstructWithArityCheck; 89 91 #endif 90 92 }; … … 111 113 m_jitCodeForCall = callThunk; 112 114 m_jitCodeForConstruct = constructThunk; 115 m_jitCodeForCallWithArityCheck = callThunk.addressForCall(); 116 m_jitCodeForConstructWithArityCheck = constructThunk.addressForCall(); 113 117 } 114 118 … … 408 412 } 409 413 414 MacroAssemblerCodePtr generatedJITCodeForCallWithArityCheck() 415 { 416 ASSERT(m_jitCodeForCall); 417 ASSERT(m_jitCodeForCallWithArityCheck); 418 return m_jitCodeForCallWithArityCheck; 419 } 420 421 MacroAssemblerCodePtr generatedJITCodeForConstructWithArityCheck() 422 { 423 ASSERT(m_jitCodeForConstruct); 424 ASSERT(m_jitCodeForConstructWithArityCheck); 425 return m_jitCodeForConstructWithArityCheck; 426 } 427 410 428 private: 411 429 void generateJITCodeForCall(ExecState*, ScopeChainNode*);
Note:
See TracChangeset
for help on using the changeset viewer.