Index: src/ic/ppc/ic-ppc.cc |
diff --git a/src/ic/ppc/ic-ppc.cc b/src/ic/ppc/ic-ppc.cc |
index ea8239a3e2286b9e4a77ff63acb7d75a4d087771..3ac86c0b18ef360bc6321ceb3236bb1c8562d260 100644 |
--- a/src/ic/ppc/ic-ppc.cc |
+++ b/src/ic/ppc/ic-ppc.cc |
@@ -472,23 +472,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); |
} |
@@ -704,19 +698,17 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
__ lbz(r7, FieldMemOperand(r7, Map::kInstanceTypeOffset)); |
__ JumpIfNotUniqueNameInstanceType(r7, &slow); |
- 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, r8, r9, r10, r11)); |
- Handle<TypeFeedbackVector> dummy_vector = |
- TypeFeedbackVector::DummyVector(masm->isolate()); |
- int slot_index = dummy_vector->GetIndex( |
- FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
- __ LoadRoot(vector, Heap::kDummyVectorRootIndex); |
- __ LoadSmiLiteral(slot, Smi::FromInt(slot_index)); |
- } |
+ // 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, r8, r9, r10, r11)); |
+ Handle<TypeFeedbackVector> dummy_vector = |
+ TypeFeedbackVector::DummyVector(masm->isolate()); |
+ int slot_index = dummy_vector->GetIndex( |
+ FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); |
+ __ LoadRoot(vector, Heap::kDummyVectorRootIndex); |
+ __ LoadSmiLiteral(slot, Smi::FromInt(slot_index)); |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
Code::ComputeHandlerFlags(Code::STORE_IC)); |
@@ -794,8 +786,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); |
} |