diff options
| author | Henry <mail@henrygressmann.de> | 2026-04-17 20:57:17 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-04-17 21:00:18 +0200 |
| commit | 468a600d029d6aa45447c4346b11c9b9371050ca (patch) | |
| tree | 434c5bbe3d2c71e04a664403dfc1cc21c97f21d5 /crates/parser/src/lib.rs | |
| parent | 4edfbab882948fe3424b76aebdfd02383adfab01 (diff) | |
feat: refactor optimizer + executor, add v128 super instructions
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/lib.rs')
| -rw-r--r-- | crates/parser/src/lib.rs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index 850042c..ad58cc2 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -31,6 +31,7 @@ pub(crate) mod log { mod conversion; mod error; +mod macros; mod module; mod optimize; mod visit; @@ -42,19 +43,8 @@ pub use tinywasm_types::TinyWasmModule; /// Parser optimization and lowering options. #[non_exhaustive] -#[derive(Debug, Clone)] -pub struct ParserOptions { - /// Enable post-lowering DCE pass. - /// Should be enabled by default, since the parser performs some optimizations that can result in dead code. - /// Disabling this may result in larger modules, but faster parsing time. - pub dce: bool, -} - -impl Default for ParserOptions { - fn default() -> Self { - Self { dce: true } - } -} +#[derive(Debug, Clone, Default)] +pub struct ParserOptions {} /// A WebAssembly parser #[derive(Debug, Default)] |
