Skip to main content

Module copying

Module copying 

Source
Expand description

Layout of Wasm GC objects in the copying garbage collector.

Structs§

CopyingTypeLayouts
The layout of Wasm GC objects in the copying collector.

Constants§

ALIGN
The alignment of all GC objects in the copying collector.
ARRAY_LENGTH_OFFSET
The offset of the length field in a VMCopyingArrayHeader.
EXCEPTION_TAG_DEFINED_OFFSET
The offset of the tag-defined-index field in an exception header.
EXCEPTION_TAG_INSTANCE_OFFSET
The offset of the tag-instance-index field in an exception header.
FORWARDING_REF_OFFSET
The offset within this GC object, which must have the HEADER_COPIED_BIT set and must reside within the old semi-space, where the new copy of this object is located within the new semi-space.
HEADER_COPIED_BIT
The bit within a VMCopyingHeader’s reserved bits that represents whether, during a collection, the object has already been copied into the new semi-space.
HEADER_SIZE
The size of the VMCopyingHeader header for GC objects.
MIN_OBJECT_SIZE
The minimum object size: every object must have enough room for the forwarding reference that the copying collector writes during collection.