summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/multi-value/ion-inlining.js
blob: 0d9a05214e5e68fd2cbb6b58c4ace35815b790fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let instance = wasmEvalText(`
   (module
     (func $f (export "f") (result i32 i32 i32)
       (i32.const 0)
       (i32.const 32)
       (i32.const 10)))`);

const options = getJitCompilerOptions();
const jitThreshold = options['ion.warmup.trigger'] * 2 + 2;

for (let i = 0; i < jitThreshold; i++) {
    assertDeepEq(instance.exports.f(), [0, 32, 10]);
}