Do not eliminate bounds checks for "<const> - x".
authorjarin@chromium.org <jarin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Jun 2014 13:43:50 +0000 (13:43 +0000)
committerjarin@chromium.org <jarin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Jun 2014 13:43:50 +0000 (13:43 +0000)
commitf69bb7fcc3285215ac0ffb6292d0ffb8db13ad18
treea462796d313336663c3fe424bdd36b294d06f294
parent2591003da520c35420149b4c4754af0205a2c313
Do not eliminate bounds checks for "<const> - x".

Before this change, bounds check elimination treated "<const> - x" as
"x - <const>".

R=yangguo@chromium.org
BUG=385054
TEST=test/mjsunit/regress/regress-385054.js
LOG=N

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21859 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen-bce.cc
test/mjsunit/regress/regress-385054.js [new file with mode: 0644]