• Andreas Haas's avatar
    [wasm] Introduce a TableCopy builtin · 1e1d4d82
    Andreas Haas authored
    This CL introduces a CSA builtin for the TableCopy instruction. This
    builtin allows to generate smaller code for both TurboFan and Liftoff,
    and easier code generation from Liftoff.
    
    The smaller code size comes from:
    * Parameters are passed through registers, not the stack.
    * Lower number of parameters: the call target, number of parameters, and
    context are not passed as parameters.
    * No int to smi conversion in generated code.
    
    R=clemensb@chromium.org
    
    Bug: v8:10281
    Change-Id: I4734b94c8a2aff08a5938504e3e36d0d2424f8ca
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2110010
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66797}
    1e1d4d82
runtime.h 34.5 KB