Skip to main content

Module slot

Module slot 

Source
Expand description

ValueSlot: 8-byte raw value storage for TypedObject fields

Each slot stores exactly 8 bytes of raw bits. Simple types (f64, i64, bool) use their native bit representation. Complex types (strings, arrays, objects) are stored as heap-allocated Box raw pointers.

The slot itself does NOT self-describe its type. TypedObject’s heap_mask bitmap identifies which slots contain heap pointers (bit N set = slot N is heap).

Structs§

ValueSlot
A raw 8-byte value slot for TypedObject field storage.