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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
(component
(type (;0;)
(instance
(type (;0;) (func (param "v" s32) (result s32)))
(export (;0;) "foo" (func (type 0)))
)
)
(import "test:test/test" (instance (;0;) (type 0)))
(core module (;0;)
(table (;0;) 2 funcref)
(memory (;0;) 17)
(global (;0;) (mut i32) i32.const 1048576)
(global (;1;) i32 i32.const 1048592)
(global (;2;) i32 i32.const 1)
(global (;3;) i32 i32.const 1048592)
(global (;4;) i32 i32.const 2)
(global (;5;) (mut i32) i32.const 1048592)
(global (;6;) (mut i32) i32.const 1114112)
(export "__stack_pointer" (global 0))
(export "foo:memory_base" (global 1))
(export "foo:table_base" (global 2))
(export "wit-component:stubs:memory_base" (global 3))
(export "wit-component:stubs:table_base" (global 4))
(export "__heap_base" (global 5))
(export "__heap_end" (global 6))
(export "__indirect_function_table" (table 0))
(export "memory" (memory 0))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module (;1;)
(type (;0;) (func (param i32) (result i32)))
(type (;1;) (func (param i32) (result i32)))
(export "bar" (func 0))
(export "foo" (func 1))
(func (;0;) (type 0) (param i32) (result i32)
unreachable
)
(func (;1;) (type 1) (param i32) (result i32)
unreachable
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module (;2;)
(@dylink.0
(mem-info (memory 0 4))
)
(type (;0;) (func (param i32) (result i32)))
(import "test:test/test" "foo" (func $import_foo (;0;) (type 0)))
(import "env" "foo" (func $import_foo2 (;1;) (type 0)))
(import "env" "bar" (func $import_bar (;2;) (type 0)))
(export "test:test/test#foo" (func $foo))
(func $foo (;3;) (type 0) (param i32) (result i32)
unreachable
)
)
(core module (;3;)
(type (;0;) (func))
(type (;1;) (func (param i32)))
(import "env" "memory" (memory (;0;) 0))
(import "env" "__indirect_function_table" (table (;0;) 0 funcref))
(start 0)
(elem (;0;) (i32.const 1) func)
(elem (;1;) (i32.const 2) func)
(func (;0;) (type 0))
(data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core instance (;0;) (instantiate 0))
(alias core export 0 "memory" (core memory (;0;)))
(core instance (;1;) (instantiate 1))
(alias export 0 "foo" (func (;0;)))
(core func (;0;) (canon lower (func 0)))
(core instance (;2;)
(export "foo" (func 0))
)
(alias core export 1 "foo" (core func (;1;)))
(alias core export 1 "bar" (core func (;2;)))
(core instance (;3;)
(export "foo" (func 1))
(export "bar" (func 2))
)
(core instance (;4;) (instantiate 2
(with "test:test/test" (instance 2))
(with "env" (instance 3))
)
)
(core instance (;5;) (instantiate 3
(with "env" (instance 0))
)
)
(type (;1;) (func (param "v" s32) (result s32)))
(alias core export 4 "test:test/test#foo" (core func (;3;)))
(func (;1;) (type 1) (canon lift (core func 3)))
(component (;0;)
(type (;0;) (func (param "v" s32) (result s32)))
(import "import-func-foo" (func (;0;) (type 0)))
(type (;1;) (func (param "v" s32) (result s32)))
(export (;1;) "foo" (func 0) (func (type 1)))
)
(instance (;1;) (instantiate 0
(with "import-func-foo" (func 1))
)
)
(export (;2;) "test:test/test" (instance 1))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
|