QuickBEAM.VM.Heap.Store (QuickBEAM v0.10.9)

Copy Markdown View Source

Low-level process-dictionary storage for JS heap objects: objects, arrays, cells, atoms, and GC roots.

Summary

Functions

Reads an element from heap array storage by object reference.

Appends values to heap array storage and returns the new length.

Writes an element in heap array storage by object reference.

Marks a heap object as frozen.

Reads a closure/capture cell value.

Returns static properties associated with a constructor value.

Returns raw heap storage for an object reference without shape reconstruction.

Reads a process-local VM variable slot.

Allocates a new monotonically increasing heap object id.

Returns whether a heap object reference stores array data.

Stores the prototype object associated with a constructor.

Helper for low-level process-dictionary storage for js heap objects: objects, arrays, cells, atoms, and gc roots.

Writes one key into object storage while preserving shape metadata when possible.

Updates heap object data with a function after reconstructing shaped objects as maps.

Functions

array_get(ref, idx)

Reads an element from heap array storage by object reference.

array_push(ref, values)

Appends values to heap array storage and returns the new length.

array_set(ref, idx, val)

Writes an element in heap array storage by object reference.

array_size(ref)

delete_array_prop(ref, key)

delete_parent_ctor(ctor)

delete_var(name)

extensible?(ref)

freeze(ref)

Marks a heap object as frozen.

frozen?(ref)

get_array_prop(ref, key)

get_array_props(ref)

get_cell(ref)

Reads a closure/capture cell value.

get_class_proto(ctor)

get_ctor_statics(ctor)

Returns static properties associated with a constructor value.

get_obj(ref)

get_obj(ref, default)

get_obj_raw(ref)

Returns raw heap storage for an object reference without shape reconstruction.

get_parent_ctor(ctor)

get_prop_desc(ref, key)

get_var(name)

Reads a process-local VM variable slot.

next_id()

Allocates a new monotonically increasing heap object id.

obj_is_array?(ref)

Returns whether a heap object reference stores array data.

obj_to_list(ref)

prevent_extensions(ref)

put_array_prop(ref, key, val)

put_cell(ref, val)

put_class_proto(ctor, proto)

Stores the prototype object associated with a constructor.

put_ctor_static(ctor, key, val)

put_ctor_statics(ctor, statics)

put_obj(ref, list)

Helper for low-level process-dictionary storage for js heap objects: objects, arrays, cells, atoms, and gc roots.

put_obj_key(ref, key, val)

Writes one key into object storage while preserving shape metadata when possible.

put_obj_key(ref, map, key, val)

put_obj_raw(ref, val)

put_parent_ctor(ctor, parent)

put_prop_desc(ref, key, desc)

put_var(name, val)

update_obj(ref, default, fun)

Updates heap object data with a function after reconstructing shaped objects as maps.