Home
last modified time | relevance | path

Searched refs:ExternType (Results 1 – 20 of 20) sorted by relevance

/wasmtime-44.0.1/crates/c-api/src/types/
H A Dextern.rs3 use wasmtime::ExternType;
23 pub(crate) fn new(ty: ExternType) -> CExternType { in new()
25 ExternType::Func(f) => CExternType::Func(CFuncType::new(f)), in new()
26 ExternType::Global(f) => CExternType::Global(CGlobalType::new(f)), in new()
27 ExternType::Memory(f) => CExternType::Memory(CMemoryType::new(f)), in new()
28 ExternType::Table(f) => CExternType::Table(CTableType::new(f)), in new()
29 ExternType::Tag(t) => CExternType::Tag(CTagType::new(t)), in new()
45 pub(crate) fn from_extern_type(ty: ExternType) -> wasm_externtype_t { in from_extern_type()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dexternals.rs2 use crate::{AsContext, Engine, ExternType, Func, Memory, SharedMemory};
116 pub fn ty(&self, store: impl AsContext) -> ExternType { in ty() argument
119 Extern::Func(ft) => ExternType::Func(ft.ty(store)), in ty()
120 Extern::Memory(ft) => ExternType::Memory(ft.ty(store)), in ty()
121 Extern::SharedMemory(ft) => ExternType::Memory(ft.ty()), in ty()
122 Extern::Table(tt) => ExternType::Table(tt.ty(store)), in ty()
123 Extern::Global(gt) => ExternType::Global(gt.ty(store)), in ty()
124 Extern::Tag(tt) => ExternType::Tag(tt.ty(store)), in ty()
225 pub fn ty(&self, store: impl AsContext) -> ExternType { in ty() argument
H A Dtypes.rs1445 pub enum ExternType { enum
1482 impl ExternType { implementation
1495 ) -> ExternType { in from_wasmtime() argument
1536 impl From<FuncType> for ExternType { implementation
1538 ExternType::Func(ty) in from()
1544 ExternType::Global(ty) in from()
1550 ExternType::Memory(ty) in from()
1556 ExternType::Table(ty) in from()
1560 impl From<TagType> for ExternType { implementation
1562 ExternType::Tag(ty) in from()
[all …]
H A Dlinker.rs6 AsContext, AsContextMut, Caller, Engine, Extern, ExternType, Func, FuncType, ImportType,
260 if let ExternType::Func(func_ty) = import_err.ty() { in define_unknown_imports_as_traps()
1492 ty: ExternType,
1515 pub fn ty(&self) -> ExternType { in ty() argument
H A Dmodule.rs12 types::{ExportType, ExternType, ImportType},
877 pub fn get_export(&self, name: &str) -> Option<ExternType> { in get_export() argument
881 Some(ExternType::from_wasmtime( in get_export()
/wasmtime-44.0.1/crates/c-api/tests/
H A Dextern_type.cc8 TEST(ExternType, Smoke) { in TEST() argument
21 auto import_ty = std::get<FuncType::Ref>(ExternType::from_import(i)); in TEST()
28 auto export_ty = std::get<GlobalType::Ref>(ExternType::from_export(e)); in TEST()
H A Dtypes.cc80 auto import_ty = std::get<FuncType::Ref>(ExternType::from_import(i)); in TEST()
91 auto export_ty = std::get<GlobalType::Ref>(ExternType::from_export(e)); in TEST()
H A Dimport_type.cc23 auto import_ty = std::get<FuncType::Ref>(ExternType::from_import(i)); in TEST()
H A Dexport_type.cc22 auto export_ty = std::get<GlobalType::Ref>(ExternType::from_export(e)); in TEST()
H A Dtag_type.cc57 auto extern_ty = ExternType::from_export(e); in TEST()
/wasmtime-44.0.1/crates/c-api/include/
H A Dwasm.hh312 class WASM_API_EXTERN ExternType { class
317 ExternType() = default;
318 ~ExternType() = default;
321 auto copy() const-> own<ExternType>;
341 class WASM_API_EXTERN FuncType : public ExternType {
364 class WASM_API_EXTERN GlobalType : public ExternType {
383 class WASM_API_EXTERN TableType : public ExternType {
420 class WASM_API_EXTERN TagType : public ExternType {
455 auto type() const -> const ExternType*;
474 auto type() const -> const ExternType*;
[all …]
/wasmtime-44.0.1/crates/c-api/include/wasmtime/types/
H A Dextern.hh23 class ExternType { class
H A Dexport.hh27 friend class ExternType;
H A Dimport.hh26 friend class ExternType;
/wasmtime-44.0.1/crates/wasi-threads/src/
H A Dlib.rs10 Caller, ExternType, InstancePre, Linker, Module, Result, SharedMemory, Store, format_err,
198 Some(ExternType::Func(ty)) => { in has_correct_signature()
/wasmtime-44.0.1/crates/c-api/tests/component/
H A Dtypes.cc7 using wasmtime::ExternType;
138 auto import_item_ty = ExternType::from_import(import.ref()); in TEST()
145 auto export_item_ty = ExternType::from_export(export_ty->ref()); in TEST()
/wasmtime-44.0.1/crates/wizer/src/
H A Dwasmtime.rs34 Some(wasmtime::ExternType::Func(func_ty)) => { in validate_init_func()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dtypes.rs6 use crate::{Engine, ExternType, FuncType, prelude::*};
993 ) -> impl ExactSizeIterator<Item = ((&'a str, &'a str), ExternType)> + 'a { in imports()
1000 ExternType::from_wasmtime(engine, self.0.types.module_types(), ty), in imports()
1009 ) -> impl ExactSizeIterator<Item = (&'a str, ExternType)> + 'a { in exports()
1013 ExternType::from_wasmtime(engine, self.0.types.module_types(), ty), in exports()
/wasmtime-44.0.1/crates/wizer/fuzz/fuzz_targets/
H A Dsame_result.rs89 if let ExternType::Func(ty) = exp.ty() {
/wasmtime-44.0.1/crates/fuzzing/src/
H A Doracles.rs943 if let wasmtime::ExternType::Func(ft) = imp.ty() { in gc_ops()
1173 ExternType::Func(ty) => { in call_async()