Changeset 45609 in webkit for trunk/JavaScriptCore/interpreter/CallFrame.h
- Timestamp:
- Jul 7, 2009, 2:52:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/CallFrame.h
r44550 r45609 125 125 } 126 126 127 private: 128 friend class Arguments; 129 friend class JSActivation; 130 friend class JSGlobalObject; 131 friend class Interpreter; 132 friend struct CallFrameClosure; 127 // Read a register from the codeframe (or constant from the CodeBlock). 128 inline Register& r(int); 133 129 130 static CallFrame* noCaller() { return reinterpret_cast<CallFrame*>(HostCallFrameFlag); } 134 131 int returnValueRegister() const { return this[RegisterFile::ReturnValueRegister].i(); } 135 132 133 bool hasHostCallFrameFlag() const { return reinterpret_cast<intptr_t>(this) & HostCallFrameFlag; } 134 CallFrame* addHostCallFrameFlag() const { return reinterpret_cast<CallFrame*>(reinterpret_cast<intptr_t>(this) | HostCallFrameFlag); } 135 CallFrame* removeHostCallFrameFlag() { return reinterpret_cast<CallFrame*>(reinterpret_cast<intptr_t>(this) & ~HostCallFrameFlag); } 136 137 private: 136 138 void setArgumentCount(int count) { this[RegisterFile::ArgumentCount] = count; } 137 139 void setCallee(JSFunction* callee) { this[RegisterFile::Callee] = callee; } … … 139 141 140 142 static const intptr_t HostCallFrameFlag = 1; 141 142 static CallFrame* noCaller() { return reinterpret_cast<CallFrame*>(HostCallFrameFlag); }143 bool hasHostCallFrameFlag() const { return reinterpret_cast<intptr_t>(this) & HostCallFrameFlag; }144 CallFrame* addHostCallFrameFlag() const { return reinterpret_cast<CallFrame*>(reinterpret_cast<intptr_t>(this) | HostCallFrameFlag); }145 CallFrame* removeHostCallFrameFlag() { return reinterpret_cast<CallFrame*>(reinterpret_cast<intptr_t>(this) & ~HostCallFrameFlag); }146 143 147 144 ExecState();
Note:
See TracChangeset
for help on using the changeset viewer.