pr9.4
This commit is contained in:
@@ -51,12 +51,15 @@
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
|
||||
pub enum ObjectKind {
|
||||
/// Reserved/unknown kind. Should not appear in valid allocations.
|
||||
#[allow(dead_code)] // Kept for stable tag layout and persisted images, even if not constructed in this crate yet
|
||||
Unknown = 0,
|
||||
|
||||
/// UTF-8 string. `payload_len` is the number of bytes.
|
||||
#[allow(dead_code)] // Public/stable tag retained; construction may live in higher layers
|
||||
String = 1,
|
||||
|
||||
/// Homogeneous array of VM values/handles. `payload_len` is element count.
|
||||
#[allow(dead_code)] // Public/stable tag retained; constructed via Heap helpers in tests
|
||||
Array = 2,
|
||||
|
||||
/// Compiled closure/function value.
|
||||
@@ -69,9 +72,11 @@ pub enum ObjectKind {
|
||||
Closure = 3,
|
||||
|
||||
/// Byte buffer / blob. `payload_len` is the number of bytes.
|
||||
#[allow(dead_code)] // Public/stable tag retained for future/host APIs
|
||||
Bytes = 4,
|
||||
|
||||
/// User-defined/native host object. Payload shape is host-defined.
|
||||
#[allow(dead_code)] // Reserved for host/native integrations
|
||||
UserData = 5,
|
||||
|
||||
/// Coroutine object: suspended execution context with its own stack/frames.
|
||||
|
||||
Reference in New Issue
Block a user