refactor(vm)!: remove publication and logical guard opcodes
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good
Remove INDEX_GUARD, ARRAY_CHECK_LENGTH, STORAGE_PUBLISH and FIELDS_PUBLISH from decoding, metadata, tooling, verification and execution. Keep ARRAY_LEN and overlap-safe ARRAY_COPY with complete-group ownership and early charging of calculable copy work, including refused attempts. Update specifications, producer handoff, qualification evidence and lessons. Share collection test support and remove redundant Copy clones for Clippy. Validation: make ci-domains passed with 1,095 workspace tests, five separately executed debugger socket tests and all 15 unchanged coverage domain gates. VM release, resource diagnostics and layer/quality suites also passed. BREAKING CHANGE: PBX using opcodes 0xA7, 0xA8, 0xAA or 0xAB is rejected, including unreachable instructions. Consumers must adapt their emission and collection algorithms or operational guarantees.
This commit is contained in:
@@ -223,15 +223,18 @@ Threshold GC opportunities are FRAME_SYNC and successful RET of the last root, a
|
||||
[Random objects](02e-vm-owned-random-core.md) use ObjectKind tag 9 (tag 6 remains reserved), 32 logical payload bytes and quota-accounted headers/handles/auxiliary storage. They are opaque GC leaves; Dynamic holds their direct reference and exact TypeId.
|
||||
|
||||
|
||||
## Prepared storage publication
|
||||
## Prepared array range copy
|
||||
|
||||
Generic complete-group transfer/publication reserves its copy scratch against
|
||||
TemporaryBytes before changing any destination. Source groups preserve Dynamic
|
||||
presence tags and immutable box/native owner/reference identities. Operands remain
|
||||
roots throughout preparation; the commit phase has no allocation, GC, scheduler or
|
||||
callback boundary. Refusal changes neither destinations nor input groups, and
|
||||
releases temporary reservations. Consumer return carriers must be prepared before
|
||||
publication. See [the instruction contract](02c-program-registry-and-pbx-v0.md#logical-guards-and-atomic-storage-publication).
|
||||
ARRAY_COPY reserves all copy scratch against TemporaryBytes and captures complete
|
||||
source groups before changing any destination. Preserve Dynamic tags, immutable
|
||||
boxes, native String owners, HeapRefs and trait groups without boxing or new guest
|
||||
objects/request tokens. Operands remain roots; commit has no allocation, fallible
|
||||
validation, callback, GC or scheduler boundary. No rescue GC is performed.
|
||||
Failure preserves destinations and operands and releases provisional scratch;
|
||||
success also releases scratch, then consumes the five operands. Charged cycles
|
||||
are never refunded. Overlap reads the pre-attempt source sequence, without an
|
||||
identity discount. Earlier instructions retain their effects; multiple ordinary
|
||||
stores do not form a transaction. See [the instruction contract](02-vm-instruction-set.md#typed-array-range-copy).
|
||||
|
||||
## Borrowed intrinsic invocation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user