|
111 | 111 | (canon waitable.join (core func $waitable.join)) |
112 | 112 | (canon waitable-set.new (core func $waitable-set.new)) |
113 | 113 | (canon waitable-set.drop (core func $waitable-set.drop)) |
114 | | - (canon stream.read $ST async (memory $memory "mem") (core func $stream.read)) |
| 114 | + (canon stream.read $ST async (memory (core memory $memory "mem")) (core func $stream.read)) |
115 | 115 | (canon stream.drop-readable $ST (core func $stream.drop-readable)) |
116 | | - (canon future.read $FT async (memory $memory "mem") (core func $future.read)) |
| 116 | + (canon future.read $FT async (memory (core memory $memory "mem")) (core func $future.read)) |
117 | 117 | (canon future.drop-readable $FT (core func $future.drop-readable)) |
118 | 118 | (core instance $mm (instantiate $MM (with "" (instance |
119 | 119 | (export "mem" (memory $memory "mem")) |
|
131 | 131 | (export "future.read" (func $future.read)) |
132 | 132 | (export "future.drop-readable" (func $future.drop-readable)))))) |
133 | 133 | (func (export "sink") async (param "in" (stream u8)) (canon lift |
134 | | - (core func $mm "sink") async (memory $memory "mem") (callback (func $mm "sink_cb")))) |
| 134 | + (core func $mm "sink") async (memory (core memory $memory "mem")) (callback (core func $mm "sink_cb")))) |
135 | 135 | (func (export "sink-future") async (param "in" (future u8)) (canon lift |
136 | | - (core func $mm "sink-future") async (memory $memory "mem") (callback (func $mm "sink-future_cb")))) |
| 136 | + (core func $mm "sink-future") async (memory (core memory $memory "mem")) (callback (core func $mm "sink-future_cb")))) |
137 | 137 | (func (export "block-empty") async (canon lift |
138 | | - (core func $mm "block-empty") async (memory $memory "mem") (callback (func $mm "block-empty_cb")))) |
| 138 | + (core func $mm "block-empty") async (memory (core memory $memory "mem")) (callback (core func $mm "block-empty_cb")))) |
139 | 139 | (func (export "block-future") async (param "in" (future u8)) (canon lift |
140 | | - (core func $mm "block-future") async (memory $memory "mem") (callback (func $mm "block-future_cb")))) |
| 140 | + (core func $mm "block-future") async (memory (core memory $memory "mem")) (callback (core func $mm "block-future_cb")))) |
141 | 141 | (func (export "bp-inc") (canon lift (core func $mm "bp-inc"))) |
142 | 142 | (func (export "bp-dec") (canon lift (core func $mm "bp-dec"))) |
143 | 143 | ) |
|
342 | 342 | (type $ST (stream u8)) |
343 | 343 | (type $FT (future u8)) |
344 | 344 | (canon stream.new $ST (core func $stream.new)) |
345 | | - (canon stream.read $ST async (memory $memory "mem") (core func $stream.read)) |
346 | | - (canon stream.write $ST async (memory $memory "mem") (core func $stream.write)) |
| 345 | + (canon stream.read $ST async (memory (core memory $memory "mem")) (core func $stream.read)) |
| 346 | + (canon stream.write $ST async (memory (core memory $memory "mem")) (core func $stream.write)) |
347 | 347 | (canon stream.cancel-read $ST async (core func $stream.cancel-read)) |
348 | 348 | (canon stream.cancel-write $ST async (core func $stream.cancel-write)) |
349 | 349 | (canon stream.drop-readable $ST (core func $stream.drop-readable)) |
350 | 350 | (canon stream.drop-writable $ST (core func $stream.drop-writable)) |
351 | 351 | (canon future.new $FT (core func $future.new)) |
352 | | - (canon future.read $FT async (memory $memory "mem") (core func $future.read)) |
353 | | - (canon future.write $FT async (memory $memory "mem") (core func $future.write)) |
| 352 | + (canon future.read $FT async (memory (core memory $memory "mem")) (core func $future.read)) |
| 353 | + (canon future.write $FT async (memory (core memory $memory "mem")) (core func $future.write)) |
354 | 354 | (canon future.cancel-read $FT async (core func $future.cancel-read)) |
355 | 355 | (canon future.cancel-write $FT async (core func $future.cancel-write)) |
356 | 356 | (canon future.drop-readable $FT (core func $future.drop-readable)) |
357 | 357 | (canon future.drop-writable $FT (core func $future.drop-writable)) |
358 | 358 | (canon task.return (core func $task.return)) |
359 | 359 | (canon waitable.join (core func $waitable.join)) |
360 | 360 | (canon waitable-set.new (core func $waitable-set.new)) |
361 | | - (canon waitable-set.poll (memory $memory "mem") (core func $waitable-set.poll)) |
362 | | - (canon waitable-set.wait (memory $memory "mem") (core func $waitable-set.wait)) |
| 361 | + (canon waitable-set.poll (memory (core memory $memory "mem")) (core func $waitable-set.poll)) |
| 362 | + (canon waitable-set.wait (memory (core memory $memory "mem")) (core func $waitable-set.wait)) |
363 | 363 | (canon waitable-set.drop (core func $waitable-set.drop)) |
364 | 364 | (canon subtask.cancel async (core func $subtask.cancel)) |
365 | 365 | (canon subtask.drop (core func $subtask.drop)) |
366 | | - (canon lower (func $sink) async (memory $memory "mem") (core func $sink')) |
367 | | - (canon lower (func $sink-future) async (memory $memory "mem") (core func $sink-future')) |
368 | | - (canon lower (func $block-empty) async (memory $memory "mem") (core func $block-empty')) |
369 | | - (canon lower (func $block-future) async (memory $memory "mem") (core func $block-future')) |
| 366 | + (canon lower (func $sink) async (memory (core memory $memory "mem")) (core func $sink')) |
| 367 | + (canon lower (func $sink-future) async (memory (core memory $memory "mem")) (core func $sink-future')) |
| 368 | + (canon lower (func $block-empty) async (memory (core memory $memory "mem")) (core func $block-empty')) |
| 369 | + (canon lower (func $block-future) async (memory (core memory $memory "mem")) (core func $block-future')) |
370 | 370 | (canon lower (func $bp-inc) (core func $bp-inc')) |
371 | 371 | (canon lower (func $bp-dec) (core func $bp-dec')) |
372 | 372 | (core instance $tm (instantiate $TM (with "" (instance |
|
401 | 401 | (export "waitable-set.drop" (func $waitable-set.drop)))))) |
402 | 402 | (func (export "poll-readable") (param "slot" u8) (param "event" u8) (param "payload" u32) (canon lift (core func $tm "poll-readable"))) |
403 | 403 | (func (export "await-readable") async (param "slot" u8) (param "event" u8) (param "payload" u32) (canon lift |
404 | | - (core func $tm "await-readable") async (memory $memory "mem"))) |
| 404 | + (core func $tm "await-readable") async (memory (core memory $memory "mem")))) |
405 | 405 | (func (export "call-import") (param "slot" u8) (result s32) (canon lift (core func $tm "call-import"))) |
406 | 406 | (func (export "call-import-future") (param "slot" u8) (result s32) (canon lift (core func $tm "call-import-future"))) |
407 | 407 | (func (export "call-block-empty") (param "sub" u8) (result s32) (canon lift (core func $tm "call-block-empty"))) |
|
411 | 411 | (func (export "mock-bp-inc") (canon lift (core func $tm "mock-bp-inc"))) |
412 | 412 | (func (export "mock-bp-dec") (canon lift (core func $tm "mock-bp-dec"))) |
413 | 413 | (func (export "await-subtask") async (param "sub" u8) (param "state" u8) (canon lift |
414 | | - (core func $tm "await-subtask") async (memory $memory "mem"))) |
| 414 | + (core func $tm "await-subtask") async (memory (core memory $memory "mem")))) |
415 | 415 | (func (export "stream-new") (param "slot" u8) (canon lift (core func $tm "stream-new"))) |
416 | 416 | (func (export "testee-write") (param "handle" u8) (param "bytes" u32) (result s32) (canon lift (core func $tm "testee-write"))) |
417 | 417 | (func (export "testee-read") (param "handle" u8) (param "bytes" u32) (result s32) (canon lift (core func $tm "testee-read"))) |
|
428 | 428 | (func (export "drop-writable") (param "slot" u8) (canon lift (core func $tm "drop-writable"))) |
429 | 429 | (func (export "poll") (param "slot" u8) (param "event" u8) (param "payload" u32) (canon lift (core func $tm "poll"))) |
430 | 430 | (func (export "await") async (param "slot" u8) (param "event" u8) (param "payload" u32) (canon lift |
431 | | - (core func $tm "await") async (memory $memory "mem"))) |
| 431 | + (core func $tm "await") async (memory (core memory $memory "mem")))) |
432 | 432 | ) |
433 | 433 |
|
434 | 434 | (component $Driver |
|
770 | 770 | (export "mock-bp-inc" (func $mock-bp-inc')) |
771 | 771 | (export "mock-bp-dec" (func $mock-bp-dec')))))) |
772 | 772 | (func (export "run") (param "prog" (list $command-e)) |
773 | | - (canon lift (core func $dm "run") (memory $dm "mem") (realloc (func $dm "realloc"))))) |
| 773 | + (canon lift (core func $dm "run") (memory (core memory $dm "mem")) (realloc (core func $dm "realloc"))))) |
774 | 774 |
|
775 | 775 | (instance $mock (instantiate $Mock)) |
776 | 776 | (instance $testee (instantiate $Testee |
|
0 commit comments