| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 473f548500b170793864daa0ab227446d532b900..aa34a14f1e84de23d6aad62dbf54d9b1b6776a8b 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -2737,11 +2737,11 @@ void FullCodeGenerator::VisitCall(Call* expr) {
|
| { PreservePositionScope scope(masm()->positions_recorder());
|
| VisitForStackValue(callee);
|
| }
|
| - // Load global receiver object.
|
| - __ movq(rbx, GlobalObjectOperand());
|
| - __ push(FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset));
|
| + // Push the hole as receiver.
|
| + // It will be correctly replaced in the call stub.
|
| + __ PushRoot(Heap::kTheHoleValueRootIndex);
|
| // Emit function call.
|
| - EmitCallWithStub(expr, NO_CALL_FUNCTION_FLAGS);
|
| + EmitCallWithStub(expr, RECEIVER_IS_IMPLICIT);
|
| }
|
|
|
| #ifdef DEBUG
|
|
|