Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 270) sorted by relevance

1234567891011

/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dgc.hh66 wasmtime_eqref_t out; in from_i31() local
68 return EqRef(out); in from_i31()
108 return AnyRef(out); in to_anyref()
258 wasmtime_val_t out; in field() local
279 return AnyRef(out); in to_anyref()
286 return EqRef(out); in to_eqref()
402 uint32_t out; in len() local
411 wasmtime_val_t out; in get() local
431 return AnyRef(out); in to_anyref()
438 return EqRef(out); in to_eqref()
[all …]
H A Dgc.h63 wasmtime_eqref_t *out);
80 wasmtime_anyref_t *out);
92 wasmtime_eqref_t *out);
274 wasmtime_structref_t *out);
286 wasmtime_anyref_t *out);
293 wasmtime_eqref_t *out);
308 wasmtime_val_t *out);
455 wasmtime_arrayref_t *out);
467 wasmtime_anyref_t *out);
474 wasmtime_eqref_t *out);
[all …]
H A Dval.h82 wasmtime_anyref_t *out);
95 wasmtime_eqref_t *out);
121 wasmtime_anyref_t *out);
146 wasmtime_anyref_t *out);
257 wasmtime_externref_t *out);
278 wasmtime_externref_t *out);
302 wasmtime_externref_t *out);
362 wasmtime_exnref_t *out);
/wasmtime-44.0.1/cranelift/isle/isle/
H A Dbuild.rs11 let mut out = String::new(); in main() localVariable
13 emit_tests(&mut out, "isle_examples/pass", "run_pass"); in main()
14 emit_tests(&mut out, "isle_examples/fail", "run_fail"); in main()
15 emit_tests(&mut out, "isle_examples/link", "run_link"); in main()
16 emit_tests(&mut out, "isle_examples/run", "run_run"); in main()
18 emit_tests(&mut out, "isle_examples/pass", "run_print"); in main()
19 emit_tests(&mut out, "isle_examples/link", "run_print"); in main()
20 emit_tests(&mut out, "isle_examples/run", "run_print"); in main()
23 std::fs::write(output, out).unwrap(); in main()
34 writeln!(out, "#[test]").unwrap(); in emit_tests()
[all …]
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp1_poll_oneoff_files.rs11 let mut out: Vec<wasip1::Event> = Vec::new(); in poll_oneoff_impl() localVariable
12 out.resize_with(r#in.len(), || { in poll_oneoff_impl()
16 out.truncate(size); in poll_oneoff_impl()
17 Ok(out) in poll_oneoff_impl()
34 out.as_mut_ptr(), in poll_oneoff_with_retry()
37 out.truncate(size); in poll_oneoff_with_retry()
40 events.extend_from_slice(&out); in poll_oneoff_with_retry()
78 let event = &out[0]; in test_timeout()
116 let event = &out[0]; in test_sleep()
166 (&out[0], &out[1]) in test_fd_readwrite()
[all …]
H A Dp1_poll_oneoff_stdio.rs14 let mut out: Vec<wasip1::Event> = Vec::new(); in poll_oneoff_impl() localVariable
15 out.resize_with(r#in.len(), || { in poll_oneoff_impl()
18 let size = wasip1::poll_oneoff(r#in.as_ptr(), out.as_mut_ptr(), r#in.len())?; in poll_oneoff_impl()
19 out.truncate(size); in poll_oneoff_impl()
20 Ok(out) in poll_oneoff_impl()
52 let out = poll_oneoff_impl(&r#in).unwrap(); in test_stdin_read() localVariable
55 assert!(out.len() >= 1, "stdin read should return at least 1 event"); in test_stdin_read()
56 for event in out { in test_stdin_read()
116 let out = poll_oneoff_impl(&subs).unwrap(); in test_stdout_stderr_write() localVariable
117 for event in out { in test_stdout_stderr_write()
H A Dp2_api_proxy.rs24 let _ = body.write().and_then(|out| { in handle()
25 let _ = out.blocking_write_and_flush(b"hello, world!"); in handle()
26 drop(out); in handle()
74 let out = body.write().expect("outgoing stream"); in handle() localVariable
75 out.blocking_write_and_flush(b"hello, world!") in handle()
78 drop(out); in handle()
89 let _ = body.write().and_then(|out| { in response_for()
90 let _ = out.blocking_write_and_flush(format!("{r:?}").as_bytes()); in response_for()
91 drop(out); in response_for()
H A Dp2_api_reactor.rs39 let mut out = s.as_bytes(); in write_strings_to() localVariable
40 while !out.is_empty() { in write_strings_to()
47 let len = (n as usize).min(out.len()); in write_strings_to()
48 match o.write(&out[..len]) { in write_strings_to()
49 Ok(_) => out = &out[len..], in write_strings_to()
H A Dpiped_polling.rs15 let out = stdout::get_stdout(); in producer() localVariable
16 let out_pollable = out.subscribe(); in producer()
21 let available = out.check_write().unwrap() as usize; in producer()
30 out.write(message.as_bytes()).unwrap() in producer()
/wasmtime-44.0.1/cranelift/isle/isle/src/
H A Dcodegen.rs81 out: &'a mut W, field
103 out: &'a mut W, in new()
112 out, in new()
133 writeln!(self.out, " {{") in begin_block()
142 writeln!(self.out) in end_block()
478 writeln!(ctx.out)?; in generate_internal_term_constructors()
480 ctx.out, in generate_internal_term_constructors()
487 ctx.out, in generate_internal_term_constructors()
509 ctx.out, in generate_internal_term_constructors()
914 ctx.out, in emit_expr()
[all …]
/wasmtime-44.0.1/crates/wit-bindgen/src/
H A Drust.rs113 return out; in tyid()
166 out in tyid()
209 out.push_str(name); in type_name_in_interface()
210 out in type_name_in_interface()
245 out.push_str(">"); in stream()
246 out in stream()
256 out.push_str(">"); in future()
257 out in future()
294 out in handle()
414 out.push_str(")"); in typedfunc_sig()
[all …]
/wasmtime-44.0.1/crates/wasi/src/p3/filesystem/
H A Dmod.rs150 out |= Self::CREATE; in from()
153 out |= Self::DIRECTORY; in from()
159 out |= Self::TRUNCATE; in from()
161 out in from()
171 out in from()
179 out |= Self::READ; in from()
182 out |= Self::WRITE; in from()
196 out in from()
204 out |= Self::READ; in from()
207 out |= Self::WRITE; in from()
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/
H A Dmemory-combos.wast92 (assert_trap (invoke "load_m1" (i32.const -1)) "out of bounds memory access")
100 (assert_trap (invoke "load_m1" (i32.const -1)) "out of bounds memory access")
109 (assert_trap (invoke "load_m2" (i32.const -1)) "out of bounds memory access")
117 (assert_trap (invoke "load_m2" (i32.const -1)) "out of bounds memory access")
124 (assert_trap (invoke "load_m3" (i32.const 1)) "out of bounds memory access")
126 (assert_trap (invoke "load_m3" (i32.const -1)) "out of bounds memory access")
134 (assert_trap (invoke "load_m3" (i32.const -1)) "out of bounds memory access")
141 (assert_trap (invoke "load_m4" (i32.const 1)) "out of bounds memory access")
143 (assert_trap (invoke "load_m4" (i32.const -1)) "out of bounds memory access")
151 (assert_trap (invoke "load_m4" (i32.const -1)) "out of bounds memory access")
[all …]
H A Dmisc_traps.wast10 (assert_trap (invoke "load_oob") "out of bounds memory access")
11 (assert_trap (invoke "load_oob") "out of bounds memory access")
22 (assert_trap (invoke "store_oob") "out of bounds memory access")
23 (assert_trap (invoke "store_oob") "out of bounds memory access")
34 (assert_trap (invoke "load_oob_0") "out of bounds memory access")
35 (assert_trap (invoke "load_oob_0") "out of bounds memory access")
46 (assert_trap (invoke "store_oob_0") "out of bounds memory access")
47 (assert_trap (invoke "store_oob_0") "out of bounds memory access")
H A Dcall_indirect.wast6 (type $out-i32 (func (result i32)))
7 (type $out-i64 (func (result i64)))
8 (type $out-f32 (func (result f32)))
9 (type $out-f64 (func (result f64)))
56 (call_indirect (type $out-i32) (i32.const 0))
59 (call_indirect (type $out-i64) (i32.const 1))
62 (call_indirect (type $out-f32) (i32.const 2))
104 (type $out-i32 (func (result i32)))
105 (type $out-i64 (func (result i64)))
106 (type $out-f32 (func (result f32)))
[all …]
/wasmtime-44.0.1/crates/c-api/src/
H A Dmodule.rs63 out.set_buffer(exports); in fill_exports()
77 out.set_buffer(imports); in fill_imports()
82 fill_exports(&module.module, out); in wasm_module_exports()
87 fill_imports(&module.module, out); in wasm_module_imports()
142 out: &mut *mut wasmtime_module_t, in wasmtime_module_new()
160 out: &mut wasm_exporttype_vec_t, in wasmtime_module_exports()
162 fill_exports(&module.module, out); in wasmtime_module_exports()
168 out: &mut wasm_importtype_vec_t, in wasmtime_module_imports()
170 fill_imports(&module.module, out); in wasmtime_module_imports()
209 out: &mut *mut wasmtime_module_t, in wasmtime_module_deserialize()
[all …]
H A Dref.rs303 crate::initialize(out, anyref.into()); in wasmtime_anyref_clone()
411 crate::initialize(out, Some(e).into()); in wasmtime_externref_new()
477 crate::initialize(out, exnref.into()); in wasmtime_exnref_clone()
495 crate::initialize(out, eqref.into()); in wasmtime_eqref_clone()
513 crate::initialize(out, anyref.into()); in wasmtime_eqref_to_anyref()
685 crate::initialize(out, anyref.into()); in wasmtime_structref_to_anyref()
696 crate::initialize(out, eqref.into()); in wasmtime_structref_to_eqref()
714 crate::initialize(out, c_val); in wasmtime_structref_field()
849 crate::initialize(out, eqref.into()); in wasmtime_arrayref_to_eqref()
856 out: &mut MaybeUninit<u32>, in wasmtime_arrayref_len()
[all …]
H A Dvec.rs116 pub extern "C" fn $empty(out: &mut $name) {
117 out.size = 0;
118 out.data = ptr::null_mut();
122 pub extern "C" fn $uninit(out: &mut $name, size: usize) {
123 out.set_buffer(vec![Default::default(); size]);
128 out: &mut $name $(<$lt>)?,
133 out.set_buffer(vec);
138 out: &mut $name $(<$lt>)?,
141 out.set_buffer(src.as_slice().to_vec());
145 pub extern "C" fn $delete $(<$lt>)? (out: &mut $name $(<$lt>)?) {
[all …]
/wasmtime-44.0.1/crates/wasi/src/p2/host/filesystem/
H A Dsync.rs388 out |= Self::READ; in from()
391 out |= Self::WRITE; in from()
405 out in from()
453 out in from()
472 out |= Self::CREATE; in from()
475 out |= Self::DIRECTORY; in from()
481 out |= Self::TRUNCATE; in from()
483 out in from()
490 out |= Self::READ; in from()
493 out |= Self::WRITE; in from()
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/memory64/
H A Dbounds.wast8 "out of bounds memory access")
37 "out of bounds memory access")
40 "out of bounds memory access")
43 "out of bounds memory access")
48 "out of bounds memory access")
51 "out of bounds memory access")
57 "out of bounds memory access")
/wasmtime-44.0.1/crates/wasi-common/src/sync/
H A Dfile.rs203 out |= system_interface::fs::FdFlags::DSYNC; in to_sysif_fdflags()
209 out |= system_interface::fs::FdFlags::RSYNC; in to_sysif_fdflags()
212 out |= system_interface::fs::FdFlags::SYNC; in to_sysif_fdflags()
214 out in to_sysif_fdflags()
222 let mut out = crate::file::FdFlags::empty(); in get_fd_flags() localVariable
224 out |= crate::file::FdFlags::APPEND; in get_fd_flags()
227 out |= crate::file::FdFlags::DSYNC; in get_fd_flags()
230 out |= crate::file::FdFlags::NONBLOCK; in get_fd_flags()
233 out |= crate::file::FdFlags::RSYNC; in get_fd_flags()
236 out |= crate::file::FdFlags::SYNC; in get_fd_flags()
[all …]
/wasmtime-44.0.1/crates/wasi-tls/src/p3/util/
H A Ddeferred.rs162 let mut out = Vec::new(); in read_lifecycle() localVariable
163 deferred.read_to_end(&mut out).await.unwrap(); in read_lifecycle()
164 assert_eq!(&out, b"hello"); in read_lifecycle()
198 let mut out = Vec::new(); in write_lifecycle() localVariable
199 pipe_reader.read_to_end(&mut out).await.unwrap(); in write_lifecycle()
200 assert_eq!(&out, b"world"); in write_lifecycle()
257 let mut out = Vec::new(); in resolve_before_poll() localVariable
258 deferred.read_to_end(&mut out).await.unwrap(); in resolve_before_poll()
259 assert_eq!(&out, b"eager"); in resolve_before_poll()
/wasmtime-44.0.1/crates/c-api/include/
H A Dwasm.h90 own wasm_##name##_vec_t* out, size_t); \
92 own wasm_##name##_vec_t* out, \
95 own wasm_##name##_vec_t* out, const wasm_##name##_vec_t*); \
114 own wasm_name_t* out, const char* s in wasm_name_new_from_string() argument
116 wasm_name_new(out, strlen(s), s); in wasm_name_new_from_string()
120 own wasm_name_t* out, const char* s in wasm_name_new_from_string_nt() argument
122 wasm_name_new(out, strlen(s) + 1, s); in wasm_name_new_from_string_nt()
711 out->kind = WASM_I32; in wasm_val_init_ptr()
712 out->of.i32 = (intptr_t)p; in wasm_val_init_ptr()
714 out->kind = WASM_I64; in wasm_val_init_ptr()
[all …]
/wasmtime-44.0.1/cranelift/filetests/filetests/egraph/
H A Dmake-icmp-parameterized-tests.sh5 out=parameterized-icmp.clif
9 cat << EOF > $out
25 cat << EOF >> $out
37 cat << EOF >> $out
73 cat << EOF >> $out
/wasmtime-44.0.1/tests/misc_testsuite/function-references/
H A Dcall_indirect.wast42 (assert_trap (invoke "t1" (i32.const 2)) "out of bounds")
45 (assert_trap (invoke "t1-wrong-type" (i32.const 2)) "out of bounds")
48 (assert_trap (invoke "t2" (i32.const 2)) "out of bounds")
51 (assert_trap (invoke "t2-wrong-type" (i32.const 2)) "out of bounds")
54 (assert_trap (invoke "t3" (i32.const 2)) "out of bounds")
57 (assert_trap (invoke "t3-wrong-type" (i32.const 2)) "out of bounds")

1234567891011