• Leszek Swirski's avatar
    Revert "[sfi] Remove SFI function literal id field" · b6888b63
    Leszek Swirski authored
    This reverts commit ceb9c812.
    
    Reason for revert: Tanks compile time
    
    Original change's description:
    > [sfi] Remove SFI function literal id field
    > 
    > 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: Hannes Payer <hpayer@chromium.org>
    > Reviewed-by: Toon Verwaest <verwaest@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#53523}
    
    TBR=hpayer@chromium.org,leszeks@chromium.org,verwaest@chromium.org
    
    # Not skipping CQ checks because original CL landed > 1 day ago.
    
    Bug: chromium:818642
    Bug: chromium:850417
    Change-Id: If2fd21331b7062532c04004a51e705f7e9d0a151
    Reviewed-on: https://chromium-review.googlesource.com/1090494Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53573}
    b6888b63
Name
Last commit
Last update
..
OWNERS Loading commit data...
duplicate-finder.h Loading commit data...
expression-classifier.h Loading commit data...
expression-scope-reparenter.cc Loading commit data...
expression-scope-reparenter.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
pattern-rewriter.cc Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparsed-scope-data.cc Loading commit data...
preparsed-scope-data.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...