Status: New
Owner: ----
New issue 3402 by [email protected]: Boolean symbols
http://code.google.com/p/v8/issues/detail?id=3402
Hi,
I used v8 on a very high level so far and am not sure if you already do
some optimizations in this direction. Google closure compiler simplifies
the constants "true" and "false" to !0 and !1, respectively. Wouldn't it
make sense to translate a negated numerical const directly to a bool at
lexing time, like
"!0" -> true
"![1-9]+" -> false
This way the typecast being behind plus the extra operation could be saved.
It's not the biggest finding, but always when I see this simplification I
ask myself this question.
--
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.