зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1277562 - Part 5b: Adapt test cases. r=yury
--HG-- extra : rebase_source : 545315ea97844eed615e2dd6fd380f34d4d09623
This commit is contained in:
Родитель
16a023dd8a
Коммит
52006b201a
|
@ -1,6 +1,9 @@
|
|||
// Tests that JavaScript scripts have a "js" format and wasm scripts have a
|
||||
// "wasm" format.
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(0);
|
||||
|
||||
var g = newGlobal();
|
||||
var dbg = new Debugger(g);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
fullcompartmentchecks(true);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// |jit-test| test-also-wasm-baseline; error: TestComplete
|
||||
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
throw "TestComplete";
|
||||
|
||||
let module = new WebAssembly.Module(wasmTextToBinary(`
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// |jit-test| test-also-wasm-baseline; error: TestComplete
|
||||
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
throw "TestComplete";
|
||||
|
||||
// Single-step profiling currently only works in the ARM simulator
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// |jit-test| test-also-wasm-baseline; error: TestComplete
|
||||
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
throw "TestComplete";
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// |jit-test| test-also-wasm-baseline; error: TestComplete
|
||||
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
throw "TestComplete";
|
||||
|
||||
(function createShortLivedDebugger() {
|
||||
|
@ -18,4 +18,4 @@ gcslice(1000000);
|
|||
|
||||
new WebAssembly.Instance(module);
|
||||
|
||||
throw "TestComplete";
|
||||
throw "TestComplete";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// |jit-test| test-also-wasm-baseline; exitstatus: 3
|
||||
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
quit(3);
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(3);
|
||||
|
||||
var g = newGlobal();
|
||||
g.parent = this;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// |jit-test| test-also-wasm-baseline; error: TestComplete
|
||||
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
throw "TestComplete";
|
||||
|
||||
var module = new WebAssembly.Module(wasmTextToBinary(`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// |jit-test| test-also-wasm-baseline; exitstatus: 3
|
||||
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3
|
||||
// Checking in debug frame is initialized properly during stack overflow.
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(3);
|
||||
|
||||
var dbg;
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Checking if Debugger.Script.isInCatchScope return false for wasm.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var results;
|
||||
wasmRunWithDebugger(
|
||||
'(module (memory 1) ' +
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Tests that wasm module scripts are available via findScripts.
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Tests that wasm module scripts are available via onNewScript.
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module scripts have text line to bytecode offset information
|
||||
// when source text is generated.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
// Checking if experimental format generates internal source map to binary file
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// |jit-test| test-also-wasm-baseline; exitstatus: 3
|
||||
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3
|
||||
// Checking resumption values for 'null' at onEnterFrame.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(3);
|
||||
|
||||
var g = newGlobal('');
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// |jit-test| test-also-wasm-baseline; exitstatus: 3
|
||||
// |jit-test| test-also-no-wasm-baseline; exitstatus: 3
|
||||
// Checking resumption values for 'null' at frame's onPop.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
quit(3);
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(3);
|
||||
|
||||
var g = newGlobal('');
|
||||
var dbg = new Debugger();
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// |jit-test| test-also-wasm-baseline; error: TestComplete
|
||||
// |jit-test| test-also-no-wasm-baseline; error: TestComplete
|
||||
// Tests that wasm module scripts raises onEnterFrame and onLeaveFrame events.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
throw "TestComplete";
|
||||
if (!wasmDebuggingIsSupported())
|
||||
throw "TestComplete";
|
||||
|
||||
function runWasmWithDebugger(wast, lib, init, done) {
|
||||
let g = newGlobal('');
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Checking existence of all frame.offset references during onEnterFrame,
|
||||
// onLeaveFrame and onStep events in the source code, and that we can
|
||||
// potentially resolve offset back to the line/column.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var offsets;
|
||||
wasmRunWithDebugger(
|
||||
'(module (func (nop) (nop)) (export "test" 0))',
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Checking if we destroying work registers by breakpoint/step handler.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
// Running the following code compiled from C snippet:
|
||||
//
|
||||
// signed func0(signed n) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests debugEnabled state of wasm when allowUnobservedAsmJS == true.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
quit();
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
// Checking that there are no offsets are present in a wasm instance script for
|
||||
// which debug mode was not enabled.
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module scripts has inspectable locals.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
load(libdir + 'eqArrayHelper.js');
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
function monitorLocalValues(wast, lib, expected) {
|
||||
function setupFrame(frame) {
|
||||
var locals = {};
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Test single-stepping where the TLS register can be evicted by a non-trivial
|
||||
// function body.
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module scripts have special URLs.
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module scripts has inspectable globals and memory.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
load(libdir + "asserts.js");
|
||||
load(libdir + "array-compare.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module scripts handles basic breakpoint operations.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
// Checking if we can stop at specified breakpoint.
|
||||
var onBreakpointCalled;
|
||||
wasmRunWithDebugger(
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm frame opPop event can access function resumption value.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
load(libdir + 'eqArrayHelper.js');
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
function monitorFrameOnPopReturns(wast, expected) {
|
||||
var values = [];
|
||||
wasmRunWithDebugger(
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module scripts have column and line to bytecode offset
|
||||
// information when source text is generated.
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
// Checking if experimental format generates internal source map to binary file
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that JS can be evaluated on wasm module scripts frames.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
var sandbox = newGlobal();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module sourceMappingURL section is parsed.
|
||||
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
load(libdir + "asserts.js");
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
// |jit-test| test-also-wasm-baseline
|
||||
// |jit-test| test-also-no-wasm-baseline
|
||||
// Tests that wasm module scripts raises onEnterFrame and onLeaveFrame events.
|
||||
|
||||
load(libdir + "wasm.js");
|
||||
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit();
|
||||
|
||||
// Checking if we stop at every wasm instruction during step.
|
||||
var onEnterFrameCalled, onLeaveFrameCalled, onStepCalled;
|
||||
wasmRunWithDebugger(
|
||||
|
@ -62,4 +65,3 @@ wasmRunWithDebugger(
|
|||
assertEq(onStepCalled.length, 0);
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
|jit-test| test-also-wasm-baseline; test-also-wasm-check-bce; include:wasm.js
|
||||
|jit-test| test-also-no-wasm-baseline; test-also-wasm-check-bce; include:wasm.js
|
||||
|
|
|
@ -1 +1 @@
|
|||
|jit-test| test-also-wasm-baseline; include:wasm.js
|
||||
|jit-test| test-also-no-wasm-baseline; include:wasm.js
|
||||
|
|
|
@ -1 +1 @@
|
|||
|jit-test| test-also-wasm-baseline; include:wasm.js
|
||||
|jit-test| test-also-no-wasm-baseline; include:wasm.js
|
||||
|
|
|
@ -1 +1 @@
|
|||
|jit-test| test-also-wasm-baseline; include:wasm-testharness.js
|
||||
|jit-test| test-also-no-wasm-baseline; include:wasm-testharness.js
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Don't include wasm.js in timeout tests: when wasm isn't supported, it will
|
||||
// quit(0) which will cause the test to fail.
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(6);
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Don't include wasm.js in timeout tests: when wasm isn't supported, it will
|
||||
// quit(0) which will cause the test to fail.
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(6);
|
||||
|
||||
var g = newGlobal();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Don't include wasm.js in timeout tests: when wasm isn't supported, it will
|
||||
// quit(0) which will cause the test to fail.
|
||||
if (!wasmIsSupported())
|
||||
if (!wasmDebuggingIsSupported())
|
||||
quit(6);
|
||||
|
||||
newGlobal().Debugger().addDebuggee(this);
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
|jit-test| test-also-wasm-baseline
|
||||
|jit-test| test-also-no-wasm-baseline
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче