SmallIntFormatter: simplify implementation.
This is a re-land of https://chromium-review.googlesource.com/c/836554
which was reverted because it includes a C++14 constexpr expression
that failed on the V8 build-bots (which are restricted to C++11
language features, unlike the Chromium ones).
The patch now uses a C++11-compatible constexpr function.
Drastically reduce the size of the SmallIntFormatter code.
This should make the code slightly slower, but reduce the
overall size of the generated library by about 16 kiB.
It is unlikely that the performance difference will be
noticeable on any existing system Chromium runs on.
Reviewed-by: Albert J. Wong <firstname.lastname@example.org>
Reviewed-by: Jungshik Shin <email@example.com>
3 files changed