Browsing through the simulator code a bit, I think the fundamental problem
is
that passing around the register size at runtime is a bad idea from a
performance point of view. This leads to tons of dynamic checks and the
casting
problem at hand, and we're just trying to cure the symptoms. The "real cure"
IMHO would be templatizing the size of the register in question, i.e. make
it a
compile time parameter, not a runtime parameter. With this, the need for the
funky type puns plus a lot of dynamic checks vanishes. Depending on how one
does
it, it increases the code size of the simulator, but given how slow it is
currently, this might be a very good trade-off.
https://codereview.chromium.org/213943002/
--
--
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.