Home
last modified time | relevance | path

Searched refs:func_ty (Results 1 – 25 of 30) sorted by relevance

12

/wasmtime-44.0.1/crates/fuzzing/tests/oom/
H A Dtag.rs15 let func_ty = FuncType::try_new(&engine, [], [])?; in tag_new() localVariable
16 let tag_ty = TagType::new(func_ty); in tag_new()
31 let func_ty = FuncType::try_new(&engine, [], [])?; in tag_ty() localVariable
32 let tag_ty = TagType::new(func_ty); in tag_ty()
48 let func_ty = FuncType::try_new(&engine, [], [])?; in tag_eq() localVariable
49 let tag_ty = TagType::new(func_ty); in tag_eq()
H A Dfunc.rs134 fn func_ty() -> Result<()> { in func_ty() function
/wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/
H A Dtag.rs14 let func_ty = ty.ty().clone().into_registered_type(); in create_tag() localVariable
18 func_ty.is_canonicalized_for_runtime_usage(), in create_tag()
27 signature: EngineOrModuleTypeIndex::Engine(func_ty.index()), in create_tag()
50 &ModuleRuntimeInfo::bare_with_registered_type(module, Some(func_ty))?, in create_tag()
/wasmtime-44.0.1/tests/all/
H A Dimport_calling_export.rs21 let func_ty = FuncType::new(store.engine(), None, None); in test_import_calling_export() localVariable
22 let callback_func = Func::new(&mut store, func_ty, move |mut caller, _, _| { in test_import_calling_export()
63 let func_ty = FuncType::new(store.engine(), None, Some(ValType::I32)); in test_returns_incorrect_type() localVariable
64 let callback_func = Func::new(&mut store, func_ty, |_, _, results| { in test_returns_incorrect_type()
H A Dexnrefs.rs9 let func_ty = FuncType::new(&engine, [ValType::I32, ValType::I64], []); in tag_objects() localVariable
10 let tag_ty = TagType::new(func_ty); in tag_objects()
28 let func_ty = FuncType::new(&engine, [ValType::I32, ValType::I64], []); in exn_types() localVariable
29 let tag_ty = TagType::new(func_ty); in exn_types()
H A Dasync_functions.rs27 let func_ty = FuncType::new(store.engine(), None, None); in smoke() localVariable
28 let func = Func::new_async(&mut store, func_ty, move |_caller, _params, _results| { in smoke()
77 let func_ty = FuncType::new(store.engine(), None, None); in smoke_with_suspension() localVariable
144 let func_ty = FuncType::new(store.engine(), None, None); in recursive_call() localVariable
155 let func_ty = FuncType::new(store.engine(), None, None); in recursive_call() localVariable
200 let func_ty = FuncType::new(store.engine(), None, None); in suspend_while_suspending() localVariable
204 let func_ty = FuncType::new(store.engine(), None, None); in suspend_while_suspending() localVariable
206 Func::new(&mut store, func_ty, move |mut caller, _params, _results| { in suspend_while_suspending()
217 let func_ty = FuncType::new(store.engine(), None, None); in suspend_while_suspending() localVariable
254 let func_ty = FuncType::new(store.engine(), None, None); in cancel_during_run() localVariable
[all …]
H A Dglobals.rs373 let func_ty = in instantiate_global_with_subtype() localVariable
378 Some(&func_ty), in instantiate_global_with_subtype()
408 let func_ty = FuncType::new(&engine, [], []); in instantiate_global_with_subtype() localVariable
410 RefType::new(true, HeapType::ConcreteFunc(func_ty.clone())).into(), in instantiate_global_with_subtype()
426 let func = Func::new(&mut store, func_ty, |_caller, _args, _rets| Ok(())); in instantiate_global_with_subtype()
H A Dfuncref.rs144 let func_ty = FuncType::new(store2.engine(), None, Some(ValType::FUNCREF)); in func_new_returns_wrong_store() localVariable
145 let f2 = Func::new(&mut store2, func_ty, move |_, _, results| { in func_new_returns_wrong_store()
H A Dcall_hook.rs35 let func_ty = FuncType::new( in call_wrapped_func() localVariable
42 func_ty, in call_wrapped_func()
55 let func_ty = FuncType::new( in call_wrapped_func() localVariable
61 Func::new_unchecked(&mut store, func_ty, |caller: Caller<State>, space| { in call_wrapped_func()
H A Dfunc.rs79 let func_ty = FuncType::new( in call_wasm_to_array() localVariable
84 let import_func = Func::new(&mut store, func_ty, |_, _params, results| { in call_wasm_to_array()
143 let func_ty = FuncType::new( in call_native_to_array() localVariable
148 let func = Func::new(&mut store, func_ty, |_caller, params, results| { in call_native_to_array()
213 let func_ty = FuncType::new( in call_array_to_array() localVariable
218 let func = Func::new(&mut store, func_ty, |_caller, params, results| { in call_array_to_array()
1145 let func_ty = FuncType::new( in externref_signature_no_reference_types() localVariable
1150 Func::new(&mut store, func_ty, |_, _, _| Ok(())); in externref_signature_no_reference_types()
1247 let func_ty = FuncType::new(store.engine(), None, None); in trap_doesnt_leak() localVariable
1248 let f2 = Func::new(&mut store, func_ty, move |_, _, _| { in trap_doesnt_leak()
H A Dstructs.rs388 let func_ty = FuncType::new(store.engine(), [ref_ty.clone().into()], [ref_ty.into()]); in passing_structs_through_wasm_with_untyped_calls() localVariable
390 let func = Func::new(&mut store, func_ty, |mut caller, args, results| { in passing_structs_through_wasm_with_untyped_calls()
/wasmtime-44.0.1/crates/fuzzing/src/oracles/
H A Ddummy.rs72 let func_ty = FuncType::new(store.engine(), vec![ValType::I32], vec![ValType::I64]); in dummy_function_import() localVariable
73 let func = func_ty.default_value(&mut store).unwrap(); in dummy_function_import()
75 assert!(FuncType::eq(&actual_ty, &func_ty)); in dummy_function_import()
/wasmtime-44.0.1/crates/wizer/src/
H A Dwasmtime.rs34 Some(wasmtime::ExternType::Func(func_ty)) => { in validate_init_func()
35 if func_ty.params().len() != 0 || func_ty.results().len() != 0 { in validate_init_func()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dlinker.rs260 if let ExternType::Func(func_ty) = import_err.ty() { in define_unknown_imports_as_traps()
261 self.func_new(import.module(), import.name(), func_ty, move |_, _, _| { in define_unknown_imports_as_traps()
793 |store, func_ty, export_name, instance_pre| { in module()
796 func_ty.clone(), in module()
857 |store, func_ty, export_name, instance_pre| { in module_async()
861 func_ty.clone(), in module_async()
912 if let Some(func_ty) = export.ty().func() { in command()
915 let func = mk_func(&mut store, func_ty, export_name, instance_pre); in command()
H A Dtypes.rs1527 ExternType::Func(func_ty) => func_ty.default_value(store).map(Extern::Func), in default_value()
2797 func_ty: FuncType, field
2826 Self::_new(engine, fields, func_ty) in new()
2836 let func_ty = tag.ty(); in from_tag_type() localVariable
2840 func_ty.results().len() == 0, in from_tag_type()
2844 Self::_new(tag.ty.engine(), func_ty.params(), func_ty.clone()) in from_tag_type()
2850 func_ty: FuncType, in _new()
2869 func_ty: EngineOrModuleTypeIndex::Engine(func_ty.type_index()), in _new()
2877 func_ty, in _new()
2885 ty: self.func_ty.clone(), in tag_type()
[all …]
H A Dfunc.rs880 pub fn matches_ty(&self, store: impl AsContext, func_ty: &FuncType) -> bool { in matches_ty()
881 self._matches_ty(store.as_context().0, func_ty) in matches_ty()
884 pub(crate) fn _matches_ty(&self, store: &StoreOpaque, func_ty: &FuncType) -> bool { in _matches_ty()
886 actual_ty.matches(func_ty) in _matches_ty()
889 pub(crate) fn ensure_matches_ty(&self, store: &StoreOpaque, func_ty: &FuncType) -> Result<()> { in ensure_matches_ty()
893 if self._matches_ty(store, func_ty) { in ensure_matches_ty()
H A Dtype_registry.rs1014 let Some(func_ty) = sub_ty.as_func() else { in insert_entry_trampolines()
1018 let trampoline_ty = match func_ty.trampoline_type()? { in insert_entry_trampolines()
1026 debug_assert!(func_ty.is_trampoline_type()); in insert_entry_trampolines()
/wasmtime-44.0.1/tests/misc_testsuite/gc/
H A Darrays-of-different-types.wast6 (type $func_ty (func))
17 (type $i (array (ref $func_ty)))
/wasmtime-44.0.1/crates/c-api/tests/component/
H A Dtypes.cc139 auto func_ty = std::get<wasmtime::FuncType::Ref>(import_item_ty); in TEST() local
140 EXPECT_EQ(func_ty.params().size(), 0); in TEST()
141 EXPECT_EQ(func_ty.results().size(), 0); in TEST()
/wasmtime-44.0.1/tests/disas/component-model/
H A Denum.wat7 (type $func_ty (func (param "x" $a)))
/wasmtime-44.0.1/crates/fuzzing/src/
H A Doracles.rs809 let func_ty = FuncType::new( in gc_ops() localVariable
814 let func = Func::new(&mut store, func_ty, { in gc_ops()
889 let func_ty = FuncType::new( in gc_ops() localVariable
894 let func = Func::new(&mut store, func_ty, { in gc_ops()
924 let func_ty = FuncType::new( in gc_ops() localVariable
930 let func = Func::new(&mut store, func_ty, { in gc_ops()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/func/
H A Dtyped.rs640 func_ty: &FuncType, in store()
670 func_ty: &FuncType, in store()
673 <(T,) as WasmParams>::store((self,), store, func_ty, dst) in store()
/wasmtime-44.0.1/crates/environ/src/component/
H A Dtranslate.rs1659 let ComponentEntityType::Func(func_ty) = ty else { in check_unsafe_intrinsics_import()
1665 let func_ty = &types[*func_ty]; in check_unsafe_intrinsics_import() localVariable
1716 func_ty.params.iter().map(|(_name, ty)| ty), in check_unsafe_intrinsics_import()
1723 func_ty.result.iter(), in check_unsafe_intrinsics_import()
/wasmtime-44.0.1/crates/environ/src/
H A Dtypes.rs937 pub func_ty: EngineOrModuleTypeIndex, field
950 func_ty: self.func_ty, in try_clone()
958 write!(f, "(exn ({})", self.func_ty)?; in fmt()
971 func(self.func_ty)?; in trace()
982 func(&mut self.func_ty)?; in trace_mut()
/wasmtime-44.0.1/crates/debugger/src/host/
H A Dopaque.rs445 let func_ty = FuncType::new(&engine, params, []); in tag_new() localVariable
446 let tag_ty = TagType::new(func_ty); in tag_new()

12