PTAL
https://codereview.chromium.org/108083005/diff/130001/src/objects.cc
File src/objects.cc (right):
https://codereview.chromium.org/108083005/diff/130001/src/objects.cc#newcode5915
src/objects.cc:5915: if (key->IsSymbol()) {
On 2013/12/18 16:50:12, rossberg wrote:
I would prefer to turn this inside out and do the filter checks first
and the
(more expensive) instance type checks only if necessary.
Done.
However, these filters are not mutually exclusive so I can either call
IsSymbol once for each case or I could do it once by adding another
bitmask check.
https://codereview.chromium.org/108083005/diff/130001/src/v8natives.js
File src/v8natives.js (right):
https://codereview.chromium.org/108083005/diff/130001/src/v8natives.js#newcode1041
src/v8natives.js:1041: function FilterKeyNames(array, symbolsOnly) {
On 2013/12/18 16:50:12, rossberg wrote:
Why can't we fold this into the loop at line 1108, and avoid
duplicating the
work?
Done.
That would make more sense. And now I understand what you mean with your
previous comment.
https://codereview.chromium.org/108083005/
--
--
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.