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

Unified Diff: src/js/math.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/bootstrapper.cc ('k') | src/js/prologue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/math.js
diff --git a/src/js/math.js b/src/js/math.js
index 071566ff014150d4fd9c5e051dfa598053bef89c..4d0b1f7282a4caae07f7cc7d4abc908bc1ac011b 100644
--- a/src/js/math.js
+++ b/src/js/math.js
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var rngstate; // Initialized to a Uint32Array during genesis.
-
(function(global, utils) {
"use strict";
@@ -16,8 +14,13 @@ var GlobalMath = global.Math;
var GlobalObject = global.Object;
var InternalArray = utils.InternalArray;
var NaN = %GetRootNaN();
+var rngstate;
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
+utils.SetupTypedArray(function(arg1, arg2, arg3) {
+ rngstate = arg1;
+});
+
//-------------------------------------------------------------------
// ECMA 262 - 15.8.2.1
« no previous file with comments | « src/bootstrapper.cc ('k') | src/js/prologue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698