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

Unified Diff: src/parsing/parser.cc

Issue 2479213002: [parser] Only track parsing-mode (and possibly switch to the preparser) in the parser (Closed)
Patch Set: Created 4 years, 1 month 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.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 7e554a750cd9bc49b429f33a826ee1ea3a89e695..2fca08cc15bba783f1eee4d286647627cd56d067 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -590,6 +590,7 @@ Parser::Parser(ParseInfo* info)
scanner_(info->unicode_cache()),
reusable_preparser_(nullptr),
original_scope_(nullptr),
+ mode_(PARSE_EAGERLY), // Lazy mode must be set explicitly.
target_stack_(nullptr),
compile_options_(info->compile_options()),
cached_parse_data_(nullptr),

Powered by Google App Engine
This is Rietveld 408576698