Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index beaa1f1df96853c515d0c47c7a88ad3380edaacd..bf143183eb7357a0346b877c5079fb92f1e78636 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -4109,7 +4109,9 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
__ cmpq(length, ToRegister(instr->index())); |
} |
} |
- DeoptimizeIf(below_equal, instr->environment()); |
+ Condition condition = |
+ instr->hydrogen()->allow_equality() ? below : below_equal; |
+ DeoptimizeIf(condition, instr->environment()); |
} |