summaryrefslogtreecommitdiff
path: root/test/unreachable-import_wasm-only.fromasm.no-opts
blob: 1af9c172b70192352db155aae055cd0914d0425f (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
(module
  (type $FUNCSIG$ii (func (param i32) (result i32)))
  (type $FUNCSIG$viii (func (param i32 i32 i32)))
  (import "env" "DYNAMICTOP_PTR" (global $DYNAMICTOP_PTR$asm2wasm$import i32))
  (import "env" "tempDoublePtr" (global $tempDoublePtr$asm2wasm$import i32))
  (import "env" "ABORT" (global $ABORT$asm2wasm$import i32))
  (import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32))
  (import "env" "STACK_MAX" (global $STACK_MAX$asm2wasm$import i32))
  (import "env" "___async" (global $___async$asm2wasm$import i32))
  (import "env" "___async_unwind" (global $___async_unwind$asm2wasm$import i32))
  (import "env" "___async_retval" (global $___async_retval$asm2wasm$import i32))
  (import "env" "___async_cur_frame" (global $___async_cur_frame$asm2wasm$import i32))
  (import "global" "NaN" (global $nan$asm2wasm$import f64))
  (import "global" "Infinity" (global $inf$asm2wasm$import f64))
  (import "env" "___cxa_allocate_exception" (func $___cxa_allocate_exception (param i32) (result i32)))
  (import "env" "___cxa_throw" (func $___cxa_throw (param i32 i32 i32)))
  (import "env" "memory" (memory $0 256 256))
  (import "env" "table" (table 0 0 anyfunc))
  (import "env" "memoryBase" (global $memoryBase i32))
  (import "env" "tableBase" (global $tableBase i32))
  (global $DYNAMICTOP_PTR (mut i32) (get_global $DYNAMICTOP_PTR$asm2wasm$import))
  (global $tempDoublePtr (mut i32) (get_global $tempDoublePtr$asm2wasm$import))
  (global $ABORT (mut i32) (get_global $ABORT$asm2wasm$import))
  (global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import))
  (global $STACK_MAX (mut i32) (get_global $STACK_MAX$asm2wasm$import))
  (global $___async (mut i32) (get_global $___async$asm2wasm$import))
  (global $___async_unwind (mut i32) (get_global $___async_unwind$asm2wasm$import))
  (global $___async_retval (mut i32) (get_global $___async_retval$asm2wasm$import))
  (global $___async_cur_frame (mut i32) (get_global $___async_cur_frame$asm2wasm$import))
  (global $__THREW__ (mut i32) (i32.const 0))
  (global $threwValue (mut i32) (i32.const 0))
  (global $setjmpId (mut i32) (i32.const 0))
  (global $undef (mut i32) (i32.const 0))
  (global $nan (mut f64) (get_global $nan$asm2wasm$import))
  (global $inf (mut f64) (get_global $inf$asm2wasm$import))
  (global $tempInt (mut i32) (i32.const 0))
  (global $tempBigInt (mut i32) (i32.const 0))
  (global $tempBigIntP (mut i32) (i32.const 0))
  (global $tempBigIntS (mut i32) (i32.const 0))
  (global $tempBigIntR (mut f64) (f64.const 0))
  (global $tempBigIntI (mut i32) (i32.const 0))
  (global $tempBigIntD (mut i32) (i32.const 0))
  (global $tempValue (mut i32) (i32.const 0))
  (global $tempDouble (mut f64) (f64.const 0))
  (global $tempRet0 (mut i32) (i32.const 0))
  (global $tempFloat (mut f32) (f32.const 0))
  (global $f0 (mut f32) (f32.const 0))
  (export "__ZN10WasmAssertC2Ev__async_cb" (func $__ZN10WasmAssertC2Ev__async_cb))
  (func $__ZN10WasmAssertC2Ev__async_cb (param $$0 i32)
    (block $switch
      (block $switch-default
        (block $switch-case
          (br_table $switch-case $switch-default
            (i32.sub
              (i32.const 0)
              (i32.const 0)
            )
          )
        )
        (block
          (i32.store
            (i32.const 12)
            (i32.const 26)
          )
          (return)
        )
      )
      (block
        (set_local $$0
          (call $___cxa_allocate_exception
            (i32.const 4)
          )
        )
        (i32.store
          (get_local $$0)
          (i32.const 1)
        )
        (call $___cxa_throw
          (get_local $$0)
          (i32.const 1280)
          (i32.const 0)
        )
      )
    )
  )
)