• ishell's avatar
    [turbofan] Further fixing ES6 tail call elimination in Turbofan. · 2aae579c
    ishell authored
    In case when F tail calls G we should also remove the potential arguments adaptor frame for F.
    
    This CL introduces two new machine instructions ArchTailCallCodeObjectFromJSFunction and ArchTailCallJSFunctionFromJSFunction which (unlike existing ArchTailCallCodeObject and ArchTailCallJSFunction) also drop arguments adaptor frame if it exists right before jumping to the target function.
    
    BUG=v8:4698
    LOG=N
    
    Review URL: https://codereview.chromium.org/1702423002
    
    Cr-Commit-Position: refs/heads/master@{#34566}
    2aae579c
tail-call-simple.js 2.68 KB