Skip to content

Commit 972f587

Browse files
authored
Add tags to core:sort (#635)
1 parent 4068dbc commit 972f587

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

design/mvp/Binary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ core:sort ::= 0x00 => fu
6969
| 0x01 => table
7070
| 0x02 => memory
7171
| 0x03 => global
72+
| 0x04 => tag
7273
| 0x10 => type
7374
| 0x11 => module
7475
| 0x12 => instance

design/mvp/Explainer.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,21 +170,22 @@ executing a component, there are 5 component-level index spaces:
170170
* component instances
171171
* components
172172

173-
5 core index spaces that also exist in WebAssembly 1.0:
173+
6 core index spaces that also exist in the Core WebAssembly specification:
174174
* (core) functions
175175
* (core) tables
176176
* (core) memories
177177
* (core) globals
178+
* (core) tags
178179
* (core) types
179180

180181
and 2 additional core index spaces that contain core definition introduced by
181-
the Component Model that are not in WebAssembly 1.0 (yet: the [module-linking]
182+
the Component Model that are not in Core WebAssembly (yet: the [module-linking]
182183
proposal would add them):
183184
* module instances
184185
* modules
185186

186-
for a total of 12 index spaces that need to be maintained by an implementation
187-
when, e.g., validating a component. These 12 index spaces correspond 1:1 with
187+
for a total of 13 index spaces that need to be maintained by an implementation
188+
when, e.g., validating a component. These 13 index spaces correspond 1:1 with
188189
the terminals of the `sort` production defined below and thus "sort" and
189190
"index space" can be used interchangeably.
190191

@@ -237,6 +238,7 @@ core:sort ::= func
237238
| table
238239
| memory
239240
| global
241+
| tag
240242
| type
241243
| module
242244
| instance

0 commit comments

Comments
 (0)