Bug 1520392 - Part 4: Pass {newCompartment: true} to newGlobal in slow jit-test. r=jandem
authorTooru Fujisawa <arai_a@mac.com>
Thu, 17 Jan 2019 11:44:28 +0000
changeset 511364 119e9c321200abdc92943a4ef125c575ddd46f88
parent 511363 25692599e832e823b3f5278d6996531b31ddc90e
child 511365 3e943d2e39c9292cd0b5098a46116aaa9aaa1f3b
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1520392
milestone66.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 1520392 - Part 4: Pass {newCompartment: true} to newGlobal in slow jit-test. r=jandem Depends on D16813 Differential Revision: https://phabricator.services.mozilla.com/D16814
js/src/jit-test/tests/basic/bug674776.js
js/src/jit-test/tests/debug/bug1108159.js
js/src/jit-test/tests/debug/bug1254190.js
js/src/jit-test/tests/debug/bug1254578.js
js/src/jit-test/tests/debug/bug1272908.js
js/src/jit-test/tests/gc/bug-1231386.js
--- a/js/src/jit-test/tests/basic/bug674776.js
+++ b/js/src/jit-test/tests/basic/bug674776.js
@@ -2,17 +2,17 @@
 
 /* Make a lot of functions of the form:
 function x1(){x1();}
 function x2(){x2();}
 function x3(){x3();}
 ...
 */
 
-var g = newGlobal();
+var g = newGlobal({newCompartment: true});
 var dbg = new g.Debugger(this);
 
 var s = '';
 for (var i = 0; i < 70000; i++) {
     s += 'function x' + i + '() { x' + i + '(); }\n';
 }
 s += 'pc2line(1);\n'
 evaluate(s);
--- a/js/src/jit-test/tests/debug/bug1108159.js
+++ b/js/src/jit-test/tests/debug/bug1108159.js
@@ -1,12 +1,12 @@
 // |jit-test| slow; skip-if: helperThreadCount() === 0
 
 var s = '';
 for (var i = 0; i < 70000; i++)
  {
     s += 'function x' + i + '() { x' + i + '(); }\n';
 }
 evaluate(s);
-var g = newGlobal();
+var g = newGlobal({newCompartment: true});
 (new Debugger).addDebuggee(g);
 g.offThreadCompileScript('debugger;',{});
 g.runOffThreadScript();
--- a/js/src/jit-test/tests/debug/bug1254190.js
+++ b/js/src/jit-test/tests/debug/bug1254190.js
@@ -1,11 +1,11 @@
-// |jit-test| slow; skip-if: !('oomTest' in this)
+// |jit-test| slow; skip-if: !('oomTest' in this); allow-oom
 
-var g = newGlobal();
+var g = newGlobal({newCompartment: true});
 var dbg = new Debugger(g);
 dbg.onNewScript = function (s) {
   log += dbg.findScripts({ source: s.source }).length;
 }
 log = "";
 oomTest(() => {
     var static  = newGlobal({sameZoneAs: this});
     g.eval("(function() {})()");
--- a/js/src/jit-test/tests/debug/bug1254578.js
+++ b/js/src/jit-test/tests/debug/bug1254578.js
@@ -1,11 +1,11 @@
 // |jit-test| slow; skip-if: !('oomTest' in this)
 
-var g = newGlobal();
+var g = newGlobal({newCompartment: true});
 g.debuggeeGlobal = this;
 g.eval("(" + function() {
     dbg = new Debugger(debuggeeGlobal);
     dbg.onExceptionUnwind = function(frame, exc) {
         var s = '!';
         for (var f = frame; f; f = f.older)
             debuggeeGlobal.log += s;
     };
--- a/js/src/jit-test/tests/debug/bug1272908.js
+++ b/js/src/jit-test/tests/debug/bug1272908.js
@@ -1,12 +1,12 @@
 // |jit-test| slow; skip-if: !('oomTest' in this)
 
 // Adapted from randomly chosen test: js/src/jit-test/tests/modules/bug-1233915.js
-g = newGlobal();
+g = newGlobal({newCompartment: true});
 g.parent = this;
 g.eval("(" + function() {
     Debugger(parent).onExceptionUnwind = function(frame) {
     frame.eval("")
     } } + ")()");
 // Adapted from randomly chosen test: js/src/jit-test/tests/debug/bug1254123.js
 function ERROR(msg) {
     throw new Error("boom");
--- a/js/src/jit-test/tests/gc/bug-1231386.js
+++ b/js/src/jit-test/tests/gc/bug-1231386.js
@@ -5,14 +5,14 @@ function f2() {}
 r = [function() {}, function() {}, [], function() {}, f1, function() {}, f2];
 l = [0];
 function f3() {
     return {
         a: 0
     };
 }
 var x = f3();
-var h = newGlobal();
+var h = newGlobal({newCompartment: true});
 var dbg = new Debugger;
 dbg.addDebuggee(h);
 oomTest(() => getBacktrace({
     thisprops: gc()
 }));