Changeset 28468 in webkit for trunk/JavaScriptCore/kjs/ExecState.h
- Timestamp:
- Dec 5, 2007, 6:31:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ExecState.h
r28110 r28468 57 57 public: 58 58 /** 59 * Returns the interpreter currently running code59 * Returns the global object that was in scope when the current script started executing. 60 60 */ 61 Interpreter* dynamicInterpreter() const { return m_interpreter; }61 JSGlobalObject* dynamicGlobalObject() const { return m_globalObject; } 62 62 63 63 /** 64 * Returns the interpreter associated with the current scope's global object64 * Returns the global object that was in scope when the current body of code was defined. 65 65 */ 66 Interpreter* lexicalInterpreter() const;66 JSGlobalObject* lexicalGlobalObject() const; 67 67 68 68 void setException(JSValue* e) { m_exception = e; } … … 79 79 JSObject* thisValue() const { return m_thisVal; } 80 80 81 ExecState* callingExecState() { return m_callingExec State; }81 ExecState* callingExecState() { return m_callingExec; } 82 82 83 83 JSObject* activationObject() { return m_activation; } … … 99 99 bool inSwitch() const { return (m_switchDepth > 0); } 100 100 101 void setGlobalObject(JSGlobalObject*);102 103 101 void mark(); 104 102 … … 110 108 void updateLocalStorage(); 111 109 112 p rivate:113 ExecState( Interpreter* interp,JSGlobalObject* glob, JSObject* thisV,110 public: 111 ExecState(JSGlobalObject* glob, JSObject* thisV, 114 112 FunctionBodyNode* currentBody, CodeType type = GlobalCode, 115 ExecState* callingExecState = 0, FunctionImp* function = 0, const List* args = 0); 113 ExecState* callingExecState = 0, ExecState* currentExec = 0, 114 FunctionImp* function = 0, const List* args = 0); 116 115 ~ExecState(); 117 116 117 private: 118 118 // ExecStates are always stack-allocated, and the garbage collector 119 119 // marks the stack, so we don't need to protect the objects below from GC. 120 120 121 Interpreter* m_interpreter;121 JSGlobalObject* m_globalObject; 122 122 JSValue* m_exception; 123 123 CommonIdentifiers* m_propertyNames; 124 124 125 ExecState* m_callingExec State;126 ExecState* m_savedExec State;125 ExecState* m_callingExec; 126 ExecState* m_savedExec; 127 127 FunctionBodyNode* m_currentBody; 128 128
Note:
See TracChangeset
for help on using the changeset viewer.