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

Unified Diff: src/parsing/parser.cc

Issue 2412483005: Restore kDeclaration as a condition for temp-zone parsing (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index f5cbefd14cd962aad117029ef3bdfe7441db9ba1..f38fc85087f93548662368e98b1bc4a7e40a63d2 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -2652,7 +2652,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
bool use_temp_zone =
(FLAG_lazy_inner_functions
? can_preparse
- : (allow_lazy() &&
+ : (allow_lazy() && function_type == FunctionLiteral::kDeclaration &&
eager_compile_hint == FunctionLiteral::kShouldLazyCompile)) &&
!(FLAG_validate_asm && scope()->IsAsmModule());
bool is_lazy_inner_function =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698