• Benedikt Meurer's avatar
    [inspector] Simplify script end position logic. · 7eb22c89
    Benedikt Meurer authored
    Don't expose the line end table logic to V8DebuggerScript, but instead
    use the existing Script::GetPositionInfo() logic to resolve end line and
    column numbers for scripts. This also avoids having to copy (the
    potentially huge) line ends tables to std::vector's twice per script.
    
    Bug: chromium:1162229
    Change-Id: I03365d42c320d462360bacc444f7fa97904a9748
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3494240
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: 's avatarSimon Zünd <szuend@chromium.org>
    Commit-Queue: Simon Zünd <szuend@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#79311}
    7eb22c89
v8-debugger-script.cc 13.8 KB