• jgruber's avatar
    [coverage] Improve source range precision · 63a7fa5a
    jgruber authored
    This CL improves reported source range precision in a couple of ways:
    
    Source ranges are now standardized to consist of an inclusive start
    index and an exclusive end index (similar to what's reported for
    functions). For example:
    
    0123456789  // Offset.
    { f(); }    // Block represented as range {0,8}.
    
    Duplicate singleton ranges (i.e. same start and end offsets) are now
    merged (this only becomes relevant once jump statement coverage is
    added). For example:
    
    for (.) break;  // Break- and loop continuation have same positions.
    
    SourceRangeScope incorrectly collected starting position
    (unconditionally) and end position (when no semi-colon was present).
    
    01234567890123  // Offset.
    for (.) break   // Loop body range is {8,13}, was {6,9}.
    
    Bug: v8:6000
    Change-Id: I62e7c70cc894a20f318330a2fbbcedc47da2b5db
    Reviewed-on: https://chromium-review.googlesource.com/541358
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#46095}
    63a7fa5a
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...