Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 5ca8cd9b96c69fef24d28a699391eb7c267061d5..04125d1696d11eb40138281f9d81d3336701c572 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1773,6 +1773,13 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
if (instr->value()->type().IsSmi()) { |
value = UseRegisterAtStart(instr->value()); |
res = DefineAsRegister(new(zone()) LSmiUntag(value, false)); |
+ if (instr->value()->IsLoadKeyed()) { |
+ HLoadKeyed* load_keyed = HLoadKeyed::cast(instr->value()); |
+ if (load_keyed->UsesMustHandleHole() && |
+ load_keyed->hole_mode() == NEVER_RETURN_HOLE) { |
+ res = AssignEnvironment(res); |
+ } |
+ } |
} else { |
value = UseRegister(instr->value()); |
LOperand* temp1 = TempRegister(); |