https://codereview.chromium.org/18503006/diff/8001/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (left):
https://codereview.chromium.org/18503006/diff/8001/src/hydrogen-instructions.h#oldcode5802
src/hydrogen-instructions.h:5802: = Representation::Tagged())
On 2013/07/16 11:51:58, danno wrote:
nit: start the first parameter "obj" on a new line, that prevents the
funky
indentation.
Because I removed this parameter, the funky indentation is now gone.
https://codereview.chromium.org/18503006/diff/8001/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (right):
https://codereview.chromium.org/18503006/diff/8001/src/hydrogen-instructions.h#newcode5342
src/hydrogen-instructions.h:5342: inline HObjectAccess
WithRepresentation(Representation representation) {
On 2013/07/16 11:51:58, danno wrote:
Ouch. I really wish we didn't need this version. If I understand
correctly, this
is currently only this way because of the implicit unboxing of fields
in
HeapNumbers and for polymorphic access. Is there a way to make if more
specific,
e.g. ForHeapNumberBox() without the extra representation parameter?
And do we
really need it for polymorphic access? You can always use the access
of the most
generic type.
Not really, because Representation::generalize() can return either one
of the inputs or Representation::Tagged().
https://codereview.chromium.org/18503006/diff/8001/src/hydrogen-instructions.h#newcode5355
src/hydrogen-instructions.h:5355: static HObjectAccess
ForArrayLength(bool is_fast_elements = false) {
On 2013/07/16 11:51:58, danno wrote:
Can you pass in the ElementsKind here? The boolean parameter doesn't
give much
context,
What would be the default elements kind? We have 3 kinds of uses: ones
where we don't know (assume tagged), ones where we know (assume smi),
and ones where we have an elements kind.
https://codereview.chromium.org/18503006/
--
--
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.