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