Changeset 127202 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrame.h
- Timestamp:
- Aug 30, 2012, 3:50:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r127199 r127202 34 34 class JSActivation; 35 35 class Interpreter; 36 class ScopeChainNode;36 class JSScope; 37 37 38 38 // Represents the current state of script execution. … … 43 43 JSObject* callee() const { return this[RegisterFile::Callee].function(); } 44 44 CodeBlock* codeBlock() const { return this[RegisterFile::CodeBlock].Register::codeBlock(); } 45 ScopeChainNode* scopeChain() const46 { 47 ASSERT(this[RegisterFile::ScopeChain].Register::scope Chain());48 return this[RegisterFile::ScopeChain].Register::scope Chain();45 JSScope* scope() const 46 { 47 ASSERT(this[RegisterFile::ScopeChain].Register::scope()); 48 return this[RegisterFile::ScopeChain].Register::scope(); 49 49 } 50 50 … … 167 167 168 168 void setCallerFrame(CallFrame* callerFrame) { static_cast<Register*>(this)[RegisterFile::CallerFrame] = callerFrame; } 169 void setScope Chain(ScopeChainNode* scopeChain) { static_cast<Register*>(this)[RegisterFile::ScopeChain] = scopeChain; }170 171 ALWAYS_INLINE void init(CodeBlock* codeBlock, Instruction* vPC, ScopeChainNode* scopeChain,169 void setScope(JSScope* scope) { static_cast<Register*>(this)[RegisterFile::ScopeChain] = scope; } 170 171 ALWAYS_INLINE void init(CodeBlock* codeBlock, Instruction* vPC, JSScope* scope, 172 172 CallFrame* callerFrame, int argc, JSObject* callee) 173 173 { … … 176 176 177 177 setCodeBlock(codeBlock); 178 setScope Chain(scopeChain);178 setScope(scope); 179 179 setCallerFrame(callerFrame); 180 180 setReturnPC(vPC); // This is either an Instruction* or a pointer into JIT generated code stored as an Instruction*.
Note:
See TracChangeset
for help on using the changeset viewer.