• ishell's avatar
    [turbofan] Fixing ES6 tail calls in Turbofan. · c67b5096
    ishell authored
    In case when F inlined normal call to G which tail calls H we should not write translation for G for the tail call site.
    Otherwise we will see G in a stack trace inside H.
    
    This CL also adds a "megatest" which tests product of the following cases:
    1) tail caller is inlined/not-inlined
    2) tail callee is inlined/not-inlined
    3) tail caller has an arguments adaptor frame above or not
    4) tail callee has an arguments adaptor frame above or not
    5) tail callee is a normal/bound/proxy function
    
    Note that tests for not yet supported cases are not run for now.
    
    BUG=v8:4698
    LOG=N
    
    Review URL: https://codereview.chromium.org/1709583002
    
    Cr-Commit-Position: refs/heads/master@{#34108}
    c67b5096
tail-call-megatest.js 4.98 KB