PPC: [builtin] Refactor Invoke to deal with any kind of callable.
authormbrandy <mbrandy@us.ibm.com>
Wed, 30 Sep 2015 16:28:41 +0000 (09:28 -0700)
committerJongsoo Yoon <join.yoon@samsung.com>
Fri, 20 Nov 2015 13:32:15 +0000 (22:32 +0900)
commitca134a2059813067897ec1541ac5ea1f5bafffac
treecf6a29c794453a4bc7a652b54590c60c2d704f04
parent9f52c93b4431e6d4856785674f426454723b9e67
PPC: [builtin] Refactor Invoke to deal with any kind of callable.

Port 634d1d86d8e98584097c6cb548a68ecf705c44f7

Original commit message:
    Now both Execution::Call and Execution::New can deal with any
    kind of target and will raise a proper exception if the target is not
    callable (which is not yet spec compliant for New, as we would
    have to check IsConstructor instead, which we don't have yet).

    Now we no longer need to do any of these weird call/construct
    delegate gymnastics in C++, and we finally have a single true
    bottleneck for Call/Construct abstract operations in the code
    base, with only a few special handlings left in the compilers to
    optimize the JSFunction case.

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=v8:4430, v8:4413
LOG=n

Review URL: https://codereview.chromium.org/1374683006

Cr-Commit-Position: refs/heads/master@{#31025}
src/ppc/builtins-ppc.cc