oom-masm-baseline.js (825B)
1 // |jit-test| slow 2 3 // Test baseline compiler only. 4 if (typeof wasmCompileMode === 'undefined' || wasmCompileMode() != 'baseline') 5 quit(); 6 7 try { 8 var bin = wasmTextToBinary( 9 `(module (func (result i32) (param f64) (param f32) 10 i64.const 0 11 local.get 0 12 drop 13 i32.wrap_i64 14 f64.const 0 15 f64.const 0 16 i32.const 0 17 select 18 f32.const 0 19 f32.const 0 20 f32.const 0 21 i32.const 0 22 select 23 i32.const 0 24 i32.const 0 25 i32.const 0 26 select 27 select 28 drop 29 drop))`); 30 oomTest(() => new WebAssembly.Module(bin)); 31 } catch(e) { }