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

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

Issue 1420473002: Move math-related typed arrays off js builtins object.. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/js/prologue.js ('k') | no next file » | 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 983a86c151ac36e38f30610ef6f20570e82c9831..1cc73b84a90ef7532588d2256815ca5be61587b4 100644
--- a/src/third_party/fdlibm/fdlibm.js
+++ b/src/third_party/fdlibm/fdlibm.js
@@ -23,9 +23,6 @@
// rempio2result is used as a container for return values of %RemPiO2. It is
// initialized to a two-element Float64Array during genesis.
-var kMath;
-var rempio2result;
-
(function(global, utils) {
"use strict";
@@ -36,15 +33,22 @@ var rempio2result;
// Imports
var GlobalMath = global.Math;
+var kMath;
var MathAbs;
var MathExp;
var NaN = %GetRootNaN();
+var rempio2result;
utils.Import(function(from) {
MathAbs = from.MathAbs;
MathExp = from.MathExp;
});
+utils.SetupTypedArray(function(arg1, arg2, arg3) {
+ kMath = arg2;
+ rempio2result = arg3;
+});
+
// -------------------------------------------------------------------
define INVPIO2 = kMath[0];
« no previous file with comments | « src/js/prologue.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698