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

Issue 2399053004: Move GetProgramCounter in FROM_HERE to a common function (Closed)

Created:
4 years, 2 months ago by tzik
Modified:
4 years, 2 months ago
Reviewers:
dcheng
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move GetProgramCounter in FROM_HERE to a common function tracked_objects::GetProgramCounter() is called for each FROM_HERE macro, and each of the function call costs 8 bytes. This CL adds a static constructor, Location::CreateForCurrentProgramCounter, that calculates the program counter by itself for smaller number of GPC call. This reduces the stripped binary size of chrome on Linux by 56kB. BUG=645364 Committed: https://crrev.com/004d27129e4f66004775759736d9ab5152a3ecbf Cr-Commit-Position: refs/heads/master@{#425289}

Patch Set 1 #

Patch Set 2 : dedup #

Patch Set 3 : +test #

Patch Set 4 : exclude unsupported platform from test #

Patch Set 5 : +inline #

Patch Set 6 : -BASE_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -12 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/location.h View 2 chunks +8 lines, -5 lines 0 comments Download
M base/location.cc View 1 2 3 4 5 3 chunks +32 lines, -7 lines 0 comments Download
A base/location_unittest.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
tzik
PTAL
4 years, 2 months ago (2016-10-07 18:33:21 UTC) #10
dcheng
I wonder: would it be possible to integrate this directly into the Location constructor?
4 years, 2 months ago (2016-10-07 21:16:26 UTC) #13
tzik
On 2016/10/07 21:16:26, dcheng wrote: > I wonder: would it be possible to integrate this ...
4 years, 2 months ago (2016-10-08 12:32:05 UTC) #22
tzik
On 2016/10/08 12:32:05, tzik wrote: > On 2016/10/07 21:16:26, dcheng wrote: > > I wonder: ...
4 years, 2 months ago (2016-10-14 07:48:18 UTC) #24
dcheng
lgtm
4 years, 2 months ago (2016-10-14 07:56:34 UTC) #25
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/2399053004/100001
4 years, 2 months ago (2016-10-14 08:52:22 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-14 10:29:18 UTC) #29
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/004d27129e4f66004775759736d9ab5152a3ecbf Cr-Commit-Position: refs/heads/master@{#425289}
4 years, 2 months ago (2016-10-14 10:30:49 UTC) #31
henrika (OOO until Aug 14)
4 years, 2 months ago (2016-10-14 12:09:49 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2415673005/ by henrika@chromium.org.

The reason for reverting is: Breaks LocationTest.TestProgramCounter on Windows.

https://uberchromegw.corp.google.com/i/chromium.win/builders/Win7%20Tests%20%....

Powered by Google App Engine
This is Rietveld 408576698