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

Unified Diff: src/compiler.cc

Issue 1102523003: Implement a 'trial parse' step, that will abort pre-parsing excessively (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improve comments + naming. (Marja's feedback.) Created 5 years, 8 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/parser.h » ('j') | src/preparser.cc » ('J')
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 75349e99d2793205704b44f396a83e67f21702e6..6fcdfc405a042e8ab0ab6b15e4cc4221211c3f56 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1370,6 +1370,9 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(
// appropriately sized.
DCHECK(!info.code().is_null());
scope_info = ScopeInfo::Create(info.isolate(), info.zone(), info.scope());
+ if (literal->should_eager_compile()) {
+ info.code()->MarkToBeExecutedOnce(isolate);
+ }
} else {
return Handle<SharedFunctionInfo>::null();
}
« no previous file with comments | « no previous file | src/parser.h » ('j') | src/preparser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698