pr7.1
This commit is contained in:
@@ -74,6 +74,15 @@ pub enum ObjectKind {
|
||||
/// User-defined/native host object. Payload shape is host-defined.
|
||||
UserData = 5,
|
||||
|
||||
/// Coroutine object: suspended execution context with its own stack/frames.
|
||||
///
|
||||
/// Notes:
|
||||
/// - Stack/frames are stored in typed fields inside the heap storage
|
||||
/// (not inside raw `payload` bytes) so the GC can traverse their
|
||||
/// contained `HeapRef`s directly.
|
||||
/// - `payload_len` is 0 for this fixed-layout object.
|
||||
Coroutine = 6,
|
||||
|
||||
// Future kinds must be appended here to keep tag numbers stable.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user