Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index b7c733cb259a0c589cb94a19a608570c99fdd598..87ac9e26c8843e1652b69dc25e829bbe631c45ba 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -4326,7 +4326,8 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
} else { |
__ cmp(ToRegister(instr->index()), ToRegister(instr->length())); |
} |
- DeoptimizeIf(hs, instr->environment()); |
+ Condition condition = instr->hydrogen()->allow_equality() ? hi : hs; |
+ DeoptimizeIf(condition, instr->environment()); |
} |