Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit ace0947

Browse files
authored
Memory64 spec tweaks and fixes from @rossberg (#98)
- Removed unnecessary/mismatching lookup of table/memory type in execution prose - Added missing result type lookup in formal rule for table.size and memory.size - Fixed computation of -1 result value for table.grow and table.size to work for i64 - Some fixes around specification of text format for inline elements/data shorthand - Fixed matching rules for tabletype/memtype to enforce same address type Split out from WebAssembly/spec#1839
1 parent ed1fc53 commit ace0947

File tree

6 files changed

+217
-267
lines changed

6 files changed

+217
-267
lines changed

document/core/binary/types.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Additional shorthands are recognized for unary recursions and sub types without
251251
Limits
252252
~~~~~~
253253

254-
:ref:`Limits <syntax-limits>` are encoded with a preceding flag indicating whether a maximum is present, and the corresponding :ref:`address type <syntax-addrtype>`.
254+
:ref:`Limits <syntax-limits>` are encoded with a preceding flag indicating whether a maximum is present, and a flag for the :ref:`address type <syntax-addrtype>`.
255255

256256
.. math::
257257
\begin{array}{llclll}
@@ -275,7 +275,7 @@ Memory Types
275275
.. math::
276276
\begin{array}{llclll@{\qquad\qquad}l}
277277
\production{memory type} & \Bmemtype &::=&
278-
(\X{at}, \X{lim}){:}\Blimits &\Rightarrow& \X{at}~~\X{lim} \\
278+
(\X{at},\X{lim}){:}\Blimits &\Rightarrow& \X{at}~\X{lim} \\
279279
\end{array}
280280
281281
@@ -291,7 +291,7 @@ Table Types
291291
.. math::
292292
\begin{array}{llclll}
293293
\production{table type} & \Btabletype &::=&
294-
\X{et}{:}\Breftype~~(\X{at}, \X{lim}){:}\Blimits &\Rightarrow& \X{at}~~\X{lim}~\X{et} \\
294+
\X{et}{:}\Breftype~~(\X{at},\X{lim}){:}\Blimits &\Rightarrow& \X{at}~\X{lim}~\X{et} \\
295295
\end{array}
296296
297297

0 commit comments

Comments
 (0)