Changeset 16117 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Aug 30, 2006, 11:45:07 AM (19 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/context.h
r14834 r16117 30 30 namespace KJS { 31 31 32 class ExecState; 33 32 34 /** 33 35 * @short Execution context. … … 118 120 void mark(); 119 121 122 void setExecState(ExecState* exec) { m_execState = exec; } 123 ExecState* execState() { return m_execState; } 124 120 125 private: 121 126 // Contexts are always stack-allocated, and the garbage collector … … 125 130 Context* m_callingContext; 126 131 FunctionBodyNode* m_currentBody; 132 ExecState* m_execState; 127 133 128 134 FunctionImp* m_function; -
trunk/JavaScriptCore/kjs/function.cpp
r15846 r16117 83 83 if (exec->hadException()) 84 84 newExec.setException(exec->exception()); 85 ctx.setExecState(&newExec); 85 86 86 87 // assign user supplied arguments to parameters … … 819 820 EvalCode, 820 821 exec->context()); 821 822 822 ExecState newExec(exec->dynamicInterpreter(), &ctx); 823 823 if (exec->hadException()) 824 824 newExec.setException(exec->exception()); 825 ctx.setExecState(&newExec); 825 826 826 827 // execute the code -
trunk/JavaScriptCore/kjs/interpreter.cpp
r15990 r16117 471 471 Context ctx(globalObj, this, thisObj, progNode.get()); 472 472 ExecState newExec(this, &ctx); 473 ctx.setExecState(&newExec); 473 474 progNode->processVarDecls(&newExec); 474 475 res = progNode->execute(&newExec);
Note:
See TracChangeset
for help on using the changeset viewer.