Changeset 21889 in webkit for trunk/JavaScriptCore/kjs/context.h
- Timestamp:
- May 30, 2007, 5:19:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/context.h
r16117 r21889 27 27 28 28 #include "function.h" 29 #include "internal.h" 29 30 30 31 namespace KJS { … … 32 33 class ExecState; 33 34 34 /** 35 /** 35 36 * @short Execution context. 36 37 * … … 47 48 * their first parameter. This can be used to obtain a handle to the current 48 49 * execution context. 49 */ 50 */ 50 51 class Context { 51 52 public: 52 Context(JSObject* global, Interpreter*, JSObject* thisV, 53 FunctionBodyNode* currentBody, CodeType type = GlobalCode, 53 Context(JSObject* global, Interpreter*, JSObject* thisV, 54 FunctionBodyNode* currentBody, CodeType type = GlobalCode, 54 55 Context* callingContext = 0, FunctionImp* function = 0, const List* args = 0); 55 56 ~Context(); … … 99 100 */ 100 101 Context* callingContext() { return m_callingContext; } 101 102 102 103 JSObject* activationObject() { return m_activation; } 103 104 CodeType codeType() { return m_codeType; } … … 113 114 void popIteration() { m_iterationDepth--; } 114 115 bool inIteration() const { return (m_iterationDepth > 0); } 115 116 116 117 void pushSwitch() { m_switchDepth++; } 117 118 void popSwitch() { m_switchDepth--; } 118 119 bool inSwitch() const { return (m_switchDepth > 0); } 119 120 120 121 void mark(); 121 122 … … 135 136 const List* m_arguments; 136 137 JSObject* m_activation; 137 138 138 139 ScopeChain scope; 139 140 JSObject* m_variable;
Note:
See TracChangeset
for help on using the changeset viewer.