From 906152b85a83ed3c655a154e929039861889770d Mon Sep 17 00:00:00 2001 From: "chunyang.dai" Date: Sun, 3 May 2015 20:39:14 -0700 Subject: [PATCH] X87: Use a stub in crankshaft for grow store arrays. port fb8e6136387339e8089bbf61d4ffee50e4cd957e (r28163). original commit message: We were deopting without learning anything. This is a rebase/reland of https://codereview.chromium.org/368263003 BUG= Review URL: https://codereview.chromium.org/1125623002 Cr-Commit-Position: refs/heads/master@{#28188} --- src/x87/interface-descriptors-x87.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/x87/interface-descriptors-x87.cc b/src/x87/interface-descriptors-x87.cc index 506ed47fac..8a6b55e2d3 100644 --- a/src/x87/interface-descriptors-x87.cc +++ b/src/x87/interface-descriptors-x87.cc @@ -56,6 +56,11 @@ const Register MathPowIntegerDescriptor::exponent() { } +const Register GrowArrayElementsDescriptor::ObjectRegister() { return eax; } +const Register GrowArrayElementsDescriptor::KeyRegister() { return ebx; } +const Register GrowArrayElementsDescriptor::CapacityRegister() { return ecx; } + + void FastNewClosureDescriptor::Initialize(CallInterfaceDescriptorData* data) { Register registers[] = {esi, ebx}; data->Initialize(arraysize(registers), registers, NULL);