• Leszek Swirski's avatar
    [liveedit] Use start position in function lookup · ac0c19b6
    Leszek Swirski authored
    Instead of looking up functions by their function literal id (which can
    be slow now that function id involves a linear search for compiled
    functions), we key the lookup by the function's start position.
    
    This means that the script+literal id swapping to find equivalent
    unchanged functions during constant pool patching no longer works -- we
    could replace it by fixing up the start position of the redundant new
    function, but instead we just build up a side-table mapping (new) start
    positions to function literal ids, and use that function literal id to
    find the old function in the script's SFI list.
    
    Change-Id: I10bfce6c39665cba063e0ddbc8fd38a6f5fd5513
    Reviewed-on: https://chromium-review.googlesource.com/1140169Reviewed-by: 's avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#54542}
    ac0c19b6
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...
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-scope-iterator.cc Loading commit data...
debug-scope-iterator.h Loading commit data...
debug-scopes.cc Loading commit data...
debug-scopes.h Loading commit data...
debug-stack-trace-iterator.cc Loading commit data...
debug-stack-trace-iterator.h Loading commit data...
debug-type-profile.cc Loading commit data...
debug-type-profile.h Loading commit data...
debug.cc Loading commit data...
debug.h Loading commit data...
interface-types.h Loading commit data...
liveedit.cc Loading commit data...
liveedit.h Loading commit data...