summaryrefslogtreecommitdiff
path: root/crates/parser
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2023-12-05 17:02:10 +0100
committerHenry Gressmann <mail@henrygressmann.de>2023-12-05 17:02:10 +0100
commit7d2a0a7528e35fbea35f4f6f7efe0602620a165a (patch)
treea0be52812060e73eee99236f75b933e1c5879a03 /crates/parser
parent67adf21e642bd7a2e474829ae9a01a8f0ce5e1b4 (diff)
chore: remove some wasm2 types for now
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
-rw-r--r--crates/parser/src/conversion.rs10
1 files changed, 9 insertions, 1 deletions
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),
}
}