From 512cd8e728bab639b0a4c4617e6fd3e7fdfae11d Mon Sep 17 00:00:00 2001 From: "balazs.kilvady@imgtec.com" Date: Tue, 4 Nov 2014 17:19:52 +0000 Subject: [PATCH] MIPS: [turbofan] Add AllocateHeapNumberStub to avoid runtime call. Port 983ca3f1e7bd8cbba45684d5c1642cd495ca9bc1 Port r25107 TEST=unittests BUG= R=paul.lind@imgtec.com Review URL: https://codereview.chromium.org/699903002 Cr-Commit-Position: refs/heads/master@{#25118} git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25118 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/interface-descriptors-mips.cc | 9 +++++++++ src/mips64/interface-descriptors-mips64.cc | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/mips/interface-descriptors-mips.cc b/src/mips/interface-descriptors-mips.cc index 7e1496744b..ecdaecf2b7 100644 --- a/src/mips/interface-descriptors-mips.cc +++ b/src/mips/interface-descriptors-mips.cc @@ -152,6 +152,15 @@ void TransitionElementsKindDescriptor::Initialize( } +void AllocateHeapNumberDescriptor::Initialize( + CallInterfaceDescriptorData* data) { + // register state + // cp -- context + Register registers[] = {cp}; + data->Initialize(arraysize(registers), registers, nullptr); +} + + void ArrayConstructorConstantArgCountDescriptor::Initialize( CallInterfaceDescriptorData* data) { // register state diff --git a/src/mips64/interface-descriptors-mips64.cc b/src/mips64/interface-descriptors-mips64.cc index a14a08bdbd..44c8dff17d 100644 --- a/src/mips64/interface-descriptors-mips64.cc +++ b/src/mips64/interface-descriptors-mips64.cc @@ -152,6 +152,15 @@ void TransitionElementsKindDescriptor::Initialize( } +void AllocateHeapNumberDescriptor::Initialize( + CallInterfaceDescriptorData* data) { + // register state + // cp -- context + Register registers[] = {cp}; + data->Initialize(arraysize(registers), registers, nullptr); +} + + void ArrayConstructorConstantArgCountDescriptor::Initialize( CallInterfaceDescriptorData* data) { // register state