blob: a312038ce17b2cbe8df8cf2eba076f74e54b26b2 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
(module
(memory $0 1)
(data (i32.const 4) " \04\00\00")
(data (i32.const 12) "\00\00\00\00")
(data (i32.const 16) "\00\00\00\00")
(data (i32.const 20) "\00\00\00\00")
(type $FUNCSIG$v (func))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$vi (func (param i32)))
(import "env" "__cxa_begin_catch" (func $__cxa_begin_catch (param i32) (result i32)))
(import "env" "__cxa_end_catch" (func $__cxa_end_catch))
(import "env" "__cxa_find_matching_catch_3" (func $__cxa_find_matching_catch_3 (param i32) (result i32)))
(import "env" "invoke_v" (func $invoke_v (param i32)))
(import "env" "longjmp" (func $longjmp (param i32 i32)))
(import "env" "setjmp" (func $setjmp (param i32) (result i32)))
(import "env" "foo" (func $foo))
(export "memory" (memory $0))
(export "exception" (func $exception))
(export "setjmp_longjmp" (func $setjmp_longjmp))
(export "setThrew" (func $setThrew))
(export "setTempRet0" (func $setTempRet0))
(export "dynCall_v" (func $dynCall_v))
(table 2 2 anyfunc)
(elem (i32.const 0) $__wasm_nullptr $__importThunk_foo)
(func $exception
(local $0 i32)
(i32.store offset=12
(i32.const 0)
(i32.const 0)
)
(call $invoke_v
(i32.const 1)
)
(set_local $0
(i32.load offset=12
(i32.const 0)
)
)
(i32.store offset=12
(i32.const 0)
(i32.const 0)
)
(block $label$0
(br_if $label$0
(i32.ne
(get_local $0)
(i32.const 1)
)
)
(drop
(call $__cxa_begin_catch
(call $__cxa_find_matching_catch_3
(i32.const 0)
)
)
)
(call $__cxa_end_catch)
)
)
(func $setjmp_longjmp
(local $0 i32)
(i32.store offset=4
(i32.const 0)
(tee_local $0
(i32.sub
(i32.load offset=4
(i32.const 0)
)
(i32.const 160)
)
)
)
(drop
(call $setjmp
(get_local $0)
)
)
(call $longjmp
(get_local $0)
(i32.const 1)
)
(unreachable)
)
(func $setThrew (param $0 i32) (param $1 i32)
(block $label$0
(br_if $label$0
(i32.load offset=12
(i32.const 0)
)
)
(i32.store offset=16
(i32.const 0)
(get_local $1)
)
(i32.store offset=12
(i32.const 0)
(get_local $0)
)
)
)
(func $setTempRet0 (param $0 i32)
(i32.store offset=20
(i32.const 0)
(get_local $0)
)
)
(func $__wasm_nullptr (type $FUNCSIG$v)
(unreachable)
)
(func $__importThunk_foo (type $FUNCSIG$v)
(call $foo)
)
(func $dynCall_v (param $fptr i32)
(call_indirect $FUNCSIG$v
(get_local $fptr)
)
)
)
;; METADATA: { "asmConsts": {},"staticBump": 1056, "initializers": [] }
|