• mbrandy's avatar
    PPC: [turbofan] Better and more sane support for tail calls · cf2f6b80
    mbrandy authored
    Port ff283f7d
    
    Original commit message:
        * Limit triggering of tail calls to explicit use of a new inline runtime
          function %_TailCall. %_TailCall works just like %_Call except for using
          tail-calling mechanics (currently only in TF).
        * Remove hack that recognized some specific usages of %_Call and converted them
          into tail calls.
        * Support tail calls for all calls where the number of callee stack parameters
          is less than or equal to the number of caller stack parameters.
        * Use the gap resolver to swizzle parameters and registers to tail calls.
    
    R=danno@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
    BUG=v8:4076
    LOG=n
    
    Review URL: https://codereview.chromium.org/1442143002
    
    Cr-Commit-Position: refs/heads/master@{#31994}
    cf2f6b80
code-generator-ppc.cc 62.1 KB