ion-inlining.js (359B)
1 let instance = wasmEvalText(` 2 (module 3 (func $f (export "f") (result i32 i32 i32) 4 (i32.const 0) 5 (i32.const 32) 6 (i32.const 10)))`); 7 8 const options = getJitCompilerOptions(); 9 const jitThreshold = options['ion.warmup.trigger'] * 2 + 2; 10 11 for (let i = 0; i < jitThreshold; i++) { 12 assertDeepEq(instance.exports.f(), [0, 32, 10]); 13 }