This commit is contained in:
2026-03-24 13:40:36 +00:00
parent 73dc0c4cb2
commit 29056ce0ad
6 changed files with 31 additions and 67 deletions
-34
View File
@@ -1,37 +1,3 @@
# PR-1.2 — Remove HIP/RC Trap Codes From ABI
### Briefing
The new architecture removes HIP/RC completely. Any ABI surface describing HIP traps or gate-related traps must be deleted.
### Target
* Delete HIP/RC trap codes from bytecode ABI.
* Replace with a minimal, architecture-aligned trap/error taxonomy.
### Work items
* Remove HIP trap constants/enums (e.g., anything like `TRAP_INVALID_GATE`, `TRAP_DEAD_GATE`, and related HIP trap identifiers).
* If there is a shared trap enum used by VM/tooling:
* Keep only traps that remain meaningful in the GC stack+heap model (e.g., OOB, illegal instruction, stack underflow), as specified.
* Rename/restructure as needed to reflect the reset.
* Update any match arms / formatting / disasm text that referenced HIP traps.
* Update tests and fixtures accordingly.
### Acceptance checklist
* [ ] No HIP/gate trap identifiers remain in the codebase.
* [ ] Bytecode crates compile.
* [ ] Disassembler / printers compile and produce readable output for remaining traps.
* [ ] `cargo test` passes.
### Tests
* Update/adjust any trap-related unit tests.
---
# PR-1.3 — Remove RC/HIP Opcodes From `opcode` and Decode/Encode Paths
### Briefing