• Jakob Gruber's avatar
    [builtins] Simplify InitializeBuiltinEntryTrable · 3c5998f9
    Jakob Gruber authored
    All builtins are now guaranteed to be in the embedded blob. Setup of
    the builtins entry table can be simplified to directly fetch
    instruction starts from the embedded blob.
    
    Additionally, this CL adds a sanity check for the builtin Code
    object's builtin_index (to verify the Code object is uncorrupted). The
    CHECK can be removed or changed to a DCHECK once the linked bug is
    resolved.
    
    Bug: chromium:1020986
    Change-Id: I38832790132e284c7fc23251a5dc2eefb8456de6
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1939048
    Auto-Submit: Jakob Gruber <jgruber@chromium.org>
    Commit-Queue: Dan Elphick <delphick@chromium.org>
    Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#65194}
    3c5998f9
builtins.cc 17.1 KB