Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 8157b27666441ee6e8c3898eedf7aa6a3f8f6551..429be9227aa907b88ee4aa2fdf17590486872084 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -1044,13 +1044,21 @@ 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(); |
__ mov(key, Operand(ebp, indexOffset)); |
__ jmp(&entry); |
__ bind(&loop); |
__ mov(receiver, Operand(ebp, argumentsOffset)); // load arguments |
// 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, Immediate(Smi::FromInt(index))); |
+ __ mov(vector, Immediate(feedback_vector)); |
+ Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); |
__ call(ic, RelocInfo::CODE_TARGET); |
// It is important that we do not have a test instruction after the |
// call. A test instruction after the call is used to indicate that |