Merge branch 'heap_blob'
This commit is contained in:
@@ -898,12 +898,12 @@ typedef struct JSArray {
|
||||
JSValue values[]; /* inline flexible array member */
|
||||
} JSArray;
|
||||
|
||||
/* JSBlob — not allocated on GC heap (blobs use JSRecord + opaque).
|
||||
Struct kept for reference; gc_object_size/gc_scan_object do not handle OBJ_BLOB. */
|
||||
/* JSBlob — inline bit data on the GC heap.
|
||||
cap56 = capacity in bits, S bit = stone (immutable). */
|
||||
typedef struct JSBlob {
|
||||
objhdr_t mist_hdr;
|
||||
word_t length;
|
||||
uint8_t bits[];
|
||||
objhdr_t mist_hdr; /* type=OBJ_BLOB, cap56=capacity_bits, S=stone */
|
||||
word_t length; /* used bits */
|
||||
word_t bits[]; /* inline bit data, ceil(cap56/64) words */
|
||||
} JSBlob;
|
||||
|
||||
typedef struct JSText {
|
||||
|
||||
690
source/runtime.c
690
source/runtime.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user