Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1024)

Unified Diff: src/js/v8natives.js

Issue 2715793004: Migrate Number constants and undefined to C++ (Closed)
Patch Set: Reuse string Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index f67a8b5bf41307f4936fa3ee28500999bf35c8b7..29f9c45efa854360c259e620da1209d0a511e372 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -9,7 +9,6 @@
// ----------------------------------------------------------------------------
// Imports
-var GlobalNumber = global.Number;
var GlobalObject = global.Object;
var iteratorSymbol = utils.ImportNow("iterator_symbol");
var NaN = %GetRootNaN();
@@ -21,15 +20,6 @@ var ObjectToString = utils.ImportNow("object_to_string");
// Set up global object.
var attributes = DONT_ENUM | DONT_DELETE | READ_ONLY;
-utils.InstallConstants(global, [
- // ES6 18.1.1
- "Infinity", INFINITY,
- // ES6 18.1.2
- "NaN", NaN,
- // ES6 18.1.3
- "undefined", UNDEFINED,
-]);
-
// ----------------------------------------------------------------------------
// Object
@@ -97,29 +87,6 @@ utils.InstallFunctions(GlobalObject.prototype, DONT_ENUM, [
// ----------------------------------------------------------------------------
-// Number
-
-utils.InstallConstants(GlobalNumber, [
- // ECMA-262 section 15.7.3.1.
- "MAX_VALUE", 1.7976931348623157e+308,
- // ECMA-262 section 15.7.3.2.
- "MIN_VALUE", 5e-324,
- // ECMA-262 section 15.7.3.3.
- "NaN", NaN,
- // ECMA-262 section 15.7.3.4.
- "NEGATIVE_INFINITY", -INFINITY,
- // ECMA-262 section 15.7.3.5.
- "POSITIVE_INFINITY", INFINITY,
-
- // --- Harmony constants (no spec refs until settled.)
-
- "MAX_SAFE_INTEGER", 9007199254740991,
- "MIN_SAFE_INTEGER", -9007199254740991,
- "EPSILON", 2.220446049250313e-16,
-]);
-
-
-// ----------------------------------------------------------------------------
// Iterator related spec functions.
// ES6 7.4.1 GetIterator(obj, method)
« no previous file with comments | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698