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
tree: b0d66399a20d963c54f999e5b6b8dd1473830e45
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/