Changeset 59860 in webkit for trunk/JavaScriptCore/interpreter/CallFrame.h
- Timestamp:
- May 20, 2010, 1:12:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/CallFrame.h
r59791 r59860 119 119 120 120 ALWAYS_INLINE void init(CodeBlock* codeBlock, Instruction* vPC, ScopeChainNode* scopeChain, 121 CallFrame* callerFrame, int returnValueRegister, int argc, JSFunction* function)121 CallFrame* callerFrame, int, int argc, JSFunction* function) 122 122 { 123 123 ASSERT(callerFrame); // Use noCaller() rather than 0 for the outer host call frame caller. … … 127 127 setCallerFrame(callerFrame); 128 128 static_cast<Register*>(this)[RegisterFile::ReturnPC] = vPC; // This is either an Instruction* or a pointer into JIT generated code stored as an Instruction*. 129 static_cast<Register*>(this)[RegisterFile::ReturnValueRegister] = Register::withInt(returnValueRegister);130 129 setArgumentCount(argc); // original argument count (for the sake of the "arguments" object) 131 130 setCallee(function); … … 136 135 137 136 static CallFrame* noCaller() { return reinterpret_cast<CallFrame*>(HostCallFrameFlag); } 138 int returnValueRegister() const { return this[RegisterFile::ReturnValueRegister].i(); }139 137 140 138 bool hasHostCallFrameFlag() const { return reinterpret_cast<intptr_t>(this) & HostCallFrameFlag; }
Note:
See TracChangeset
for help on using the changeset viewer.