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

Unified Diff: src/parsing/parser.h

Issue 2399833002: Teach Scopes whether they will end up being lazily compiled or not (Closed)
Patch Set: 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
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 45b4d2b2e3b39b2c949a4b544bb9d62b1b8fc410..3a3f74f8e668eb2acada6d56e9be8a97a05606a0 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -205,6 +205,9 @@ class Parser : public ParserBase<Parser> {
friend class ParserBase<Parser>;
friend class v8::internal::ExpressionClassifier<ParserTypes<Parser>>;
+ // Determine if the given function should be lazily compiled.
+ bool ShouldCompileLazily(FunctionLiteral* fun);
+
// Runtime encoding of different completion modes.
enum CompletionKind {
kNormalCompletion,

Powered by Google App Engine
This is Rietveld 408576698