Lines Matching refs:exec
38 bool checkSyntax(ExecState* exec, const SourceCode& source, JSValue* returnedException)
40 JSLockHolder lock(exec);
41 RELEASE_ASSERT(exec->vm().atomicStringTable() == wtfThreadData().atomicStringTable());
43 ProgramExecutable* program = ProgramExecutable::create(exec, source);
44 JSObject* error = program->checkSyntax(exec);
62 JSValue evaluate(ExecState* exec, const SourceCode& source, JSValue thisValue, JSValue* returnedException)
64 JSLockHolder lock(exec);
65 RELEASE_ASSERT(exec->vm().atomicStringTable() == wtfThreadData().atomicStringTable());
66 RELEASE_ASSERT(!exec->vm().isCollectorBusy());
70 ProgramExecutable* program = ProgramExecutable::create(exec, source);
73 *returnedException = exec->vm().exception();
75 exec->vm().clearException();
80 thisValue = exec->vmEntryGlobalObject();
81 JSObject* thisObj = jsCast<JSObject*>(thisValue.toThis(exec, NotStrictMode));
82 JSValue result = exec->interpreter()->execute(program, exec, thisObj);
84 if (exec->hadException()) {
86 *returnedException = exec->exception();
88 exec->clearException();