| Index: src/ic/mips/ic-mips.cc
|
| diff --git a/src/ic/mips/ic-mips.cc b/src/ic/mips/ic-mips.cc
|
| index a673dbf254f8bd84b9e1d30f33b409108bb1a511..a2d9165ba3847f1766be62c286bbcdc7674c324f 100644
|
| --- a/src/ic/mips/ic-mips.cc
|
| +++ b/src/ic/mips/ic-mips.cc
|
| @@ -681,7 +681,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, a3, t0, t1, t2));
|
| + DCHECK(!AreAliased(vector, slot, t1, t2, t4, t5));
|
| Handle<TypeFeedbackVector> dummy_vector =
|
| TypeFeedbackVector::DummyVector(masm->isolate());
|
| int slot_index = dummy_vector->GetIndex(
|
| @@ -693,7 +693,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, a3, t0, t1, t2);
|
| + receiver, key, t1, t2, t4, t5);
|
| // Cache miss.
|
| __ Branch(&miss);
|
|
|
| @@ -794,20 +794,24 @@ void StoreIC::GenerateNormal(MacroAssembler* masm) {
|
| Register receiver = StoreDescriptor::ReceiverRegister();
|
| Register name = StoreDescriptor::NameRegister();
|
| Register value = StoreDescriptor::ValueRegister();
|
| - Register dictionary = a3;
|
| + Register vector = VectorStoreICDescriptor::VectorRegister();
|
| + Register slot = VectorStoreICDescriptor::SlotRegister();
|
| + Register dictionary = t1;
|
| DCHECK(receiver.is(a1));
|
| DCHECK(name.is(a2));
|
| DCHECK(value.is(a0));
|
| + DCHECK(vector.is(a3));
|
| + DCHECK(slot.is(t0));
|
|
|
| __ lw(dictionary, FieldMemOperand(receiver, JSObject::kPropertiesOffset));
|
|
|
| - GenerateDictionaryStore(masm, &miss, dictionary, name, value, t0, t1);
|
| + GenerateDictionaryStore(masm, &miss, dictionary, name, value, t2, t5);
|
| Counters* counters = masm->isolate()->counters();
|
| - __ IncrementCounter(counters->store_normal_hit(), 1, t0, t1);
|
| + __ IncrementCounter(counters->store_normal_hit(), 1, t2, t5);
|
| __ Ret();
|
|
|
| __ bind(&miss);
|
| - __ IncrementCounter(counters->store_normal_miss(), 1, t0, t1);
|
| + __ IncrementCounter(counters->store_normal_miss(), 1, t2, t5);
|
| GenerateMiss(masm);
|
| }
|
|
|
|
|