Remove g_NaN global variable and its constructor.
authorBruce Dawson <brucedawson@google.com>
Fri, 2 Jan 2015 19:59:15 +0000 (11:59 -0800)
committerBruce Dawson <brucedawson@google.com>
Fri, 2 Jan 2015 19:59:15 +0000 (11:59 -0800)
commitd66051b5edfee0279b504b49f7d167f03c17c6dd
tree2147e01fab8a17030091ebcb28dd30207bd1cbee
parent659a56bcbeb12b22708fe979d12b318080d828ba
Remove g_NaN global variable and its constructor.

Doing the type conversion on demand is just as efficient as doing it at
startup time, and makes for more efficient startup.

Also mark g_nan as const, to reduce .data section size and enforce
desired semantics.

BUG=441899
R=bo_xu@foxitsoftware.com

Review URL: https://codereview.chromium.org/788143009
fpdfsdk/src/jsapi/fxjs_v8.cpp