• 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
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
x87 Loading commit data...
OWNERS Loading commit data...
debug-coverage.cc Loading commit data...
debug-coverage.h Loading commit data...
debug-evaluate.cc Loading commit data...
debug-evaluate.h Loading commit data...
debug-frames.cc Loading commit data...
debug-frames.h Loading commit data...
debug-interface.h Loading commit data...
debug-scopes.cc Loading commit data...
debug-scopes.h Loading commit data...
debug.cc Loading commit data...
debug.h Loading commit data...
debug.js Loading commit data...
interface-types.h Loading commit data...
liveedit.cc Loading commit data...
liveedit.h Loading commit data...
liveedit.js Loading commit data...
mirrors.js Loading commit data...