Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Issue 10808011: Let DescriptorArray::Append insert at proper position, avoiding need for resorting. (Closed)

Created:
8 years, 5 months ago by Toon Verwaest
Modified:
8 years, 5 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

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. Committed: https://code.google.com/p/v8/source/detail?r=12136

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -135 lines) Patch
M src/bootstrapper.cc View 14 chunks +21 lines, -34 lines 0 comments Download
M src/factory.h View 1 chunk +2 lines, -3 lines 0 comments Download
M src/factory.cc View 1 5 chunks +9 lines, -18 lines 0 comments Download
M src/heap.cc View 4 chunks +11 lines, -16 lines 0 comments Download
M src/objects.h View 4 chunks +2 lines, -14 lines 0 comments Download
M src/objects.cc View 5 chunks +11 lines, -47 lines 0 comments Download
M src/objects-inl.h View 1 4 chunks +48 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Toon Verwaest
PTAL. More refactoring towards tunneling all descriptor array changes over the map.
8 years, 5 months ago (2012-07-18 14:43:16 UTC) #1
Jakob Kummerow
lgtm https://chromiumcodereview.appspot.com/10808011/diff/1/src/factory.cc File src/factory.cc (right): https://chromiumcodereview.appspot.com/10808011/diff/1/src/factory.cc#newcode933 src/factory.cc:933: // Return the old descriptor array if there ...
8 years, 5 months ago (2012-07-18 15:17:55 UTC) #2
Toon Verwaest
8 years, 5 months ago (2012-07-18 15:40:26 UTC) #3
Addressed comments.

Powered by Google App Engine
This is Rietveld 408576698