DescriptionLet 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.
Committed: https://code.google.com/p/v8/source/detail?r=12136
Patch Set 1 #
Total comments: 3
Patch Set 2 : Addressed comments #
Messages
Total messages: 3 (0 generated)
|