This repository was archived by the owner on Nov 3, 2021. It is now read-only.
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
Typed select's return type representation #64
Closed
Description
This proposal introduces a typed select instruction, which takes reference types and also a return type. The return type is written as a vector of valtype
. Currently only the vector of length 1 is accepted in the v8 validation. I guess the reason it is a vector is for the multivalue proposal, right?
Is there a reason this has a different representation from that of block
, loop
, and if
type when there are multiple types? blocktype
for the multivalue proposal says it is extended to have a type index in the presence of multi values. This will be applied to other instructions such as loop
s and if
s. Wouldn't it be better for select
to be consistent?
cc @tlively
Metadata
Metadata
Assignees
Labels
No labels