| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index d2325b821f41a43a6d138924cf6275eec97aeb52..2982a2927b5cda5aef5eb5356efef45b572b1e15 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -4024,7 +4024,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());
|
| + }
|
| }
|
|
|
|
|
|
|