• 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...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...