Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index e1bb69eacd73fc5ac3f672abee2436ea973dc9a3..54efacb8fc2c453da2c8a2a038a3e8a077c01e0f 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1900,6 +1900,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(); |