Skip to main content

JitFrame

Struct JitFrame 

Source
#[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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.