DescriptionMove all static constants in dtoa/cached-powers.* to .rodata section
Move all static constants in dtoa/cached-powers.* from .data section to
.rodata. This was done by marking those as const and hardcoding their
values instead of computing them. Runtime assertions were added to make
sure the hardcoded values are correct and kept up-to-date.
This data can now be shared between different library instances on
Android, thus saving RAM.
The size of non-shareable .data in wtf/dtoa/wtf.cached-powers.o went from 1424
bytes to 0 byte. The size of shareable .rodata went from 760 bytes to 2520
bytes.
BUG=249746
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161250
Patch Set 1 #Patch Set 2 : Move everything to .rodata #Patch Set 3 : Refactor to avoid duplication #
Total comments: 1
Patch Set 4 : Fix Windows build failure #
Total comments: 3
Messages
Total messages: 20 (0 generated)
|