From 868aa006b7f1eabffd4aec3a03555012148a7df1 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Fri, 10 May 2024 18:08:00 +0200 Subject: chore: slight perf improvements Signed-off-by: Henry Gressmann --- crates/types/src/instructions.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'crates/types/src') diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs index fc6fba2..96e8810 100644 --- a/crates/types/src/instructions.rs +++ b/crates/types/src/instructions.rs @@ -91,7 +91,7 @@ pub enum Instruction { // LocalGet + I32Const + I32Store => I32LocalGetConstStore + I32Const // Also common, helps us skip the stack entirely. // Has to be followed by an I32Const instruction - I32StoreLocal { local: LocalAddr, consti32: i32, offset: u32, mem_addr: u8 }, + I32StoreLocal { local: LocalAddr, const_i32: i32, offset: u32, mem_addr: u8 }, // I64Xor + I64Const + I64RotL // Commonly used by a few crypto libraries @@ -103,12 +103,6 @@ pub enum Instruction { LocalGet3(LocalAddr, LocalAddr, LocalAddr), LocalGetSet(LocalAddr, LocalAddr), - // Not implemented yet - // I32AddConst(i32), - // I32SubConst(i32), - // I64AddConst(i64), - // I64SubConst(i64), - // Control Instructions // See Unreachable, -- cgit v1.3.1