MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / ty

Method ty

winch/codegen/src/stack.rs:301–312  ·  view source on GitHub ↗

Get the type of the value.

(&self)

Source from the content-addressed store, hash-verified

299
300 /// Get the type of the value.
301 pub fn ty(&self) -> WasmValType {
302 match self {
303 Val::I32(_) => WasmValType::I32,
304 Val::I64(_) => WasmValType::I64,
305 Val::F32(_) => WasmValType::F32,
306 Val::F64(_) => WasmValType::F64,
307 Val::V128(_) => WasmValType::V128,
308 Val::Reg(r) => r.ty,
309 Val::Memory(m) => m.ty,
310 Val::Local(l) => l.ty,
311 }
312 }
313}
314
315/// The shadow stack used for compilation.

Callers 15

bench_host_to_wasmFunction · 0.45
invoke_funcMethod · 0.45
arrayref_tyFunction · 0.45
anyref_ty_structFunction · 0.45
anyref_ty_arrayFunction · 0.45
eqref_ty_i31Function · 0.45
memory64_maximum_minimumFunction · 0.45

Calls

no outgoing calls

Tested by 14

arrayref_tyFunction · 0.36
anyref_ty_structFunction · 0.36
anyref_ty_arrayFunction · 0.36
eqref_ty_i31Function · 0.36
structref_tyFunction · 0.36
i31ref_global_tyFunction · 0.36