Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index a4c36b893fc906a10ee698ba17d0a82873dd6d27..a4da708a17cd502712edcd6bab6b9622c3bfdc42 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2902,14 +2902,12 @@ void LCodeGen::DoLoadGlobalViaContext(LLoadGlobalViaContext* instr) { |
int const depth = instr->depth(); |
if (depth <= LoadGlobalViaContextStub::kMaximumDepth) { |
__ Set(LoadGlobalViaContextDescriptor::SlotRegister(), slot); |
- __ Move(LoadGlobalViaContextDescriptor::NameRegister(), 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); |
} |
} |
@@ -4279,19 +4277,17 @@ void LCodeGen::DoStoreGlobalViaContext(LStoreGlobalViaContext* instr) { |
int const depth = instr->depth(); |
if (depth <= StoreGlobalViaContextStub::kMaximumDepth) { |
__ Set(StoreGlobalViaContextDescriptor::SlotRegister(), slot); |
- __ Move(StoreGlobalViaContextDescriptor::NameRegister(), 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); |
} |
} |