Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 9aec58267260f9b993d7121550cd5958263557f4..78681b4683499368feddee72f33b80214838583d 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1402,13 +1402,11 @@ void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
int const depth = scope()->ContextChainLength(var->scope()); |
if (depth <= LoadGlobalViaContextStub::kMaximumDepth) { |
__ Mov(LoadGlobalViaContextDescriptor::SlotRegister(), slot); |
- __ Mov(LoadGlobalViaContextDescriptor::NameRegister(), var->name()); |
LoadGlobalViaContextStub stub(isolate(), depth); |
__ CallStub(&stub); |
} else { |
__ Push(Smi::FromInt(slot)); |
- __ Push(var->name()); |
- __ CallRuntime(Runtime::kLoadGlobalViaContext, 2); |
+ __ CallRuntime(Runtime::kLoadGlobalViaContext, 1); |
} |
} else { |
__ Ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectMemOperand()); |
@@ -2406,18 +2404,16 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op, |
int const depth = scope()->ContextChainLength(var->scope()); |
if (depth <= StoreGlobalViaContextStub::kMaximumDepth) { |
__ Mov(StoreGlobalViaContextDescriptor::SlotRegister(), slot); |
- __ Mov(StoreGlobalViaContextDescriptor::NameRegister(), var->name()); |
DCHECK(StoreGlobalViaContextDescriptor::ValueRegister().is(x0)); |
StoreGlobalViaContextStub stub(isolate(), depth, language_mode()); |
__ CallStub(&stub); |
} else { |
__ Push(Smi::FromInt(slot)); |
- __ Push(var->name()); |
__ Push(x0); |
__ CallRuntime(is_strict(language_mode()) |
? Runtime::kStoreGlobalViaContext_Strict |
: Runtime::kStoreGlobalViaContext_Sloppy, |
- 3); |
+ 2); |
} |
} else if (var->mode() == LET && op != Token::INIT_LET) { |
// Non-initializing assignment to let variable needs a write barrier. |