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

Unified Diff: src/math.js

Issue 1144163002: Revert of Use shared container to manage imports/exports. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/json.js ('k') | src/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/math.js
diff --git a/src/math.js b/src/math.js
index ee83709dd67c8828658e69be625336c22be42c2e..633a5d02c45d37ef830afbb221c8e5fc5138e08c 100644
--- a/src/math.js
+++ b/src/math.js
@@ -4,7 +4,13 @@
var rngstate; // Initialized to a Uint32Array during genesis.
-(function(global, utils) {
+var $abs;
+var $exp;
+var $floor;
+var $max;
+var $min;
+
+(function(global, shared, exports) {
"use strict";
@@ -14,7 +20,7 @@
// Imports
var GlobalObject = global.Object;
-var InternalArray = utils.InternalArray;
+var InternalArray = shared.InternalArray;
//-------------------------------------------------------------------
@@ -351,15 +357,11 @@
%SetInlineBuiltinFlag(MathSqrtJS);
%SetInlineBuiltinFlag(MathTrunc);
-// -------------------------------------------------------------------
-// Exports
-
-utils.Export(function(to) {
- to.MathAbs = MathAbs;
- to.MathExp = MathExp;
- to.MathFloor = MathFloorJS;
- to.MathMax = MathMax;
- to.MathMin = MathMin;
-});
+// Expose to the global scope.
+$abs = MathAbs;
+$exp = MathExp;
+$floor = MathFloorJS;
+$max = MathMax;
+$min = MathMin;
})
« no previous file with comments | « src/json.js ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698