Do not shortcut union of keys if lhs is empty.
authorantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Oct 2010 13:10:43 +0000 (13:10 +0000)
committerantonm@chromium.org <antonm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Oct 2010 13:10:43 +0000 (13:10 +0000)
commit7c238db8297e0ce6b5b9c079f1703d4b1b16b7d3
tree3eec447afbc6eec839383157e41e0adcbac72c7d
parent6e1d8065a4d56a48efb64117b5a097fb696491a4
Do not shortcut union of keys if lhs is empty.

The problem is other array may have holes, for example
when fixed array comes from JSArray (in case of named interceptor).

If that would prove to be a performance problem, we could
pass an additional argument into UnionOfKeys to hold actual length.

Review URL: http://codereview.chromium.org/3595013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5591 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/handles.cc
src/objects.cc
test/cctest/test-api.cc