Skip to main content

Module object

Module object 

Source
Expand description

Object headers and the kind-specific payload arenas.

Modules§

flags

Structs§

FunctionBytecode
The heap side of one published code unit, shared by every closure over it: the constant table, and the records of the unit’s children (as Int32 record indices) so that a live function keeps every function it can create alive. Both are value-heap ranges, traced like everything else.
FunctionRecord
The payload of a Function object.
Internal
The internal state of an object of a kind with ObjectKind::has_internal: internal slots, traced like properties, and data that holds no values.
ObjectHeader
One fixed-size record per object (20 bytes).
PayloadArenas
SavedFrame
The header of a suspended frame: everything Frame holds that is not a heap reference (the function is internal slot 0) or a position in the register file.

Enums§

InternalData
Non-value state of an internal record.
InternalTag
Which builtin an ObjectKind::Builtin object belongs to.
ObjectKind

Constants§

FRAME_SLOTS
The internal slots of a suspended activation before its registers: the function, then the kind’s own (an async function’s promise, an async generator’s request queue).
NONE
Sentinel for an absent index in a u32 payload field.