feat(vm): add reference identity and deterministic value hashing
This commit is contained in:
@@ -315,3 +315,13 @@ STORAGE_PUBLISH (0xAA) provide generic logical validation, complete stored-group
|
||||
transfer and prepared atomic publication. Their encoding, typed operands, exact
|
||||
faults, overlap semantics, costs and preflight/commit guarantees are defined by
|
||||
the [canonical instruction contract](02-vm-instruction-set.md#logical-guards-and-atomic-storage-publication). No new Registry category, syscall, collection algorithm or safepoint is introduced.
|
||||
|
||||
## Identity queries
|
||||
|
||||
[Identity queries](02f-vm-identity-and-value-hashing.md) add opcodes 0x0097
|
||||
(source TypeId, six bytes) and 0x0098 (left/right TypeIds, ten bytes). Sources
|
||||
are Struct, Array, Fn, Trait and Random; validate complete groups before
|
||||
consulting handles. They add no PBX section, value type or layout change. The
|
||||
older REF_IS_EXACT/IMPLEMENTS/TO_TRAIT/CAST category restrictions remain intact.
|
||||
Intrinsic argument nullability is explicit per entry: hash.string admits known
|
||||
null at load without relaxing the static masks of existing String intrinsics.
|
||||
|
||||
Reference in New Issue
Block a user