Changeset 47738 in webkit for trunk/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Aug 24, 2009, 7:53:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r47641 r47738 621 621 } 622 622 623 CodeBlock* codeBlock = &program->bytecode( scopeChain);623 CodeBlock* codeBlock = &program->bytecode(callFrame, scopeChain); 624 624 625 625 Register* oldEnd = m_registerFile.end(); … … 653 653 m_reentryDepth++; 654 654 #if ENABLE(JIT) 655 result = program->jitCode( scopeChain).execute(&m_registerFile, newCallFrame, scopeChain->globalData, exception);655 result = program->jitCode(newCallFrame, scopeChain).execute(&m_registerFile, newCallFrame, scopeChain->globalData, exception); 656 656 #else 657 657 result = privateExecute(Normal, &m_registerFile, newCallFrame, exception); … … 699 699 newCallFrame->r(++dst) = *it; 700 700 701 CodeBlock* codeBlock = &functionExecutable->bytecode( scopeChain);701 CodeBlock* codeBlock = &functionExecutable->bytecode(callFrame, scopeChain); 702 702 newCallFrame = slideRegisterWindowForCall(codeBlock, &m_registerFile, newCallFrame, argc + RegisterFile::CallFrameHeaderSize, argc); 703 703 if (UNLIKELY(!newCallFrame)) { … … 719 719 m_reentryDepth++; 720 720 #if ENABLE(JIT) 721 result = functionExecutable->jitCode( scopeChain).execute(&m_registerFile, newCallFrame, scopeChain->globalData, exception);721 result = functionExecutable->jitCode(newCallFrame, scopeChain).execute(&m_registerFile, newCallFrame, scopeChain->globalData, exception); 722 722 #else 723 723 result = privateExecute(Normal, &m_registerFile, newCallFrame, exception); … … 757 757 newCallFrame->r(++dst) = jsUndefined(); 758 758 759 CodeBlock* codeBlock = &FunctionExecutable->bytecode( scopeChain);759 CodeBlock* codeBlock = &FunctionExecutable->bytecode(callFrame, scopeChain); 760 760 newCallFrame = slideRegisterWindowForCall(codeBlock, &m_registerFile, newCallFrame, argc + RegisterFile::CallFrameHeaderSize, argc); 761 761 if (UNLIKELY(!newCallFrame)) { … … 767 767 newCallFrame->init(codeBlock, 0, scopeChain, callFrame->addHostCallFrameFlag(), 0, argc, function); 768 768 #if ENABLE(JIT) 769 FunctionExecutable->jitCode( scopeChain);769 FunctionExecutable->jitCode(newCallFrame, scopeChain); 770 770 #endif 771 771 … … 806 806 JSValue Interpreter::execute(EvalExecutable* eval, CallFrame* callFrame, JSObject* thisObj, ScopeChainNode* scopeChain, JSValue* exception) 807 807 { 808 return execute(eval, callFrame, thisObj, m_registerFile.size() + eval->bytecode( scopeChain).m_numParameters + RegisterFile::CallFrameHeaderSize, scopeChain, exception);808 return execute(eval, callFrame, thisObj, m_registerFile.size() + eval->bytecode(callFrame, scopeChain).m_numParameters + RegisterFile::CallFrameHeaderSize, scopeChain, exception); 809 809 } 810 810 … … 822 822 DynamicGlobalObjectScope globalObjectScope(callFrame, callFrame->globalData().dynamicGlobalObject ? callFrame->globalData().dynamicGlobalObject : scopeChain->globalObject()); 823 823 824 EvalCodeBlock* codeBlock = &eval->bytecode( scopeChain);824 EvalCodeBlock* codeBlock = &eval->bytecode(callFrame, scopeChain); 825 825 826 826 JSVariableObject* variableObject; … … 881 881 m_reentryDepth++; 882 882 #if ENABLE(JIT) 883 result = eval->jitCode( scopeChain).execute(&m_registerFile, newCallFrame, scopeChain->globalData, exception);883 result = eval->jitCode(newCallFrame, scopeChain).execute(&m_registerFile, newCallFrame, scopeChain->globalData, exception); 884 884 #else 885 885 result = privateExecute(Normal, &m_registerFile, newCallFrame, exception); … … 3017 3017 if (callType == CallTypeJS) { 3018 3018 ScopeChainNode* callDataScopeChain = callData.js.scopeChain; 3019 CodeBlock* newCodeBlock = &callData.js.functionExecutable->bytecode(call DataScopeChain);3019 CodeBlock* newCodeBlock = &callData.js.functionExecutable->bytecode(callFrame, callDataScopeChain); 3020 3020 3021 3021 CallFrame* previousCallFrame = callFrame; … … 3171 3171 if (callType == CallTypeJS) { 3172 3172 ScopeChainNode* callDataScopeChain = callData.js.scopeChain; 3173 CodeBlock* newCodeBlock = &callData.js.functionExecutable->bytecode(call DataScopeChain);3173 CodeBlock* newCodeBlock = &callData.js.functionExecutable->bytecode(callFrame, callDataScopeChain); 3174 3174 3175 3175 CallFrame* previousCallFrame = callFrame; … … 3419 3419 if (constructType == ConstructTypeJS) { 3420 3420 ScopeChainNode* callDataScopeChain = constructData.js.scopeChain; 3421 CodeBlock* newCodeBlock = &constructData.js.functionExecutable->bytecode(call DataScopeChain);3421 CodeBlock* newCodeBlock = &constructData.js.functionExecutable->bytecode(callFrame, callDataScopeChain); 3422 3422 3423 3423 Structure* structure;
Note:
See TracChangeset
for help on using the changeset viewer.