Debian Codegraph @

tests/snapshots/testsuite/memory_grow.wast/0.print

raw
1 (module
2 (type (;0;) (func (result i32)))
3 (type (;1;) (func))
4 (type (;2;) (func (param i32) (result i32)))
5 (memory (;0;) 0)
6 (export "load_at_zero" (func 0))
7 (export "store_at_zero" (func 1))
8 (export "load_at_page_size" (func 2))
9 (export "store_at_page_size" (func 3))
10 (export "grow" (func 4))
11 (export "size" (func 5))
12 (func (;0;) (type 0) (result i32)
13 i32.const 0
14 i32.load
15 )
16 (func (;1;) (type 1)
17 i32.const 0
18 i32.const 2
19 i32.store
20 )
21 (func (;2;) (type 0) (result i32)
22 i32.const 65536
23 i32.load
24 )
25 (func (;3;) (type 1)
26 i32.const 65536
27 i32.const 3
28 i32.store
29 )
30 (func (;4;) (type 2) (param $sz i32) (result i32)
31 local.get $sz
32 memory.grow
33 )
34 (func (;5;) (type 0) (result i32)
35 memory.size
36 )
37 )