blob: c65e0c7e60c5f6c88470038fd40a98a30c8d725b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
;;; TOOL: wat2wasm
(module
(table $foo 1 externref)
(table $bar 1 externref)
(table $baz 1 funcref)
(elem declare func 0)
(func (result externref)
i32.const 0
table.get $foo
)
(func (result externref)
i32.const 0
table.get $bar
)
(func (param externref)
i32.const 0
local.get 0
table.set $foo
)
(func (param externref)
i32.const 0
local.get 0
table.set $bar
)
(func (result i32)
ref.null extern
i32.const 0
table.grow $foo
)
(func (result i32)
ref.null extern
i32.const 0
table.grow $bar
)
(func (param externref) (result i32)
local.get 0
ref.is_null
)
(func (result funcref)
ref.func 0
)
(func (result i32)
table.size $foo
)
(func (result i32)
table.size $bar
)
(func (result i32)
table.size $baz
)
)
|