| 1 |
(component |
| 2 |
(core module (;0;) |
| 3 |
(table (;0;) 1 funcref) |
| 4 |
(memory (;0;) 17) |
| 5 |
(global (;0;) (mut i32) i32.const 1048576) |
| 6 |
(global (;1;) i32 i32.const 1048592) |
| 7 |
(global (;2;) i32 i32.const 1) |
| 8 |
(global (;3;) i32 i32.const 1048592) |
| 9 |
(global (;4;) i32 i32.const 1) |
| 10 |
(global (;5;) (mut i32) i32.const 1048592) |
| 11 |
(global (;6;) (mut i32) i32.const 1114112) |
| 12 |
(export "__stack_pointer" (global 0)) |
| 13 |
(export "bar:memory_base" (global 1)) |
| 14 |
(export "bar:table_base" (global 2)) |
| 15 |
(export "foo:memory_base" (global 3)) |
| 16 |
(export "foo:table_base" (global 4)) |
| 17 |
(export "__heap_base" (global 5)) |
| 18 |
(export "__heap_end" (global 6)) |
| 19 |
(export "__indirect_function_table" (table 0)) |
| 20 |
(export "memory" (memory 0)) |
| 21 |
(@producers |
| 22 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 23 |
) |
| 24 |
) |
| 25 |
(core module (;1;) |
| 26 |
(@dylink.0 |
| 27 |
(mem-info (memory 0 4)) |
| 28 |
) |
| 29 |
(type (;0;) (func (param i32) (result i32))) |
| 30 |
(export "test:test/foo#[constructor]x" (func $x_ctor)) |
| 31 |
(export "test:test/foo#[method]x.get" (func $x_get)) |
| 32 |
(func $foo (;0;) (type 0) (param i32) (result i32) |
| 33 |
unreachable |
| 34 |
) |
| 35 |
(func $x_ctor (;1;) (type 0) (param i32) (result i32) |
| 36 |
unreachable |
| 37 |
) |
| 38 |
(func $x_get (;2;) (type 0) (param i32) (result i32) |
| 39 |
unreachable |
| 40 |
) |
| 41 |
) |
| 42 |
(core module (;2;) |
| 43 |
(@dylink.0 |
| 44 |
(mem-info (memory 0 4)) |
| 45 |
(needed "foo") |
| 46 |
) |
| 47 |
(type (;0;) (func (param i32) (result i32))) |
| 48 |
(export "test:test/bar#[constructor]x" (func $x_ctor)) |
| 49 |
(export "test:test/bar#[method]x.get" (func $x_get)) |
| 50 |
(func $x_ctor (;0;) (type 0) (param i32) (result i32) |
| 51 |
unreachable |
| 52 |
) |
| 53 |
(func $x_get (;1;) (type 0) (param i32) (result i32) |
| 54 |
unreachable |
| 55 |
) |
| 56 |
) |
| 57 |
(core module (;3;) |
| 58 |
(type (;0;) (func)) |
| 59 |
(type (;1;) (func (param i32))) |
| 60 |
(import "env" "memory" (memory (;0;) 0)) |
| 61 |
(import "env" "__indirect_function_table" (table (;0;) 0 funcref)) |
| 62 |
(start 0) |
| 63 |
(elem (;0;) (i32.const 1) func) |
| 64 |
(elem (;1;) (i32.const 1) func) |
| 65 |
(func (;0;) (type 0)) |
| 66 |
(data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00") |
| 67 |
(@producers |
| 68 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 69 |
) |
| 70 |
) |
| 71 |
(type (;0;) (resource (rep i32))) |
| 72 |
(type (;1;) (resource (rep i32))) |
| 73 |
(core instance (;0;) (instantiate 0)) |
| 74 |
(alias core export 0 "memory" (core memory (;0;))) |
| 75 |
(core instance (;1;) (instantiate 1)) |
| 76 |
(core instance (;2;) (instantiate 2)) |
| 77 |
(core instance (;3;) (instantiate 3 |
| 78 |
(with "env" (instance 0)) |
| 79 |
) |
| 80 |
) |
| 81 |
(type (;2;) (own 0)) |
| 82 |
(type (;3;) (func (param "v" u32) (result 2))) |
| 83 |
(alias core export 1 "test:test/foo#[constructor]x" (core func (;0;))) |
| 84 |
(func (;0;) (type 3) (canon lift (core func 0))) |
| 85 |
(type (;4;) (borrow 0)) |
| 86 |
(type (;5;) (func (param "self" 4) (result u32))) |
| 87 |
(alias core export 1 "test:test/foo#[method]x.get" (core func (;1;))) |
| 88 |
(func (;1;) (type 5) (canon lift (core func 1))) |
| 89 |
(component (;0;) |
| 90 |
(import "import-type-x" (type (;0;) (sub resource))) |
| 91 |
(type (;1;) (own 0)) |
| 92 |
(type (;2;) (func (param "v" u32) (result 1))) |
| 93 |
(import "import-constructor-x" (func (;0;) (type 2))) |
| 94 |
(type (;3;) (borrow 0)) |
| 95 |
(type (;4;) (func (param "self" 3) (result u32))) |
| 96 |
(import "import-method-x-get" (func (;1;) (type 4))) |
| 97 |
(export (;5;) "x" (type 0)) |
| 98 |
(type (;6;) (own 5)) |
| 99 |
(type (;7;) (func (param "v" u32) (result 6))) |
| 100 |
(export (;2;) "[constructor]x" (func 0) (func (type 7))) |
| 101 |
(type (;8;) (borrow 5)) |
| 102 |
(type (;9;) (func (param "self" 8) (result u32))) |
| 103 |
(export (;3;) "[method]x.get" (func 1) (func (type 9))) |
| 104 |
) |
| 105 |
(instance (;0;) (instantiate 0 |
| 106 |
(with "import-constructor-x" (func 0)) |
| 107 |
(with "import-method-x-get" (func 1)) |
| 108 |
(with "import-type-x" (type 0)) |
| 109 |
) |
| 110 |
) |
| 111 |
(export (;1;) "test:test/foo" (instance 0)) |
| 112 |
(type (;6;) (own 1)) |
| 113 |
(type (;7;) (func (param "v" u32) (result 6))) |
| 114 |
(alias core export 2 "test:test/bar#[constructor]x" (core func (;2;))) |
| 115 |
(func (;2;) (type 7) (canon lift (core func 2))) |
| 116 |
(type (;8;) (borrow 1)) |
| 117 |
(type (;9;) (func (param "self" 8) (result u32))) |
| 118 |
(alias core export 2 "test:test/bar#[method]x.get" (core func (;3;))) |
| 119 |
(func (;3;) (type 9) (canon lift (core func 3))) |
| 120 |
(component (;1;) |
| 121 |
(import "import-type-x" (type (;0;) (sub resource))) |
| 122 |
(type (;1;) (own 0)) |
| 123 |
(type (;2;) (func (param "v" u32) (result 1))) |
| 124 |
(import "import-constructor-x" (func (;0;) (type 2))) |
| 125 |
(type (;3;) (borrow 0)) |
| 126 |
(type (;4;) (func (param "self" 3) (result u32))) |
| 127 |
(import "import-method-x-get" (func (;1;) (type 4))) |
| 128 |
(export (;5;) "x" (type 0)) |
| 129 |
(type (;6;) (own 5)) |
| 130 |
(type (;7;) (func (param "v" u32) (result 6))) |
| 131 |
(export (;2;) "[constructor]x" (func 0) (func (type 7))) |
| 132 |
(type (;8;) (borrow 5)) |
| 133 |
(type (;9;) (func (param "self" 8) (result u32))) |
| 134 |
(export (;3;) "[method]x.get" (func 1) (func (type 9))) |
| 135 |
) |
| 136 |
(instance (;2;) (instantiate 1 |
| 137 |
(with "import-constructor-x" (func 2)) |
| 138 |
(with "import-method-x-get" (func 3)) |
| 139 |
(with "import-type-x" (type 1)) |
| 140 |
) |
| 141 |
) |
| 142 |
(export (;3;) "test:test/bar" (instance 2)) |
| 143 |
(@producers |
| 144 |
(processed-by "wit-component" "$CARGO_PKG_VERSION") |
| 145 |
) |
| 146 |
) |