You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: document/core/exec/modules.rst
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -659,19 +659,17 @@ It is up to the :ref:`embedder <embedder>` to define how such conditions are rep
659
659
660
660
14. For each :ref:`data segment <syntax-data>` :math:`\data_i` in :math:`\module.\MDATAS` whose :ref:`mode <syntax-datamode>` is of the form :math:`\DACTIVE~\{ \DMEM~\memidx_i, \DOFFSET~\X{dinstr}^\ast_i~\END \}`, do:
661
661
662
-
a. Assert::math:`\memidx_i` is :math:`0`.
662
+
a. Let:math:`n` be the length of the vector :math:`\data_i.\DINIT`.
663
663
664
-
b. Let :math:`n` be the length of the vector :math:`\data_i.\DINIT`.
664
+
b. :ref:`Execute <exec-instr-seq>` the instruction sequence :math:`\X{dinstr}^\ast_i`.
665
665
666
-
c. :ref:`Execute <exec-instr-seq>` the instruction sequence :math:`\X{dinstr}^\ast_i`.
667
-
668
-
d. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~0`.
666
+
c. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~0`.
669
667
670
-
e. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~n`.
668
+
d. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~n`.
671
669
672
-
f. :ref:`Execute <exec-memory.init>` the instruction :math:`\MEMORYINIT~i`.
670
+
e. :ref:`Execute <exec-memory.init>` the instruction :math:`\MEMORYINIT~i`.
673
671
674
-
g. :ref:`Execute <exec-data.drop>` the instruction :math:`\DATADROP~i`.
672
+
f. :ref:`Execute <exec-data.drop>` the instruction :math:`\DATADROP~i`.
675
673
676
674
15. If the :ref:`start function <syntax-start>` :math:`\module.\MSTART` is not empty, then:
0 commit comments