Debian Codegraph @

tests/snapshots/cli/shared-everything-threads/i31.wast/54.print

raw
1 (module $anyref_table_of_i31ref
2 (type (;0;) (func (result i32)))
3 (type (;1;) (func (param i32) (result i32)))
4 (type (;2;) (func (param i32 i32) (result i32)))
5 (type (;3;) (func (param i32 i32 i32)))
6 (table $table (;0;) 3 10 (ref null (shared any)))
7 (export "size" (func 0))
8 (export "get" (func 1))
9 (export "grow" (func 2))
10 (export "fill" (func 3))
11 (export "copy" (func 4))
12 (export "init" (func 5))
13 (elem (;0;) (table $table) (i32.const 0) (ref null (shared i31)) (item i32.const 999 ref.i31_shared) (item i32.const 888 ref.i31_shared) (item i32.const 777 ref.i31_shared))
14 (elem $elem (;1;) (ref null (shared i31)) (item i32.const 123 ref.i31_shared) (item i32.const 456 ref.i31_shared) (item i32.const 789 ref.i31_shared))
15 (func (;0;) (type 0) (result i32)
16 table.size $table
17 )
18 (func (;1;) (type 1) (param i32) (result i32)
19 local.get 0
20 table.get $table
21 ref.cast (ref null (shared i31))
22 i31.get_u
23 )
24 (func (;2;) (type 2) (param i32 i32) (result i32)
25 local.get 1
26 ref.i31_shared
27 local.get 0
28 table.grow $table
29 )
30 (func (;3;) (type 3) (param i32 i32 i32)
31 local.get 0
32 local.get 1
33 ref.i31_shared
34 local.get 2
35 table.fill $table
36 )
37 (func (;4;) (type 3) (param i32 i32 i32)
38 local.get 0
39 local.get 1
40 local.get 2
41 table.copy
42 )
43 (func (;5;) (type 3) (param i32 i32 i32)
44 local.get 0
45 local.get 1
46 local.get 2
47 table.init $elem
48 )
49 )