summaryrefslogtreecommitdiff
path: root/crates/types/src
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-04-17 20:57:17 +0200
committerHenry <mail@henrygressmann.de>2026-04-17 21:00:18 +0200
commit468a600d029d6aa45447c4346b11c9b9371050ca (patch)
tree434c5bbe3d2c71e04a664403dfc1cc21c97f21d5 /crates/types/src
parent4edfbab882948fe3424b76aebdfd02383adfab01 (diff)
feat: refactor optimizer + executor, add v128 super instructions
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
-rw-r--r--crates/types/src/instructions.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs
index 8cfb097..696477a 100644
--- a/crates/types/src/instructions.rs
+++ b/crates/types/src/instructions.rs
@@ -83,9 +83,16 @@ pub enum Instruction {
SetLocalConst32(LocalAddr, i32), SetLocalConst64(LocalAddr, i64),
StoreLocalLocal32(MemoryArg, u8, u8),
StoreLocalLocal64(MemoryArg, u8, u8),
+ StoreLocalLocal128(MemoryArg, u8, u8),
LoadLocal32(MemoryArg, u8),
LoadLocalTee32(MemoryArg, u8, u8),
LoadLocalSet32(MemoryArg, u8, u8),
+ LoadLocalTee128(MemoryArg, u8, u8),
+ LoadLocalSet128(MemoryArg, u8, u8),
+ AndConstTee32(i32, LocalAddr),
+ SubConstTee32(i32, LocalAddr),
+ AndConstTee64(i64, LocalAddr),
+ SubConstTee64(i64, LocalAddr),
XorRotlConst64(i64),
XorRotlConstTee64(i64, LocalAddr),
@@ -96,8 +103,12 @@ pub enum Instruction {
Jump(u32),
JumpIfZero(u32),
JumpIfNonZero(u32),
+ JumpCmpStackConst32 { target_ip: u32, imm: i32, op: CmpOp },
+ JumpCmpStackConst64 { target_ip: u32, imm: i64, op: CmpOp },
JumpCmpLocalConst32 { target_ip: u32, local: LocalAddr, imm: i32, op: CmpOp },
+ JumpCmpLocalConst64 { target_ip: u32, local: LocalAddr, imm: i32, op: CmpOp },
JumpCmpLocalLocal32 { target_ip: u32, left: LocalAddr, right: LocalAddr, op: CmpOp },
+ JumpCmpLocalLocal64 { target_ip: u32, left: LocalAddr, right: LocalAddr, op: CmpOp },
DropKeep { base32: u16, keep32: u8, base64: u16, keep64: u8, base128: u16, keep128: u8 },
DropKeep32(u16, u16),
DropKeep64(u16, u16),