| /wasmtime-44.0.1/tests/misc_testsuite/winch/ |
| H A D | ref-types-basic.wast | 6 (func $returns-42 (type $i32-func) (i32.const 42)) 7 (func $returns-7 (type $i32-func) (i32.const 7)) 11 (elem (table $t) (i32.const 0) func $returns-42 $returns-7) 20 (ref.is_null (ref.func $returns-42)) 36 (select (result funcref) (ref.func $returns-42) (ref.func $returns-7) (local.get $c)) 39 (select (result funcref) (ref.null func) (ref.func $returns-7) (local.get $c)) 50 (table.set $t (local.get $i) (ref.func $returns-42)) 55 (table.set $t (i32.const 5) (ref.func $returns-42))
|
| /wasmtime-44.0.1/cranelift/isle/isle/isle_examples/link/ |
| H A D | multi_constructor_main.rs | 42 fn etor_C(&mut self, value: u32, returns: &mut It) { in etor_C() 43 returns.i = 0; in etor_C() 44 returns.limit = value; in etor_C() 48 fn ctor_B(&mut self, value: u32, returns: &mut Self::ctor_B_returns) { in ctor_B() 49 returns.extend((0..value).rev()); in ctor_B()
|
| H A D | multi_extractor_main.rs | 53 fn e1_etor(&mut self, arg0: u32, returns: &mut It) { in e1_etor() 54 returns.i = 0; in e1_etor() 55 returns.arg = arg0; in e1_etor()
|
| /wasmtime-44.0.1/cranelift/codegen/src/ir/ |
| H A D | extfunc.rs | 31 pub returns: Vec<AbiParam>, field 42 returns: Vec::new(), in new() 50 self.returns.clear(); in clear() 61 self.returns.iter().rposition(|arg| arg.purpose == purpose) in special_return_index() 85 self.returns in num_special_returns() 99 self.returns in is_multi_return() 125 if !self.returns.is_empty() { in fmt() 127 write_list(f, &self.returns)?; in fmt() 413 sig.returns.push(AbiParam::new(F32)); in signatures() 417 sig.returns.push(AbiParam::new(I8)); in signatures()
|
| H A D | libcall.rs | 135 sig.returns.push(AbiParam::new(F32)); in signature() 139 sig.returns.push(AbiParam::new(F64)); in signature() 147 sig.returns.push(AbiParam::new(ty)); in signature() 155 sig.returns.push(AbiParam::new(pointer_type)); in signature() 162 sig.returns.push(AbiParam::new(pointer_type)); in signature() 169 sig.returns.push(AbiParam::new(I32)) in signature() 178 sig.returns.push(AbiParam::new(I8X16)); in signature()
|
| /wasmtime-44.0.1/crates/wasi-keyvalue/wit/deps/keyvalue/ |
| H A D | store.wit | 75 /// store, it returns `Ok(value)`. If the key does not exist in the 76 /// store, it returns `Ok(none)`. 78 /// If any other error occurs, it returns an `Err(error)`. 86 /// If any other error occurs, it returns an `Err(error)`. 93 /// If any other error occurs, it returns an `Err(error)`. 98 /// If the key exists in the store, it returns `Ok(true)`. If the key does 99 /// not exist in the store, it returns `Ok(false)`. 101 /// If any other error occurs, it returns an `Err(error)`. 105 /// returns a list of keys. Please note that for most KeyValue implementations, this is a 115 /// If the store is empty, it returns an empty list. [all …]
|
| H A D | batch.wit | 23 /// Get the key-value pairs associated with the keys in the store. It returns a list of 26 /// If any of the keys do not exist in the store, it returns a `none` value for that pair in the 31 /// If any other error occurs, it returns an `Err(error)`. 41 /// If any other error occurs, it returns an `Err(error)`. When an error occurs, it does not 56 /// If any other error occurs, it returns an `Err(error)`. When an error occurs, it does not
|
| H A D | atomic.wit | 15 /// returns the new value. 20 /// If any other error occurs, it returns an `Err(error)`.
|
| /wasmtime-44.0.1/cranelift/fuzzgen/src/ |
| H A D | print.rs | 95 let returns = &self.main().signature.returns; in fmt() localVariable 96 let placeholder_output = returns in fmt() 104 let test_condition = match returns.len() { in fmt()
|
| /wasmtime-44.0.1/tests/misc_testsuite/function-references/ |
| H A D | table_set.wast | 8 (elem (table $t3) (i32.const 1) func $returns-five) 9 (func $returns-five (result i32) (i32.const 5)) 40 (func (export "set-returns-five") (param $i i32) 41 (call $f5 (local.get $i) (ref.func $returns-five)) 59 (invoke "set-returns-five" (i32.const 0)) 64 (assert_trap (invoke "set-returns-five" (i32.const 2)) "out of bounds table access") 67 (assert_trap (invoke "set-returns-five" (i32.const -1)) "out of bounds table access")
|
| H A D | table_get.wast | 7 (table $t4 (ref null $res-i32) (elem (ref.func $returns-five))) 8 (elem (table $t3) (i32.const 1) func $returns-five) 9 (func $returns-five (result i32) (i32.const 5))
|
| /wasmtime-44.0.1/cranelift/codegen/src/ |
| H A D | opts.rs | 195 fn inst_data_value_etor(&mut self, eclass: Value, returns: &mut InstDataEtorIter<'a, 'b, 'c>) { in inst_data_value_etor() 196 *returns = InstDataEtorIter::new(eclass); in inst_data_value_etor() 204 returns: &mut InstDataEtorIter<'a, 'b, 'c>, in inst_data_value_tupled_etor() 207 self.inst_data_value_etor(eclass, returns); in inst_data_value_tupled_etor() 280 fn sextend_maybe_etor(&mut self, value: Value, returns: &mut Self::sextend_maybe_etor_returns) { in sextend_maybe_etor() 281 *returns = MaybeUnaryEtorIter::new(Opcode::Sextend, value); in sextend_maybe_etor() 285 fn uextend_maybe_etor(&mut self, value: Value, returns: &mut Self::uextend_maybe_etor_returns) { in uextend_maybe_etor() 286 *returns = MaybeUnaryEtorIter::new(Opcode::Uextend, value); in uextend_maybe_etor()
|
| /wasmtime-44.0.1/tests/misc_testsuite/threads/ |
| H A D | atomics_notify.wast | 11 ;; notify returns 0 on unshared memories 19 ;; notify returns 0 with 0 waiters
|
| /wasmtime-44.0.1/cranelift/object/tests/ |
| H A D | basic.rs | 21 returns: vec![], in error_on_incompatible_sig_in_declare_function() 37 returns: vec![], in define_simple_function() 100 returns: vec![AbiParam::new(types::I32)], in switch_error() 178 returns: vec![], in libcall_function() 200 signature.returns.push(AbiParam::new(int)); in libcall_function() 232 returns: vec![], in reject_nul_byte_symbol_for_func() 282 returns: vec![AbiParam::new(types::I64)], in aarch64_colocated_data_symbol_reloc()
|
| /wasmtime-44.0.1/cranelift/jit/tests/ |
| H A D | basic.rs | 28 returns: vec![], in error_on_incompatible_sig_in_declare_function() 44 returns: vec![], in define_simple_function() 82 returns: vec![AbiParam::new(types::I32)], in switch_error() 158 returns: vec![], in libcall_function() 181 signature.returns.push(AbiParam::new(int)); in libcall_function()
|
| /wasmtime-44.0.1/winch/codegen/src/abi/ |
| H A D | mod.rs | 121 returns: &[WasmValType], in sig_from() 126 fn abi_results(returns: &[WasmValType], call_conv: &CallingConvention) -> Result<ABIResults>; in abi_results() 311 returns: &[WasmValType], in from() 318 if returns.len() == 0 { in from() 344 returns in from() 349 returns in from()
|
| /wasmtime-44.0.1/crates/wasi-tls/src/p3/wit/deps/tls/ |
| H A D | client.wit | 9 /// returns an encrypted data stream, ready to be sent out over the network. 15 /// and returns a decrypted application data stream.
|
| /wasmtime-44.0.1/crates/cranelift/src/translate/ |
| H A D | func_translator.rs | 279 let mut returns = core::mem::take(&mut environ.stacks.stack); in parse_function_body() localVariable 280 environ.handle_before_return(&returns, builder); in parse_function_body() 281 bitcast_wasm_returns(&mut returns, builder); in parse_function_body() 282 builder.ins().return_(&returns); in parse_function_body()
|
| /wasmtime-44.0.1/cranelift/filetests/src/ |
| H A D | function_runner.rs | 501 let mut values_vec = vec![0; max(signature.params.len(), signature.returns.len())]; in make_arguments() 527 assert!(self.0.len() >= signature.returns.len()); in collect_returns() 528 let mut returns = Vec::with_capacity(signature.returns.len()); in collect_returns() localVariable 531 for (slot, param) in self.0.iter().zip(&signature.returns) { in collect_returns() 533 returns.push(value); in collect_returns() 536 returns in collect_returns() 598 for ((i, value), param) in results.iter().enumerate().zip(&signature.returns) { in make_trampoline()
|
| /wasmtime-44.0.1/cranelift/frontend/src/ |
| H A D | frontend.rs | 1221 sig.returns.push(AbiParam::new(I32)); in sample_function() 1350 sig.returns.push(AbiParam::new(I32)); in memcpy() 1397 sig.returns.push(AbiParam::new(I32)); in small_memcpy() 1450 sig.returns.push(AbiParam::new(I32)); in not_so_small_memcpy() 1505 sig.returns.push(AbiParam::new(I32)); in small_memset() 1544 sig.returns.push(AbiParam::new(I32)); in not_so_small_memset() 1602 sig.returns.push(AbiParam::new(I32)); in memcmp() 1812 sig.returns.push(AbiParam::new(I8)); in small_memcmp_helper() 1843 sig.returns.push(AbiParam::new(I8X16)); in undef_vector_vars() 1844 sig.returns.push(AbiParam::new(I8X16)); in undef_vector_vars() [all …]
|
| /wasmtime-44.0.1/cranelift/jit/examples/ |
| H A D | jit-minimal.rs | 25 sig_a.returns.push(AbiParam::new(types::I32)); in main() 28 sig_b.returns.push(AbiParam::new(types::I32)); in main()
|
| /wasmtime-44.0.1/crates/component-macro/tests/codegen/ |
| H A D | char.wit | 6 /// A function that returns a character
|
| /wasmtime-44.0.1/crates/cranelift/src/ |
| H A D | lib.rs | 167 sig.returns.push(ir::AbiParam::new(ir::types::I8)); in array_call_signature() 206 sig.returns.extend(wasm_func_ty.results().iter().map(&cvt)); in wasm_call_signature() 396 returns: vec![ $( self.$result() )? ], in wasm_signature() 417 for arg in sig.params.iter_mut().chain(sig.returns.iter_mut()) { in host_signature()
|
| /wasmtime-44.0.1/winch/codegen/src/isa/aarch64/ |
| H A D | abi.rs | 78 returns: &[WasmValType], in sig_from() 87 let results = Self::abi_results(returns, call_conv)?; in sig_from() 102 fn abi_results(returns: &[WasmValType], call_conv: &CallingConvention) -> Result<ABIResults> { in abi_results() 111 ABIResults::from(returns, call_conv, |ty, stack_offset| { in abi_results()
|
| /wasmtime-44.0.1/crates/wasi-http/src/p3/wit/deps/ |
| H A D | filesystem.wit | 317 /// This function returns a `stream` which provides the data received from the 338 /// This function returns once either full contents of the stream are 348 /// This function returns once either full contents of the stream are 369 /// Note: This returns similar flags to `fcntl(fd, F_GETFL)` in POSIX. 371 /// Note: This returns the value that was the `fs_flags` value returned 377 /// Note: This returns the same value as the `type` field of the `fd-stat` 380 /// Note: This returns similar flags to the `st_mode & S_IFMT` value provided 383 /// Note: This returns the value that was the `fs_filetype` value returned 406 /// This always returns a new stream which starts at the beginning of the 410 /// This function returns a future, which will resolve to an error code if [all …]
|