| Index: src/arm64/lithium-codegen-arm64.cc
|
| diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc
|
| index cac7f92ec78beb37a57c128d17082dc721dc5f35..47dd9991ed396ae9b3796ea474fbca6143dad29f 100644
|
| --- a/src/arm64/lithium-codegen-arm64.cc
|
| +++ b/src/arm64/lithium-codegen-arm64.cc
|
| @@ -3388,15 +3388,12 @@ void LCodeGen::DoLoadGlobalViaContext(LLoadGlobalViaContext* instr) {
|
| int const depth = instr->depth();
|
| if (depth <= LoadGlobalViaContextStub::kMaximumDepth) {
|
| __ Mov(LoadGlobalViaContextDescriptor::SlotRegister(), Operand(slot));
|
| - __ Mov(LoadGlobalViaContextDescriptor::NameRegister(),
|
| - Operand(instr->name()));
|
| Handle<Code> stub =
|
| CodeFactory::LoadGlobalViaContext(isolate(), depth).code();
|
| CallCode(stub, RelocInfo::CODE_TARGET, instr);
|
| } else {
|
| __ Push(Smi::FromInt(slot));
|
| - __ Push(instr->name());
|
| - __ CallRuntime(Runtime::kLoadGlobalViaContext, 2);
|
| + __ CallRuntime(Runtime::kLoadGlobalViaContext, 1);
|
| }
|
| }
|
|
|
| @@ -5548,20 +5545,17 @@ void LCodeGen::DoStoreGlobalViaContext(LStoreGlobalViaContext* instr) {
|
| int const depth = instr->depth();
|
| if (depth <= StoreGlobalViaContextStub::kMaximumDepth) {
|
| __ Mov(StoreGlobalViaContextDescriptor::SlotRegister(), Operand(slot));
|
| - __ Mov(StoreGlobalViaContextDescriptor::NameRegister(),
|
| - Operand(instr->name()));
|
| Handle<Code> stub = CodeFactory::StoreGlobalViaContext(
|
| isolate(), depth, instr->language_mode())
|
| .code();
|
| CallCode(stub, RelocInfo::CODE_TARGET, instr);
|
| } else {
|
| __ Push(Smi::FromInt(slot));
|
| - __ Push(instr->name());
|
| __ Push(StoreGlobalViaContextDescriptor::ValueRegister());
|
| __ CallRuntime(is_strict(instr->language_mode())
|
| ? Runtime::kStoreGlobalViaContext_Strict
|
| : Runtime::kStoreGlobalViaContext_Sloppy,
|
| - 3);
|
| + 2);
|
| }
|
| }
|
|
|
|
|