Index: src/ic/arm64/stub-cache-arm64.cc |
diff --git a/src/ic/arm64/stub-cache-arm64.cc b/src/ic/arm64/stub-cache-arm64.cc |
index ecd7fe1534e1305d89416376a1dc4f6bc7452eb2..eb82f2af868b73b13f785e47272c746b38211d79 100644 |
--- a/src/ic/arm64/stub-cache-arm64.cc |
+++ b/src/ic/arm64/stub-cache-arm64.cc |
@@ -111,8 +111,14 @@ void StubCache::GenerateProbe(MacroAssembler* masm, Code::Kind ic_kind, |
// extra3 don't conflict with the vector and slot registers, which need |
// to be preserved for a handler call or miss. |
if (IC::ICUseVector(ic_kind)) { |
- Register vector = LoadWithVectorDescriptor::VectorRegister(); |
- Register slot = LoadWithVectorDescriptor::SlotRegister(); |
+ Register vector, slot; |
+ if (ic_kind == Code::STORE_IC || ic_kind == Code::KEYED_STORE_IC) { |
+ vector = VectorStoreICDescriptor::VectorRegister(); |
+ slot = VectorStoreICDescriptor::SlotRegister(); |
+ } else { |
+ vector = LoadWithVectorDescriptor::VectorRegister(); |
+ slot = LoadWithVectorDescriptor::SlotRegister(); |
+ } |
DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); |
} |
#endif |