Commit c5df7fe2 authored by verwaest's avatar verwaest Committed by Commit bot

Restore kDeclaration as a condition for temp-zone parsing

This should restore the codeload regression when FLAG_lazy_inner_functions is turned off

BUG=v8:5501

Review-Url: https://codereview.chromium.org/2412483005
Cr-Commit-Position: refs/heads/master@{#40217}
parent 3285b965
......@@ -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 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment