Skip to main content

InlineSideExit

Struct InlineSideExit 

Source
pub struct InlineSideExit {
    pub cont_pc: u32,
    pub head_resume_pc: u32,
    pub exit_tags: Rc<[ExitTag]>,
    pub chain: Rc<[FrameMaterializeInfo]>,
    pub side_trace_ptr: Box<TCellPtr>,
}
Expand description

P12-S4-step4b-C-2 — per inline cmp@d>0 side-exit record. See CompiledTrace::per_exit_inline for the shape rationale.

Fields§

§cont_pc: u32

PC the interpreter resumes at after the side-exit fires. Mirrors the innermost frame’s pc in chain.

§head_resume_pc: u32

PC to write on the trace head frame when the side-exit fires — the depth-0 frame’s resume point after ITS own Call that entered depth 1. Without this update, the trace head frame’s pc stays at head_pc (where the dispatcher entered); once the inlined chain pops, interp resumes the trace head at pc=0 and immediately self-Calls again → infinite dispatch loop. Captured at emit time as the outermost Op::Call’s pc + 1 from the live call_chain.

§exit_tags: Rc<[ExitTag]>

Slot-by-slot ExitTag snapshot at the side-exit moment. Length = window_size — covers caller + every inlined frame’s register window.

§chain: Rc<[FrameMaterializeInfo]>

Frames to push onto vm.frames (outermost = depth 1 first, innermost = depth len() last). The innermost frame’s pc is overwritten to the side-exit PC at compile time so the helper stays PC-agnostic.

§side_trace_ptr: Box<TCellPtr>

P15-A v2-C-A2 — raw *const u8 (entry fn pointer of a child side trace) for THIS inline cmp@d>0 side-exit. The IR at the emit_store_back_and_return_site call site loads this cell BEFORE the encoded-return path: non-null → store-back + call_indirect into the child + OR sentinel(INLINE, site_idx) into bits 56..=63 of the child’s return + return; null → run the existing encoded-return path.

Box<Cell<*const u8>> (not embedded Cell) so the cell’s HEAP address is stable for the IR’s iconst-baked load. Moving the Box (e.g. into Rc<[]> via .collect) doesn’t move the cell. Single-threaded Vm so Cell is sound.

Trait Implementations§

Source§

impl Clone for InlineSideExit

Source§

fn clone(&self) -> InlineSideExit

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InlineSideExit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.