while-profiling.js (617B)
1 // |jit-test| exitstatus: 6; skip-if: !wasmIsSupported() || (!getBuildConfiguration("arm-simulator") && !getBuildConfiguration("arm64-simulator")) 2 3 // Single-step profiling currently only works in the ARM simulator 4 5 // Don't include wasm.js in timeout tests: when wasm isn't supported, it will 6 // quit(0) which will cause the test to fail. 7 8 var code = wasmTextToBinary(`(module 9 (func (export "iloop") 10 (loop $top br $top) 11 ) 12 )`); 13 14 enableGeckoProfiling(); 15 enableSingleStepProfiling(); 16 var i = new WebAssembly.Instance(new WebAssembly.Module(code)); 17 timeout(.1); 18 i.exports.iloop(); 19 assertEq(true, false);