| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index 467c83435a9fd3d385e53e9f623d1d4f6eaef70e..35e6da2bb5b19bc14e1d6a1ab54b30903ea6bf83 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -1411,13 +1411,11 @@ void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
|
| int const depth = scope()->ContextChainLength(var->scope());
|
| if (depth <= LoadGlobalViaContextStub::kMaximumDepth) {
|
| __ li(LoadGlobalViaContextDescriptor::SlotRegister(), Operand(slot));
|
| - __ li(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 {
|
| @@ -2710,17 +2708,15 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| int const depth = scope()->ContextChainLength(var->scope());
|
| if (depth <= StoreGlobalViaContextStub::kMaximumDepth) {
|
| __ li(StoreGlobalViaContextDescriptor::SlotRegister(), Operand(slot));
|
| - __ li(StoreGlobalViaContextDescriptor::NameRegister(), var->name());
|
| StoreGlobalViaContextStub stub(isolate(), depth, language_mode());
|
| __ CallStub(&stub);
|
| } else {
|
| __ Push(Smi::FromInt(slot));
|
| - __ Push(var->name());
|
| __ Push(a0);
|
| __ CallRuntime(is_strict(language_mode())
|
| ? Runtime::kStoreGlobalViaContext_Strict
|
| : Runtime::kStoreGlobalViaContext_Sloppy,
|
| - 3);
|
| + 2);
|
| }
|
|
|
| } else if (var->mode() == LET && op != Token::INIT_LET) {
|
|
|