Reviewers: Jakob,
Message:
PTAL.
More refactoring towards tunneling all descriptor array changes over the
map.
Description:
Let DescriptorArray::Append insert at proper position, avoiding need for
resorting.
Using insertion-sort won't have too much of an overhead for the short
arrays for
bootstrapping (which are probably snapshot anyway).
CopyAppendCallbackDescriptors was extending and sorting the array in a
loop. By
using an append that inserts at the right position we do not need to resort
in
each iteration.
Additionally remove Sort and rename SortUnchecked to Sort. The
IsSortedNoDuplicates check is moved into InitializeDescriptor.
Please review this at https://chromiumcodereview.appspot.com/10808011/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/bootstrapper.cc
M src/factory.h
M src/factory.cc
M src/heap.cc
M src/objects-inl.h
M src/objects.h
M src/objects.cc
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev