• Junliang Yan's avatar
    PPC/s390: [arm][turbofan] Implement on-stack returns. · 7103c194
    Junliang Yan authored
    Port 9c7b6e1e
    
    Original Commit Message:
    
        This is the implementation of crrev.com/c/766371 for arm.
    
        Original description:
    
        Add the ability to return (multiple) return values on the stack:
    
        - Extend stack frames with a new buffer region for return slots.
          This region is located at the end of a caller's frame such that
          its slots can be indexed as caller frame slots in a callee
          (located beyond its parameters) and assigned return values.
        - Adjust stack frame constructon and deconstruction accordingly.
        - Extend linkage computation to support register plus stack returns.
        - Reserve return slots in caller frame when respective calls occur.
        - Introduce and generate architecture instructions ('peek') for
          reading back results from return slots in the caller.
        - Aggressive tests.
        - Some minor clean-up.
    
    R=ahaas@chromium.org, joransiu@ca.ibm.com, michael_dawson@ca.ibm.com, miladfar@ca.ibm.com
    BUG=
    LOG=N
    
    Change-Id: I83df1af8c49f6d6c5b529db599fce61a1da2490d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1496549Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
    Cr-Commit-Position: refs/heads/master@{#60032}
    7103c194
instruction-codes-ppc.h 7.78 KB