interpreter.cpp
405 InterpreterImp *result = InterpreterImp::interpreterWithGlobalObject(_context->scopeChain().bottom());
Value objects are act as wrappers ("smart pointers") around ValueImp objects and their descendents...
Definition: value.h:168
int sourceId() const
The identifier of the source code fragment containing the code being executed.
Definition: interpreter.cpp:71
Object function() const
In the case of FunctionCode, the function objects being called.
Definition: interpreter.cpp:86
CodeType codeType() const
The type of code being executed in this context.
Definition: interpreter.cpp:66
Interpreter * lexicalInterpreter() const
Returns the interpreter associated with the current scope's global object.
Definition: interpreter.cpp:395
Object variableObject() const
Returns the variable object for the execution context.
Definition: interpreter.cpp:51
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:504
Object thisValue() const
Returns the "this" value for the execution context.
Definition: interpreter.cpp:56
Object builtinDatePrototype() const
Returns the builtin "Date.prototype" object.
Definition: interpreter.cpp:249
ExecState * globalExec()
Returns the execution state object which can be used to execute scripts using this interpreter at a t...
Definition: interpreter.cpp:149
Object builtinArrayPrototype() const
Returns the builtin "Array.prototype" object.
Definition: interpreter.cpp:229
Object builtinErrorPrototype() const
Returns the builtin "Error.prototype" object.
Definition: interpreter.cpp:259
Interpreter objects can be used to evaluate ECMAScript code.
Definition: interpreter.h:173
Object builtinFunctionPrototype() const
Returns the builtin "Function.prototype" object.
Definition: interpreter.cpp:224
Represents an execution context, as specified by section 10 of the ECMA spec.
Definition: interpreter.h:73
Object builtinStringPrototype() const
Returns the builtin "String.prototype" object.
Definition: interpreter.cpp:239
Object builtinBooleanPrototype() const
Returns the builtin "Boolean.prototype" object.
Definition: interpreter.cpp:234
Object builtinNumberPrototype() const
Returns the builtin "Number.prototype" object.
Definition: interpreter.cpp:244
Completion evaluate(const UString &code, const Value &thisV=Value())
Evaluates the supplied ECMAScript code.
Definition: interpreter.cpp:164
Definition: array_instance.h:28
Object builtinRegExpPrototype() const
Returns the builtin "RegExp.prototype" object.
Definition: interpreter.cpp:254
Completion objects are used to convey the return status and value from functions. ...
Definition: completion.h:49
int curStmtFirstLine() const
The line number on which the current statement begins.
Definition: interpreter.cpp:76
Object & globalObject() const
Returns the object that is used as the global object during all script execution performed by this in...
Definition: interpreter.cpp:129
Object builtinFunction() const
Returns the builtin "Function" object.
Definition: interpreter.cpp:179
List args() const
In the case of FunctionCode, the arguments passed to the function.
Definition: interpreter.cpp:96
bool checkSyntax(const UString &code, int *errLine, UString *errMsg)
Parses the supplied ECMAScript code and checks for syntax errors.
Definition: interpreter.cpp:154
Object builtinObjectPrototype() const
Returns the builtin "Object.prototype" object.
Definition: interpreter.cpp:219
Identifier functionName() const
In the case of FunctionCode, the name of the function being called.
Definition: interpreter.cpp:91
const ScopeChain & scopeChain() const
Returns the scope chain for this execution context.
Definition: interpreter.cpp:46
Object builtinEvalError() const
The initial value of "Error" global property.
Definition: interpreter.cpp:264
void setCompatMode(CompatMode mode)
Call this to enable a compatibility mode with another browser.
Definition: interpreter.cpp:324
int curStmtLastLine() const
The line number on which the current statement ends.
Definition: interpreter.cpp:81
const Context callingContext() const
Returns the context from which the current context was invoked.
Definition: interpreter.cpp:61