• Andreas Haas's avatar
    [wasm][liftoff] Introduce PrepareBuiltinCall · 4212c303
    Andreas Haas authored
    This CL provides a generic way to prepare a builtin call: The
    {PrepareBuiltinCall} takes the builtin signature for 64-bit systems,
    the CallDescriptor, and a Vector of VarStates for the parameters, and
    moves all parameters to their correct place, which is either in a
    register or on the stack.
    
    To test the new code this CL adjusts the implementation of AtomicWait
    to use PrepareBuiltinCall. Thereby AtomicWait is now also supported
    on 32-bit platforms, including ia32.
    
    R=clemensb@chromium.org
    
    Bug: v8:10108, v8:10281
    Change-Id: Ia8589166310ea2e8442531b4ed20db62d7b4aff0
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2108554
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66810}
    4212c303
liftoff-assembler.cc 35.9 KB