diff options
| author | Henry <mail@henrygressmann.de> | 2026-04-18 00:37:24 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-04-18 00:37:24 +0200 |
| commit | 77cf2a6812f5563f902479175cc8b59502ce233c (patch) | |
| tree | 54d44a5a5bb81de134c158bc766e6d45a14b6751 /crates/parser | |
| parent | 468a600d029d6aa45447c4346b11c9b9371050ca (diff) | |
chore: cleanup
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
| -rw-r--r-- | crates/parser/src/visit.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/parser/src/visit.rs b/crates/parser/src/visit.rs index 3000b9b..5c99df2 100644 --- a/crates/parser/src/visit.rs +++ b/crates/parser/src/visit.rs @@ -30,7 +30,7 @@ struct LoweringCtx { #[derive(Default)] struct FunctionDataBuilder { - v128_constants: Vec<i128>, + v128_constants: Vec<[u8; 16]>, branch_table_targets: Vec<u32>, } @@ -481,12 +481,12 @@ impl<R: WasmModuleResources> wasmparser::VisitSimdOperator<'_> for FunctionBuild fn visit_i8x16_shuffle(&mut self, lanes: [u8; 16]) -> Self::Output { self.instructions.push(Instruction::I8x16Shuffle(self.data.v128_constants.len() as u32)); - self.data.v128_constants.push(i128::from_le_bytes(lanes)); + self.data.v128_constants.push(lanes); } fn visit_v128_const(&mut self, value: wasmparser::V128) -> Self::Output { self.instructions.push(Instruction::V128Const(self.data.v128_constants.len() as u32)); - self.data.v128_constants.push(value.i128()); + self.data.v128_constants.push(*value.bytes()); } } |
