Index: src/ppc/builtins-ppc.cc |
diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc |
index 5935896205dc11cafc655f2bbdf9f56c2bda38a9..1bfda37468ec9714274880db7b511c6078dc2b1e 100644 |
--- a/src/ppc/builtins-ppc.cc |
+++ b/src/ppc/builtins-ppc.cc |
@@ -1427,6 +1427,8 @@ static void Generate_PushAppliedArguments(MacroAssembler* masm, |
const int limitOffset) { |
Register receiver = LoadDescriptor::ReceiverRegister(); |
Register key = LoadDescriptor::NameRegister(); |
+ Register slot = LoadDescriptor::SlotRegister(); |
+ Register vector = LoadWithVectorDescriptor::VectorRegister(); |
// Copy all arguments from the array to the stack. |
Label entry, loop; |
@@ -1436,7 +1438,13 @@ static void Generate_PushAppliedArguments(MacroAssembler* masm, |
__ LoadP(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)); |
+ __ LoadSmiLiteral(slot, Smi::FromInt(index)); |
+ __ Move(vector, feedback_vector); |
+ Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); |
__ Call(ic, RelocInfo::CODE_TARGET); |
// Push the nth argument. |