[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 <verwaest@chromium.org> Commit-Queue: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/master@{#66872}
This commit is contained in:
parent
dd0d9c6194
commit
7f1282fb6e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user