Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit 86c7e35

Browse files
gahaasrossberg
authored andcommitted
[spec] Adjust binary format of element segments (#46)
1 parent 0f7f930 commit 86c7e35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

document/core/binary/modules.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ It decodes into a vector of :ref:`element segments <syntax-elem>` that represent
319319
\production{element section} & \Belemsec &::=&
320320
\X{seg}^\ast{:}\Bsection_9(\Bvec(\Belem)) &\Rightarrow& \X{seg} \\
321321
\production{element segment} & \Belem &::=&
322-
x{:}\Btableidx~~e{:}\Bexpr~~y^\ast{:}\Bvec(\Bfuncidx)
322+
\hex{00}~~e{:}\Bexpr~~y^\ast{:}\Bvec(\Bfuncidx)
323+
&\Rightarrow& \{ \ETABLE~0, \EOFFSET~e, \EINIT~y^\ast \} \\ &&|&
324+
\hex{02}~~x{:}\Btableidx~~e{:}\Bexpr~~y^\ast{:}\Bvec(\Bfuncidx)
323325
&\Rightarrow& \{ \ETABLE~x, \EOFFSET~e, \EINIT~y^\ast \} \\
324326
\end{array}
325327

0 commit comments

Comments
 (0)