summaryrefslogtreecommitdiff
path: root/test/lld/em_asm_table.wast.out
blob: e91b333b28bba0dd55c6872086de7b4859eaaaf6 (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
(module
 (type $0 (func (param i32 i32)))
 (type $1 (func (param i32 i32 i32) (result i32)))
 (type $FUNCSIG$vii (func (param i32 i32)))
 (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
 (import "env" "memory" (memory $0 8192))
 (import "env" "STACKTOP" (global $stack$init i32))
 (import "env" "emscripten_log" (func $fimport$0 (param i32 i32)))
 (import "env" "emscripten_asm_const_iii" (func $emscripten_asm_const_iii (param i32 i32 i32) (result i32)))
 (table $0 159609 anyfunc)
 (elem (i32.const 1) $fimport$0 $emscripten_asm_const_iii)
 (global $global$0 (mut i32) (get_global $stack$init))
 (global $global$1 i32 (i32.const 1048))
 (export "__data_end" (global $global$1))
 (export "stackSave" (func $stackSave))
 (export "stackAlloc" (func $stackAlloc))
 (export "stackRestore" (func $stackRestore))
 (export "__growWasmMemory" (func $__growWasmMemory))
 (export "dynCall_vii" (func $dynCall_vii))
 (export "dynCall_iiii" (func $dynCall_iiii))
 (func $stackSave (; 2 ;) (result i32)
  (get_global $global$0)
 )
 (func $stackAlloc (; 3 ;) (param $0 i32) (result i32)
  (local $1 i32)
  (set_global $global$0
   (tee_local $1
    (i32.and
     (i32.sub
      (get_global $global$0)
      (get_local $0)
     )
     (i32.const -16)
    )
   )
  )
  (get_local $1)
 )
 (func $stackRestore (; 4 ;) (param $0 i32)
  (set_global $global$0
   (get_local $0)
  )
 )
 (func $__growWasmMemory (; 5 ;) (param $newSize i32) (result i32)
  (grow_memory
   (get_local $newSize)
  )
 )
 (func $dynCall_vii (; 6 ;) (param $fptr i32) (param $0 i32) (param $1 i32)
  (call_indirect (type $FUNCSIG$vii)
   (get_local $0)
   (get_local $1)
   (get_local $fptr)
  )
 )
 (func $dynCall_iiii (; 7 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
  (call_indirect (type $FUNCSIG$iiii)
   (get_local $0)
   (get_local $1)
   (get_local $2)
   (get_local $fptr)
  )
 )
)
(;
--BEGIN METADATA --
{
  "staticBump": 480,
  "tableSize": 159609,
  "declares": [
    "emscripten_log"
  ],
  "externs": [
  ],
  "implementedFunctions": [
    "_stackSave",
    "_stackAlloc",
    "_stackRestore",
    "___growWasmMemory",
    "_dynCall_vii",
    "_dynCall_iiii"
  ],
  "exports": [
    "__data_end",
    "stackSave",
    "stackAlloc",
    "stackRestore",
    "__growWasmMemory",
    "dynCall_vii",
    "dynCall_iiii"
  ],
  "invokeFuncs": [
  ]
}
-- END METADATA --
;)