Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 98e22686d2cbe8fe55545006f64c5cc3cde7eda1..298935a47c74016056f6dcc2837a1df69e250469 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -2300,9 +2300,9 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
__ bind(&done); |
// Push function. |
__ push(r0); |
- // Push global receiver. |
- __ ldr(r1, GlobalObjectOperand()); |
- __ ldr(r1, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); |
+ // The receiver is implicitly the global receiver. Indicate this |
+ // by passing the hole to the call function stub. |
+ __ LoadRoot(r1, Heap::kTheHoleValueRootIndex); |
__ push(r1); |
__ bind(&call); |
} |