Debian Codegraph @

tests/snapshots/testsuite/proposals/wasm-3.0/throw_ref.wast/0.print

raw
1 (module
2 (type (;0;) (func))
3 (type (;1;) (func (param i32) (result i32)))
4 (type (;2;) (func (param exnref)))
5 (tag $e0 (;0;) (type 0))
6 (tag $e1 (;1;) (type 0))
7 (export "catch-throw_ref-0" (func 0))
8 (export "catch-throw_ref-1" (func 1))
9 (export "catchall-throw_ref-0" (func 2))
10 (export "catchall-throw_ref-1" (func 3))
11 (export "throw_ref-nested" (func 4))
12 (export "throw_ref-recatch" (func 5))
13 (export "throw_ref-stack-polymorphism" (func 6))
14 (func (;0;) (type 0)
15 block $h (result exnref)
16 try_table (catch_ref $e0 $h) ;; label = @2
17 throw $e0
18 end
19 unreachable
20 end
21 throw_ref
22 )
23 (func (;1;) (type 1) (param i32) (result i32)
24 block $h (result exnref)
25 try_table (result i32) (catch_ref $e0 $h) ;; label = @2
26 throw $e0
27 end
28 return
29 end
30 local.get 0
31 i32.eqz
32 if (type 2) (param exnref) ;; label = @1
33 throw_ref
34 else
35 drop
36 end
37 i32.const 23
38 )
39 (func (;2;) (type 0)
40 block $h (result exnref)
41 try_table (result exnref) (catch_all_ref $h) ;; label = @2
42 throw $e0
43 end
44 end
45 throw_ref
46 )
47 (func (;3;) (type 1) (param i32) (result i32)
48 block $h (result exnref)
49 try_table (result i32) (catch_all_ref $h) ;; label = @2
50 throw $e0
51 end
52 return
53 end
54 local.get 0
55 i32.eqz
56 if (type 2) (param exnref) ;; label = @1
57 throw_ref
58 else
59 drop
60 end
61 i32.const 23
62 )
63 (func (;4;) (type 1) (param i32) (result i32)
64 (local $exn1 exnref) (local $exn2 exnref)
65 block $h1 (result exnref)
66 try_table (result i32) (catch_ref $e1 $h1) ;; label = @2
67 throw $e1
68 end
69 return
70 end
71 local.set $exn1
72 block $h2 (result exnref)
73 try_table (result i32) (catch_ref $e0 $h2) ;; label = @2
74 throw $e0
75 end
76 return
77 end
78 local.set $exn2
79 local.get 0
80 i32.const 0
81 i32.eq
82 if ;; label = @1
83 local.get $exn1
84 throw_ref
85 end
86 local.get 0
87 i32.const 1
88 i32.eq
89 if ;; label = @1
90 local.get $exn2
91 throw_ref
92 end
93 i32.const 23
94 )
95 (func (;5;) (type 1) (param i32) (result i32)
96 (local $e exnref)
97 block $h1 (result exnref)
98 try_table (result i32) (catch_ref $e0 $h1) ;; label = @2
99 throw $e0
100 end
101 return
102 end
103 local.set $e
104 block $h2 (result exnref)
105 try_table (result i32) (catch_ref $e0 $h2) ;; label = @2
106 local.get 0
107 i32.eqz
108 if ;; label = @3
109 local.get $e
110 throw_ref
111 end
112 i32.const 42
113 end
114 return
115 end
116 drop
117 i32.const 23
118 )
119 (func (;6;) (type 0)
120 (local $e exnref)
121 block $h (result exnref)
122 try_table (result f64) (catch_ref $e0 $h) ;; label = @2
123 throw $e0
124 end
125 unreachable
126 end
127 local.set $e
128 i32.const 1
129 local.get $e
130 throw_ref
131 )
132 )