summaryrefslogtreecommitdiff
path: root/crates/parser/src
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-23 18:23:31 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-23 18:23:31 +0100
commit52eda3e7e9ecc62776888aa5d3aeef95660dff8d (patch)
tree6390540aa9c3fdc6dcd77fb053c2806a18aecb04 /crates/parser/src
parent3e71f86ce9bd12d2b3f7db8c7141e5c62785098c (diff)
feat: uninitialized elems
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src')
-rw-r--r--crates/parser/src/conversion.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs
index 4f79a4a..1448d59 100644
--- a/crates/parser/src/conversion.rs
+++ b/crates/parser/src/conversion.rs
@@ -1,9 +1,6 @@
use alloc::{boxed::Box, format, string::ToString, vec::Vec};
use log::debug;
-use tinywasm_types::{
- BlockArgs, ConstInstruction, ElementItem, Export, ExternalKind, FuncType, Global, GlobalType, Import, ImportKind,
- Instruction, MemArg, MemoryArch, MemoryType, TableType, ValType,
-};
+use tinywasm_types::*;
use wasmparser::{FuncValidator, OperatorsReader, ValidatorResources};
use crate::{module::CodeSection, Result};
@@ -210,8 +207,8 @@ pub(crate) fn convert_valtype(valtype: &wasmparser::ValType) -> ValType {
}
}
-pub(crate) fn convert_memarg(memarg: wasmparser::MemArg) -> MemArg {
- MemArg { offset: memarg.offset, align: memarg.align, align_max: memarg.max_align, mem_addr: memarg.memory }
+pub(crate) fn convert_memarg(memarg: wasmparser::MemArg) -> MemoryArg {
+ MemoryArg { offset: memarg.offset, align: memarg.align, align_max: memarg.max_align, mem_addr: memarg.memory }
}
pub(crate) fn process_const_operators(ops: OperatorsReader) -> Result<ConstInstruction> {