SmallIntFormatter: simplify implementation.

This is a re-land of
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.,

Change-Id: I425626a53e0a04af4110acd0410655e6a08d8568
Reviewed-by: Albert J. Wong <>
Reviewed-by: Jungshik Shin <>
3 files changed