| Index: src/full-codegen/arm64/full-codegen-arm64.cc
|
| diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| index 306e02be4e51977795d8f57e0146170b373cf927..2be463ce582f356940344a6977062dd5d52086f5 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -3174,11 +3174,13 @@ void FullCodeGenerator::EmitCreateIterResultObject(CallRuntime* expr) {
|
|
|
|
|
| void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) {
|
| + // Push function.
|
| + __ LoadNativeContextSlot(expr->context_index(), x0);
|
| + PushOperand(x0);
|
| +
|
| // Push undefined as the receiver.
|
| __ LoadRoot(x0, Heap::kUndefinedValueRootIndex);
|
| PushOperand(x0);
|
| -
|
| - __ LoadNativeContextSlot(expr->context_index(), x0);
|
| }
|
|
|
|
|
| @@ -3203,10 +3205,6 @@ void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
|
| Comment cmnt(masm_, "[ CallRunTime");
|
| EmitLoadJSRuntimeFunction(expr);
|
|
|
| - // Push the target function under the receiver.
|
| - PopOperand(x10);
|
| - PushOperands(x0, x10);
|
| -
|
| for (int i = 0; i < arg_count; i++) {
|
| VisitForStackValue(args->at(i));
|
| }
|
|
|