Updates:
        Summary: Bounds check elimination does not work for constant indices

Comment #1 on issue 3367 by [email protected]: Bounds check elimination does not work for constant indices
http://code.google.com/p/v8/issues/detail?id=3367

You're holding it wrong :-P

BCE currently doesn't look at bounds checks for constant indices. If you introduce an addition (which can't be constant-folded), bounds checks are eliminated as expected:

function f(i) {
return a[i+7] * a[i+6] * a[i+5] * a[i+4] * a[i+3] * a[i+2] * a[i+1] * a[i+0];
}

f(0); // etc...

The same would happen quite naturally inside a loop.

But yeah, this is one of the things we could improve about our BCE implementation :-)

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to