• Patrick Thier's avatar
    [masm] Create helpers to manipulate arguments on the stack. · 89933af6
    Patrick Thier authored
    - Introduce helper to push arguments onto the stack (Standalone this
    change doesn't make a lot of sense, but is in preparation for including
    the receiver in argc).
    - Introduce helper to shift arguments already on the stack to make room
    for new arguments (Varargs).
    - arm64 is not included because a) there was already a helper similar
    to ShiftArguments and b) PushArguments is not similar enough to make
    sense for arm64 because of small differences (e.g. also pushing the
    function) in conjunction with stack alignment.
    
    Drive-by: Use masm DropArguments in Sparkplug EmitReturn
    
    Bug: v8:11112
    Change-Id: Id7a3a5f025abb19e2a52dae27b3b484fe87e9faf
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3097275Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76392}
    89933af6
baseline-assembler-ia32-inl.h 16.3 KB