#[repr(C)]pub struct JitFrame {Show 14 fields
pub slots: *mut i64,
pub register_count: u32,
pub pc: u32,
pub budget: u32,
pub function: u32,
pub exit_kind: u32,
pub return_reg: u32,
pub call_depth: u32,
pub call_stack: *mut JitCallRecord,
pub written: [u64; 4],
pub as_bool: [u64; 4],
pub as_unit: [u64; 4],
pub entry_as_bool: [u64; 4],
pub entry_as_unit: [u64; 4],
}Available on crate feature
jit only.Expand description
Mutable state for one JIT invocation on the current bytecode frame.
v1 keeps scalar work in a parallel i64 slot table (Int specialization).
The dispatcher copies crate::Value::Int in before the call and
writes results back after Return.
Fields§
§slots: *mut i64§register_count: u32§pc: u32§budget: u32§function: u32§exit_kind: u32§return_reg: u32§call_depth: u32§call_stack: *mut JitCallRecord§written: [u64; 4]Registers this trace assigned. Unset bits keep the VM’s previous value
on the way back, so a Unit the trace never wrote does not become Int(0).
as_bool: [u64; 4]Among Self::written bits, which results are bytecode Bools
(Eq / Lt / Le / LoadConst of a bool, or a Move of one).
as_unit: [u64; 4]Among Self::written bits, which results are Unit.
entry_as_bool: [u64; 4]Bool bits observed on entry. Read-only for the compiled trace.
entry_as_unit: [u64; 4]Unit bits observed on entry. Read-only for the compiled trace.
Auto Trait Implementations§
impl !Send for JitFrame
impl !Sync for JitFrame
impl Freeze for JitFrame
impl RefUnwindSafe for JitFrame
impl Unpin for JitFrame
impl UnsafeUnpin for JitFrame
impl UnwindSafe for JitFrame
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