Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index faf27861f85f7877b534dddf0a3b26b1648cfa46..0364b9faa86583ea45fafc08e7c1411df09c9c80 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -1385,6 +1385,8 @@ static void Generate_PushAppliedArguments(MacroAssembler* masm, |
Label entry, loop; |
Register receiver = LoadDescriptor::ReceiverRegister(); |
Register key = LoadDescriptor::NameRegister(); |
+ Register slot = LoadDescriptor::SlotRegister(); |
+ Register vector = LoadWithVectorDescriptor::VectorRegister(); |
__ ldr(key, MemOperand(fp, indexOffset)); |
__ b(&entry); |
@@ -1394,7 +1396,13 @@ static void Generate_PushAppliedArguments(MacroAssembler* masm, |
__ ldr(receiver, MemOperand(fp, argumentsOffset)); |
// Use inline caching to speed up access to arguments. |
- Handle<Code> ic = masm->isolate()->builtins()->KeyedLoadIC_Megamorphic(); |
+ FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); |
+ Handle<TypeFeedbackVector> feedback_vector = |
+ masm->isolate()->factory()->NewTypeFeedbackVector(&spec); |
+ int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); |
+ __ mov(slot, Operand(Smi::FromInt(index))); |
+ __ Move(vector, feedback_vector); |
+ Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); |
__ Call(ic, RelocInfo::CODE_TARGET); |
// Push the nth argument. |