Index: src/ic/ppc/stub-cache-ppc.cc |
diff --git a/src/ic/ppc/stub-cache-ppc.cc b/src/ic/ppc/stub-cache-ppc.cc |
index ed703fb21e9af09a32022ceba02e6d6e5719cb4a..6030b2cbc8c48fc3c633e1f6ca24c1c239129eb2 100644 |
--- a/src/ic/ppc/stub-cache-ppc.cc |
+++ b/src/ic/ppc/stub-cache-ppc.cc |
@@ -137,8 +137,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 |