]>
Commit | Line | Data |
---|---|---|
1 | (module | |
2 | (import "env" "memory" (memory $0 1)) | |
3 | (table 0 anyfunc) | |
4 | (data (i32.const 12) "\01\00\00\00\00\00\00\00\00\00\00\00") | |
5 | (export "f" (func $f)) | |
6 | (export "stackSave" (func $stackSave)) | |
7 | (export "stackAlloc" (func $stackAlloc)) | |
8 | (export "stackRestore" (func $stackRestore)) | |
9 | (func $f (; 0 ;) (param $0 i32) (param $1 i32) | |
10 | (i32.store offset=16 | |
11 | (get_local $0) | |
12 | (get_local $1) | |
13 | ) | |
14 | (return) | |
15 | ) | |
16 | (func $stackSave (; 1 ;) (result i32) | |
17 | (i32.load offset=4 | |
18 | (i32.const 0) | |
19 | ) | |
20 | ) | |
21 | (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) | |
22 | (local $1 i32) | |
23 | (set_local $1 | |
24 | (i32.load offset=4 | |
25 | (i32.const 0) | |
26 | ) | |
27 | ) | |
28 | (i32.store offset=4 | |
29 | (i32.const 0) | |
30 | (i32.and | |
31 | (i32.sub | |
32 | (get_local $1) | |
33 | (get_local $0) | |
34 | ) | |
35 | (i32.const -16) | |
36 | ) | |
37 | ) | |
38 | (get_local $1) | |
39 | ) | |
40 | (func $stackRestore (; 3 ;) (param $0 i32) | |
41 | (i32.store offset=4 | |
42 | (i32.const 0) | |
43 | (get_local $0) | |
44 | ) | |
45 | ) | |
46 | ) | |
47 | ;; METADATA: { "asmConsts": {},"staticBump": 24, "initializers": [] } |