pub fn unwrap(self: Value) union(enum) 9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033 pub fn unwrap(self: Value) union(enum) {
instruction: Function.Instruction.Index,
constant: Constant,
metadata: Metadata,
} {
return if (@backingInt(self) < first_constant)
.{ .instruction = @fromBackingInt(@backingInt(self)) }
else if (@backingInt(self) < first_metadata)
.{ .constant = @fromBackingInt(@backingInt(self) - first_constant) }
else
.{ .metadata = @bitCast(@backingInt(self) - first_metadata) };
}