v8/test
Sigurd Schneider 0dfd9ea512 [coverage] Fix coverage with default arguments
In the presence of default arguments, the body of the function gets
wrapped into another block. This caused our trailing-range-after-return
optimization to not apply, because the wrapper block had no source
range assigned. This CL correctly assignes a source range to that block,
which allows already present code to handle it correctly.

Note that this is not a real coverage bug; we've just been reporting
whitespace as uncovered. We're fixing it for consistency.

Originally reported on github.com/bcoe/c8/issues/66

Bug: v8:9952
Change-Id: Iab3905f558eb99126e0dad8072d03d0a312fdcd3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1903430
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64836}
2019-11-07 12:34:35 +00:00
..
benchmarks Remove 'embedded_builtins' variant 2019-10-22 12:58:02 +00:00
cctest [wasm-simd] Implement load_splat and load_extend 2019-11-06 17:42:22 +00:00
common [wasm] Rename {Get,Set}Global to Global{Get,Set} 2019-10-08 14:27:50 +00:00
debugger Introduce REPL mode 2019-11-06 09:17:04 +00:00
fuzzer Remove 'embedded_builtins' variant 2019-10-22 12:58:02 +00:00
inspector Connect REPL mode to the V8 inspector 2019-11-06 13:12:11 +00:00
intl Roll to ICU 65.1 2019-10-31 17:13:46 +00:00
js-perf-test [js-perf-tests] Adds performance tests for BigInt subtraction 2019-10-22 13:32:09 +00:00
memory [owners] Remove redundant OWNERS files in test/ 2019-06-24 12:44:32 +00:00
message V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +00:00
mjsunit [coverage] Fix coverage with default arguments 2019-11-07 12:34:35 +00:00
mkgrokdump [heap] Enable Verify for RO_SPACE when it is shared 2019-11-04 09:55:45 +00:00
mozilla Un-marking tests that were marked SLOW due to TNodification 2019-11-04 13:30:30 +00:00
preparser Fix an error caused by a bug in Python < 2.7.9 2019-11-04 13:42:10 +00:00
test262 Fix variant sorting in locale by rolling ICU 2019-11-04 10:25:30 +00:00
torque [torque] fix formatting of union types 2019-10-24 10:05:25 +00:00
unittests [ptr-compr] Remove the DecompressionElimination Reducer 2019-11-07 11:42:45 +00:00
wasm-api-tests Remove 'embedded_builtins' variant 2019-10-22 12:58:02 +00:00
wasm-js [wasm] update spec tests 2019-10-31 10:09:46 +00:00
wasm-spec-tests [wasm] update spec tests 2019-10-31 10:09:46 +00:00
webkit [builtins] Port %TypedArray%.prototype.set to Torque 2019-11-06 12:51:21 +00:00
BUILD.gn Remove cctest dependency from v8_perf group 2019-10-31 14:09:29 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00