| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index ecb490de5e70707b5db5fff40a940b0f26ccb34c..c04a6cb035d54ece9f54210d3c062307b84685a8 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -1875,7 +1875,9 @@ LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
|
|
|
| LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
|
| LOperand* context = UseRegisterAtStart(instr->value());
|
| - return DefineAsRegister(new(zone()) LLoadContextSlot(context));
|
| + LInstruction* result =
|
| + DefineAsRegister(new(zone()) LLoadContextSlot(context));
|
| + return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
|
| }
|
|
|
|
|
| @@ -1890,7 +1892,8 @@ LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
|
| value = UseRegister(instr->value());
|
| temp = NULL;
|
| }
|
| - return new(zone()) LStoreContextSlot(context, value, temp);
|
| + LInstruction* result = new(zone()) LStoreContextSlot(context, value, temp);
|
| + return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
|
| }
|
|
|
|
|
|
|