• Leszek Swirski's avatar
    [sfi] Remove SFI function literal id field · ceb9c812
    Leszek Swirski authored
    SharedFunctionInfos store their original function literal's id. This is
    also their index in the Script's SFI list.
    
    Since the function literal id is only needed for lazy compilation and live
    edit, we can calculate it on-the-fly by linear search in the Script SFI list,
    and save a field on the SFI.
    
    If this regresses compile performance, we could alternatively store the
    function literal id on the preparsed scope data as future work.
    
    Bug: chromium:818642
    Change-Id: I5468cea0e115921f1c864d94e567d749a4349882
    Reviewed-on: https://chromium-review.googlesource.com/1082480
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53523}
    ceb9c812
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni 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...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython 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...
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...