Index: src/ic/ppc/ic-ppc.cc |
diff --git a/src/ic/ppc/ic-ppc.cc b/src/ic/ppc/ic-ppc.cc |
index 8af644f08a4a16c956d30497288ec21004a1bf68..9b1079445245c3b31a445a0dca1e9749d0e495bf 100644 |
--- a/src/ic/ppc/ic-ppc.cc |
+++ b/src/ic/ppc/ic-ppc.cc |
@@ -441,10 +441,11 @@ void KeyedLoadIC::GenerateMegamorphic(MacroAssembler* masm, |
Register vector = LoadWithVectorDescriptor::VectorRegister(); |
Register slot = LoadWithVectorDescriptor::SlotRegister(); |
DCHECK(!AreAliased(vector, slot, r7, r8, r9, r10)); |
- 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); |
__ LoadSmiLiteral(slot, Smi::FromInt(slot_index)); |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
@@ -713,10 +714,11 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
Register vector = VectorStoreICDescriptor::VectorRegister(); |
Register slot = VectorStoreICDescriptor::SlotRegister(); |
DCHECK(!AreAliased(vector, slot, r6, r7, r8, r9)); |
- 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); |
__ LoadSmiLiteral(slot, Smi::FromInt(slot_index)); |
} |