Skip to content

Commit

Permalink
Refactor Wasmi translator register visitation (#1178)
Browse files Browse the repository at this point in the history
* refactor visit registers

This simplifies integration of the planned wasmi_ir crate.

* improve and apply rustfmt
  • Loading branch information
Robbepop authored Sep 16, 2024
1 parent e9c6acf commit 41bbc89
Show file tree
Hide file tree
Showing 4 changed files with 653 additions and 566 deletions.
1 change: 1 addition & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
imports_granularity = "Crate"
imports_layout = "HorizontalVertical"
edition = "2021"
match_arm_leading_pipes = "Preserve"
2 changes: 2 additions & 0 deletions crates/wasmi/src/engine/bytecode/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod construct;
mod immediate;
mod utils;
mod visit_regs;

#[cfg(test)]
mod tests;
Expand Down Expand Up @@ -30,6 +31,7 @@ pub use self::{
Sign,
Table,
},
visit_regs::VisitRegs,
};
use crate::{core::TrapCode, engine::EngineFunc, Error};
use core::num::{NonZeroI32, NonZeroI64, NonZeroU32, NonZeroU64};
Expand Down
Loading

0 comments on commit 41bbc89

Please sign in to comment.