MIPS: Re-land r25392 Use a stub in crankshaft for grow store arrays.
Port 47f55baeaf
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}
This commit is contained in:
parent
0518a68bac
commit
a08a730a8d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user