Changeset 60720 in webkit for trunk/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Jun 4, 2010, 4:38:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r60708 r60720 3659 3659 CallFrame* newCallFrame = CallFrame::create(callFrame->registers() + registerOffset); 3660 3660 newCallFrame->init(0, vPC + OPCODE_LENGTH(op_call), scopeChain, callFrame, argCount, asObject(v)); 3661 3662 Register* thisRegister = newCallFrame->registers() - RegisterFile::CallFrameHeaderSize - argCount;3663 ArgList args(thisRegister + 1, argCount - 1);3664 3661 3665 3662 JSValue returnValue; … … 3810 3807 newCallFrame->init(0, vPC + OPCODE_LENGTH(op_call_varargs), scopeChain, callFrame, argCount, asObject(v)); 3811 3808 3812 Register* thisRegister = newCallFrame->registers() - RegisterFile::CallFrameHeaderSize - argCount;3813 ArgList args(thisRegister + 1, argCount - 1);3814 3815 3809 JSValue returnValue; 3816 3810 { … … 4129 4123 ScopeChainNode* scopeChain = callFrame->scopeChain(); 4130 4124 CallFrame* newCallFrame = CallFrame::create(callFrame->registers() + registerOffset); 4131 newCallFrame->init(0, vPC + OPCODE_LENGTH(op_construct), scopeChain, callFrame, argCount, 0); 4132 4133 Register* thisRegister = newCallFrame->registers() - RegisterFile::CallFrameHeaderSize - argCount; 4134 ArgList args(thisRegister + 1, argCount - 1); 4125 newCallFrame->init(0, vPC + OPCODE_LENGTH(op_construct), scopeChain, callFrame, argCount, asObject(v)); 4135 4126 4136 4127 JSValue returnValue; 4137 4128 { 4138 4129 SamplingTool::HostCallRecord callRecord(m_sampler.get()); 4139 returnValue = constructData.native.function(newCallFrame, asObject(v), args);4130 returnValue = JSValue::decode(constructData.native.function(newCallFrame)); 4140 4131 } 4141 4132 CHECK_FOR_EXCEPTION(); 4142 functionReturnValue = JSValue(returnValue);4133 functionReturnValue = returnValue; 4143 4134 4144 4135 vPC += OPCODE_LENGTH(op_construct);
Note:
See TracChangeset
for help on using the changeset viewer.