[−][src]Struct wasmer_clif_fork_wasm::FuncTranslationState
Contains information passed along during a function's translation and that records:
- The current value and control stacks.
- The depth of the two unreachable control blocks stacks, that are manipulated when translating unreachable code;
Fields
stack: Vec<Value>
A stack of values corresponding to the active values in the input wasm function at this point.
control_stack: Vec<ControlStackFrame>
A stack of active control flow operations at this point in the input wasm function.
reachable: bool
Is the current translation state still reachable? This is false when translating operators like End, Return, or Unreachable.
Methods
impl FuncTranslationState
[src]
pub fn reachable(&self) -> bool
[src]
True if the current translation state expresses reachable code, false if it is unreachable.
impl FuncTranslationState
[src]
pub fn initialize(&mut self, sig: &Signature, exit_block: Block)
[src]
Initialize the state for compiling a function with the given signature.
This resets the state to containing only a single block representing the whole function. The exit block is the last block in the function which will contain the return instruction.
Auto Trait Implementations
impl RefUnwindSafe for FuncTranslationState
impl Send for FuncTranslationState
impl Sync for FuncTranslationState
impl Unpin for FuncTranslationState
impl UnwindSafe for FuncTranslationState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,