Expand description
Closure Creation
Functions for creating closures with captured values.
Functions§
- jit_
alloc_ ⚠owned_ mut_ cell - Allocate a heap cell for an
OwnedMutableclosure capture. - jit_
alloc_ ⚠owned_ mut_ cell_ bool - jit_
alloc_ ⚠owned_ mut_ cell_ f64 - jit_
alloc_ ⚠owned_ mut_ cell_ i8 - jit_
alloc_ ⚠owned_ mut_ cell_ i16 - jit_
alloc_ ⚠owned_ mut_ cell_ i32 - jit_
alloc_ ⚠owned_ mut_ cell_ i64 - jit_
alloc_ ⚠owned_ mut_ cell_ ptr - jit_
alloc_ ⚠owned_ mut_ cell_ u8 - jit_
alloc_ ⚠owned_ mut_ cell_ u16 - jit_
alloc_ ⚠owned_ mut_ cell_ u32 - jit_
alloc_ ⚠owned_ mut_ cell_ u64 - jit_
alloc_ ⚠shared_ cell - Allocate a fresh
Arc<SharedCell>frominitial_bitsand return the raw pointer bits of the strong share. - jit_
arc_ closure_ release - Release an
Arc<HeapValue>strong-count share for aNativeKind::Ptr(HeapKind::Closure)slot. Mirror ofjit_arc_closure_retain— usesArc::decrement_strong_count::<HeapValue>per Rust Arc contract. Reaching refcount zero runsHeapValue::Drop(which dispatches theClosureRawarm and retires theOwnedClosureBlock’s typed-closure header refcount via the block’s ownDrop). - jit_
arc_ closure_ retain - Retain (clone) an
Arc<HeapValue>strong-count share for aNativeKind::Ptr(HeapKind::Closure)slot. Bumps the standard Rust Arc refcount at offset -16 of theArc::into_rawpointer. - jit_
arc_ ⚠shared_ release - Release exactly one strong share of an
Arc<SharedCell>atptr.ptr == 0is a no-op, matching the interpreter’sop_drop_shared_localnull-pointer guard (the slot is overwritten with 0 after drop, so re-drops are silent). - jit_
arc_ ⚠shared_ retain - Retain a Shared capture’s
Arc<SharedCell>strong share. - jit_
finalize_ ⚠heap_ closure - Closure-spec Phase H2 → §14.6 (H6.5): wrap an H1-allocated
TypedClosureHeaderblock into a NaN-boxedArc<HeapValue::ClosureRaw>bits value. - jit_
make_ closure Deprecated - Create a closure with captured values from the stack.
- jit_
read_ ⚠owned_ mut_ cell_ bool - jit_
read_ ⚠owned_ mut_ cell_ f64 - jit_
read_ ⚠owned_ mut_ cell_ i8 - jit_
read_ ⚠owned_ mut_ cell_ i16 - jit_
read_ ⚠owned_ mut_ cell_ i32 - jit_
read_ ⚠owned_ mut_ cell_ i64 - jit_
read_ ⚠owned_ mut_ cell_ ptr - jit_
read_ ⚠owned_ mut_ cell_ u8 - jit_
read_ ⚠owned_ mut_ cell_ u16 - jit_
read_ ⚠owned_ mut_ cell_ u32 - jit_
read_ ⚠owned_ mut_ cell_ u64 - jit_
read_ ⚠shared_ cell_ bool - jit_
read_ ⚠shared_ cell_ f64 - jit_
read_ ⚠shared_ cell_ i8 - jit_
read_ ⚠shared_ cell_ i16 - jit_
read_ ⚠shared_ cell_ i32 - jit_
read_ ⚠shared_ cell_ i64 - jit_
read_ ⚠shared_ cell_ ptr - jit_
read_ ⚠shared_ cell_ u8 - jit_
read_ ⚠shared_ cell_ u16 - jit_
read_ ⚠shared_ cell_ u32 - jit_
read_ ⚠shared_ cell_ u64 - jit_
shared_ ⚠lock_ contended - Contended lock-slow-path helper for Shared capture reads/writes.
- jit_
shared_ ⚠unlock_ contended - Contended unlock-slow-path helper for Shared capture reads/writes.
- jit_
write_ ⚠owned_ mut_ cell_ bool - jit_
write_ ⚠owned_ mut_ cell_ f64 - jit_
write_ ⚠owned_ mut_ cell_ i8 - jit_
write_ ⚠owned_ mut_ cell_ i16 - jit_
write_ ⚠owned_ mut_ cell_ i32 - jit_
write_ ⚠owned_ mut_ cell_ i64 - jit_
write_ ⚠owned_ mut_ cell_ ptr - jit_
write_ ⚠owned_ mut_ cell_ u8 - jit_
write_ ⚠owned_ mut_ cell_ u16 - jit_
write_ ⚠owned_ mut_ cell_ u32 - jit_
write_ ⚠owned_ mut_ cell_ u64 - jit_
write_ ⚠shared_ cell_ bool - jit_
write_ ⚠shared_ cell_ f64 - jit_
write_ ⚠shared_ cell_ i8 - jit_
write_ ⚠shared_ cell_ i16 - jit_
write_ ⚠shared_ cell_ i32 - jit_
write_ ⚠shared_ cell_ i64 - jit_
write_ ⚠shared_ cell_ ptr - jit_
write_ ⚠shared_ cell_ u8 - jit_
write_ ⚠shared_ cell_ u16 - jit_
write_ ⚠shared_ cell_ u32 - jit_
write_ ⚠shared_ cell_ u64