Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index e4d9d048e49d682e29b560880d451e16c6002ddf..bebd0fbbe995082b337e4f5095f588668e1b80e3 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -1345,13 +1345,11 @@ void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
int const depth = scope()->ContextChainLength(var->scope()); |
if (depth <= LoadGlobalViaContextStub::kMaximumDepth) { |
__ Move(LoadGlobalViaContextDescriptor::SlotRegister(), Immediate(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 { |
@@ -2627,18 +2625,16 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op, |
int const depth = scope()->ContextChainLength(var->scope()); |
if (depth <= StoreGlobalViaContextStub::kMaximumDepth) { |
__ Move(StoreGlobalViaContextDescriptor::SlotRegister(), Immediate(slot)); |
- __ mov(StoreGlobalViaContextDescriptor::NameRegister(), var->name()); |
DCHECK(StoreGlobalViaContextDescriptor::ValueRegister().is(eax)); |
StoreGlobalViaContextStub stub(isolate(), depth, language_mode()); |
__ CallStub(&stub); |
} else { |
__ Push(Smi::FromInt(slot)); |
- __ Push(var->name()); |
__ Push(eax); |
__ CallRuntime(is_strict(language_mode()) |
? Runtime::kStoreGlobalViaContext_Strict |
: Runtime::kStoreGlobalViaContext_Sloppy, |
- 3); |
+ 2); |
} |
} else if (var->mode() == LET && op != Token::INIT_LET) { |