PPC: [builtins] Add support for NewTarget to Execution::New.
authormbrandy <mbrandy@us.ibm.com>
Tue, 22 Sep 2015 19:56:01 +0000 (12:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 19:56:16 +0000 (19:56 +0000)
commit0ad9b9e523c82320dc6fa5483d2fae56ea9cf9b4
tree0caea90b105e217a08818982b4199ab47a8d7dd7
parent3028534498c236563f7e426f87f9a5298992eb7f
PPC: [builtins] Add support for NewTarget to Execution::New.

Port 1dfac69f1fb5ad8e2db2d5be591c094def55d451

Original commit message:
    Introduce new builtins Construct and ConstructFunction (in line
    with the Call and CallFunction builtins that we already have) as
    proper bottleneck for Construct and [[Construct]] on JSFunctions.
    Use these builtins to support passing NewTarget from C++ to
    JavaScript land.

    Long-term we want the CallConstructStub to be used for
    gathering feedback on entry to construction chain (i.e. the
    initial new Foo), and use the Construct builtins to do the
    actual work inside the construction chain (i.e. calling into
    super and stuff).

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

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

Cr-Commit-Position: refs/heads/master@{#30872}
src/full-codegen/ppc/full-codegen-ppc.cc
src/ppc/builtins-ppc.cc
src/ppc/code-stubs-ppc.cc