Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 8381709f8d470e89b052bfb0d06b60c006b236de..2f8d3b952c73a6a516fe93bda5b756566f286fa1 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -1399,6 +1399,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(); |
__ lw(key, MemOperand(fp, indexOffset)); |
__ Branch(&entry); |
@@ -1408,7 +1410,13 @@ static void Generate_PushAppliedArguments(MacroAssembler* masm, |
__ lw(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)); |
+ __ li(slot, Operand(Smi::FromInt(index))); |
+ __ li(vector, feedback_vector); |
+ Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); |
__ Call(ic, RelocInfo::CODE_TARGET); |
__ push(v0); |