Index: src/ic/arm64/ic-arm64.cc |
diff --git a/src/ic/arm64/ic-arm64.cc b/src/ic/arm64/ic-arm64.cc |
index b4649b5d0998bc3503a999092b9034f9c6771ec9..fe76f1de358f4aecd756716c6417ad2cdc112e79 100644 |
--- a/src/ic/arm64/ic-arm64.cc |
+++ b/src/ic/arm64/ic-arm64.cc |
@@ -409,10 +409,11 @@ static void GenerateKeyedLoadWithNameKey(MacroAssembler* masm, Register key, |
Register vector = LoadWithVectorDescriptor::VectorRegister(); |
Register slot = LoadWithVectorDescriptor::SlotRegister(); |
DCHECK(!AreAliased(vector, slot, scratch1, scratch2, scratch3, scratch4)); |
- 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); |
__ Mov(slot, Operand(Smi::FromInt(slot_index))); |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
@@ -698,10 +699,11 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
Register vector = VectorStoreICDescriptor::VectorRegister(); |
Register slot = VectorStoreICDescriptor::SlotRegister(); |
DCHECK(!AreAliased(vector, slot, x3, x4, x5, x6)); |
- 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); |
__ Mov(slot, Operand(Smi::FromInt(slot_index))); |
} |