Index: src/ic/mips/ic-mips.cc |
diff --git a/src/ic/mips/ic-mips.cc b/src/ic/mips/ic-mips.cc |
index e6bbbb829b5227b0e5ea44fe15a0ec1a15df1cfb..e9a2c9be818064c113e1e7e9e041eab34e3491fe 100644 |
--- a/src/ic/mips/ic-mips.cc |
+++ b/src/ic/mips/ic-mips.cc |
@@ -436,10 +436,11 @@ void KeyedLoadIC::GenerateMegamorphic(MacroAssembler* masm, |
Register vector = LoadWithVectorDescriptor::VectorRegister(); |
Register slot = LoadWithVectorDescriptor::SlotRegister(); |
DCHECK(!AreAliased(vector, slot, t0, t1, t2, t5)); |
- Handle<TypeFeedbackVector> dummy_vector = Handle<TypeFeedbackVector>::cast( |
- masm->isolate()->factory()->keyed_load_dummy_vector()); |
- int slot_index = dummy_vector->GetIndex(FeedbackVectorICSlot(0)); |
- __ LoadRoot(vector, Heap::kKeyedLoadDummyVectorRootIndex); |
+ Handle<TypeFeedbackVector> dummy_vector = |
+ TypeFeedbackVector::DummyVector(masm->isolate()); |
+ int slot_index = dummy_vector->GetIndex( |
+ FeedbackVectorICSlot(TypeFeedbackVector::kDummyKeyedLoadICSlot)); |
+ __ LoadRoot(vector, Heap::kDummyVectorRootIndex); |
__ li(slot, Operand(Smi::FromInt(slot_index))); |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
@@ -684,10 +685,11 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
Register vector = VectorStoreICDescriptor::VectorRegister(); |
Register slot = VectorStoreICDescriptor::SlotRegister(); |
DCHECK(!AreAliased(vector, slot, a3, t0, t1, t2)); |
- Handle<TypeFeedbackVector> dummy_vector = Handle<TypeFeedbackVector>::cast( |
- masm->isolate()->factory()->keyed_store_dummy_vector()); |
- int slot_index = dummy_vector->GetIndex(FeedbackVectorICSlot(0)); |
- __ LoadRoot(vector, Heap::kKeyedStoreDummyVectorRootIndex); |
+ Handle<TypeFeedbackVector> dummy_vector = |
+ TypeFeedbackVector::DummyVector(masm->isolate()); |
+ int slot_index = dummy_vector->GetIndex( |
+ FeedbackVectorICSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
+ __ LoadRoot(vector, Heap::kDummyVectorRootIndex); |
__ li(slot, Operand(Smi::FromInt(slot_index))); |
} |