• bjaideep's avatar
    PPC/s390: [builtins] Start refactoring the Apply builtin. · 9385fd40
    bjaideep authored
    Port af76779a
    
    Original Commit Message:
    
        This splits the monolithic Apply builtin into several smaller builtins,
        namely CallVargargs and ConstructVarargs, which accept a length and a
        FixedArray of elements and deal with the actual stack manipulation, and
        CallWithArrayLike / ConstructWithArrayLike that deal with getting the
        elements from the receiver (for Function.prototype.apply, Reflect.apply
        and Reflect.construct), which can now be written using the CSA.
    
        The idea is that these builtins can be reused by TurboFan directly in
        the future when we optimize apply better, and that we can also reuse the
        core logic in the handling of spread calls/constructs.
    
    R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
    BUG=v8:4587,v8:5269
    LOG=N
    
    Review-Url: https://codereview.chromium.org/2932833002
    Cr-Commit-Position: refs/heads/master@{#45826}
    9385fd40
macro-assembler-ppc.h 63.9 KB