Home
last modified time | relevance | path

Searched refs:WasmType (Results 1 – 8 of 8) sorted by relevance

/wasmtime-44.0.1/crates/debugger/src/host/
H A Dbindings.rs44 ValType::I32 => Ok(wit::WasmType::WasmI32), in val_type_to_wasm_type()
45 ValType::I64 => Ok(wit::WasmType::WasmI64), in val_type_to_wasm_type()
46 ValType::F32 => Ok(wit::WasmType::WasmF32), in val_type_to_wasm_type()
47 ValType::F64 => Ok(wit::WasmType::WasmF64), in val_type_to_wasm_type()
48 ValType::V128 => Ok(wit::WasmType::WasmV128), in val_type_to_wasm_type()
57 wit::WasmType::WasmI32 => ValType::I32, in wasm_type_to_val_type()
58 wit::WasmType::WasmI64 => ValType::I64, in wasm_type_to_val_type()
59 wit::WasmType::WasmF32 => ValType::F32, in wasm_type_to_val_type()
60 wit::WasmType::WasmF64 => ValType::F64, in wasm_type_to_val_type()
61 wit::WasmType::WasmV128 => ValType::V128, in wasm_type_to_val_type()
[all …]
H A Dapi.rs730 ) -> Result<Vec<wit::WasmType>> { in params() argument
740 ) -> Result<Vec<wit::WasmType>> { in results() argument
820 ) -> Result<Vec<wit::WasmType>> { in params() argument
838 params: Vec<wit::WasmType>, in make() argument
937 WasmValue::Primitive(Val::I32(_)) => Ok(wit::WasmType::WasmI32), in get_type()
938 WasmValue::Primitive(Val::I64(_)) => Ok(wit::WasmType::WasmI64), in get_type()
939 WasmValue::Primitive(Val::F32(_)) => Ok(wit::WasmType::WasmF32), in get_type()
940 WasmValue::Primitive(Val::F64(_)) => Ok(wit::WasmType::WasmF64), in get_type()
941 WasmValue::Primitive(Val::V128(_)) => Ok(wit::WasmType::WasmV128), in get_type()
942 WasmValue::Func(_) => Ok(wit::WasmType::WasmFuncref), in get_type()
[all …]
H A Dopaque.rs93 async fn func_params(&mut self, func: Func) -> Result<Vec<wit::WasmType>>; in func_params() argument
94 async fn func_results(&mut self, func: Func) -> Result<Vec<wit::WasmType>>; in func_results() argument
96 async fn tag_params(&mut self, tag: Tag) -> Result<Vec<wit::WasmType>>; in tag_params() argument
412 async fn func_params(&mut self, func: Func) -> Result<Vec<wit::WasmType>> { in func_params() argument
422 async fn func_results(&mut self, func: Func) -> Result<Vec<wit::WasmType>> { in func_results() argument
432 async fn tag_params(&mut self, tag: Tag) -> Result<Vec<wit::WasmType>> { in tag_params() argument
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dfunc.hh53 template <typename T> struct WasmType { struct
86 template <> struct WasmType<std::optional<ExternRef>> { struct
117 template <> struct WasmType<V128> { struct
135 static const bool valid = WasmType<T>::valid;
141 WasmType<T>::store(cx, storage, t); in store()
145 WasmType<T>::store(cx, storage, t); in store()
148 return WasmType<T>::load(cx, storage); in load()
150 static std::vector<ValType> types() { return {WasmType<T>::kind}; } in types()
174 static const bool valid = (WasmType<T>::valid && ...);
181 return ((WasmType<T>::kind == types.begin()[n++].kind()) && ...); in matches()
[all …]
/wasmtime-44.0.1/crates/gdbstub-component/src/
H A Dlib.rs9 api::{WasmType, WasmValue},
302 WasmType::WasmI32 => value.unwrap_i32().to_le_bytes().to_vec(), in value_to_bytes()
303 WasmType::WasmI64 => value.unwrap_i64().to_le_bytes().to_vec(), in value_to_bytes()
304 WasmType::WasmF32 => value.unwrap_f32().to_le_bytes().to_vec(), in value_to_bytes()
305 WasmType::WasmF64 => value.unwrap_f64().to_le_bytes().to_vec(), in value_to_bytes()
306 WasmType::WasmV128 => value.unwrap_v128(), in value_to_bytes()
307 WasmType::WasmFuncref => 0u32.to_le_bytes().to_vec(), in value_to_bytes()
308 WasmType::WasmExnref => 0u32.to_le_bytes().to_vec(), in value_to_bytes()
/wasmtime-44.0.1/crates/wiggle/generate/src/
H A Dnames.rs5 use witx::{BuiltinType, Id, Type, TypeRef, WasmType};
29 pub fn wasm_type(ty: WasmType) -> TokenStream { in wasm_type()
31 WasmType::I32 => quote!(i32), in wasm_type()
32 WasmType::I64 => quote!(i64), in wasm_type()
33 WasmType::F32 => quote!(f32), in wasm_type()
34 WasmType::F64 => quote!(f64), in wasm_type()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/wave/
H A Dcore.rs5 use wasm_wave::wasm::{WasmFunc, WasmType, WasmTypeKind, WasmValue, WasmValueError};
7 impl WasmType for crate::ValType {
H A Dcomponent.rs7 DisplayValue, WasmFunc, WasmType, WasmTypeKind, WasmValue, WasmValueError, ensure_type_kind,
19 impl WasmType for component::Type {