pub struct AddrG32 {
pub host_heap_base: XReg,
pub host_heap_bound: XReg,
pub wasm_addr: XReg,
pub offset: u16,
}
Expand description
Immediate used for the “g32” addressing mode.
This addressing mode represents the computation of a WebAssembly address for a 32-bit linear memory. This automatically folds a bounds-check into the address computation to generate a trap if the address is out-of-bounds.
Fields§
§host_heap_base: XReg
The register holding the base address of the linear memory that is being accessed.
host_heap_bound: XReg
The register holding the byte bound limit of the heap being accessed.
wasm_addr: XReg
The register holding a 32-bit WebAssembly address into linear memory.
This is zero-extended on 64-bit platforms when performing the bounds check.
offset: u16
A static byte offset from host_heap_base
that is added to wasm_addr
when computing the bounds check.
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for AddrG32
impl<'arbitrary> Arbitrary<'arbitrary> for AddrG32
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 Ord for AddrG32
impl Ord for AddrG32
Source§impl PartialOrd for AddrG32
impl PartialOrd for AddrG32
impl Copy for AddrG32
impl Eq for AddrG32
impl StructuralPartialEq for AddrG32
Auto Trait Implementations§
impl Freeze for AddrG32
impl RefUnwindSafe for AddrG32
impl Send for AddrG32
impl Sync for AddrG32
impl Unpin for AddrG32
impl UnwindSafe for AddrG32
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