Index: src/mips64/stub-cache-mips64.cc |
diff --git a/src/mips64/stub-cache-mips64.cc b/src/mips64/stub-cache-mips64.cc |
index 6c46321aae03a8cad7a22c5bd88b40345bee8767..26270496e4bec3dfc1c92d98a9014589d6febaa7 100644 |
--- a/src/mips64/stub-cache-mips64.cc |
+++ b/src/mips64/stub-cache-mips64.cc |
@@ -1270,20 +1270,24 @@ Register* KeyedLoadStubCompiler::registers() { |
Register StoreStubCompiler::value() { |
- return a0; |
+ return StoreIC::ValueRegister(); |
} |
Register* StoreStubCompiler::registers() { |
// receiver, name, scratch1, scratch2, scratch3. |
- static Register registers[] = { a1, a2, a3, a4, a5 }; |
+ Register receiver = StoreIC::ReceiverRegister(); |
+ Register name = StoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, a3, a4, a5 }; |
return registers; |
} |
Register* KeyedStoreStubCompiler::registers() { |
// receiver, name, scratch1, scratch2, scratch3. |
- static Register registers[] = { a2, a1, a3, a4, a5 }; |
+ Register receiver = KeyedStoreIC::ReceiverRegister(); |
+ Register name = KeyedStoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, a3, a4, a5 }; |
return registers; |
} |