Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index e1bb4c04d97c6c3006837190d242544dfe4abd2f..2fb85a50b036692ec25006384352817e0d8dc105 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -2206,9 +2206,9 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
__ bind(&done); |
// Push function. |
__ push(rax); |
- // Push global receiver. |
- __ movq(rbx, GlobalObjectOperand()); |
- __ push(FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset)); |
+ // The receiver is implicitly the global receiver. Indicate this |
+ // by passing the hole to the call function stub. |
+ __ PushRoot(Heap::kTheHoleValueRootIndex); |
__ bind(&call); |
} |