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

Issue 2572683005: [turbofan] Reserve the StateValueList's size before filling it (Closed)

Created:
4 years ago by Leszek Swirski
Modified:
4 years ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Reserve the StateValueList's size before filling it Avoid needless resizing of the StateValueList's fields vector by reserving its (already known) size. Committed: https://crrev.com/f3b7f21cbc774b3da784f9f22c2438421c289a8b Cr-Commit-Position: refs/heads/master@{#41698}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rename reserve to ReserveSize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M src/compiler/instruction.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Leszek Swirski
Hi Jaro, Small change here, but on Kraken it gives a 4Mb (2.15%) memory saving, ...
4 years ago (2016-12-14 14:13:50 UTC) #6
Jarin
Good catch! lgtm. https://codereview.chromium.org/2572683005/diff/1/src/compiler/instruction.h File src/compiler/instruction.h (right): https://codereview.chromium.org/2572683005/diff/1/src/compiler/instruction.h#newcode1159 src/compiler/instruction.h:1159: void reserve(size_t size) { fields_.reserve(size); } ...
4 years ago (2016-12-14 14:26:28 UTC) #7
Leszek Swirski
On 2016/12/14 14:26:28, Jarin wrote: > Good catch! lgtm. > > https://codereview.chromium.org/2572683005/diff/1/src/compiler/instruction.h > File src/compiler/instruction.h ...
4 years ago (2016-12-14 14:28:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2572683005/20001
4 years ago (2016-12-14 14:28:38 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-14 14:55:03 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-14 14:55:23 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f3b7f21cbc774b3da784f9f22c2438421c289a8b
Cr-Commit-Position: refs/heads/master@{#41698}

Powered by Google App Engine
This is Rietveld 408576698