This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Refactor cast opcodes? #274
Closed
Description
With the addition arrayref and structref, it would make sense to refactor cast and classification opcodes to something more modular: instead of a long list of individual opcodes, use an immediate, like in br_on <heaptype>
(with some suitable restrictions), and similarly ref.is <ht>
and ref.as <ht>
. The interpreter has long been using something similar internally.
Edit: To clarify, this is solely suggesting a change to the encoding of this group of instructions, not affecting their semantics.
Metadata
Metadata
Assignees
Labels
No labels