OSDN Git Service

Fix wrong DCHECK in bounds check elimination.
authorNicolas Geoffray <ngeoffray@google.com>
Sat, 20 Jun 2015 22:49:01 +0000 (23:49 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Mon, 22 Jun 2015 09:09:07 +0000 (10:09 +0100)
commit7d4cc8c786ff4a19234c1b034eae61ac0f3a37da
tree2c78a3c37951b0cf663d5c9c22d2fd665a930c55
parentff82263e2b96ad099c56c19b91c2286baaf82fa7
Fix wrong DCHECK in bounds check elimination.

The lower range of an array length instruction can
be changed by other instructions than HBoundsCheck,
like HNewArray.

bug:21862741

(cherry picked from commit 8d82a0c2b2b12f259ccb357d3b1e699c68ad0400)

Change-Id: I1bb1a4f4c6673509dd3fb5184c32992bed876250
compiler/optimizing/bounds_check_elimination.cc
test/513-array-deopt/expected.txt [new file with mode: 0644]
test/513-array-deopt/info.txt [new file with mode: 0644]
test/513-array-deopt/src/Main.java [new file with mode: 0644]