• Jaideep Bajwa's avatar
    PPC/s390: [Interpreter] Adapt Call bytecode handlers to drop their stack-frame. · e5b93bd5
    Jaideep Bajwa authored
    Port 51a15140
    
    Original Commit Message:
    
        This change adapts the Call bytecode handlers such that they don't require
        a stack frame. It does this by modifying the call bytecode handler to
        tail-call the Call or InterpreterPushArgsAndCall builtins. As a result, the
        callee function will return to the InterpreterEntryTrampoline when it returns
        (since this is the return address on the interpreter frame), which is
        adapted to dispatch to the next bytecode handler. The return bytecode
        handler is modified to tail-call a new InterpreterExitTramoline instead
        of returning to the InterpreterEntryTrampoline.
    
        Overall this significanlty reduces the amount of stack space required for
        interpreter frames, increasing the maximum depth of recursive calls from
        around 6000 to around 12,500 on x64.
    
    R=rmcilroy@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
    BUG=chromium:753705
    LOG=N
    
    Change-Id: Ieac490d82098c13741080061eda762d54baf8c04
    Reviewed-on: https://chromium-review.googlesource.com/639315Reviewed-by: 's avatarJunliang Yan <jyan@ca.ibm.com>
    Commit-Queue: Jaideep Bajwa <bjaideep@ca.ibm.com>
    Cr-Commit-Position: refs/heads/master@{#47694}
    e5b93bd5
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles 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 Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gn 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.fdlibm 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...
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...