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