pub struct Predecoded {
pub decoded_insts: Vec<DecodedInst>,
pub pc_to_idx: Vec<u32>,
pub basic_block_starts: Vec<bool>,
pub block_gas_costs: Vec<u32>,
}Expand description
Bundle of predecoded state shared by interp / JIT.
Fields§
§decoded_insts: Vec<DecodedInst>§pc_to_idx: Vec<u32>Map from PC byte offset → instruction index. u32::MAX = invalid.
basic_block_starts: Vec<bool>Valid basic-block starts (post-terminator PCs ∪ static branch targets).
block_gas_costs: Vec<u32>Gas-block start cost (indexed by PC). Only entries at gas-block starts are meaningful; others are 0.
Trait Implementations§
Source§impl Clone for Predecoded
impl Clone for Predecoded
Source§fn clone(&self) -> Predecoded
fn clone(&self) -> Predecoded
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Predecoded
impl RefUnwindSafe for Predecoded
impl Send for Predecoded
impl Sync for Predecoded
impl Unpin for Predecoded
impl UnsafeUnpin for Predecoded
impl UnwindSafe for Predecoded
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more