Index: src/arm64/stub-cache-arm64.cc |
diff --git a/src/arm64/stub-cache-arm64.cc b/src/arm64/stub-cache-arm64.cc |
index 85774d9825c43edf19b20f316932b77e7e45055f..d52493e1536cf3ac8541193365f24c7237141ec8 100644 |
--- a/src/arm64/stub-cache-arm64.cc |
+++ b/src/arm64/stub-cache-arm64.cc |
@@ -1262,20 +1262,24 @@ Register* KeyedLoadStubCompiler::registers() { |
Register StoreStubCompiler::value() { |
- return x0; |
+ return StoreIC::ValueRegister(); |
} |
Register* StoreStubCompiler::registers() { |
// receiver, value, scratch1, scratch2, scratch3. |
- static Register registers[] = { x1, x2, x3, x4, x5 }; |
+ Register receiver = StoreIC::ReceiverRegister(); |
+ Register name = StoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, x3, x4, x5 }; |
return registers; |
} |
Register* KeyedStoreStubCompiler::registers() { |
// receiver, name, scratch1, scratch2, scratch3. |
- static Register registers[] = { x2, x1, x3, x4, x5 }; |
+ Register receiver = KeyedStoreIC::ReceiverRegister(); |
+ Register name = KeyedStoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, x3, x4, x5 }; |
return registers; |
} |