summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/nop-fill-jit-exit.js
blob: 0aadbc22a598241db4bef94bb3c4d0c86b23cb87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// |jit-test| --arm-asm-nop-fill=1
//
try {
    enableSingleStepProfiling();
    disableSingleStepProfiling();
} catch (e) {
    // Early quit on platforms not supporting single step profiling.
    quit();
}

load(libdir + "asm.js");

var ffi = function(enable) {
    enableGeckoProfiling();
    enableSingleStepProfiling();
}
var f = asmLink(asmCompile('global', 'ffis',
  USE_ASM + `
    var ffi=ffis.ffi;
    function f(i) {
      i=i|0;
      ffi(i|0);
    } return f
  `), null, {
    ffi
});
f(0);
f(+1);