зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/modules/ (r=jorendorff)
--HG-- extra : rebase_source : 3b3f3d1218de88ec7d14d4c10050cfca17a29612
This commit is contained in:
Родитель
87596d9174
Коммит
287a92b60b
|
@ -1,5 +1,4 @@
|
|||
if (!('oomTest' in this))
|
||||
quit();
|
||||
// |jit-test| skip-if: !('oomTest' in this)
|
||||
|
||||
oomTest(() => parseModule('import v from "mod";'));
|
||||
fullcompartmentchecks(true);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if (helperThreadCount() == 0)
|
||||
quit();
|
||||
// |jit-test| skip-if: helperThreadCount() === 0
|
||||
|
||||
// Overwrite built-in parseModule with off-thread module parser.
|
||||
function parseModule(source) {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if (!('stackTest' in this))
|
||||
quit();
|
||||
// |jit-test| skip-if: !('stackTest' in this)
|
||||
|
||||
stackTest(function() {
|
||||
let m = parseModule(``);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if (!('oomTest' in this))
|
||||
quit();
|
||||
// |jit-test| skip-if: !('oomTest' in this)
|
||||
|
||||
loadFile(`
|
||||
function parseAndEvaluate(source) {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if (!('stackTest' in this))
|
||||
quit();
|
||||
// |jit-test| skip-if: !('stackTest' in this)
|
||||
|
||||
let a = parseModule(`throw new Error`);
|
||||
a.declarationInstantiation();
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if (!('oomTest' in this))
|
||||
quit();
|
||||
// |jit-test| skip-if: !('oomTest' in this)
|
||||
|
||||
lfLogBuffer = `
|
||||
let moduleRepo = {};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
if (helperThreadCount() === 0)
|
||||
quit();
|
||||
// |jit-test| skip-if: helperThreadCount() === 0
|
||||
|
||||
evalInWorker(`
|
||||
let m = parseModule("import.meta;");
|
||||
m.declarationInstantiation();
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// OOM tests for module parsing.
|
||||
// |jit-test| skip-if: !('oomTest' in this)
|
||||
|
||||
if (!('oomTest' in this))
|
||||
quit();
|
||||
// OOM tests for module parsing.
|
||||
|
||||
load(libdir + "dummyModuleResolveHook.js");
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
// |jit-test| module
|
||||
|
||||
if (typeof oomTest !== "function")
|
||||
quit();
|
||||
// |jit-test| module; skip-if: !('oomTest' in this)
|
||||
|
||||
oomTest(() => import.meta);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if (helperThreadCount() == 0)
|
||||
quit();
|
||||
// |jit-test| skip-if: helperThreadCount() === 0
|
||||
|
||||
load(libdir + "asserts.js")
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// Test off thread module compilation.
|
||||
// |jit-test| skip-if: helperThreadCount() === 0
|
||||
|
||||
if (helperThreadCount() == 0)
|
||||
quit();
|
||||
// Test off thread module compilation.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
load(libdir + "dummyModuleResolveHook.js");
|
||||
|
|
Загрузка…
Ссылка в новой задаче