| Index: runtime/vm/intermediate_language_ia32.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language_ia32.cc (revision 22702)
|
| +++ runtime/vm/intermediate_language_ia32.cc (working copy)
|
| @@ -3907,8 +3907,9 @@
|
|
|
| if (length_loc.IsConstant() && index_loc.IsConstant()) {
|
| // TODO(srdjan): remove this code once failures are fixed.
|
| - if (Smi::Cast(length_loc.constant()).Value() >
|
| - Smi::Cast(index_loc.constant()).Value()) {
|
| + if ((Smi::Cast(length_loc.constant()).Value() >
|
| + Smi::Cast(index_loc.constant()).Value()) &&
|
| + (Smi::Cast(index_loc.constant()).Value() >= 0)) {
|
| // This CheckArrayBoundInstr should have been eliminated.
|
| return;
|
| }
|
|
|