Skip to content

Commit d801d29

Browse files
authored
Merge main into wasm-3.0 (#1945)
1 parent e69cee1 commit d801d29

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

document/core/binary/conventions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ In order to distinguish symbols of the binary syntax from symbols of the abstrac
5858

5959
* Productions are written :math:`\B{sym} ::= B_1 \Rightarrow A_1 ~|~ \dots ~|~ B_n \Rightarrow A_n`, where each :math:`A_i` is the attribute that is synthesized for :math:`\B{sym}` in the given case, usually from attribute variables bound in :math:`B_i`.
6060

61+
* Large productions may be split into multiple definitions, indicated by ending the first one with explicit ellipses, :math:`\B{sym} ::= B_1 \Rightarrow A_1 ~|~ \dots`, and starting continuations with ellipses, :math:`\B{sym} ::= \dots ~|~ B_2 \Rightarrow A_2`.
62+
6163
* Some productions are augmented by side conditions in parentheses, which restrict the applicability of the production. They provide a shorthand for a combinatorial expansion of the production into many separate cases.
6264

6365
* If the same meta variable or non-terminal symbol appears multiple times in a production (in the syntax or in an attribute), then all those occurrences must have the same instantiation.

document/core/binary/instructions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ Control Instructions
9797
0{:}\Bu8 &\Rightarrow& (\epsilon, \epsilon) \\ &&|&
9898
1{:}\Bu8 &\Rightarrow& (\NULL, \epsilon) \\ &&|&
9999
2{:}\Bu8 &\Rightarrow& (\epsilon, \NULL) \\ &&|&
100-
3{:}\Bu8 &\Rightarrow& (\NULL, \NULL) \\
100+
3{:}\Bu8 &\Rightarrow& (\NULL, \NULL) \\ &&|&
101+
\dots
101102
\end{array}
102103
103104
.. note::

document/core/text/conventions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ In order to distinguish symbols of the textual syntax from symbols of the abstra
5353

5454
* Productions are written :math:`\T{sym} ::= T_1 \Rightarrow A_1 ~|~ \dots ~|~ T_n \Rightarrow A_n`, where each :math:`A_i` is the attribute that is synthesized for :math:`\T{sym}` in the given case, usually from attribute variables bound in :math:`T_i`.
5555

56+
* Large productions may be split into multiple definitions, indicated by ending the first one with explicit ellipses, :math:`\T{sym} ::= T_1 \Rightarrow A_1 ~|~ \dots`, and starting continuations with ellipses, :math:`\T{sym} ::= \dots ~|~ T_2 \Rightarrow A_2`.
57+
5658
* Some productions are augmented by side conditions in parentheses, which restrict the applicability of the production. They provide a shorthand for a combinatorial expansion of the production into many separate cases.
5759

5860
* If the same meta variable or non-terminal symbol appears multiple times in a production (in the syntax or in an attribute), then all those occurrences must have the same instantiation.

document/core/text/instructions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ All other control instruction are represented verbatim.
156156
\text{return\_call\_indirect}~~x{:}\Ttableidx~~y,I'{:}\Ttypeuse_I &\Rightarrow& \RETURNCALLINDIRECT~x~y
157157
& (\iff I' = \{\ILOCALS~(\epsilon)^\ast\}) \\ &&|&
158158
\text{throw}~~x{:}\Ttagidx_I &\Rightarrow& \THROW~x \\ &&|&
159-
\text{throw\_ref} &\Rightarrow& \THROWREF \\
159+
\text{throw\_ref} &\Rightarrow& \THROWREF \\ &&|&
160+
\dots
160161
\end{array}
161162
162163
.. note::

test/core/binary.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@
669669
(module binary
670670
"\00asm" "\01\00\00\00"
671671
"\05\03\01" ;; memory section with one entry
672-
"\08" ;; malformed memory limits flag
672+
"\10" ;; malformed memory limits flag
673673
"\00" ;; dummy byte
674674
)
675675
"malformed limits flags"

test/core/global.wast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@
390390
"\0a\67\6c\6f\62\61\6c\5f\69\33\32" ;; "global_i32"
391391
"\03" ;; GlobalImport
392392
"\7f" ;; i32
393-
"\02" ;; malformed mutability
393+
"\04" ;; malformed mutability
394394
)
395395
"malformed mutability"
396396
)
@@ -417,7 +417,7 @@
417417
"\06\86\80\80\80\00" ;; global section
418418
"\01" ;; length 1
419419
"\7f" ;; i32
420-
"\02" ;; malformed mutability
420+
"\04" ;; malformed mutability
421421
"\41\00" ;; i32.const 0
422422
"\0b" ;; end
423423
)

0 commit comments

Comments
 (0)