From 7f1282fb6e9631fdaac185955306f7b8907dbe01 Mon Sep 17 00:00:00 2001 From: Leszek Swirski Date: Wed, 25 Mar 2020 18:09:17 +0100 Subject: [PATCH] [parser] Process source ranges for background parses Make sure to call MaybeProcessSourceRanges in ParseOnBackground so that code coverage ranges match between main thread and background compiles. Bug: chromium:1011762 Change-Id: Ic6194083e425f4160e34a34bceb6034624cf1b9f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2120540 Reviewed-by: Toon Verwaest Commit-Queue: Leszek Swirski Cr-Commit-Position: refs/heads/master@{#66872} --- src/parsing/parser.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc index 9971c54a36..2a1ad0e98b 100644 --- a/src/parsing/parser.cc +++ b/src/parsing/parser.cc @@ -3111,6 +3111,7 @@ void Parser::ParseOnBackground(ParseInfo* info) { DoParseFunction(/* isolate = */ nullptr, info, info->function_name()); } MaybeResetCharacterStream(info, result); + MaybeProcessSourceRanges(info, result, stack_limit_); info->set_literal(result);