Index: src/ic/arm/ic-arm.cc |
diff --git a/src/ic/arm/ic-arm.cc b/src/ic/arm/ic-arm.cc |
index 093a7c1bb2cd360c5453793aa26ee84d271aa5b3..f4a14b42cb750bfdda974a1412c30c2ed24167fd 100644 |
--- a/src/ic/arm/ic-arm.cc |
+++ b/src/ic/arm/ic-arm.cc |
@@ -289,14 +289,10 @@ static const Register LoadIC_TempRegister() { return r3; } |
static void LoadIC_PushArgs(MacroAssembler* masm) { |
Register receiver = LoadDescriptor::ReceiverRegister(); |
Register name = LoadDescriptor::NameRegister(); |
- if (FLAG_vector_ics) { |
- Register slot = VectorLoadICDescriptor::SlotRegister(); |
- Register vector = VectorLoadICDescriptor::VectorRegister(); |
+ Register slot = VectorLoadICDescriptor::SlotRegister(); |
+ Register vector = VectorLoadICDescriptor::VectorRegister(); |
- __ Push(receiver, name, slot, vector); |
- } else { |
- __ Push(receiver, name); |
- } |
+ __ Push(receiver, name, slot, vector); |
} |
@@ -304,8 +300,7 @@ void LoadIC::GenerateMiss(MacroAssembler* masm) { |
// The return address is in lr. |
Isolate* isolate = masm->isolate(); |
- DCHECK(!FLAG_vector_ics || |
- !AreAliased(r4, r5, VectorLoadICDescriptor::SlotRegister(), |
+ DCHECK(!AreAliased(r4, r5, VectorLoadICDescriptor::SlotRegister(), |
VectorLoadICDescriptor::VectorRegister())); |
__ IncrementCounter(isolate->counters()->load_miss(), 1, r4, r5); |
@@ -313,7 +308,7 @@ void LoadIC::GenerateMiss(MacroAssembler* masm) { |
// Perform tail call to the entry. |
ExternalReference ref = ExternalReference(IC_Utility(kLoadIC_Miss), isolate); |
- int arg_count = FLAG_vector_ics ? 4 : 2; |
+ int arg_count = 4; |
__ TailCallExternalReference(ref, arg_count, 1); |
} |
@@ -441,8 +436,7 @@ void KeyedLoadIC::GenerateMiss(MacroAssembler* masm) { |
// The return address is in lr. |
Isolate* isolate = masm->isolate(); |
- DCHECK(!FLAG_vector_ics || |
- !AreAliased(r4, r5, VectorLoadICDescriptor::SlotRegister(), |
+ DCHECK(!AreAliased(r4, r5, VectorLoadICDescriptor::SlotRegister(), |
VectorLoadICDescriptor::VectorRegister())); |
__ IncrementCounter(isolate->counters()->keyed_load_miss(), 1, r4, r5); |
@@ -451,7 +445,7 @@ void KeyedLoadIC::GenerateMiss(MacroAssembler* masm) { |
// Perform tail call to the entry. |
ExternalReference ref = |
ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); |
- int arg_count = FLAG_vector_ics ? 4 : 2; |
+ int arg_count = 4; |
__ TailCallExternalReference(ref, arg_count, 1); |
} |
@@ -527,20 +521,16 @@ void KeyedLoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
__ cmp(r4, ip); |
__ b(eq, &probe_dictionary); |
- |
- if (FLAG_vector_ics) { |
- // When vector ics are in use, 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 = VectorLoadICDescriptor::VectorRegister(); |
- Register slot = VectorLoadICDescriptor::SlotRegister(); |
- DCHECK(!AreAliased(vector, slot, r4, r5, r6, r9)); |
- Handle<TypeFeedbackVector> dummy_vector = Handle<TypeFeedbackVector>::cast( |
- masm->isolate()->factory()->keyed_load_dummy_vector()); |
- int int_slot = dummy_vector->GetIndex(FeedbackVectorICSlot(0)); |
- __ LoadRoot(vector, Heap::kKeyedLoadDummyVectorRootIndex); |
- __ mov(slot, Operand(Smi::FromInt(int_slot))); |
- } |
+ // 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 = VectorLoadICDescriptor::VectorRegister(); |
+ Register slot = VectorLoadICDescriptor::SlotRegister(); |
+ DCHECK(!AreAliased(vector, slot, r4, r5, r6, r9)); |
+ Handle<TypeFeedbackVector> dummy_vector = Handle<TypeFeedbackVector>::cast( |
+ masm->isolate()->factory()->keyed_load_dummy_vector()); |
+ int int_slot = dummy_vector->GetIndex(FeedbackVectorICSlot(0)); |
+ __ LoadRoot(vector, Heap::kKeyedLoadDummyVectorRootIndex); |
+ __ mov(slot, Operand(Smi::FromInt(int_slot))); |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
Code::ComputeHandlerFlags(Code::LOAD_IC)); |