Chromium Code Reviews| Index: src/parsing/parser.cc |
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
| index 2379d5f311d607ca0d70a2ee2e736f95982ab8d1..b73cdb89bafd77b9beea3cc7a53dfa051030a658 100644 |
| --- a/src/parsing/parser.cc |
| +++ b/src/parsing/parser.cc |
| @@ -3151,6 +3151,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
| bookmark.Reset(); |
| // Trigger eager (re-)parsing, just below this block. |
| is_lazily_parsed = false; |
| + this->scope()->set_is_lazily_parsed(false); |
| // This is probably an initialization function. Inform the compiler it |
| // should also eager-compile this function, and that we expect it to be |
| @@ -3263,6 +3264,7 @@ Parser::LazyParsingResult Parser::SkipLazyFunctionBody( |
| int function_block_pos = position(); |
| DeclarationScope* scope = this->scope()->AsDeclarationScope(); |
| DCHECK(scope->is_function_scope()); |
|
jochen (gone - plz use gerrit)
2016/09/16 13:16:12
Marja raised the concern that the this->scope() mi
|
| + scope->set_is_lazily_parsed(true); |
| if (consume_cached_parse_data() && !cached_parse_data_->rejected()) { |
| // If we have cached data, we use it to skip parsing the function body. The |
| // data contains the information we need to construct the lazy function. |