summaryrefslogtreecommitdiff
path: root/crates/types
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-02-27 01:50:54 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-02-27 01:50:54 +0100
commit83a768d77ac57f5d8e8884173765e0efc80831f4 (patch)
tree70684731f7689a1e11eb9728673a09215dc7e375 /crates/types
parente883003b7436708e91d0971b1a8e5f74c8166261 (diff)
reduce instruction enum size
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types')
-rw-r--r--crates/types/src/instructions.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs
index dd941b3..a19b4d2 100644
--- a/crates/types/src/instructions.rs
+++ b/crates/types/src/instructions.rs
@@ -15,14 +15,14 @@ pub enum BlockArgs {
pub struct MemoryArg {
pub offset: u64,
pub mem_addr: MemAddr,
- pub align: u8,
- pub align_max: u8,
+ // pub align: u8,
+ // pub align_max: u8,
}
type BrTableDefault = u32;
-type BrTableLen = usize;
-type EndOffset = usize;
-type ElseOffset = usize;
+type BrTableLen = u32;
+type EndOffset = u32;
+type ElseOffset = u32;
#[derive(Debug, Clone, Copy, PartialEq)]
#[cfg_attr(feature = "archive", derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize), archive(check_bytes))]
@@ -62,7 +62,7 @@ pub enum Instruction {
// LocalGet + I32Const + I32Store
// Also common, helps us skip the stack entirely
- I32LocalGetConstStore(LocalAddr, i32, MemoryArg), // I32Store + LocalGet + I32Const
+ // I32LocalGetConstStore(LocalAddr, i32, MemoryArg), // I32Store + LocalGet + I32Const
// I64Xor + I64Const + I64RotL
// Commonly used by a few crypto libraries