Get the type of the value.
(&self)
| 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. |
no outgoing calls