• 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
..
OWNERS Loading commit data...
builtins-ppc.cc Loading commit data...