Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index 4a679789a59cf82254cac4c84e4c95b59d74cc81..fe66fd69e7a9c157fe3b9480ed4a93c93eaf6618 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -1388,6 +1388,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); |
@@ -1397,7 +1399,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, Smi::FromInt(index)); |
+ __ Mov(vector, feedback_vector); |
+ Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); |
__ Call(ic, RelocInfo::CODE_TARGET); |
// Push the nth argument. |