summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/ion-lazy-stubs-jit.js
blob: f7592b14fb4c0253a7d9f454c86894e0345a26f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(function coerceinplace() {
    var { table } = wasmEvalText(`(module
        (func $add (param i32) (param i32) (result i32)
         local.get 0
        )
        (table (export "table") 10 funcref)
        (elem (i32.const 0) $add)
    )`).exports;

    for (var i = 0; i < 100; i++) {
      table.get(0)((true).get++, i*2+1);
    }
})();