Commit 7991d960 authored by Wiktor Garbacz's avatar Wiktor Garbacz Committed by Commit Bot

[parser] Do not call ResetAfterPreparsing twice.

AnalyzePartially already calls ResetAfterPreparsing.

BUG=v8:6093

Change-Id: Idafed85133016a6c7ba17074e269ff2ab94ff38d
Reviewed-on: https://chromium-review.googlesource.com/493387Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Reviewed-by: 's avatarDaniel Vogelheim <vogelheim@chromium.org>
Commit-Queue: Wiktor Garbacz <wiktorg@google.com>
Cr-Commit-Position: refs/heads/master@{#45050}
parent 5db25a09
......@@ -2757,9 +2757,7 @@ FunctionLiteral* Parser::ParseFunctionLiteral(
scope->start_position(),
should_use_parse_task ? "SUCCESS" : "FAILED");
}
if (should_use_parse_task) {
scope->ResetAfterPreparsing(ast_value_factory(), false);
} else {
if (!should_use_parse_task) {
// Fallback to eager parsing below if we failed to enqueue parse tasks
bookmark.Apply();
scope->ResetAfterPreparsing(ast_value_factory(), true);
......
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