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.

R=ajwong@chromium.org, jshin@chromium.org

Bug: NONE
Change-Id: I425626a53e0a04af4110acd0410655e6a08d8568
Reviewed-on: https://chromium-review.googlesource.com/870039
Reviewed-by: Albert J. Wong <ajwong@chromium.org>
Reviewed-by: Jungshik Shin <jshin@chromium.org>
3 files changed