Skip to main content

CallFrame

Struct CallFrame 

Source
pub struct CallFrame {
Show 13 fields pub fn_id: u32, pub ip: u32, pub bp: u32, pub local_count: u16, pub arena_mark: u32, pub yard_base: u32, pub yard_mark: u32, pub handoff_mark: u32, pub globals_dirty: bool, pub yard_dirty: bool, pub handoff_dirty: bool, pub thin: bool, pub parent_thin: bool,
}
Expand description

Minimal call frame: 16 bytes of metadata, no closure/upvalue fields.

Fields§

§fn_id: u32

Index into CodeStore::functions.

§ip: u32

Current instruction pointer (byte offset into FnChunk::code).

§bp: u32

Base pointer: index into VM stack where this frame’s locals start.

§local_count: u16

Number of local slots (params + local bindings).

§arena_mark: u32

Arena length at function entry; allocations above this mark are local to the frame unless promoted on return/tail-call.

§yard_base: u32

Yard length at function entry; reused TCO frames compact this suffix so loop-carried survivors do not accumulate across iterations.

§yard_mark: u32

Current yard suffix owned by this frame iteration. Reused TCO frames may advance this mark so older carried survivors become the shared prefix for the next iteration.

§handoff_mark: u32

Handoff length at function entry; ordinary returns compact this suffix so helper results can survive into the caller without polluting stable.

§globals_dirty: bool

Whether this frame stored a young-region value into globals.

§yard_dirty: bool

Whether ordinary returns introduced caller-yard survivors that should be pruned on the next tail-call boundary.

§handoff_dirty: bool

Whether helper returns introduced handoff survivors that should be pruned on the next boundary of this frame.

§thin: bool

Conservatively classified as cheap enough for a fast return path.

§parent_thin: bool

Uses the caller young region as its allocation lane and skips ordinary-return handoff while it remains a pure wrapper frame.

Trait Implementations§

Source§

impl Clone for CallFrame

Source§

fn clone(&self) -> CallFrame

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CallFrame

Source§

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

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V