https://codereview.chromium.org/137783023/diff/1/src/hydrogen.cc
File src/hydrogen.cc (right):
https://codereview.chromium.org/137783023/diff/1/src/hydrogen.cc#newcode7645
src/hydrogen.cc:7645: bounds_check, elements_kind, false);
Will do so.
On 2014/01/20 12:45:39, mvstanton wrote:
Can we make the boolean parameter to AddElementAccess be a LOAD/STORE
enum? It's
a bit jarring because I expect to see some indication in the line that
we are
doing a load here and a store below.
https://codereview.chromium.org/137783023/diff/1/src/hydrogen.cc#newcode7652
src/hydrogen.cc:7652: elements_kind = FAST_HOLEY_ELEMENTS;
This is the standard way of storing holes into arrays. NaN-double is a
double, so it can directly be stored into a double array.
A hole (*the* hole), however, is a tagged value. If we'd try to store
this into a smi-array, there would be a tagged->smi conversion on the
hole value; which doesn't work. Hence we need to specifically allow this
"tagged store" into a smi array to let the hole go through.
As I said, this isn't necessary in case of double arrays, since double
array contains doubles and NaN in that case is just a special double.
On 2014/01/20 12:45:39, mvstanton wrote:
This line confuses me a bit. A) Why wouldn't the elements_kind just
change to be
the holey version of whatever it was? B) Why would double be excluded
from this
operation? And if A) proves to be good enough, then you could
eliminate the
change to elements kind in the case that it's already holey.
If you have to do this for a technical reason so that that store works
out
correctly, add a comment to explain.
https://codereview.chromium.org/137783023/
--
--
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.