|
7 | 7 | (type (;4;) (func (param i32 i32) (result i32)))
|
8 | 8 | (type (;5;) (func (param i32 i32 i32 i32) (result i32)))
|
9 | 9 | (import "$root" "[task-backpressure]" (func (;0;) (type 0)))
|
10 |
| - (import "$root" "[task-return]foo" (func (;1;) (type 1))) |
| 10 | + (import "[export]$root" "[task-return]foo" (func (;1;) (type 1))) |
11 | 11 | (import "[export]foo:foo/bar" "[task-return]foo" (func (;2;) (type 1)))
|
12 | 12 | (import "$root" "[task-wait]" (func (;3;) (type 2)))
|
13 | 13 | (import "$root" "[task-poll]" (func (;4;) (type 2)))
|
|
87 | 87 | )
|
88 | 88 | (core instance (;0;) (instantiate 1))
|
89 | 89 | (core func (;0;) (canon task.backpressure))
|
90 |
| - (core type (;0;) (func (param i32 i32))) |
91 |
| - (core func (;1;) (canon task.return 0)) |
92 |
| - (alias core export 0 "0" (core func (;2;))) |
93 |
| - (alias core export 0 "1" (core func (;3;))) |
94 |
| - (core func (;4;) (canon task.yield)) |
95 |
| - (core func (;5;) (canon subtask.drop)) |
96 |
| - (alias core export 0 "2" (core func (;6;))) |
97 |
| - (alias core export 0 "3" (core func (;7;))) |
98 |
| - (core func (;8;) (canon error-context.drop)) |
| 90 | + (alias core export 0 "0" (core func (;1;))) |
| 91 | + (alias core export 0 "1" (core func (;2;))) |
| 92 | + (core func (;3;) (canon task.yield)) |
| 93 | + (core func (;4;) (canon subtask.drop)) |
| 94 | + (alias core export 0 "2" (core func (;5;))) |
| 95 | + (alias core export 0 "3" (core func (;6;))) |
| 96 | + (core func (;7;) (canon error-context.drop)) |
99 | 97 | (core instance (;1;)
|
100 | 98 | (export "[task-backpressure]" (func 0))
|
101 |
| - (export "[task-return]foo" (func 1)) |
102 |
| - (export "[task-wait]" (func 2)) |
103 |
| - (export "[task-poll]" (func 3)) |
104 |
| - (export "[task-yield]" (func 4)) |
105 |
| - (export "[subtask-drop]" (func 5)) |
106 |
| - (export "[error-context-new;encoding=utf8]" (func 6)) |
107 |
| - (export "[error-context-debug-message;encoding=utf8;realloc=cabi_realloc]" (func 7)) |
108 |
| - (export "[error-context-drop]" (func 8)) |
| 99 | + (export "[task-wait]" (func 1)) |
| 100 | + (export "[task-poll]" (func 2)) |
| 101 | + (export "[task-yield]" (func 3)) |
| 102 | + (export "[subtask-drop]" (func 4)) |
| 103 | + (export "[error-context-new;encoding=utf8]" (func 5)) |
| 104 | + (export "[error-context-debug-message;encoding=utf8;realloc=cabi_realloc]" (func 6)) |
| 105 | + (export "[error-context-drop]" (func 7)) |
| 106 | + ) |
| 107 | + (core type (;0;) (func (param i32 i32))) |
| 108 | + (core func (;8;) (canon task.return 0)) |
| 109 | + (core instance (;2;) |
| 110 | + (export "[task-return]foo" (func 8)) |
109 | 111 | )
|
110 | 112 | (core type (;1;) (func (param i32 i32)))
|
111 | 113 | (core func (;9;) (canon task.return 1))
|
112 |
| - (core instance (;2;) |
| 114 | + (core instance (;3;) |
113 | 115 | (export "[task-return]foo" (func 9))
|
114 | 116 | )
|
115 |
| - (core instance (;3;) (instantiate 0 |
| 117 | + (core instance (;4;) (instantiate 0 |
116 | 118 | (with "$root" (instance 1))
|
117 |
| - (with "[export]foo:foo/bar" (instance 2)) |
| 119 | + (with "[export]$root" (instance 2)) |
| 120 | + (with "[export]foo:foo/bar" (instance 3)) |
118 | 121 | )
|
119 | 122 | )
|
120 |
| - (alias core export 3 "memory" (core memory (;0;))) |
| 123 | + (alias core export 4 "memory" (core memory (;0;))) |
121 | 124 | (alias core export 0 "$imports" (core table (;0;)))
|
122 | 125 | (core func (;10;) (canon task.wait (memory 0)))
|
123 | 126 | (core func (;11;) (canon task.poll (memory 0)))
|
124 | 127 | (core func (;12;) (canon error-context.new (memory 0) string-encoding=utf8))
|
125 |
| - (alias core export 3 "cabi_realloc" (core func (;13;))) |
| 128 | + (alias core export 4 "cabi_realloc" (core func (;13;))) |
126 | 129 | (core func (;14;) (canon error-context.debug-message (memory 0) (realloc 13) string-encoding=utf8))
|
127 |
| - (core instance (;4;) |
| 130 | + (core instance (;5;) |
128 | 131 | (export "$imports" (table 0))
|
129 | 132 | (export "0" (func 10))
|
130 | 133 | (export "1" (func 11))
|
131 | 134 | (export "2" (func 12))
|
132 | 135 | (export "3" (func 14))
|
133 | 136 | )
|
134 |
| - (core instance (;5;) (instantiate 2 |
135 |
| - (with "" (instance 4)) |
| 137 | + (core instance (;6;) (instantiate 2 |
| 138 | + (with "" (instance 5)) |
136 | 139 | )
|
137 | 140 | )
|
138 | 141 | (type (;0;) (func (param "s" string) (result string)))
|
139 |
| - (alias core export 3 "[async-stackful]foo" (core func (;15;))) |
| 142 | + (alias core export 4 "[async-stackful]foo" (core func (;15;))) |
140 | 143 | (func (;0;) (type 0) (canon lift (core func 15) (memory 0) (realloc 13) string-encoding=utf8 async))
|
141 | 144 | (export (;1;) "foo" (func 0))
|
142 | 145 | (type (;1;) (func (param "s" string) (result string)))
|
143 |
| - (alias core export 3 "[async-stackful]foo:foo/bar#foo" (core func (;16;))) |
| 146 | + (alias core export 4 "[async-stackful]foo:foo/bar#foo" (core func (;16;))) |
144 | 147 | (func (;2;) (type 1) (canon lift (core func 16) (memory 0) (realloc 13) string-encoding=utf8 async))
|
145 | 148 | (component (;0;)
|
146 | 149 | (type (;0;) (func (param "s" string) (result string)))
|
|
0 commit comments