Home
last modified time | relevance | path

Searched refs:FuncType (Results 1 – 25 of 77) sorted by relevance

1234

/wasmtime-44.0.1/crates/c-api/include/wasmtime/types/
H A Dfunc.hh15 class FuncType { class
30 friend class FuncType;
37 Ref(const FuncType &ty) : Ref(ty.ptr.get()) {} in Ref()
52 FuncType(std::initializer_list<ValType> params, in FuncType() function in wasmtime::FuncType
55 *this = FuncType::from_iters(params, results); in FuncType()
59 FuncType(Ref other) : FuncType(wasm_functype_copy(other.ptr)) {} in FuncType() function in wasmtime::FuncType
61 FuncType(const FuncType &other) in FuncType() function in wasmtime::FuncType
64 FuncType &operator=(const FuncType &other) { in operator =()
68 ~FuncType() = default;
70 FuncType(FuncType &&other) = default;
[all …]
H A Dtag.hh46 FuncType functype() const { in functype()
47 return FuncType(wasm_functype_copy(wasm_tagtype_functype(ptr))); in functype()
58 explicit TagType(const FuncType &functype) in TagType()
/wasmtime-44.0.1/crates/c-api/src/types/
H A Dfunc.rs7 use wasmtime::{Engine, FuncType, ValType};
23 FuncType(FuncType), enumerator
29 LazyFuncType::FuncType(ty) => ty.clone(), in force()
34 *self = LazyFuncType::FuncType(ty.clone()); in force()
43 LazyFuncType::FuncType(f) => LazyFuncTypeIter::FuncType(f.params()), in params()
50 LazyFuncType::FuncType(f) => LazyFuncTypeIter::FuncType(f.results()), in results()
57 FuncType(T), enumerator
68 LazyFuncTypeIter::FuncType(i) => i.next(), in next()
75 LazyFuncTypeIter::FuncType(i) => i.size_hint(), in size_hint()
91 pub(crate) fn new(ty: FuncType) -> wasm_functype_t { in new()
[all …]
/wasmtime-44.0.1/crates/fuzzing/tests/oom/
H A Dfunc_type.rs4 use wasmtime::{Config, Engine, FuncType, Result, ValType};
17 let ty1 = FuncType::try_new( in func_type_try_new()
25 let ty2 = FuncType::try_new( in func_type_try_new()
33 let ty3 = FuncType::try_new(&engine, [], [])?; in func_type_try_new()
38 !FuncType::eq(&ty2, &ty3), in func_type_try_new()
H A Dtag.rs3 use wasmtime::{Config, Engine, FuncType, Result, Store, Tag, TagType};
15 let func_ty = FuncType::try_new(&engine, [], [])?; in tag_new()
31 let func_ty = FuncType::try_new(&engine, [], [])?; in tag_ty()
48 let func_ty = FuncType::try_new(&engine, [], [])?; in tag_eq()
H A Dcaller.rs3 use wasmtime::{Config, Engine, Func, FuncType, Module, Result, Store};
32 FuncType::try_new(&engine, [], [])?, in caller_get_export()
71 FuncType::try_new(&engine, [], [])?, in caller_data()
109 FuncType::try_new(&engine, [], [])?, in caller_engine()
H A Dtypes.rs4 Config, Engine, FuncType, GlobalType, MemoryType, Mutability, RefType, Result, TableType,
15 let ty = FuncType::try_new(&engine, [ValType::I32, ValType::I64], [ValType::F32])?; in func_type_params_results()
/wasmtime-44.0.1/crates/c-api/tests/
H A Dsimple.cc72 Func f(store, FuncType({}, {}), in TEST()
84 Func f2(store, FuncType({}, {}), in TEST()
101 Func f(store, FuncType({}, {}), in TEST()
107 Func f2(store, FuncType({}, {}), in TEST()
119 Func f0(store, FuncType({}, {}), in TEST()
131 Func f1(store, FuncType({}, {}), in TEST()
144 Func f2(store, FuncType({}, {}), in TEST()
172 Func f3(store, FuncType({}, {}), in TEST()
186 Func f4(store, FuncType({}, {}), in TEST()
200 Func f5(store, FuncType({}, {}), in TEST()
H A Dfunc_type.cc7 TEST(FuncType, Smoke) { in TEST() argument
8 FuncType t({}, {}); in TEST()
15 FuncType t2({ValKind::I32}, {ValKind::I64}); in TEST()
H A Dfunc.cc13 store, FuncType({}, {}), in TEST()
22 store, FuncType({ValKind::I32}, {}), in TEST()
32 store, FuncType({}, {ValKind::F32, ValKind::F64}), in TEST()
45 Func thunk(store, FuncType({}, {}), in TEST()
54 Func f(store, FuncType({ValKind::I32}, {}), in TEST()
68 FuncType({ValKind::F32, ValKind::I64}, {ValKind::I32, ValKind::F64}), in TEST()
87 FuncType ty({ValKind::ExternRef, ValKind::ExternRef}, in TEST()
111 Func f2(store, FuncType({}, {}), in TEST()
116 FuncType ty({ValKind::FuncRef, ValKind::FuncRef}, in TEST()
145 FuncType ty({ValKind::V128}, {ValKind::V128}); in TEST()
[all …]
H A Dlinker.cc15 .func_new("a", "f", FuncType({}, {}), in TEST()
52 linker.func_new("a", "f", FuncType({}, {}), std::move(cf)).unwrap(); in TEST()
73 linker.func_new("a", "f", FuncType({}, {}), cf).unwrap(); in TEST()
/wasmtime-44.0.1/tests/all/
H A Dtypes.rs489 let superty = FuncType::with_finality_and_supertype( in func_subtyping_field_must_match()
564 let base = FuncType::with_finality_and_supertype( in func_subtyping()
571 let a = FuncType::with_finality_and_supertype( in func_subtyping()
578 let b = FuncType::with_finality_and_supertype( in func_subtyping()
585 let c = FuncType::with_finality_and_supertype( in func_subtyping()
592 let d = FuncType::with_finality_and_supertype( in func_subtyping()
599 let e = FuncType::with_finality_and_supertype( in func_subtyping()
606 let f = FuncType::with_finality_and_supertype( in func_subtyping()
613 let g = FuncType::with_finality_and_supertype( in func_subtyping()
620 let h = FuncType::with_finality_and_supertype( in func_subtyping()
[all …]
H A Dimport_indexes.rs26 FuncType::new(&engine, None, Some(ValType::I32)), in same_import_names_still_distinct()
37 FuncType::new(&engine, None, Some(ValType::F32)), in same_import_names_still_distinct()
H A Dexceptions.rs71 let functy = FuncType::new(&engine, [ValType::I32, ValType::I64], []); in dynamic_tags()
117 let functy = FuncType::new(&engine, [ValType::I32], []); in exception_escape_to_host()
155 let functy = FuncType::new(&engine, [ValType::I32], []); in exception_from_host()
189 let functy = FuncType::new(&engine, [ValType::I32], []); in exception_across_no_wasm()
231 let functy = FuncType::new(&engine, [], []); in gc_with_exnref_global()
H A Dlinker.rs474 let b = FuncType::new(&engine, None, Some(ref_null_a)); in linker_instantiate_with_concrete_func_refs()
477 let c = FuncType::new(&engine, None, Some(ref_null_b)); in linker_instantiate_with_concrete_func_refs()
500 FuncType::new(&engine, None, Some(ref_null_c)), in linker_instantiate_with_concrete_func_refs()
539 let ft0 = FuncType::with_finality_and_supertype( in linker_defines_func_subtype()
546 let ft1 = FuncType::with_finality_and_supertype( in linker_defines_func_subtype()
554 let ft2 = FuncType::with_finality_and_supertype( in linker_defines_func_subtype()
561 let ft3 = FuncType::with_finality_and_supertype( in linker_defines_func_subtype()
569 let nop = FuncType::new(&engine, [], []); in linker_defines_func_subtype()
570 let ft4 = FuncType::with_finality_and_supertype( in linker_defines_func_subtype()
577 let ft5 = FuncType::with_finality_and_supertype( in linker_defines_func_subtype()
[all …]
H A Dfuncref.rs30 assert!(FuncType::eq(&func.ty(&store), &result_func.ty(&store))); in pass_funcref_in_and_out_of_wasm()
56 assert!(FuncType::eq( in pass_funcref_in_and_out_of_wasm()
144 let func_ty = FuncType::new(store2.engine(), None, Some(ValType::FUNCREF)); in func_new_returns_wrong_store()
H A Dmodule.rs350 Func(fn(&Engine) -> FuncType), in concurrent_type_registry_modifications()
357 Test::Func(|engine| FuncType::new(engine, [], [])), in concurrent_type_registry_modifications()
358 Test::Func(|engine| FuncType::new(engine, [], [ValType::I32])), in concurrent_type_registry_modifications()
359 Test::Func(|engine| FuncType::new(engine, [ValType::I32], [])), in concurrent_type_registry_modifications()
510 let ty = FuncType::new(&engine, [], [ValType::I32]); in concurrent_type_modifications_and_checks()
536 FuncType::new(&engine, [], [ValType::F64]); in concurrent_type_modifications_and_checks()
546 FuncType::new(&engine, [], [ValType::I32]); in concurrent_type_modifications_and_checks()
H A Dimport_calling_export.rs21 let func_ty = FuncType::new(store.engine(), None, None); in test_import_calling_export()
63 let func_ty = FuncType::new(store.engine(), None, Some(ValType::I32)); in test_returns_incorrect_type()
H A Dasync_functions.rs27 let func_ty = FuncType::new(store.engine(), None, None); in smoke()
47 FuncType::new(store.engine(), None, None), in smoke_host_func()
77 let func_ty = FuncType::new(store.engine(), None, None); in smoke_with_suspension()
105 FuncType::new(store.engine(), None, None), in smoke_host_func_with_suspension()
144 let func_ty = FuncType::new(store.engine(), None, None); in recursive_call()
155 let func_ty = FuncType::new(store.engine(), None, None); in recursive_call()
200 let func_ty = FuncType::new(store.engine(), None, None); in suspend_while_suspending()
204 let func_ty = FuncType::new(store.engine(), None, None); in suspend_while_suspending()
217 let func_ty = FuncType::new(store.engine(), None, None); in suspend_while_suspending()
388 FuncType::new(store.engine(), None, None), in async_host_func_with_pooling_stacks()
[all …]
/wasmtime-44.0.1/crates/c-api/include/
H A Dwasm.hh306 class FuncType;
325 auto func() -> FuncType*;
331 auto func() const -> const FuncType*;
341 class WASM_API_EXTERN FuncType : public ExternType { class
346 FuncType() = default;
347 ~FuncType() = default;
353 ) -> own<FuncType>;
355 auto copy() const -> own<FuncType>;
429 static auto make(own<FuncType>&&) -> own<TagType>;
432 auto functype() const -> const FuncType*;
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dfunc.rs376 ty: FuncType, in new() argument
386 ty: FuncType, in try_new() argument
394 ty: FuncType, in try_new_() argument
435 ty: FuncType, in new_unchecked() argument
1797 FuncType::try_new(
2249 ty: FuncType, in vmctx_sync() argument
2283 ty: FuncType, in vmctx_async() argument
2414 ty: FuncType, in new_unchecked() argument
2435 ty: FuncType, in new() argument
2510 ty: &FuncType, in load_untyped_params() argument
[all …]
H A Dtypes.rs745 ConcreteFunc(FuncType),
867 impl From<FuncType> for HeapType {
1447 Func(FuncType),
2368 pub struct FuncType { struct
2372 impl Display for FuncType { argument
2393 impl FuncType { impl
2409 ) -> FuncType { in new() argument
2661 pub fn eq(a: &FuncType, b: &FuncType) -> bool { in eq() argument
2797 func_ty: FuncType,
2850 func_ty: FuncType, in _new() argument
[all …]
/wasmtime-44.0.1/crates/c-api/include/wasmtime/component/types/
H A Dcomponent.hh61 class FuncType;
155 const FuncType &component_func() const;
163 wasmtime::FuncType::Ref core_func() const { in core_func()
249 inline const wasmtime::component::FuncType &
252 return *FuncType::from_capi(&item.of.component_func); in component_func()
H A Dfunc.hh21 class FuncType { class
22 WASMTIME_CLONE_WRAPPER(FuncType, wasmtime_component_func_type);
/wasmtime-44.0.1/crates/c-api/include/wasmtime/component/
H A Dfunc.hh60 FuncType type(Store::Context cx) const { in type()
61 return FuncType(wasmtime_component_func_type(&func, cx.capi())); in type()

1234