-
Leszek Swirski authored
Rather than keeping a known-sorted list of existing Code objects, and an eagerly sorted set of new Code objects, instead store a single vector which is lazily sorted when needed. We keep the distinciton between adding an existing or a new Code object, so that we only have to clear the "sorted" bit when adding the latter; plus we check if adding the new Code object would serendipitously keep the vector sorted, just in case the new Code object is allocated after all previous Code objects on that page (not unlikely given linear allocation areas), Change-Id: I70778ba624f1b437bd992616749a8cd08ad33613 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2431204 Auto-Submit: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#70251}
c5c67ce7