pub struct FunctionStateMap {
pub initial: MachineState,
pub local_function_id: usize,
pub locals: Vec<WasmAbstractValue>,
pub shadow_size: usize,
pub diffs: Vec<MachineStateDiff>,
pub wasm_function_header_target_offset: Option<SuspendOffset>,
pub wasm_offset_to_target_offset: BTreeMap<usize, SuspendOffset>,
pub loop_offsets: BTreeMap<usize, OffsetInfo>,
pub call_offsets: BTreeMap<usize, OffsetInfo>,
pub trappable_offsets: BTreeMap<usize, OffsetInfo>,
}Expand description
A map of function states.
Fields§
§initial: MachineStateInitial.
local_function_id: usizeLocal Function Id.
locals: Vec<WasmAbstractValue>Locals.
shadow_size: usizeShadow size.
diffs: Vec<MachineStateDiff>Diffs.
wasm_function_header_target_offset: Option<SuspendOffset>Wasm Function Header target offset.
wasm_offset_to_target_offset: BTreeMap<usize, SuspendOffset>Wasm offset to target offset
loop_offsets: BTreeMap<usize, OffsetInfo>Loop offsets.
call_offsets: BTreeMap<usize, OffsetInfo>Call offsets.
trappable_offsets: BTreeMap<usize, OffsetInfo>Trappable offsets.
Implementations§
Source§impl FunctionStateMap
impl FunctionStateMap
Sourcepub fn new(
initial: MachineState,
local_function_id: usize,
shadow_size: usize,
locals: Vec<WasmAbstractValue>,
) -> FunctionStateMap
pub fn new( initial: MachineState, local_function_id: usize, shadow_size: usize, locals: Vec<WasmAbstractValue>, ) -> FunctionStateMap
Creates a new FunctionStateMap with the given parameters.
Trait Implementations§
Source§impl BorshDeserialize for FunctionStateMap
impl BorshDeserialize for FunctionStateMap
Source§impl BorshSerialize for FunctionStateMap
impl BorshSerialize for FunctionStateMap
Source§impl Clone for FunctionStateMap
impl Clone for FunctionStateMap
Source§fn clone(&self) -> FunctionStateMap
fn clone(&self) -> FunctionStateMap
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 moreSource§impl Debug for FunctionStateMap
impl Debug for FunctionStateMap
Source§impl<'de> Deserialize<'de> for FunctionStateMap
impl<'de> Deserialize<'de> for FunctionStateMap
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FunctionStateMap
impl RefUnwindSafe for FunctionStateMap
impl Send for FunctionStateMap
impl Sync for FunctionStateMap
impl Unpin for FunctionStateMap
impl UnwindSafe for FunctionStateMap
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