Bug 1401842 - Speed up a debugger OOM test r=jandem
authorJon Coppeard <jcoppeard@mozilla.com>
Fri, 25 May 2018 10:39:54 +0100
changeset 419856 2836ce086f279d0050f581ab00dd55ced7a172ed
parent 419855 a33765bea383ee30312063a08733324b65dc58be
child 419857 107ae32fe44fd8d866cebdf598cdacdfe0779a2b
push id34052
push userccoroiu@mozilla.com
push dateFri, 25 May 2018 17:52:14 +0000
treeherdermozilla-central@94d7f0e1c4d0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1401842
milestone62.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 1401842 - Speed up a debugger OOM test r=jandem
js/src/jit-test/tests/debug/bug1370905.js
--- a/js/src/jit-test/tests/debug/bug1370905.js
+++ b/js/src/jit-test/tests/debug/bug1370905.js
@@ -1,20 +1,18 @@
 // |jit-test| allow-oom
 
 if (!('oomTest' in this))
     quit();
 
-var source = `
-    var global = newGlobal();
+function x() {
+    var global = newGlobal({sameZoneAs: this});
     global.eval('function f() { debugger; }');
     var debug = new Debugger(global);
     var foo;
     debug.onDebuggerStatement = function(frame) {
         foo = frame.arguments[0];
         return null;
     };
     global.eval('f(0)');
-`;
-function test() {
-    oomTest(new Function(source), false);
 }
-test();
+
+oomTest(x, false);