| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 86dbe8fcf0aa13910140a038a3158eba53ddffa4..20254d3cc321f4cde2e815eaec0a20d2bcce7ce3 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -660,7 +660,7 @@ MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCodeCommon(
|
| PostponeInterruptsScope postpone(info->isolate());
|
|
|
| // Parse and update CompilationInfo with the results.
|
| - if (!Parser::Parse(info)) return MaybeHandle<Code>();
|
| + if (!Parser::ParseStatic(info)) return MaybeHandle<Code>();
|
| Handle<SharedFunctionInfo> shared = info->shared_info();
|
| FunctionLiteral* lit = info->function();
|
| shared->set_language_mode(lit->language_mode());
|
| @@ -832,7 +832,7 @@ bool Compiler::Analyze(CompilationInfo* info) {
|
|
|
|
|
| bool Compiler::ParseAndAnalyze(CompilationInfo* info) {
|
| - if (!Parser::Parse(info)) return false;
|
| + if (!Parser::ParseStatic(info)) return false;
|
| return Compiler::Analyze(info);
|
| }
|
|
|
| @@ -1073,7 +1073,7 @@ void Compiler::CompileForLiveEdit(Handle<Script> script) {
|
| VMState<COMPILER> state(info.isolate());
|
|
|
| info.MarkAsGlobal();
|
| - if (!Parser::Parse(&info)) return;
|
| + if (!Parser::ParseStatic(&info)) return;
|
|
|
| LiveEditFunctionTracker tracker(info.isolate(), info.function());
|
| if (!CompileUnoptimizedCode(&info)) return;
|
| @@ -1123,7 +1123,7 @@ static Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
|
| // data while parsing eagerly is not implemented.
|
| info->SetCachedData(NULL, ScriptCompiler::kNoCompileOptions);
|
| }
|
| - if (!Parser::Parse(info, parse_allow_lazy)) {
|
| + if (!Parser::ParseStatic(info, parse_allow_lazy)) {
|
| return Handle<SharedFunctionInfo>::null();
|
| }
|
| }
|
|
|