| 1 |
(module |
| 2 |
(@dylink.0 |
| 3 |
(mem-info (memory 1 4)) |
| 4 |
(needed "foo") |
| 5 |
) |
| 6 |
(type (func)) |
| 7 |
(type (func (param i32))) |
| 8 |
(type (func (result i32))) |
| 9 |
(import "env" "__memory_base" (global $__memory_base i32)) |
| 10 |
(import "env" "__table_base" (global $__table_base i32)) |
| 11 |
(import "env" "__asyncify_state" (global (mut i32))) |
| 12 |
(import "env" "__asyncify_data" (global (mut i32))) |
| 13 |
(import "env" "memory" (memory 1)) |
| 14 |
(import "env" "__indirect_function_table" (table 0 funcref)) |
| 15 |
(func $__wasm_call_ctors (type 0)) |
| 16 |
(func $__wasm_apply_data_relocs (type 0)) |
| 17 |
(func $asyncify_start_unwind (type 1) (param i32) |
| 18 |
i32.const 1 |
| 19 |
global.set 2 |
| 20 |
local.get 0 |
| 21 |
global.set 3 |
| 22 |
global.get 3 |
| 23 |
i32.load |
| 24 |
global.get 3 |
| 25 |
i32.load offset=4 |
| 26 |
i32.gt_u |
| 27 |
if |
| 28 |
unreachable |
| 29 |
end |
| 30 |
) |
| 31 |
(func $asyncify_stop_unwind (type 0) |
| 32 |
i32.const 0 |
| 33 |
global.set 2 |
| 34 |
global.get 3 |
| 35 |
i32.load |
| 36 |
global.get 3 |
| 37 |
i32.load offset=4 |
| 38 |
i32.gt_u |
| 39 |
if |
| 40 |
unreachable |
| 41 |
end |
| 42 |
) |
| 43 |
(func $asyncify_start_rewind (type 1) (param i32) |
| 44 |
i32.const 2 |
| 45 |
global.set 2 |
| 46 |
local.get 0 |
| 47 |
global.set 3 |
| 48 |
global.get 3 |
| 49 |
i32.load |
| 50 |
global.get 3 |
| 51 |
i32.load offset=4 |
| 52 |
i32.gt_u |
| 53 |
if |
| 54 |
unreachable |
| 55 |
end |
| 56 |
) |
| 57 |
(func $asyncify_stop_rewind (type 0) |
| 58 |
i32.const 0 |
| 59 |
global.set 2 |
| 60 |
global.get 3 |
| 61 |
i32.load |
| 62 |
global.get 3 |
| 63 |
i32.load offset=4 |
| 64 |
i32.gt_u |
| 65 |
if |
| 66 |
unreachable |
| 67 |
end |
| 68 |
) |
| 69 |
(func $asyncify_get_state (type 2) (result i32) |
| 70 |
global.get 2 |
| 71 |
) |
| 72 |
(func $bar (type 0)) |
| 73 |
(export "test:test/test#bar" (func $bar)) |
| 74 |
(export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) |
| 75 |
(export "asyncify_start_unwind" (func $asyncify_start_unwind)) |
| 76 |
(export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) |
| 77 |
(export "asyncify_start_rewind" (func $asyncify_start_rewind)) |
| 78 |
(export "asyncify_stop_rewind" (func $asyncify_stop_rewind)) |
| 79 |
(export "asyncify_get_state" (func $asyncify_get_state)) |
| 80 |
(data $.bss (global.get $__memory_base) "\00\00\00\00") |
| 81 |
) |