Generate global constants in a loop rather than in sequence.

The generated code just repeated the same code over and over again
which resulted in larger machine code than necessary. Doing the
same thing with a data table and a loop makes the code
more compact and efficient.

clang x64 diff:
Total change: -72804 bytes
==========================
  281 added, totalling +21557 bytes across 1 sources
  1482 removed, totalling -10809 bytes across 1 sources
  2 grown, for a net change of +2 bytes (3 bytes before, 5 bytes after) across 1 sources
  19 shrunk, for a net change of -83554 bytes (87001 bytes before, 3447 bytes after) across 17 sources

BUG=

Review URL: https://codereview.chromium.org/604743003

git-svn-id: svn://svn.chromium.org/blink/trunk@182780 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: 21c6c2f1473537a1d2e116d5bc471ceb26c1d7ee
  1. third_party/