Commit 23271dd
deps: V8: cherry-pick deac757
Original commit message:
[debugger] Fix code coverage for break/return inside switch-case
Case statements have a list of statements associated with them, but are
not blocks, and were hence not fixed-up correctly for code coverage.
This CL also applies the fix-up to the "body" of case statements,
in this way removing ranges reported as uncovered between the final
break/return in a case and the next case (or end of function).
Drive-by: Add optional pretty printing to code coverage test results.
Change-Id: I5f4002d4e17b7253ed516d99f7c389ab2264be10
Bug: v8:9705
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1798426
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63719}
Refs: v8/v8@deac757
Backport-PR-URL: #30109
PR-URL: #29626
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 6ae7d30 commit 23271ddCopy full SHA for 23271dd
File tree
Expand file treeCollapse file tree
5 files changed
+81
-12
lines changedOpen diff view settings
Filter options
- deps/v8
- src/ast
- test/mjsunit
Expand file treeCollapse file tree
5 files changed
+81
-12
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
|
Collapse file
deps/v8/src/ast/source-range-ast-visitor.cc
Copy file name to clipboardExpand all lines: deps/v8/src/ast/source-range-ast-visitor.cc+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
28 | 36 | |
29 | 37 | |
30 | 38 | |
|
Collapse file
deps/v8/src/ast/source-range-ast-visitor.h
Copy file name to clipboardExpand all lines: deps/v8/src/ast/source-range-ast-visitor.h+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
| 37 | + |
37 | 38 | |
38 | 39 | |
39 | 40 | |
|
Collapse file
deps/v8/test/mjsunit/code-coverage-block.js
Copy file name to clipboardExpand all lines: deps/v8/test/mjsunit/code-coverage-block.js+49-4Lines changed: 49 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
434 | 434 | |
435 | 435 | |
436 | 436 | |
437 | | - |
438 | | - |
| 437 | + |
| 438 | + |
439 | 439 | |
440 | 440 | |
441 | 441 | |
| ||
464 | 464 | |
465 | 465 | |
466 | 466 | |
467 | | - |
468 | | - |
| 467 | + |
| 468 | + |
469 | 469 | |
470 | 470 | |
471 | 471 | |
| ||
1052 | 1052 | |
1053 | 1053 | |
1054 | 1054 | |
| 1055 | + |
| 1056 | + |
| 1057 | + |
| 1058 | + |
| 1059 | + |
| 1060 | + |
| 1061 | + |
| 1062 | + |
| 1063 | + |
| 1064 | + |
| 1065 | + |
| 1066 | + |
| 1067 | + |
| 1068 | + |
| 1069 | + |
| 1070 | + |
| 1071 | + |
| 1072 | + |
| 1073 | + |
| 1074 | + |
| 1075 | + |
| 1076 | + |
| 1077 | + |
| 1078 | + |
| 1079 | + |
| 1080 | + |
| 1081 | + |
| 1082 | + |
| 1083 | + |
| 1084 | + |
| 1085 | + |
| 1086 | + |
| 1087 | + |
| 1088 | + |
| 1089 | + |
| 1090 | + |
| 1091 | + |
| 1092 | + |
| 1093 | + |
| 1094 | + |
| 1095 | + |
| 1096 | + |
| 1097 | + |
| 1098 | + |
| 1099 | + |
1055 | 1100 | |
Collapse file
deps/v8/test/mjsunit/code-coverage-utils.js
Copy file name to clipboardExpand all lines: deps/v8/test/mjsunit/code-coverage-utils.js+22-7Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
| 21 | + |
| 22 | + |
22 | 23 | |
23 | 24 | |
24 | 25 | |
25 | 26 | |
26 | 27 | |
27 | 28 | |
28 | | - |
29 | | - |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
30 | 45 | |
31 | 46 | |
32 | 47 | |
33 | 48 | |
34 | | - |
35 | | - |
| 49 | + |
| 50 | + |
36 | 51 | |
37 | 52 | |
38 | | - |
39 | | - |
| 53 | + |
| 54 | + |
40 | 55 | |
41 | 56 | |
42 | 57 | |
|
0 commit comments