| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index d824deea91935d53cff97a8967f15e6747a176cb..3657466e7358a967084a491479a6cc0071194b1f 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -1801,7 +1801,8 @@ LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
|
|
|
| LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
|
| LOperand* context = UseRegisterAtStart(instr->value());
|
| - return DefineAsRegister(new LLoadContextSlot(context));
|
| + LInstruction* result = DefineAsRegister(new LLoadContextSlot(context));
|
| + return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
|
| }
|
|
|
|
|
| @@ -1815,7 +1816,8 @@ LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
|
| context = UseRegister(instr->context());
|
| value = UseRegister(instr->value());
|
| }
|
| - return new LStoreContextSlot(context, value);
|
| + LInstruction* result = new LStoreContextSlot(context, value);
|
| + return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
|
| }
|
|
|
|
|
|
|