https://codereview.chromium.org/197283017/diff/1/src/objects.cc
File src/objects.cc (right):
https://codereview.chromium.org/197283017/diff/1/src/objects.cc#newcode10521
src/objects.cc:10521: }
On 2014/03/17 09:40:14, Toon Verwaest wrote:
Why don't we just introduce an invariant that the objects in the
pattern are
required to be in the right order? That way we don't have this O(m*n)
algo, but
just O(m).
Then add a second invariant that all objects in the pattern are
required to be
used.
Good idea, turned that into O(m) and added comment explaining the order.
I hope the UNREACHABLE below will catch possible future misuses.
https://codereview.chromium.org/197283017/
--
--
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.