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

Unified Diff: src/parsing/parser.cc

Issue 2421493002: Make sure we always temp-zone parse if we preparse toplevel (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 5e3b9cc5298e6c1af961f34453e9d9155b8a6003..2af5eef12900e06ecb4881e11370544973ed448c 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -2643,8 +2643,9 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
bool use_temp_zone =
(FLAG_lazy_inner_functions
? can_preparse
- : (allow_lazy() && function_type == FunctionLiteral::kDeclaration &&
- eager_compile_hint == FunctionLiteral::kShouldLazyCompile)) &&
+ : (is_lazy_top_level_function ||
marja 2016/10/14 08:06:23 Shouldn't this be use_temp_zone = is_lazy_top_lev
+ (allow_lazy() && function_type == FunctionLiteral::kDeclaration &&
+ eager_compile_hint == FunctionLiteral::kShouldLazyCompile))) &&
!(FLAG_validate_asm && scope()->IsAsmModule());
bool is_lazy_inner_function =
use_temp_zone && FLAG_lazy_inner_functions && !is_lazy_top_level_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