diff options
Diffstat (limited to 'crates/types')
| -rw-r--r-- | crates/types/src/instructions.rs | 8 | ||||
| -rw-r--r-- | crates/types/src/lib.rs | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs index 5e88cfa..bccbdd1 100644 --- a/crates/types/src/instructions.rs +++ b/crates/types/src/instructions.rs @@ -139,14 +139,17 @@ pub enum Instruction { // See <https://webassembly.github.io/spec/core/binary/instructions.html#numeric-instructions> I32Eqz, I32Eq, I32Ne, I32LtS, I32LtU, I32GtS, I32GtU, I32LeS, I32LeU, I32GeS, I32GeU, I64Eqz, I64Eq, I64Ne, I64LtS, I64LtU, I64GtS, I64GtU, I64LeS, I64LeU, I64GeS, I64GeU, + // Comparisons F32Eq, F32Ne, F32Lt, F32Gt, F32Le, F32Ge, F64Eq, F64Ne, F64Lt, F64Gt, F64Le, F64Ge, I32Clz, I32Ctz, I32Popcnt, I32Add, I32Sub, I32Mul, I32DivS, I32DivU, I32RemS, I32RemU, I64Clz, I64Ctz, I64Popcnt, I64Add, I64Sub, I64Mul, I64DivS, I64DivU, I64RemS, I64RemU, + // Bitwise I32And, I32Or, I32Xor, I32Shl, I32ShrS, I32ShrU, I32Rotl, I32Rotr, I64And, I64Or, I64Xor, I64Shl, I64ShrS, I64ShrU, I64Rotl, I64Rotr, + // Floating Point F32Abs, F32Neg, F32Ceil, F32Floor, F32Trunc, F32Nearest, F32Sqrt, F32Add, F32Sub, F32Mul, F32Div, F32Min, F32Max, F32Copysign, F64Abs, F64Neg, F64Ceil, F64Floor, F64Trunc, F64Nearest, F64Sqrt, F64Add, F64Sub, F64Mul, F64Div, F64Min, F64Max, F64Copysign, @@ -154,8 +157,9 @@ pub enum Instruction { I64Extend8S, I64Extend16S, I64Extend32S, I64ExtendI32S, I64ExtendI32U, I64TruncF32S, I64TruncF32U, I64TruncF64S, I64TruncF64U, F32ConvertI32S, F32ConvertI32U, F32ConvertI64S, F32ConvertI64U, F32DemoteF64, F64ConvertI32S, F64ConvertI32U, F64ConvertI64S, F64ConvertI64U, F64PromoteF32, - // Reinterpretations (noops at runtime) - I32ReinterpretF32, I64ReinterpretF64, F32ReinterpretI32, F64ReinterpretI64, + + // Reinterpretations are parser no-ops and intentionally omitted. + // Saturating Float-to-Int Conversions I32TruncSatF32S, I32TruncSatF32U, I32TruncSatF64S, I32TruncSatF64U, I64TruncSatF32S, I64TruncSatF32U, I64TruncSatF64S, I64TruncSatF64U, diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index 2a167a4..2f6107a 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -50,7 +50,7 @@ pub mod archive; #[cfg(not(feature = "archive"))] pub mod archive { - #[cfg_attr(feature = "debug", derive(Debug))] + #[derive(Debug)] pub enum TwasmError {} impl core::fmt::Display for TwasmError { fn fmt(&self, _: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { |
