• Leszek Swirski's avatar
    [sfi] Remove SFI function literal id field (reland^2) · 5dee5ade
    Leszek Swirski authored
    SharedFunctionInfos store their original function literal's id. This is
    also their index in the Script's SFI list.
    
    The function literal id is only needed for lazy compilation and live edit,
    and access only has to be fast in the former. So, we can move the SFI
    function literal id field to UncompiledData, and if patching with live
    edit, or discarding compiled code, we can perform a slower linear search
    through the Script's SFI list.
    
    This is a reland of
     1) https://chromium-review.googlesource.com/1082480 and
     2) https://chromium-review.googlesource.com/1128854
    the differences being:
     1) caching the literal id on UncompiledData rather than always linearly
        searching the SFI list, and removing the unused runtime-liveedit.cc
        file instead of fixing it to support this change.
     2) clearing padding on UncompiledData now that it has 3 int32 fields,
        making its end unaligned on x64.
    
    TBR=yangguo@chromium.org,marja@chromium.org,ulan@chromium.org,cbruni@chromium.org
    
    Bug: chromium:818642
    Change-Id: I58dcb12a2a60a680f662568da428e01189c62638
    Reviewed-on: https://chromium-review.googlesource.com/1138325Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#54473}
    5dee5ade
Name
Last commit
Last update
..
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-bigint.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-interpreter.cc Loading commit data...
runtime-intl.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-maths.cc Loading commit data...
runtime-module.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-promise.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime-wasm.cc Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...