| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index 9a1ce9800993d683dc04ea27bee12b54b70c9168..2aeb98c6d5f8822c3a45cbc3141724985c3d7680 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -4049,7 +4049,11 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
|
| __ cmpq(length, ToRegister(instr->index()));
|
| }
|
| }
|
| - DeoptimizeIf(below_equal, instr->environment());
|
| + if (instr->hydrogen()->allow_equality()) {
|
| + DeoptimizeIf(below, instr->environment());
|
| + } else {
|
| + DeoptimizeIf(below_equal, instr->environment());
|
| + }
|
| }
|
|
|
|
|
|
|