[turbofan] Properly emit bounds checks for typed array element loads.
authorbmeurer@chromium.org <bmeurer@chromium.org>
Wed, 8 Oct 2014 11:16:45 +0000 (11:16 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org>
Wed, 8 Oct 2014 11:16:45 +0000 (11:16 +0000)
commit9b306893a3d43679e9f8733d3ac9f30d3c85acd1
tree77466aef2617541fb1a118ce30613278bd56c12d
parent015f963e8fbaa72bc04ffa9dbcfecf8a74f384ae
[turbofan] Properly emit bounds checks for typed array element loads.

Also fix an awfull bug in simplified lowering.

TEST=cctest,mjsunit/asm
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/640603003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24463 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler/js-typed-lowering.cc
src/compiler/representation-change.h
src/compiler/simplified-lowering.cc
src/compiler/simplified-lowering.h
test/cctest/compiler/test-representation-change.cc
test/mjsunit/asm/float32array-outofbounds.js [new file with mode: 0644]
test/mjsunit/asm/float64array-outofbounds.js [new file with mode: 0644]
test/mjsunit/asm/int16array-outofbounds.js [new file with mode: 0644]
test/mjsunit/asm/int32array-outofbounds.js [new file with mode: 0644]
test/mjsunit/asm/uint8array-outofbounds.js [new file with mode: 0644]