Index: src/ic/ppc/ic-ppc.cc |
diff --git a/src/ic/ppc/ic-ppc.cc b/src/ic/ppc/ic-ppc.cc |
index 7cac3058bbcca157bf3c206ac5d116d37898a602..09117179ea2a3617d81ac8c069f2d2097f39654a 100644 |
--- a/src/ic/ppc/ic-ppc.cc |
+++ b/src/ic/ppc/ic-ppc.cc |
@@ -711,7 +711,7 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
// change the IC from any downstream misses, a dummy vector can be used. |
Register vector = VectorStoreICDescriptor::VectorRegister(); |
Register slot = VectorStoreICDescriptor::SlotRegister(); |
- DCHECK(!AreAliased(vector, slot, r6, r7, r8, r9)); |
+ DCHECK(!AreAliased(vector, slot, r8, r9, r10, r11)); |
Handle<TypeFeedbackVector> dummy_vector = |
TypeFeedbackVector::DummyVector(masm->isolate()); |
int slot_index = dummy_vector->GetIndex( |
@@ -723,7 +723,7 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
Code::ComputeHandlerFlags(Code::STORE_IC)); |
masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, |
- receiver, key, r6, r7, r8, r9); |
+ receiver, key, r8, r9, r10, r11); |
// Cache miss. |
__ b(&miss); |
@@ -806,20 +806,22 @@ void StoreIC::GenerateNormal(MacroAssembler* masm) { |
Register receiver = StoreDescriptor::ReceiverRegister(); |
Register name = StoreDescriptor::NameRegister(); |
Register value = StoreDescriptor::ValueRegister(); |
- Register dictionary = r6; |
+ Register dictionary = r8; |
DCHECK(receiver.is(r4)); |
DCHECK(name.is(r5)); |
DCHECK(value.is(r3)); |
+ DCHECK(VectorStoreICDescriptor::VectorRegister().is(r6)); |
+ DCHECK(VectorStoreICDescriptor::SlotRegister().is(r7)); |
__ LoadP(dictionary, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); |
- GenerateDictionaryStore(masm, &miss, dictionary, name, value, r7, r8); |
+ GenerateDictionaryStore(masm, &miss, dictionary, name, value, r9, r10); |
Counters* counters = masm->isolate()->counters(); |
- __ IncrementCounter(counters->store_normal_hit(), 1, r7, r8); |
+ __ IncrementCounter(counters->store_normal_hit(), 1, r9, r10); |
__ Ret(); |
__ bind(&miss); |
- __ IncrementCounter(counters->store_normal_miss(), 1, r7, r8); |
+ __ IncrementCounter(counters->store_normal_miss(), 1, r9, r10); |
GenerateMiss(masm); |
} |