From 5783dc71af3f67af23589eb263ee1d38fc6d1d09 Mon Sep 17 00:00:00 2001 From: mbrandy Date: Mon, 13 Jul 2015 10:21:39 -0700 Subject: [PATCH] PPC: [turbofan] Add an InterpreterDispatch linkage type. Port a0129a25ba2f4d00138887cb2008d5b76e2b0068 R=rmcilroy@chromium.org, dstence@us.ibm.com, michael_dawson@ca.ibm.com BUG= Review URL: https://codereview.chromium.org/1232803004 Cr-Commit-Position: refs/heads/master@{#29620} --- src/compiler/ppc/instruction-selector-ppc.cc | 1 + src/compiler/ppc/linkage-ppc.cc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/compiler/ppc/instruction-selector-ppc.cc b/src/compiler/ppc/instruction-selector-ppc.cc index 0fe2acb369..3499fe4394 100644 --- a/src/compiler/ppc/instruction-selector-ppc.cc +++ b/src/compiler/ppc/instruction-selector-ppc.cc @@ -1547,6 +1547,7 @@ void InstructionSelector::VisitTailCall(Node* node) { InstructionCode opcode; switch (descriptor->kind()) { case CallDescriptor::kCallCodeObject: + case CallDescriptor::kInterpreterDispatch: opcode = kArchTailCallCodeObject; break; case CallDescriptor::kCallJSFunction: diff --git a/src/compiler/ppc/linkage-ppc.cc b/src/compiler/ppc/linkage-ppc.cc index 677e9d0e6c..ebea4452ae 100644 --- a/src/compiler/ppc/linkage-ppc.cc +++ b/src/compiler/ppc/linkage-ppc.cc @@ -67,6 +67,12 @@ CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, return LH::GetSimplifiedCDescriptor(zone, sig); } + +CallDescriptor* Linkage::GetInterpreterDispatchDescriptor( + Zone* zone, const MachineSignature* sig) { + return LH::GetInterpreterDispatchDescriptor(zone, sig); +} + } // namespace compiler } // namespace internal } // namespace v8