diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs index 86810a1..7121922 100644 --- a/crates/parser/src/conversion.rs +++ b/crates/parser/src/conversion.rs @@ -71,8 +71,16 @@ pub(crate) fn convert_blocktype(blocktype: &wasmparser::BlockType) -> BlockArgs use wasmparser::BlockType::*; match blocktype { Empty => BlockArgs::Empty, + + // We should maybe have all this in a single variant for our custom bytecode + + // TODO: maybe solve this differently so we can support 128-bit values + // without having to increase the size of the WasmValue enum Type(ty) => BlockArgs::Type(convert_valtype(ty)), - FuncType(ty) => BlockArgs::FuncType(*ty), + + // Wasm 2.0 + FuncType(_ty) => unimplemented!(), + // FuncType(ty) => BlockArgs::FuncType(*ty), } } diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs index 2be0ce7..13f8ce0 100644 --- a/crates/types/src/instructions.rs +++ b/crates/types/src/instructions.rs @@ -4,7 +4,8 @@ use super::{FuncAddr, GlobalAddr, LabelAddr, LocalAddr, TableAddr, TypeAddr, Val pub enum BlockArgs { Empty, Type(ValType), - FuncType(u32), + // TODO: wasm 2.0 + // FuncType(u32), } /// Represents a memory immediate in a WebAssembly memory instruction.