Commit a0a4c71e authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

Remove bootstrapper's kMaxSafeInt in favour of global's kMaxSafeInteger.

R=bmeurer@chromium.org

Change-Id: I06b889333fe6481d4704138031ce6de0fcf70a4c
Reviewed-on: https://chromium-review.googlesource.com/1013715Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52645}
parent 92cde630
......@@ -1770,9 +1770,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
// Install Number constants
double kMaxValue = 1.7976931348623157e+308;
double kMinValue = 5e-324;
double kMaxSafeInt = 9007199254740991;
double kMinSafeInt = -9007199254740991;
double kMinSafeInteger = -kMaxSafeInteger;
double kEPS = 2.220446049250313e-16;
Handle<Object> infinity = factory->infinity_value();
......@@ -1800,11 +1798,11 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
static_cast<PropertyAttributes>(DONT_DELETE | DONT_ENUM | READ_ONLY));
JSObject::AddProperty(
number_fun, factory->NewStringFromAsciiChecked("MAX_SAFE_INTEGER"),
factory->NewNumber(kMaxSafeInt),
factory->NewNumber(kMaxSafeInteger),
static_cast<PropertyAttributes>(DONT_DELETE | DONT_ENUM | READ_ONLY));
JSObject::AddProperty(
number_fun, factory->NewStringFromAsciiChecked("MIN_SAFE_INTEGER"),
factory->NewNumber(kMinSafeInt),
factory->NewNumber(kMinSafeInteger),
static_cast<PropertyAttributes>(DONT_DELETE | DONT_ENUM | READ_ONLY));
JSObject::AddProperty(
number_fun, factory->NewStringFromAsciiChecked("EPSILON"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment