Reviewers: Sven Panne,
Description:
Eliminate redundant array bound checks (checks already performed earlier in
the
DT).
As a special case, for checks on index expressions with the form (expr +
constant) if a smaller constant is checked later in the DT also eliminate
the
check.
Finally, if a larger constant is checked later in the same BB do the more
general check (larger constant) earlier instead of the less general one.
This will not cause useless deoptimizations because, since we are in the
same
BB, all the checks would have been executed anyway.
BUG=
TEST=
Please review this at https://chromiumcodereview.appspot.com/10032029/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/hydrogen.h
M src/hydrogen.cc
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev