Lines Matching refs:set
32 ;; waitable-set.wait
37 (import "" "waitable-set.wait" (func $waitable-set-wait (param i32 i32) (result i32)))
39 (core func $waitable-set-wait (canon waitable-set.wait (memory $libc "memory")))
40 …tance $i (instantiate $m (with "" (instance (export "waitable-set.wait" (func $waitable-set-wait))…
43 ;; waitable-set.poll
48 (import "" "waitable-set.poll" (func $waitable-set-poll (param i32 i32) (result i32)))
50 (core func $waitable-set-poll (canon waitable-set.poll (memory $libc "memory")))
51 …tance $i (instantiate $m (with "" (instance (export "waitable-set.poll" (func $waitable-set-poll))…
86 (core func $context.set (canon context.set i32 0))
92 (import "" "context.set" (func $context.set (param i32)))
97 (call $context.set (i32.const 100))
103 ;; context.get should be what was set in `run`
110 call $context.set
117 (export "context.set" (func $context.set))
125 ;; Test calling intrinsics during `realloc` and their values should be set for
131 (core func $context.set (canon context.set i32 0))
137 (import "" "context.set" (func $context.set (param i32)))
152 call $context.set
165 (export "context.set" (func $context.set))
172 (import "" "context.set" (func $context.set (param i32)))
182 ;; context.get should be what was set in `realloc`
190 (export "context.set" (func $context.set))
259 (core func $context.set (canon context.set i32 0))
265 (import "" "context.set" (func $context.set (param i32)))
275 (call $context.set (i32.const 500))
288 (export "context.set" (func $context.set))
319 (import "" "context.set" (func $context.set (param i32)))
326 ;; set this tasks's context before calling $run, in calling $run the
328 ;; which should see our 400 value. That will then set 500 which we should
332 (call $context.set (i32.const 400))
338 (call $context.set (i32.const 400))
344 (call $context.set (i32.const 400))
356 (call $context.set (i32.const 400))
368 (export "context.set" (func $context.set))
403 (core func $context.set (canon context.set i32 0))
409 (import "" "context.set" (func $context.set (param i32)))
419 (call $context.set (i32.const 500))
432 (export "context.set" (func $context.set))
443 (import "" "context.set" (func $context.set (param i32)))
448 ;; set this tasks's context before calling $run, in calling $run the
450 ;; which should see our 400 value. That will then set 500 which we
452 (call $context.set (i32.const 400))
458 (export "context.set" (func $context.set))
488 (import "" "waitable-set.new" (func $waitable-set.new (result i32)))
513 (local.set $ret64 (call $future.new))
514 (local.set $fr (i32.wrap_i64 (local.get $ret64)))
515 (global.set $fw (i32.wrap_i64 (i64.shr_u (local.get $ret64) (i64.const 32))))
516 (local.set $ret64 (call $stream.new))
517 (local.set $sr (i32.wrap_i64 (local.get $ret64)))
518 (global.set $sw (i32.wrap_i64 (i64.shr_u (local.get $ret64) (i64.const 32))))
520 (local.set $ret (call $run-reader-future (local.get $fr) (global.get $future-retp)))
521 (global.set $future-subtask (i32.shr_u (local.get $ret) (i32.const 4)))
522 (local.set $ret (call $future.write (global.get $fw) (i32.const 40)))
526 (local.set $ret (call $run-reader-stream (local.get $sr) (global.get $stream-retp)))
527 (global.set $stream-subtask (i32.shr_u (local.get $ret) (i32.const 4)))
528 (local.set $ret (call $stream.write (global.get $sw) (i32.const 40) (i32.const 1)))
531 ;; Create a waitable set and join both subtasks to wait for both to complete
532 (global.set $ws (call $waitable-set.new))
542 ;; same waitable set, this will be called once for each completion. We track which
552 (global.set $future-completed (i32.const 1)))
557 (global.set $stream-completed (i32.const 1)))
580 (canon waitable-set.new (core func $waitable-set.new))
582 (canon context.set i32 0 (core func $context.set))
591 (export "waitable-set.new" (func $waitable-set.new))
608 (import "" "context.set" (func $context.set (param i32)))
623 call $context.set
635 (core func $context.set (canon context.set i32 0))
641 (export "context.set" (func $context.set))
653 (canon waitable-set.new (core func $waitable-set.new))
654 (canon waitable-set.wait (memory $libc "memory") (core func $waitable-set.wait))
660 (import "" "context.set" (func $context.set (param i32)))
665 ;; Set context[0] to 400, then read the future, which should call realloc and set
670 (call $context.set (i32.const 400))
671 (local.set $ret (call $future.read (local.get $fr) (i32.const 40)))
683 (call $context.set (i32.const 400))
684 (local.set $ret (call $stream.read (local.get $sr) (i32.const 40) (i32.const 1)))
697 (export "context.set" (func $context.set))