Take program counter for FROM_HERE in its static constructor
Before this CL, the FROM_HERE macro directly called GetProgramCounter() and passed the value to the Location constructor. However, that costs a few bytes for each FROM_HERE invocation. This CL moves the program counter calculation into a static constructor of Location for smaller binary size. This reduces the stripped binary size on x86_64 Linux by 36864 bytes. Change-Id: Ic49550abb4bf1e4e29756c7fc876ddfd85b5d3b2 Reviewed-on: https://chromium-review.googlesource.com/662086 Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#501475}
Showing
Please register or sign in to comment