Changeset 50916 in webkit for trunk/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Nov 12, 2009, 4:28:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r50896 r50916 814 814 815 815 Register* oldEnd = m_registerFile.end(); 816 int argc = 1; // Implicit this argument817 if (!m_registerFile.grow( m_registerFile.start() + globalRegisterOffset + argc)) {816 Register* newEnd = m_registerFile.start() + globalRegisterOffset + codeBlock->m_numCalleeRegisters; 817 if (!m_registerFile.grow(newEnd)) { 818 818 *exception = createStackOverflowError(callFrame); 819 819 return jsNull(); … … 821 821 822 822 CallFrame* newCallFrame = CallFrame::create(m_registerFile.start() + globalRegisterOffset); 823 newCallFrame->r(0) = JSValue(thisObj); 824 825 newCallFrame = slideRegisterWindowForCall(codeBlock, &m_registerFile, newCallFrame, argc + RegisterFile::CallFrameHeaderSize, argc); 826 if (UNLIKELY(!newCallFrame)) { 827 *exception = createStackOverflowError(callFrame); 828 m_registerFile.shrink(oldEnd); 829 return jsNull(); 830 } 823 831 824 // a 0 codeBlock indicates a built-in caller 832 newCallFrame->init(codeBlock, 0, scopeChain, callFrame->addHostCallFrameFlag(), 0, argc, 0); 825 newCallFrame->r(codeBlock->thisRegister()) = JSValue(thisObj); 826 newCallFrame->init(codeBlock, 0, scopeChain, callFrame->addHostCallFrameFlag(), 0, 0, 0); 833 827 834 828 if (codeBlock->needsFullScopeChain())
Note:
See TracChangeset
for help on using the changeset viewer.