| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 9649eb99efdbe43724bc266df6cb7f8f7fdf6d40..75cf71534e5d096ecb1bb25fedbd714e5a0e7bc5 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -4204,6 +4204,7 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
|
| void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
|
| if (instr->hydrogen()->skip_check()) return;
|
|
|
| + Condition condition = instr->hydrogen()->allow_equality() ? hi : hs;
|
| if (instr->index()->IsConstantOperand()) {
|
| int constant_index =
|
| ToInteger32(LConstantOperand::cast(instr->index()));
|
| @@ -4212,12 +4213,12 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
|
| } else {
|
| __ li(at, Operand(constant_index));
|
| }
|
| - DeoptimizeIf(hs,
|
| + DeoptimizeIf(condition,
|
| instr->environment(),
|
| at,
|
| Operand(ToRegister(instr->length())));
|
| } else {
|
| - DeoptimizeIf(hs,
|
| + DeoptimizeIf(condition,
|
| instr->environment(),
|
| ToRegister(instr->index()),
|
| Operand(ToRegister(instr->length())));
|
|
|