diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-06-13 20:59:51 +0200 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-06-13 20:59:51 +0200 |
| commit | fc76c1eeddc3b0e0be6a1cc0490fdd2b178c8875 (patch) | |
| tree | ed6fb4d3395cf86d3aaff3c689d246ba3e333362 /crates/parser | |
| parent | b61e55c1fbf5c0c443b325967a524a2623429029 (diff) | |
chore: update deps
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
| -rw-r--r-- | crates/parser/Cargo.toml | 2 | ||||
| -rw-r--r-- | crates/parser/src/visit.rs | 11 |
2 files changed, 5 insertions, 8 deletions
diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml index 72a5292..1f1d194 100644 --- a/crates/parser/Cargo.toml +++ b/crates/parser/Cargo.toml @@ -8,7 +8,7 @@ authors.workspace=true repository.workspace=true [dependencies] -wasmparser={version="0.209", default-features=false, features=["validate"]} +wasmparser={version="0.210", default-features=false, features=["validate"]} log={version="0.4", optional=true} tinywasm-types={version="0.7.0", path="../types", default-features=false} diff --git a/crates/parser/src/visit.rs b/crates/parser/src/visit.rs index c9176a4..f22e05b 100644 --- a/crates/parser/src/visit.rs +++ b/crates/parser/src/visit.rs @@ -126,12 +126,9 @@ impl<'a> wasmparser::VisitOperator<'a> for FunctionBuilder { visit_global_set, Instruction::GlobalSet, u32, visit_i32_const, Instruction::I32Const, i32, visit_i64_const, Instruction::I64Const, i64, - visit_call, Instruction::Call, u32 - } - - define_primitive_operands! { - visit_memory_size, Instruction::MemorySize, u32, u8, - visit_memory_grow, Instruction::MemoryGrow, u32, u8 + visit_call, Instruction::Call, u32, + visit_memory_size, Instruction::MemorySize, u32, + visit_memory_grow, Instruction::MemoryGrow, u32 } define_mem_operands! { @@ -482,7 +479,7 @@ impl<'a> wasmparser::VisitOperator<'a> for FunctionBuilder { self.instructions.extend(([Instruction::BrTable(def, instrs.len() as u32)].into_iter()).chain(instrs)); } - fn visit_call_indirect(&mut self, ty: u32, table: u32, _table_byte: u8) -> Self::Output { + fn visit_call_indirect(&mut self, ty: u32, table: u32) -> Self::Output { self.instructions.push(Instruction::CallIndirect(ty, table)) } |
