From b90ba31cd49af14478d5d0d3d807bafe18f664a7 Mon Sep 17 00:00:00 2001 From: bjaideep Date: Tue, 3 May 2016 10:53:05 -0700 Subject: [PATCH] PPC: [stubs]: Implement ArrayNoArgumentConstructor as a TF stub Port fa570e55b623c74245945e3bdda042df1bf6a196 R=danno@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com BUG= LOG=N Review-Url: https://codereview.chromium.org/1950443002 Cr-Commit-Position: refs/heads/master@{#35994} --- src/ppc/code-stubs-ppc.cc | 6 ------ src/ppc/interface-descriptors-ppc.cc | 10 ++++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc index afa5744211..913c92aa7e 100644 --- a/src/ppc/code-stubs-ppc.cc +++ b/src/ppc/code-stubs-ppc.cc @@ -54,12 +54,6 @@ static void InitializeInternalArrayConstructorDescriptor( } -void ArrayNoArgumentConstructorStub::InitializeDescriptor( - CodeStubDescriptor* descriptor) { - InitializeArrayConstructorDescriptor(isolate(), descriptor, 0); -} - - void ArraySingleArgumentConstructorStub::InitializeDescriptor( CodeStubDescriptor* descriptor) { InitializeArrayConstructorDescriptor(isolate(), descriptor, 1); diff --git a/src/ppc/interface-descriptors-ppc.cc b/src/ppc/interface-descriptors-ppc.cc index ff1cba8e49..caf9544959 100644 --- a/src/ppc/interface-descriptors-ppc.cc +++ b/src/ppc/interface-descriptors-ppc.cc @@ -245,6 +245,16 @@ void AllocateHeapNumberDescriptor::InitializePlatformSpecific( SIMD128_TYPES(SIMD128_ALLOC_DESC) #undef SIMD128_ALLOC_DESC +void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( + CallInterfaceDescriptorData* data) { + // register state + // r3 -- number of arguments + // r4 -- function + // r5 -- allocation site with elements kind + Register registers[] = {r4, r5, r3}; + data->InitializePlatformSpecific(arraysize(registers), registers); +} + void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( CallInterfaceDescriptorData* data) { // register state