pub struct ShadowFrame {
pub previous: *mut ShadowFrame,
pub bytecode_pc: u32,
pub module_id: u32,
pub handles: *mut Value,
pub handle_len: u16,
/* private fields */
}Expand description
The register frame header shared by the interpreter and native code.
Layout is fixed and identical on every 64-bit target: previous at 0,
bytecode_pc at 8, module_id at 12, handles at 16, and handle_len at
24, with explicit zeroed trailing padding. size = 32, align = 8.
handles addresses exactly handle_len Values.
Fields§
§previous: *mut ShadowFrameThe caller’s frame, or null at the base of the stack.
bytecode_pc: u32The current bytecode program counter.
module_id: u32The dense module id of the executing function.
handles: *mut ValueThe register array; register r[i] is handles[i].
handle_len: u16The number of live registers, equal to function.register_count.
Implementations§
Source§impl ShadowFrame
impl ShadowFrame
Sourcepub fn new(
previous: *mut ShadowFrame,
bytecode_pc: u32,
module_id: u32,
handles: *mut Value,
handle_len: u16,
) -> ShadowFrame
pub fn new( previous: *mut ShadowFrame, bytecode_pc: u32, module_id: u32, handles: *mut Value, handle_len: u16, ) -> ShadowFrame
Builds a frame header with physically zeroed padding.
Trait Implementations§
Source§impl Clone for ShadowFrame
impl Clone for ShadowFrame
Source§fn clone(&self) -> ShadowFrame
fn clone(&self) -> ShadowFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadowFrame
Auto Trait Implementations§
impl !Send for ShadowFrame
impl !Sync for ShadowFrame
impl Freeze for ShadowFrame
impl RefUnwindSafe for ShadowFrame
impl Unpin for ShadowFrame
impl UnsafeUnpin for ShadowFrame
impl UnwindSafe for ShadowFrame
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