diff --git a/src/compiler.cc b/src/compiler.cc index 6e87d6a347..44b5079792 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -707,7 +707,6 @@ MaybeHandle GetOptimizedCode(Handle function, if (IsEvalToplevel(shared)) { parse_info->set_eval(); - parse_info->set_toplevel(); parse_info->set_allow_lazy_parsing(false); } @@ -1045,8 +1044,6 @@ Handle CompileToplevel(CompilationInfo* info) { isolate->debug()->OnBeforeCompile(script); - parse_info->set_toplevel(); - Handle result; { VMState state(info->isolate()); @@ -1239,7 +1236,6 @@ bool Compiler::CompileDebugCode(Handle function) { CompilationInfo info(&parse_info, Handle::null()); if (IsEvalToplevel(handle(function->shared()))) { parse_info.set_eval(); - parse_info.set_toplevel(); parse_info.set_allow_lazy_parsing(false); } info.MarkAsDebug(); @@ -1265,7 +1261,6 @@ bool Compiler::CompileDebugCode(Handle shared) { CompilationInfo info(&parse_info, Handle::null()); if (IsEvalToplevel(shared)) { parse_info.set_eval(); - parse_info.set_toplevel(); parse_info.set_allow_lazy_parsing(false); } info.MarkAsDebug(); diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc index 1de0d9d4a0..d469cf5dd9 100644 --- a/src/debug/debug-scopes.cc +++ b/src/debug/debug-scopes.cc @@ -93,7 +93,6 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, // Global or eval code. Handle