Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 58a0c0150a3838f91b012dc12ad53d9a37b809b1..62c9adcf2a227e5eec5c780bbff269772b79a788 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -2837,12 +2837,12 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
{ PreservePositionScope scope(masm()->positions_recorder()); |
VisitForStackValue(callee); |
} |
- // Load global receiver object. |
- __ lw(a1, GlobalObjectOperand()); |
- __ lw(a1, FieldMemOperand(a1, GlobalObject::kGlobalReceiverOffset)); |
+ // Push the hole as receiver. |
+ // It will be correctly replaced in the call stub. |
+ __ LoadRoot(a1, Heap::kTheHoleValueRootIndex); |
__ push(a1); |
// Emit function call. |
- EmitCallWithStub(expr, NO_CALL_FUNCTION_FLAGS); |
+ EmitCallWithStub(expr, RECEIVER_IS_IMPLICIT); |
} |
#ifdef DEBUG |