Bug 1633625 - Allow mutator loads to be disabled (presumably based on environment) r=jonco
authorSteve Fink <sfink@mozilla.com>
Tue, 19 May 2020 21:54:52 +0000
changeset 530905 7e985178f7dc91eb37ae89643a6825be0a3f1665
parent 530904 e04b67a3ac24dbcff7958e5f86f5b3a4f6959fb7
child 530906 28980e6af06f087d210ffeb435c4b396f813d063
push id37434
push userabutkovits@mozilla.com
push dateWed, 20 May 2020 10:05:10 +0000
treeherdermozilla-central@005ef1c25992 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1633625
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1633625 - Allow mutator loads to be disabled (presumably based on environment) r=jonco Differential Revision: https://phabricator.services.mozilla.com/D75004
js/src/devtools/gc-ubench/benchmarks/bigTextNodes.js
js/src/devtools/gc-ubench/benchmarks/events.js
js/src/devtools/gc-ubench/benchmarks/expandoEvents.js
js/src/devtools/gc-ubench/benchmarks/textNodes.js
--- a/js/src/devtools/gc-ubench/benchmarks/bigTextNodes.js
+++ b/js/src/devtools/gc-ubench/benchmarks/bigTextNodes.js
@@ -5,16 +5,18 @@
 tests.set(
   "bigTextNodes",
   (function() {
     var garbage = [];
     var garbageIndex = 0;
     return {
       description: "var foo = [ textNode, textNode, ... ]",
 
+      enabled: "document" in globalThis,
+
       load: N => {
         garbage = new Array(N);
       },
       unload: () => {
         garbage = [];
         garbageIndex = 0;
       },
 
--- a/js/src/devtools/gc-ubench/benchmarks/events.js
+++ b/js/src/devtools/gc-ubench/benchmarks/events.js
@@ -5,16 +5,18 @@
 tests.set(
   "events",
   (function() {
     var garbage = [];
     var garbageIndex = 0;
     return {
       description: "var foo = [ textNode, textNode, ... ]",
 
+      enabled: "document" in globalThis,
+
       load: N => {
         garbage = new Array(N);
       },
       unload: () => {
         garbage = [];
         garbageIndex = 0;
       },
 
--- a/js/src/devtools/gc-ubench/benchmarks/expandoEvents.js
+++ b/js/src/devtools/gc-ubench/benchmarks/expandoEvents.js
@@ -5,16 +5,18 @@
 tests.set(
   "expandoEvents",
   (function() {
     var garbage = [];
     var garbageIndex = 0;
     return {
       description: "var foo = [ textNode, textNode, ... ]",
 
+      enabled: "document" in globalThis,
+
       load: N => {
         garbage = new Array(N);
       },
       unload: () => {
         garbage = [];
         garbageIndex = 0;
       },
 
--- a/js/src/devtools/gc-ubench/benchmarks/textNodes.js
+++ b/js/src/devtools/gc-ubench/benchmarks/textNodes.js
@@ -5,16 +5,18 @@
 tests.set(
   "textNodes",
   (function() {
     var garbage = [];
     var garbageIndex = 0;
     return {
       description: "var foo = [ textNode, textNode, ... ]",
 
+      enabled: "document" in globalThis,
+
       load: N => {
         garbage = new Array(N);
       },
       unload: () => {
         garbage = [];
         garbageIndex = 0;
       },