Skip to main content

FrameMaterializeInfo

Struct FrameMaterializeInfo 

Source
#[repr(C)]
pub struct FrameMaterializeInfo { pub base_offset: u32, pub pc: u32, pub nresults: i32, }
Expand description

P12-S4-step4b — one Lua frame to push when a depth>0 side-exit fires. Constructed at trace compile time from the recorded Op::Call chain’s A field (caller’s R[A] = function slot) and the inlined callee’s c field (nresults). pc is the address the helper writes onto the freshly-pushed frame so the interp resumes at the right offset inside the callee body.

repr(C) because the trace’s IR loads the array via raw pointer arithmetic; Rust’s default repr doesn’t guarantee field order. All-Copy fields with no padding inside each field — 12 bytes per entry on amd64.

Fields§

§base_offset: u32

Stack offset (relative to the trace head’s frame.base) of the callee’s first register slot. The new frame’s base is head_frame.base + base_offset; its func_slot is one below.

§pc: u32

PC to write on the freshly-pushed frame. For inner frames (not the innermost) this is the caller’s Call.pc + 1 so the interp resumes after the Call instruction. For the innermost frame (the one the side-exit fires inside) the dispatcher overrides this with the actual side-exit PC — keeps the helper PC-agnostic per the RFC’s “helper doesn’t know which frame is innermost” rule.

§nresults: i32

PUC nresults: how many return values the caller expects from this call (encoded as Op::Call’s C - 1). step4b-C’s pre-emit pass bails if any inlined Call has nresults != 1 (Op::Return1 copy-back assumes one value).

Trait Implementations§

Source§

impl Clone for FrameMaterializeInfo

Source§

fn clone(&self) -> FrameMaterializeInfo

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 Copy for FrameMaterializeInfo

Source§

impl Debug for FrameMaterializeInfo

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.