| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index c5db715d6d0b7e08459405a41c38cdf4e2731a80..838cd1cef2dd0dbc06df6c971503e29a5f481739 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -2903,15 +2903,12 @@ void LCodeGen::DoLoadGlobalViaContext(LLoadGlobalViaContext* instr) {
|
| int const depth = instr->depth();
|
| if (depth <= LoadGlobalViaContextStub::kMaximumDepth) {
|
| __ li(LoadGlobalViaContextDescriptor::SlotRegister(), Operand(slot));
|
| - __ li(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);
|
| }
|
| }
|
|
|
| @@ -4218,20 +4215,17 @@ void LCodeGen::DoStoreGlobalViaContext(LStoreGlobalViaContext* instr) {
|
| int const depth = instr->depth();
|
| if (depth <= StoreGlobalViaContextStub::kMaximumDepth) {
|
| __ li(StoreGlobalViaContextDescriptor::SlotRegister(), Operand(slot));
|
| - __ li(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(language_mode())
|
| ? Runtime::kStoreGlobalViaContext_Strict
|
| : Runtime::kStoreGlobalViaContext_Sloppy,
|
| - 3);
|
| + 2);
|
| }
|
| }
|
|
|
|
|