| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index 5812ff454ec318c64213dd5e814e542d79fd89f2..ce3793f5d70417d818052861907a4cada9a7c0cd 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -3368,11 +3368,13 @@ void FullCodeGenerator::EmitCreateIterResultObject(CallRuntime* expr) {
|
|
|
|
|
| void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) {
|
| + // Push function.
|
| + __ LoadNativeContextSlot(expr->context_index(), v0);
|
| + PushOperand(v0);
|
| +
|
| // Push undefined as the receiver.
|
| __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
|
| PushOperand(v0);
|
| -
|
| - __ LoadNativeContextSlot(expr->context_index(), v0);
|
| }
|
|
|
|
|
| @@ -3397,11 +3399,6 @@ void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
|
| Comment cmnt(masm_, "[ CallRuntime");
|
| EmitLoadJSRuntimeFunction(expr);
|
|
|
| - // Push the target function under the receiver.
|
| - __ ld(at, MemOperand(sp, 0));
|
| - PushOperand(at);
|
| - __ sd(v0, MemOperand(sp, kPointerSize));
|
| -
|
| // Push the arguments ("left-to-right").
|
| for (int i = 0; i < arg_count; i++) {
|
| VisitForStackValue(args->at(i));
|
|
|