summaryrefslogtreecommitdiff
path: root/test/lld/main_module_table.wat.out
blob: 29fe19f04c13ebaac73ed7f3da3f46e05cd65289 (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
(module
 (type $none_=>_none (func))
 (type $i32_=>_none (func (param i32)))
 (type $i32_=>_i32 (func (param i32) (result i32)))
 (import "env" "__stack_pointer" (global $sp_import i32))
 (import "env" "__table_base" (global $__table_base i32))
 (table $0 1 funcref)
 (elem (global.get $__table_base) $__stdio_write)
 (global $gimport$9 (mut i32) (i32.const 0))
 (global $global i32 (i32.const 42))
 (global $sp (mut i32) (global.get $sp_import))
 (export "__stdio_write" (func $__stdio_write))
 (export "__data_end" (global $global))
 (export "__growWasmMemory" (func $__growWasmMemory))
 (export "__assign_got_enties" (func $__assign_got_enties))
 (export "dynCall_v" (func $dynCall_v))
 (func $__stdio_write
  (nop)
 )
 (func $__assign_got_enties
  (global.set $gimport$9
   (i32.add
    (global.get $__table_base)
    (i32.const 0)
   )
  )
 )
 (func $__growWasmMemory (param $newSize i32) (result i32)
  (memory.grow
   (local.get $newSize)
  )
 )
 (func $dynCall_v (param $fptr i32)
  (call_indirect (type $none_=>_none)
   (local.get $fptr)
  )
 )
)
(;
--BEGIN METADATA --
{
  "staticBump": 4294966770,
  "tableSize": 1,
  "initializers": [
    "__assign_got_enties"
  ],
  "declares": [
  ],
  "externs": [
    "___stack_pointer",
    "___table_base"
  ],
  "exports": [
    "__stdio_write",
    "__growWasmMemory",
    "__assign_got_enties",
    "dynCall_v"
  ],
  "namedGlobals": {
    "__data_end" : "42"
  },
  "invokeFuncs": [
  ],
  "mainReadsParams": 0,
  "features": [
  ]
}
-- END METADATA --
;)