Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: src/compiler.cc

Issue 2405263003: Mark ParseInfo as top-level in the constructors (Closed)
Patch Set: just set the flag Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/debug/debug-scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 6e87d6a347dd16ef1ce8d2e21059bfe3de53dc97..44b50797927faee0b386cc204207216886186633 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -707,7 +707,6 @@ MaybeHandle<Code> GetOptimizedCode(Handle<JSFunction> function,
if (IsEvalToplevel(shared)) {
parse_info->set_eval();
- parse_info->set_toplevel();
parse_info->set_allow_lazy_parsing(false);
}
@@ -1045,8 +1044,6 @@ Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
isolate->debug()->OnBeforeCompile(script);
- parse_info->set_toplevel();
-
Handle<SharedFunctionInfo> result;
{ VMState<COMPILER> state(info->isolate());
@@ -1239,7 +1236,6 @@ bool Compiler::CompileDebugCode(Handle<JSFunction> function) {
CompilationInfo info(&parse_info, Handle<JSFunction>::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<SharedFunctionInfo> shared) {
CompilationInfo info(&parse_info, Handle<JSFunction>::null());
if (IsEvalToplevel(shared)) {
parse_info.set_eval();
- parse_info.set_toplevel();
parse_info.set_allow_lazy_parsing(false);
}
info.MarkAsDebug();
« no previous file with comments | « no previous file | src/debug/debug-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698