Commit 6f98299
Add type definition for
This changes the component model specification to reference a `rectype`
in its type defintions. This makes sense since the [GC] proposal has
graduated to become standard WebAssembly and the previous definitions
refer to `arraytype` and `structtype` which are subsumed by `rectype`.
Adding this also benefits the [shared-everything-threads] proposal,
which uses `shared` bits on composite types.
In talking with @alexcrichton about this, the `functype` alternative is
retained for now to allow backward compatibility for existing components
(e.g., components using the `0x60` prefix to define a core `functype`).
In the future, the `functype` alternative should be removed completely
(since it is subsumed under `rectype`). Potentially the `0x00` prefix
could be tweaked as well. In the meantime, this change allows more than
one way to encode a `functype`.
[GC]: https://github.com/WebAssembly/gc
[shared-everything-threads]: https://github.com/WebAssembly/shared-everything-threads
Co-authored-by: Alex Crichton <alex@alexcrichton.com>rectype
1 parent cc4e9d2 commit 6f98299
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
| |||
474 | 481 | | |
475 | 482 | | |
476 | 483 | | |
| 484 | + | |
477 | 485 | | |
478 | 486 | | |
479 | 487 | | |
| |||
0 commit comments