| Index: runtime/vm/intermediate_language_x64.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language_x64.cc (revision 22702)
|
| +++ runtime/vm/intermediate_language_x64.cc (working copy)
|
| @@ -3942,6 +3942,13 @@
|
| Location index_loc = locs()->in(kIndexPos);
|
|
|
| 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()) &&
|
| + (Smi::Cast(index_loc.constant()).Value() >= 0)) {
|
| + // This CheckArrayBoundInstr should have been eliminated.
|
| + return;
|
| + }
|
| ASSERT((Smi::Cast(length_loc.constant()).Value() <=
|
| Smi::Cast(index_loc.constant()).Value()) ||
|
| (Smi::Cast(index_loc.constant()).Value() < 0));
|
|
|