Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 97881ba1a2d3c7dca6b9c4b15cc456dbecbf414a..39df5879a7e7ba96fc49ddcb03691e2a8d10adf9 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -2991,15 +2991,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); |
} |
} |
@@ -4257,20 +4254,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); |
} |
} |