36 friend class StatementNode;
39 ContextImp(
Object &glob, InterpreterImp *interpreter,
Object &thisV,
int _sourceId, CodeType type = GlobalCode,
43 const ScopeChain &scopeChain()
const {
return scope; }
44 CodeType codeType()
const {
return m_codeType; }
45 Object variableObject()
const {
return variable; }
46 void setVariableObject(
const Object &v) { variable = v; }
47 Object thisValue()
const {
return thisVal; }
48 ContextImp *callingContext() {
return _callingContext; }
49 ObjectImp *activationObject() {
return activation.imp(); }
51 const List *arguments()
const {
return _arguments; }
53 void pushScope(
const Object &s) { scope.push(s.imp()); }
54 void popScope() { scope.pop(); }
59 void pushTryCatch() { tryCatch++; };
60 void popTryCatch() { tryCatch--; };
61 bool inTryCatch()
const;
63 void setLines(
int l0,
int l1) { line0 = l0; line1 = l1; }
66 InterpreterImp *_interpreter;
69 const List *_arguments;