Changeset 46598 in webkit for trunk/JavaScriptCore/interpreter/CallFrame.h
- Timestamp:
- Jul 30, 2009, 1:57:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/CallFrame.h
r45609 r46598 106 106 Instruction* returnPC() const { return this[RegisterFile::ReturnPC].vPC(); } 107 107 108 void setCalleeArguments( Arguments*arguments) { this[RegisterFile::OptionalCalleeArguments] = arguments; }108 void setCalleeArguments(JSValue arguments) { this[RegisterFile::OptionalCalleeArguments] = arguments; } 109 109 void setCallerFrame(CallFrame* callerFrame) { this[RegisterFile::CallerFrame] = callerFrame; } 110 110 void setScopeChain(ScopeChainNode* scopeChain) { this[RegisterFile::ScopeChain] = scopeChain; } … … 119 119 setCallerFrame(callerFrame); 120 120 this[RegisterFile::ReturnPC] = vPC; // This is either an Instruction* or a pointer into JIT generated code stored as an Instruction*. 121 this[RegisterFile::ReturnValueRegister] = returnValueRegister;121 this[RegisterFile::ReturnValueRegister] = Register::withInt(returnValueRegister); 122 122 setArgumentCount(argc); // original argument count (for the sake of the "arguments" object) 123 123 setCallee(function); 124 setCalleeArguments( 0);124 setCalleeArguments(JSValue()); 125 125 } 126 126 … … 136 136 137 137 private: 138 void setArgumentCount(int count) { this[RegisterFile::ArgumentCount] = count; }138 void setArgumentCount(int count) { this[RegisterFile::ArgumentCount] = Register::withInt(count); } 139 139 void setCallee(JSFunction* callee) { this[RegisterFile::Callee] = callee; } 140 140 void setCodeBlock(CodeBlock* codeBlock) { this[RegisterFile::CodeBlock] = codeBlock; }
Note:
See TracChangeset
for help on using the changeset viewer.