Closed Bug 1617825 Opened 5 years ago Closed 5 years ago

Track ref.null / funcref <: anyref discussion

Categories

(Core :: JavaScript: WebAssembly, task, P2)

task

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: lth, Assigned: lth)

References

Details

There is an ongoing discussion in the reftypes proposal about whether funcref is a subtype of anyref. A consequence of this is another discussion about whether ref.null encodes a nulltype that's a subtype of all nullable reference types, or carries a type that designates the type of null that's encoded (eg, ref.null func would be type null<func> or maybe just the type funcref, depending).

This dicussion obviously blocks reftypes from shipping.

This discussion also blocks bulk memory from shipping because it affects the encoding of initialization expressions in element segments: they can currently be ref.func $f or ref.null, but the null encoding may need to change, and we can't ship until that's settled.

Summary: Wasm bulk memory: Track ref.null discussion → Track ref.null discussion
Summary: Track ref.null discussion → Track ref.null / funcref <: anyref discussion
Assignee: nobody → lhansen
Status: NEW → ASSIGNED

The discussion has been finalized, we're severing the subtyping relationship between funcref and anyref, and ref.null and ref.is_null become parameterized instructions.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.