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
Review-Url: https://codereview.chromium.org/2399053004
Cr-Commit-Position: refs/heads/master@{#425289}
CrOS-Libchrome-Original-Commit: 004d27129e4f66004775759736d9ab5152a3ecbf
3 files changed