Bug 752816 (part 3) - Remove TCF_COMPILE_N_GO from TreeContextFlags. r=luke.

This commit is contained in:
Nicholas Nethercote
2012-05-14 18:00:19 -07:00
parent a36de2a89d
commit 87f0781d3a
8 changed files with 32 additions and 33 deletions

View File

@@ -118,7 +118,8 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
JS_ASSERT_IF(callerFrame, compileAndGo);
JS_ASSERT_IF(staticLevel != 0, callerFrame);
Parser parser(cx, principals, originPrincipals, callerFrame);
bool foldConstants = true;
Parser parser(cx, principals, originPrincipals, callerFrame, foldConstants, compileAndGo);
if (!parser.init(chars, length, filename, lineno, version))
return NULL;
@@ -147,8 +148,6 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
RootedVar<JSScript*> script(cx);
sc.flags |= compileAndGo ? TCF_COMPILE_N_GO : 0;
GlobalScope globalScope(cx, globalObj);
bce.sc->setScopeChain(scopeChain);
bce.globalScope = &globalScope;