Thanks!

http://codereview.chromium.org/7298004/diff/1/src/objects.cc
File src/objects.cc (right):

http://codereview.chromium.org/7298004/diff/1/src/objects.cc#newcode3052
src/objects.cc:3052: if (backing_store->get(i) != hole) ++num_used;
On 2011/07/01 12:25:58, Vyacheslav Egorov wrote:
You can have an early exit from the loop if num_used * 4 becomes
bigger then
length.

This will optimize some common cases.

Good idea. Done.

http://codereview.chromium.org/7298004/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to