[][src]Struct wasmer_runtime_core::state::FunctionStateMap

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>,
}

A map of function states.

Fields

initial: MachineState

Initial.

local_function_id: usize

Local Function Id.

locals: Vec<WasmAbstractValue>

Locals.

shadow_size: usize

Shadow 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

impl FunctionStateMap[src]

pub fn new(
    initial: MachineState,
    local_function_id: usize,
    shadow_size: usize,
    locals: Vec<WasmAbstractValue>
) -> FunctionStateMap
[src]

Creates a new FunctionStateMap with the given parameters.

Trait Implementations

impl Clone for FunctionStateMap[src]

impl Debug for FunctionStateMap[src]

impl<'de> Deserialize<'de> for FunctionStateMap[src]

impl Serialize for FunctionStateMap[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.