pub struct CallIndirectHost {
pub sig: u8,
}
Expand description
A special opcode to use an indirect function call to reenter the host from the interpreter.
This is used to implement host intrinsics such as memory.grow
for example where that needs to reenter the host from the
interpreter.
The sig
immediate here is the Nth signature in the
for_each_host_signature!
macro below. The 0th “argument”, in
register x0, is the function pointer that’s being called and all
further arguments follow after that in registers.
Fields§
§sig: u8
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for CallIndirectHost
impl<'arbitrary> Arbitrary<'arbitrary> for CallIndirectHost
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§impl Clone for CallIndirectHost
impl Clone for CallIndirectHost
Source§fn clone(&self) -> CallIndirectHost
fn clone(&self) -> CallIndirectHost
Returns a copy 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 CallIndirectHost
impl Debug for CallIndirectHost
Source§impl From<CallIndirectHost> for ExtendedOp
impl From<CallIndirectHost> for ExtendedOp
Source§fn from(op: CallIndirectHost) -> Self
fn from(op: CallIndirectHost) -> Self
Converts to this type from the input type.
Source§impl From<CallIndirectHost> for Op
impl From<CallIndirectHost> for Op
Source§fn from(op: CallIndirectHost) -> Self
fn from(op: CallIndirectHost) -> Self
Converts to this type from the input type.
Source§impl Hash for CallIndirectHost
impl Hash for CallIndirectHost
Source§impl Ord for CallIndirectHost
impl Ord for CallIndirectHost
Source§fn cmp(&self, other: &CallIndirectHost) -> Ordering
fn cmp(&self, other: &CallIndirectHost) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CallIndirectHost
impl PartialEq for CallIndirectHost
Source§impl PartialOrd for CallIndirectHost
impl PartialOrd for CallIndirectHost
impl Copy for CallIndirectHost
impl Eq for CallIndirectHost
impl StructuralPartialEq for CallIndirectHost
Auto Trait Implementations§
impl Freeze for CallIndirectHost
impl RefUnwindSafe for CallIndirectHost
impl Send for CallIndirectHost
impl Sync for CallIndirectHost
impl Unpin for CallIndirectHost
impl UnwindSafe for CallIndirectHost
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