[vm] Add an isolate group flag for branch coverage.

Branch coverage can't be enabled by a simple global flag, because this
causes problems when functions in an app-jit snapshot that didn't have
the flag enabled are compiled by a VM that has the flag enabled. In
particular, the coverage array will see a different set of token
positions, causing some important asserts to fail.

Change-Id: I35227252b5d271f20b01de99466c06708ec83ed8
TEST=CI
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/223360
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
This commit is contained in:
Liam Appelbe
2021-12-14 22:53:36 +00:00
committed by Commit Bot
parent 296167d3c9
commit ac7bca37a8
5 changed files with 11 additions and 3 deletions
+1
View File
@@ -606,6 +606,7 @@ typedef struct {
bool null_safety;
bool is_system_isolate;
bool snapshot_is_dontneed_safe;
bool branch_coverage;
} Dart_IsolateFlags;
/**