Skip to content

Commit 24b0882

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents be7ce1b + f89d298 commit 24b0882

File tree

17 files changed

+76
-24
lines changed

17 files changed

+76
-24
lines changed

document/core/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ latex:
268268
latexpdf:
269269
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
270270
@echo "Running LaTeX files through pdflatex..."
271-
$(MAKE) -C $(BUILDDIR)/latex all-pdf
271+
$(MAKE) -C $(BUILDDIR)/latex LATEXMKOPTS=" </dev/null" all-pdf >$(BUILDDIR)/latex/LOG 2>&1 || cat $(BUILDDIR)/latex/LOG
272272
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
273273

274274
.PHONY: latexpdfja

document/core/appendix/properties.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,15 @@ Module instances are classified by *module contexts*, which are regular :ref:`co
218218

219219
* Or the :ref:`external value <syntax-externval>` :math:`\EVFUNC~\X{fa}` must be :ref:`valid <valid-externval-func>` with some :ref:`external type <syntax-externtype>` :math:`\ETFUNC~\X{ft}`.
220220

221-
* The :ref:`limits <syntax-limits>` :math:`\{\LMIN~n, \LMAX~m^?\}` must be :ref:`valid <valid-limits>`.
221+
* The :ref:`limits <syntax-limits>` :math:`\{\LMIN~n, \LMAX~m^?\}` must be :ref:`valid <valid-limits>` within range :math:`2^{32}`.
222222

223223
* Then the table instance is valid with :ref:`table type <syntax-tabletype>` :math:`\{\LMIN~n, \LMAX~m^?\}~\FUNCREF`.
224224

225225
.. math::
226226
\frac{
227227
((S \vdash \EVFUNC~\X{fa} : \ETFUNC~\functype)^?)^n
228228
\qquad
229-
\vdashlimits \{\LMIN~n, \LMAX~m^?\} \ok
229+
\vdashlimits \{\LMIN~n, \LMAX~m^?\} : 2^{32}
230230
}{
231231
S \vdashtableinst \{ \TIELEM~(\X{fa}^?)^n, \TIMAX~m^? \} : \{\LMIN~n, \LMAX~m^?\}~\FUNCREF
232232
}
@@ -238,13 +238,13 @@ Module instances are classified by *module contexts*, which are regular :ref:`co
238238
:ref:`Memory Instances <syntax-meminst>` :math:`\{ \MIDATA~b^n, \MIMAX~m^? \}`
239239
..............................................................................
240240

241-
* The :ref:`limits <syntax-limits>` :math:`\{\LMIN~n, \LMAX~m^?\}` must be :ref:`valid <valid-limits>`.
241+
* The :ref:`limits <syntax-limits>` :math:`\{\LMIN~n, \LMAX~m^?\}` must be :ref:`valid <valid-limits>` within range :math:`2^{16}`.
242242

243243
* Then the memory instance is valid with :ref:`memory type <syntax-memtype>` :math:`\{\LMIN~n, \LMAX~m^?\}`.
244244

245245
.. math::
246246
\frac{
247-
\vdashlimits \{\LMIN~n, \LMAX~m^?\} \ok
247+
\vdashlimits \{\LMIN~n, \LMAX~m^?\} : 2^{16}
248248
}{
249249
S \vdashmeminst \{ \MIDATA~b^n, \MIMAX~m^? \} : \{\LMIN~n, \LMAX~m^?\}
250250
}

document/core/exec/modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Modules
22
-------
33

4-
For modules, the execution semantics primarily defines :ref:`instantiation <exec-instantiation>`, which :ref:`allocates <alloc>` instances for a module and its contained definitions, inititializes :ref:`tables <syntax-table>` and :ref:`memories <syntax-mem>` from contained :ref:`element <syntax-elem>` and :ref:`data <syntax-data>` segments, and invokes the :ref:`start function <syntax-start>` if present. It also includes :ref:`invocation <exec-invocation>` of exported functions.
4+
For modules, the execution semantics primarily defines :ref:`instantiation <exec-instantiation>`, which :ref:`allocates <alloc>` instances for a module and its contained definitions, initializes :ref:`tables <syntax-table>` and :ref:`memories <syntax-mem>` from contained :ref:`element <syntax-elem>` and :ref:`data <syntax-data>` segments, and invokes the :ref:`start function <syntax-start>` if present. It also includes :ref:`invocation <exec-invocation>` of exported functions.
55

66
Instantiation depends on a number of auxiliary notions for :ref:`type-checking imports <exec-import>` and :ref:`allocating <alloc>` instances.
77

document/js-api/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Status: ED
66
Level: 1
77
TR: https://www.w3.org/TR/wasm-js-api-1/
88
ED: https://webassembly.github.io/spec/js-api/
9-
Editor: Daniel Ehrenberg (Igalia)
9+
Editor: Ms2ger (Igalia)
1010
Repository: WebAssembly/spec
1111
Markup Shorthands: css no, markdown yes
1212
Abstract: This document provides an explicit JavaScript API for interacting with WebAssembly.

document/web-api/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Status: ED
66
Level: 1
77
TR: https://www.w3.org/TR/wasm-web-api-1/
88
ED: https://webassembly.github.io/spec/web-api/
9-
Editor: Daniel Ehrenberg (Igalia)
9+
Editor: Ms2ger (Igalia)
1010
Repository: WebAssembly/spec
1111
Abstract: This document describes the integration of WebAssembly with the broader web platform.
1212
Markup Shorthands: css no, markdown yes

interpreter/exec/eval.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ let rec step (c : config) : config =
180180
vs', [Plain (Br (Lib.List32.nth xs i)) @@ e.at]
181181

182182
| Return, vs ->
183-
vs, [Returning vs @@ e.at]
183+
[], [Returning vs @@ e.at]
184184

185185
| Call x, vs ->
186186
vs, [Invoke (func frame.inst x) @@ e.at]

test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This directory contains the WebAssembly test suite. It is split into two
1+
This directory contains the WebAssembly test suite. It is split into three
22
directories:
33

44
* [`core/`](core/), tests for the core semantics

test/core/binary.wast

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,3 +1186,33 @@
11861186
)
11871187
"invalid value type"
11881188
)
1189+
1190+
;; Start section
1191+
(module binary
1192+
"\00asm" "\01\00\00\00"
1193+
"\01\04\01\60\00\00" ;; Type section
1194+
"\03\02\01\00" ;; Function section
1195+
"\08\01\00" ;; Start section: function 0
1196+
1197+
"\0a\04\01" ;; Code section
1198+
;; function 0
1199+
"\02\00"
1200+
"\0b" ;; end
1201+
)
1202+
1203+
;; Multiple start sections
1204+
(assert_malformed
1205+
(module binary
1206+
"\00asm" "\01\00\00\00"
1207+
"\01\04\01\60\00\00" ;; Type section
1208+
"\03\02\01\00" ;; Function section
1209+
"\08\01\00" ;; Start section: function 0
1210+
"\08\01\00" ;; Start section: function 0
1211+
1212+
"\0a\04\01" ;; Code section
1213+
;; function 0
1214+
"\02\00"
1215+
"\0b" ;; end
1216+
)
1217+
"junk after last section"
1218+
)

test/core/call_indirect.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,5 +938,5 @@
938938

939939
(assert_invalid
940940
(module (table funcref (elem 0 0)))
941-
"unknown function 0"
941+
"unknown function"
942942
)

test/core/data.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
(module
291291
(data (i32.const 0) "")
292292
)
293-
"unknown memory 0"
293+
"unknown memory"
294294
)
295295

296296
;; Invalid offsets

0 commit comments

Comments
 (0)