PPC: [runtime] Initial step towards switching Execution::Call to callable.
authormbrandy <mbrandy@us.ibm.com>
Thu, 17 Sep 2015 20:39:45 +0000 (13:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 17 Sep 2015 20:40:04 +0000 (20:40 +0000)
Port d5bbd45f044ae6796c0d0f7bd8732069d74418de

Original commit message:
    Currently Execution::Call (and friends) still duplicate a lot of the
    Call sequence logic that should be encapsulated in the Call and
    CallFunction builtins. So the plan now is to switch Execution::Call
    to accept any Callable and just pass that through to the Call builtin.

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

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

Cr-Commit-Position: refs/heads/master@{#30813}

src/ppc/builtins-ppc.cc

index 14725997838609a126e18812abfb24f22e624caa..e54f409b8436e76d0d383f3eaf62595d6cf1a2ff 100644 (file)
@@ -791,8 +791,7 @@ static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
       CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS);
       __ CallStub(&stub);
     } else {
-      ParameterCount actual(r3);
-      __ InvokeFunction(r4, actual, CALL_FUNCTION, NullCallWrapper());
+      __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
     }
     // Exit the JS frame and remove the parameters (except function), and
     // return.