| /wasmtime-44.0.1/crates/c-api/include/wasmtime/types/ |
| H A D | func.hh | 15 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 D | tag.hh | 46 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 D | func.rs | 7 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 D | func_type.rs | 4 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 D | tag.rs | 3 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 D | caller.rs | 3 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 D | types.rs | 4 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 D | simple.cc | 72 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 D | func_type.cc | 7 TEST(FuncType, Smoke) { in TEST() argument 8 FuncType t({}, {}); in TEST() 15 FuncType t2({ValKind::I32}, {ValKind::I64}); in TEST()
|
| H A D | func.cc | 13 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 D | linker.cc | 15 .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 D | types.rs | 489 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 D | import_indexes.rs | 26 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 D | exceptions.rs | 71 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 D | linker.rs | 474 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 D | funcref.rs | 30 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 D | module.rs | 350 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 D | import_calling_export.rs | 21 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 D | async_functions.rs | 27 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 D | wasm.hh | 306 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 D | func.rs | 376 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 D | types.rs | 745 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 D | component.hh | 61 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 D | func.hh | 21 class FuncType { class 22 WASMTIME_CLONE_WRAPPER(FuncType, wasmtime_component_func_type);
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/component/ |
| H A D | func.hh | 60 FuncType type(Store::Context cx) const { in type() 61 return FuncType(wasmtime_component_func_type(&func, cx.capi())); in type()
|