Commit 7f1282fb authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[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/+/2120540Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66872}
parent dd0d9c61
......@@ -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);
......
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