interpreter.cpp
404 InterpreterImp *result = InterpreterImp::interpreterWithGlobalObject(_context->scopeChain().bottom());
Completion objects are used to convey the return status and value from functions.
Definition: completion.h:48
Represents an execution context, as specified by section 10 of the ECMA spec.
Definition: interpreter.h:72
Identifier functionName() const
In the case of FunctionCode, the name of the function being called.
Definition: interpreter.cpp:90
Object thisValue() const
Returns the "this" value for the execution context.
Definition: interpreter.cpp:55
List args() const
In the case of FunctionCode, the arguments passed to the function.
Definition: interpreter.cpp:95
const Context callingContext() const
Returns the context from which the current context was invoked.
Definition: interpreter.cpp:60
int sourceId() const
The identifier of the source code fragment containing the code being executed.
Definition: interpreter.cpp:70
CodeType codeType() const
The type of code being executed in this context.
Definition: interpreter.cpp:65
Object function() const
In the case of FunctionCode, the function objects being called.
Definition: interpreter.cpp:85
const ScopeChain & scopeChain() const
Returns the scope chain for this execution context.
Definition: interpreter.cpp:45
int curStmtFirstLine() const
The line number on which the current statement begins.
Definition: interpreter.cpp:75
int curStmtLastLine() const
The line number on which the current statement ends.
Definition: interpreter.cpp:80
Object variableObject() const
Returns the variable object for the execution context.
Definition: interpreter.cpp:50
static Object create(ExecState *exec, ErrorType errtype=GeneralError, const char *message=0, int lineno=-1, int sourceId=-1)
Factory method for error objects.
Definition: object.cpp:503
Interpreter * lexicalInterpreter() const
Returns the interpreter associated with the current scope's global object.
Definition: interpreter.cpp:394
Interpreter * dynamicInterpreter() const
Returns the interpreter associated with this execution state.
Definition: interpreter.h:452
Interpreter objects can be used to evaluate ECMAScript code.
Definition: interpreter.h:172
Object builtinFunctionPrototype() const
Returns the builtin "Function.prototype" object.
Definition: interpreter.cpp:223
Object builtinArrayPrototype() const
Returns the builtin "Array.prototype" object.
Definition: interpreter.cpp:228
Object builtinBooleanPrototype() const
Returns the builtin "Boolean.prototype" object.
Definition: interpreter.cpp:233
Object builtinObjectPrototype() const
Returns the builtin "Object.prototype" object.
Definition: interpreter.cpp:218
Completion evaluate(const UString &code, const Value &thisV=Value())
Evaluates the supplied ECMAScript code.
Definition: interpreter.cpp:163
bool checkSyntax(const UString &code, int *errLine, UString *errMsg)
Parses the supplied ECMAScript code and checks for syntax errors.
Definition: interpreter.cpp:153
Object builtinDatePrototype() const
Returns the builtin "Date.prototype" object.
Definition: interpreter.cpp:248
Object builtinNumberPrototype() const
Returns the builtin "Number.prototype" object.
Definition: interpreter.cpp:243
Object builtinRegExpPrototype() const
Returns the builtin "RegExp.prototype" object.
Definition: interpreter.cpp:253
Object builtinErrorPrototype() const
Returns the builtin "Error.prototype" object.
Definition: interpreter.cpp:258
Object builtinEvalError() const
The initial value of "Error" global property.
Definition: interpreter.cpp:263
void setCompatMode(CompatMode mode)
Call this to enable a compatibility mode with another browser.
Definition: interpreter.cpp:323
Object builtinStringPrototype() const
Returns the builtin "String.prototype" object.
Definition: interpreter.cpp:238
ExecState * globalExec()
Returns the execution state object which can be used to execute scripts using this interpreter at a t...
Definition: interpreter.cpp:148
Object & globalObject() const
Returns the object that is used as the global object during all script execution performed by this in...
Definition: interpreter.cpp:128
Value objects are act as wrappers ("smart pointers") around ValueImp objects and their descendents.
Definition: value.h:167