Commit a08a730a authored by Balazs Kilvady's avatar Balazs Kilvady Committed by Paul Lind

MIPS: Re-land r25392 Use a stub in crankshaft for grow store arrays.

Port 47f55bae

Original commit message:
Code was vulnerable to different evaluation order in Clang.

BUG=
R=paul.lind@imgtec.com

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

Patch from Balazs Kilvady <balazs.kilvady@imgtec.com>.

Cr-Commit-Position: refs/heads/master@{#25404}
parent 0518a68b
......@@ -54,6 +54,12 @@ const Register MathPowIntegerDescriptor::exponent() {
}
// IC register specifications
const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; }
const Register GrowArrayElementsDescriptor::KeyRegister() { return a1; }
const Register GrowArrayElementsDescriptor::CapacityRegister() { return a2; }
void FastNewClosureDescriptor::Initialize(CallInterfaceDescriptorData* data) {
Register registers[] = {cp, a2};
data->Initialize(arraysize(registers), registers, NULL);
......
......@@ -60,6 +60,12 @@ void FastNewClosureDescriptor::Initialize(CallInterfaceDescriptorData* data) {
}
// IC register specifications
const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; }
const Register GrowArrayElementsDescriptor::KeyRegister() { return a1; }
const Register GrowArrayElementsDescriptor::CapacityRegister() { return a2; }
void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) {
Register registers[] = {cp, a1};
data->Initialize(arraysize(registers), registers, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment