Comment #9 on issue 2513 by [email protected]: life benchmark slowness
http://code.google.com/p/v8/issues/detail?id=2513
I think the issue is not quite
---
function toInt(b) { return b ? 1 : 0; }
---
but more
---
var x = (f()|0) > 0 ? 1 : 0;
---
That is, we know that the input to the conditional is a boolean value. If
we know that, then it should be possible to optimize that much better than
if we just receive a value b of unknown type. And then, it seems just as
simple to optimize for
---
var x = ((f()|0) > 0) | 0;
---
like comment #8 says.
--
--
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/groups/opt_out.