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

Issue 2188953003: Uninline RuntimeCallStatEntries::Add to save binary size. (Closed)

Created:
4 years, 4 months ago by dcheng
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Uninline RuntimeCallStatEntries::Add to save binary size. RuntimeCallStats::Print invokes this function many times. The uses of STL all get inlined as a result, causing the Print() function to take up 156KB of binary size. Out-of-lining this method reduces the size to under 18KB! BUG=v8:5240 Committed: https://crrev.com/a79ec0e3a9667cb142419b1ae5921c72212bcf31 Cr-Commit-Position: refs/heads/master@{#38182}

Patch Set 1 #

Patch Set 2 : Comment clarification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M src/counters.cc View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
dcheng
4 years, 4 months ago (2016-07-28 07:37:18 UTC) #3
dcheng
The optimizer appears to be somewhat non-deterministic in what it decides to inline. A similar ...
4 years, 4 months ago (2016-07-28 08:07:19 UTC) #4
jochen (gone - plz use gerrit)
+cbruni will that negatively impact performance?
4 years, 4 months ago (2016-07-29 14:41:31 UTC) #6
Camillo Bruni
LGTM this is purely used when printing, so not performance critical
4 years, 4 months ago (2016-07-29 14:48:47 UTC) #7
dcheng
I tweaked the comment slightly to make it clearer where the increase in binary size ...
4 years, 4 months ago (2016-07-29 15:06:48 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/2188953003/20001
4 years, 4 months ago (2016-07-29 15:07:03 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-29 15:29:24 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 15:30:53 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a79ec0e3a9667cb142419b1ae5921c72212bcf31
Cr-Commit-Position: refs/heads/master@{#38182}

Powered by Google App Engine
This is Rietveld 408576698