Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 3611a28c1ba8134664d595f1672461d3467f3a3a..d08d597b9e7c0990c8669b59cf7370e4e96cc22d 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.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, t0, t1 }; |
+ Register receiver = StoreIC::ReceiverRegister(); |
+ Register name = StoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, a3, t0, t1 }; |
return registers; |
} |
Register* KeyedStoreStubCompiler::registers() { |
// receiver, name, scratch1, scratch2, scratch3. |
- static Register registers[] = { a2, a1, a3, t0, t1 }; |
+ Register receiver = KeyedStoreIC::ReceiverRegister(); |
+ Register name = KeyedStoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, a3, t0, t1 }; |
return registers; |
} |