| Index: src/a64/stub-cache-a64.cc
|
| diff --git a/src/a64/stub-cache-a64.cc b/src/a64/stub-cache-a64.cc
|
| index 243c7fbbca5ccdf38c7b7c6652b570fad42efb2d..0cc37f3ed7c599c56dcba18dec74e8a575cb536a 100644
|
| --- a/src/a64/stub-cache-a64.cc
|
| +++ b/src/a64/stub-cache-a64.cc
|
| @@ -2382,12 +2382,12 @@ void StubCompiler::GenerateBooleanCheck(Register object, Label* miss) {
|
| }
|
|
|
|
|
| -void CallStubCompiler::PatchGlobalProxy(Handle<Object> object) {
|
| - // TODO(all): What is x0 here? Is the use of x3 significant?
|
| +void CallStubCompiler::PatchImplicitReceiver(Handle<Object> object) {
|
| + // TODO(all): Is the use of x3 significant?
|
| if (object->IsGlobalObject()) {
|
| const int argc = arguments().immediate();
|
| const int receiver_offset = argc * kPointerSize;
|
| - __ Ldr(x3, FieldMemOperand(x0, GlobalObject::kGlobalReceiverOffset));
|
| + __ LoadRoot(x3, Heap::kUndefinedValueRootIndex);
|
| __ Poke(x3, receiver_offset);
|
| }
|
| }
|
| @@ -2485,7 +2485,7 @@ void CallStubCompiler::GenerateJumpFunction(Handle<Object> object,
|
| ASSERT(function.Is(x1));
|
| // Check that the function really is a function.
|
| GenerateFunctionCheck(function, x3, miss);
|
| - PatchGlobalProxy(object);
|
| + PatchImplicitReceiver(object);
|
|
|
| // Invoke the function.
|
| __ InvokeFunction(function, arguments(), JUMP_FUNCTION,
|
|
|