Index: src/ic/x64/ic-x64.cc |
diff --git a/src/ic/x64/ic-x64.cc b/src/ic/x64/ic-x64.cc |
index b987c9362db2feb4729b13af786cae8e4512b2fb..2b94562f6434bd9254ebdf50534587e8e1b8a0d7 100644 |
--- a/src/ic/x64/ic-x64.cc |
+++ b/src/ic/x64/ic-x64.cc |
@@ -345,9 +345,10 @@ void KeyedLoadIC::GenerateMegamorphic(MacroAssembler* masm, |
Register vector = LoadWithVectorDescriptor::VectorRegister(); |
Register slot = LoadDescriptor::SlotRegister(); |
DCHECK(!AreAliased(megamorphic_scratch, vector, slot)); |
- Handle<TypeFeedbackVector> dummy_vector = Handle<TypeFeedbackVector>::cast( |
- masm->isolate()->factory()->keyed_load_dummy_vector()); |
- int slot_index = dummy_vector->GetIndex(FeedbackVectorICSlot(0)); |
+ Handle<TypeFeedbackVector> dummy_vector = |
+ TypeFeedbackVector::DummyVector(masm->isolate()); |
+ int slot_index = dummy_vector->GetIndex( |
+ FeedbackVectorICSlot(TypeFeedbackVector::kDummyKeyedLoadICSlot)); |
__ Move(vector, dummy_vector); |
__ Move(slot, Smi::FromInt(slot_index)); |
@@ -572,9 +573,10 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
Register slot = VectorStoreICDescriptor::SlotRegister(); |
// The handlers in the stub cache expect a vector and slot. Since we won't |
// change the IC from any downstream misses, a dummy vector can be used. |
- Handle<TypeFeedbackVector> dummy_vector = Handle<TypeFeedbackVector>::cast( |
- masm->isolate()->factory()->keyed_store_dummy_vector()); |
- int slot_index = dummy_vector->GetIndex(FeedbackVectorICSlot(0)); |
+ Handle<TypeFeedbackVector> dummy_vector = |
+ TypeFeedbackVector::DummyVector(masm->isolate()); |
+ int slot_index = dummy_vector->GetIndex( |
+ FeedbackVectorICSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
__ Move(vector, dummy_vector); |
__ Move(slot, Smi::FromInt(slot_index)); |
} |