Chromium Code Reviews| 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; |