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

Unified Diff: src/js/prologue.js

Issue 1425693006: Store RNG state on function context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/math.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/prologue.js
diff --git a/src/js/prologue.js b/src/js/prologue.js
index 7aaad724c86fc2cc55a337eb2f36e610818a1050..b91a76562eed0d86e9bd6450e79cfcf77f66791e 100644
--- a/src/js/prologue.js
+++ b/src/js/prologue.js
@@ -245,6 +245,9 @@ function PostExperimentals(utils) {
imports_from_experimental(exports_container);
}
+ utils.InitializeRNG();
+ utils.InitializeRNG = UNDEFINED;
+
utils.Export = UNDEFINED;
utils.PostDebug = UNDEFINED;
utils.PostExperimentals = UNDEFINED;
@@ -259,6 +262,9 @@ function PostDebug(utils) {
imports(exports_container);
}
+ utils.InitializeRNG();
+ utils.InitializeRNG = UNDEFINED;
+
exports_container = UNDEFINED;
utils.Export = UNDEFINED;
« no previous file with comments | « src/js/math.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698