Oh wait.
If START_AT_RECEIVER, Advance will fail if receiver is non-JSReceiver,
right?
What about having separate "receiver" and "current", where receiver can be
Object*, but current can only be JSReceiver*? That way you can figure out
whether you needs to get the root by doing current == NULL; Or something of
the
sort.
Also, if END_AT_HIDDEN and START_AT_RECEIVER, the first object will not be
hidden. So it'll immediately stop rather than walk the hidden prototype
chain.
And again, object isn't guaranteed to not be a smi, so HeapObject::cast
isn't
valid.
https://codereview.chromium.org/376233002/
--
--
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.