summaryrefslogtreecommitdiff
path: root/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt
blob: 28348883ad7685280eca6250f0f2200afcacfb1f (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
(module
 (type $none_=>_none (func))
 (type $i32_=>_none (func (param i32)))
 (event $e0 (attr 0) (param i32))
 (func $eh
  (local $exn exnref)
  try
   i32.const 0
   throw $e0
  catch
   
   local.set $exn
   block $l0 (result i32)
    local.get $exn
    br_on_exn $l0 $e0
    rethrow
   end
   drop
  end
 )
)
(module
 (type $none_=>_none (func))
 (type $i32_=>_none (func (param i32)))
 (event $e0 (attr 0) (param i32))
 (func $eh (; has Stack IR ;)
  (local $exn exnref)
  (try
   (do
    (throw $e0
     (i32.const 0)
    )
   )
   (catch
    (local.set $exn
     (pop exnref)
    )
    (drop
     (block $l0 (result i32)
      (rethrow
       (br_on_exn $l0 $e0
        (local.get $exn)
       )
      )
     )
    )
   )
  )
 )
)