Changeset 2821 in webkit for trunk/JavaScriptCore/kjs/internal.h
- Timestamp:
- Nov 21, 2002, 10:59:09 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.h
r2792 r2821 30 30 #include "types.h" 31 31 #include "interpreter.h" 32 #include "scope_chain.h" 32 33 33 34 #define I18N_NOOP(s) s … … 195 196 196 197 /** 197 * @short Execution context.198 */199 class ContextImp {200 public:201 ContextImp(Object &glob, ExecState *exec, Object &thisV, CodeType type = GlobalCode,202 ContextImp *_callingContext = 0L, FunctionImp *func = 0L, const ArgumentList *args = 0);203 ~ContextImp();204 205 const List scopeChain() const { return scope; }206 Object variableObject() const { return variable; }207 void setVariableObject(const Object &v) { variable = v; }208 Object thisValue() const { return thisVal; }209 ContextImp *callingContext() { return callingCon; }210 ObjectImp *activationObject() { return activation.imp(); }211 FunctionImp *function() const { return _function; }212 const ArgumentList *arguments() const { return _arguments; }213 214 void pushScope(const Object &s);215 void popScope();216 LabelStack *seenLabels() { return &ls; }217 218 private:219 220 List scope;221 Object variable;222 Object thisVal;223 ContextImp *callingCon;224 Object activation;225 FunctionImp *_function;226 const ArgumentList *_arguments;227 228 LabelStack ls;229 CodeType codeType;230 };231 232 /**233 198 * @internal 234 199 * … … 309 274 InterpreterImp *nextInterpreter() const { return next; } 310 275 InterpreterImp *prevInterpreter() const { return prev; } 276 277 void setContext(ContextImp *c) { _context = c; } 311 278 312 279 private: … … 360 327 static InterpreterImp* s_hook; 361 328 InterpreterImp *next, *prev; 329 330 ContextImp *_context; 362 331 363 332 int recursion;
Note:
See TracChangeset
for help on using the changeset viewer.