Index: src/ic/arm/ic-arm.cc |
diff --git a/src/ic/arm/ic-arm.cc b/src/ic/arm/ic-arm.cc |
index 89b3cc38d42497b0388e06391283e8163e35fd41..b92c296003f84ae449bfc8c86d807b583a04fade 100644 |
--- a/src/ic/arm/ic-arm.cc |
+++ b/src/ic/arm/ic-arm.cc |
@@ -462,23 +462,17 @@ void KeyedLoadIC::GenerateMegamorphic(MacroAssembler* masm, |
static void StoreIC_PushArgs(MacroAssembler* masm) { |
- if (FLAG_vector_stores) { |
- __ Push(StoreDescriptor::ReceiverRegister(), |
- StoreDescriptor::NameRegister(), StoreDescriptor::ValueRegister(), |
- VectorStoreICDescriptor::SlotRegister(), |
- VectorStoreICDescriptor::VectorRegister()); |
- } else { |
- __ Push(StoreDescriptor::ReceiverRegister(), |
- StoreDescriptor::NameRegister(), StoreDescriptor::ValueRegister()); |
- } |
+ __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
+ StoreDescriptor::ValueRegister(), |
+ VectorStoreICDescriptor::SlotRegister(), |
+ VectorStoreICDescriptor::VectorRegister()); |
} |
void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { |
StoreIC_PushArgs(masm); |
- int args = FLAG_vector_stores ? 5 : 3; |
- __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss, args, 1); |
+ __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss, 5, 1); |
} |
@@ -690,27 +684,24 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
__ ldrb(r4, FieldMemOperand(r4, Map::kInstanceTypeOffset)); |
__ JumpIfNotUniqueNameInstanceType(r4, &slow); |
- // We use register r8 when FLAG_vector_stores is enabled, because otherwise |
- // probing the megamorphic stub cache would require pushing temporaries on |
- // the stack. |
+ // We use register r8, because otherwise probing the megamorphic stub cache |
+ // would require pushing temporaries on the stack. |
// TODO(mvstanton): quit using register r8 when |
// FLAG_enable_embedded_constant_pool is turned on. |
- DCHECK(!FLAG_vector_stores || !FLAG_enable_embedded_constant_pool); |
- Register temporary2 = FLAG_vector_stores ? r8 : r4; |
- if (FLAG_vector_stores) { |
- // 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. |
- Register vector = VectorStoreICDescriptor::VectorRegister(); |
- Register slot = VectorStoreICDescriptor::SlotRegister(); |
- |
- DCHECK(!AreAliased(vector, slot, r5, temporary2, r6, r9)); |
- Handle<TypeFeedbackVector> dummy_vector = |
- TypeFeedbackVector::DummyVector(masm->isolate()); |
- int slot_index = dummy_vector->GetIndex( |
- FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
- __ LoadRoot(vector, Heap::kDummyVectorRootIndex); |
- __ mov(slot, Operand(Smi::FromInt(slot_index))); |
- } |
+ DCHECK(!FLAG_enable_embedded_constant_pool); |
+ Register temporary2 = r8; |
+ // 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. |
+ Register vector = VectorStoreICDescriptor::VectorRegister(); |
+ Register slot = VectorStoreICDescriptor::SlotRegister(); |
+ |
+ DCHECK(!AreAliased(vector, slot, r5, temporary2, r6, r9)); |
+ Handle<TypeFeedbackVector> dummy_vector = |
+ TypeFeedbackVector::DummyVector(masm->isolate()); |
+ int slot_index = dummy_vector->GetIndex( |
+ FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
+ __ LoadRoot(vector, Heap::kDummyVectorRootIndex); |
+ __ mov(slot, Operand(Smi::FromInt(slot_index))); |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
Code::ComputeHandlerFlags(Code::STORE_IC)); |
@@ -788,8 +779,7 @@ void StoreIC::GenerateMiss(MacroAssembler* masm) { |
StoreIC_PushArgs(masm); |
// Perform tail call to the entry. |
- int args = FLAG_vector_stores ? 5 : 3; |
- __ TailCallRuntime(Runtime::kStoreIC_Miss, args, 1); |
+ __ TailCallRuntime(Runtime::kStoreIC_Miss, 5, 1); |
} |