Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index e5b7f47a5ef6c37b514517a6d8a9dea094d12988..c8cbacb68105d3ebe5f60c4e4b4e4264eb2e19b8 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -3365,11 +3365,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); |
} |
@@ -3394,11 +3396,6 @@ void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
Comment cmnt(masm_, "[ CallRuntime"); |
EmitLoadJSRuntimeFunction(expr); |
- // Push the target function under the receiver. |
- __ lw(at, MemOperand(sp, 0)); |
- PushOperand(at); |
- __ sw(v0, MemOperand(sp, kPointerSize)); |
- |
// Push the arguments ("left-to-right"). |
for (int i = 0; i < arg_count; i++) { |
VisitForStackValue(args->at(i)); |