Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions document/core/appendix/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,44 @@ Added the ability to use multiple memories per module. [#proposal-multimem]_
* :ref:`Data segments <syntax-elem>` take a :ref:`memory index <syntax-memidx>`


.. index:: address type, number type, table, memory, instruction

64-bit Address Space
....................

Added the ability to declare an :math:`\I64` :ref:`address type <syntax-addrtype>` for :ref:`tables <syntax-tabletype>` and :ref:`memories <syntax-memtype>`. [#proposal-addr64]_

* :ref:`Address types <syntax-addrtype>` denote a subset of the integral :ref:`number types <syntax-numtype>`

* :ref:`Table types <syntax-tabletype>` include an :ref:`address type <syntax-addrtype>`

* :ref:`Memory types <syntax-memtype>` include an :ref:`address type <syntax-addrtype>`

* Operand types of :ref:`table <syntax-instr-table>` and :ref:`memory <syntax-instr-memory>` instructions now depend on the subject's declared address type:

- |TABLEGET|
- |TABLESET|
- |TABLESIZE|
- |TABLEGROW|
- |TABLEFILL|
- |TABLECOPY|
- |TABLEINIT|
- |MEMORYSIZE|
- |MEMORYGROW|
- |MEMORYFILL|
- |MEMORYCOPY|
- |MEMORYINIT|
- :math:`t\K{.load}`
- :math:`t\K{.store}`
- :math:`t\K{.load}\!N\!\K{\_}\sx`
- :math:`t\K{.store}\!N`
- :math:`\K{v128.load}\!N\!\K{x}\!M\!\K{\_}\sx`
- :math:`\K{v128.load}\!N\!\K{\_zero}`
- :math:`\K{v128.load}\!N\!\K{\_splat}`
- :math:`\K{v128.load}\!N\!\K{\_lane}`
- :math:`\K{v128.store}\!N\!\K{\_lane}`


.. index:: reference, reference type, heap type, value type, local, local type, instruction, instruction type, table, function, function type, matching, subtyping

Typeful References
Expand Down Expand Up @@ -595,6 +633,9 @@ mirroring the role of custom sections in the binary format. [#proposal-annot]_
.. [#proposal-multimem]
https://github.com/WebAssembly/spec/blob/main/proposals/multi-memory/

.. [#proposal-addr64]
https://github.com/WebAssembly/spec/blob/main/proposals/memory64/

.. [#proposal-typedref]
https://github.com/WebAssembly/spec/tree/main/proposals/function-references/

Expand Down
4 changes: 2 additions & 2 deletions document/core/appendix/embedding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Types
In the description of the embedder interface, syntactic classes from the :ref:`abstract syntax <syntax>` and the :ref:`runtime's abstract machine <syntax-runtime>` are used as names for variables that range over the possible objects from that class.
Hence, these syntactic classes can also be interpreted as types.

For numeric parameters, notation like :math:`n:\u32` is used to specify a symbolic name in addition to the respective value range.
For numeric parameters, notation like :math:`i:\u64` is used to specify a symbolic name in addition to the respective value range.


.. _embed-bool:
Expand Down Expand Up @@ -165,7 +165,7 @@ Modules
.. _embed-module-instantiate:

:math:`\F{module\_instantiate}(\store, \module, \externval^\ast) : (\store, \moduleinst ~|~ \exception ~|~ \error)`
....................................................................................................
...................................................................................................................

1. Try :ref:`instantiating <exec-instantiation>` :math:`\module` in :math:`\store` with :ref:`external values <syntax-externval>` :math:`\externval^\ast` as imports:

Expand Down
6 changes: 3 additions & 3 deletions document/core/binary/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Additional shorthands are recognized for unary recursions and sub types without
Limits
~~~~~~

:ref:`Limits <syntax-limits>` are encoded with a preceding flag indicating whether a maximum is present, and the corresponding :ref:`address type <syntax-addrtype>`.
: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>`.

.. math::
\begin{array}{llclll}
Expand All @@ -275,7 +275,7 @@ Memory Types
.. math::
\begin{array}{llclll@{\qquad\qquad}l}
\production{memory type} & \Bmemtype &::=&
(\X{at}, \X{lim}){:}\Blimits &\Rightarrow& \X{at}~~\X{lim} \\
(\X{at},\X{lim}){:}\Blimits &\Rightarrow& \X{at}~\X{lim} \\
\end{array}


Expand All @@ -291,7 +291,7 @@ Table Types
.. math::
\begin{array}{llclll}
\production{table type} & \Btabletype &::=&
\X{et}{:}\Breftype~~(\X{at}, \X{lim}){:}\Blimits &\Rightarrow& \X{at}~~\X{lim}~\X{et} \\
\X{et}{:}\Breftype~~(\X{at},\X{lim}){:}\Blimits &\Rightarrow& \X{at}~\X{lim}~\X{et} \\
\end{array}


Expand Down
Loading