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

Unified Diff: src/third_party/fdlibm/fdlibm.js

Issue 996213003: Hide native Date implementation in function context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: padded formatting Created 5 years, 9 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
« src/i18n.js ('K') | « src/snapshot-common.cc ('k') | src/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/third_party/fdlibm/fdlibm.js
diff --git a/src/third_party/fdlibm/fdlibm.js b/src/third_party/fdlibm/fdlibm.js
index f5ef16f2b456ad84e8df7c6c0eb175b1657fe6b2..360712a9d3ea1e5a798877752c6cb874a8b54af0 100644
--- a/src/third_party/fdlibm/fdlibm.js
+++ b/src/third_party/fdlibm/fdlibm.js
@@ -23,12 +23,12 @@
// rempio2result is used as a container for return values of %RemPiO2. It is
// initialized to a two-element Float64Array during genesis.
-"use strict";
-
var kMath;
var rempio2result;
(function() {
+
+"use strict";
const INVPIO2 = kMath[0];
const PIO2_1 = kMath[1];
@@ -1004,7 +1004,11 @@ function MathLog2(x) {
return t1 + t2;
}
-InstallFunctions($Math, DONT_ENUM, $Array(
+//-------------------------------------------------------------------
+
+%CheckIsBootstrapping();
+
+InstallFunctions(global.Math, DONT_ENUM, $Array(
"cos", MathCos,
"sin", MathSin,
"tan", MathTan,
« src/i18n.js ('K') | « src/snapshot-common.cc ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698