• jyan's avatar
    S390: [turbofan] CodeGenerator: Frame setup refactoring · 2f2b3040
    jyan authored
    Port 81a1530e
    
    Original commit message:
    
        Before frame elision, we finalized the frame shape when assembling the
        prologue, which is also when we prepared the frame (saving sp, etc).
    
        The frame finalization only needs to happen once, and happens to be
        actually a set of idempotent operations. With frame elision, the logic for
        frame finalization was happening every time we constructed the frame.
        Albeit idempotent operations, the code would become hard to maintain.
    
        This change separates frame shape finalization from frame
        construction. When constructing the CodeGenerator, we finalize the
        frame. Subsequent access is to a const Frame*.
    
        Also renamed AssemblePrologue to AssembleConstructFrame, as
        suggested in the frame elision CR.
    
        Separating frame setup gave the opportunity to do away with
        architecture-independent frame aligning (which is something just arm64
        cares about), and also with stack pointer setup (also arm64). Both of
        these happen now at frame finalization on arm64.
    
    R=mtrofin@chromium.org, joransiu@ca.ibm.com, bjaideep@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com
    
    BUG=
    LOG=N
    
    Review URL: https://codereview.chromium.org/1903403002
    
    Cr-Commit-Position: refs/heads/master@{#35677}
    2f2b3040
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
docs Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...