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
@@ -674,19 +674,17 @@ It is up to the :ref:`embedder <embedder>` to define how such conditions are rep
674
674
675
675
16. 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:
676
676
677
-
a. Assert::math:`\memidx_i` is :math:`0`.
677
+
a. Let:math:`n` be the length of the vector :math:`\data_i.\DINIT`.
678
678
679
-
b. Let :math:`n` be the length of the vector :math:`\data_i.\DINIT`.
679
+
b. :ref:`Execute <exec-instr-seq>` the instruction sequence :math:`\X{dinstr}^\ast_i`.
680
680
681
-
c. :ref:`Execute <exec-instr-seq>` the instruction sequence :math:`\X{dinstr}^\ast_i`.
682
-
683
-
d. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~0`.
681
+
c. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~0`.
684
682
685
-
e. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~n`.
683
+
d. :ref:`Execute <exec-const>` the instruction :math:`\I32.\CONST~n`.
686
684
687
-
f. :ref:`Execute <exec-memory.init>` the instruction :math:`\MEMORYINIT~i`.
685
+
e. :ref:`Execute <exec-memory.init>` the instruction :math:`\MEMORYINIT~i`.
688
686
689
-
g. :ref:`Execute <exec-data.drop>` the instruction :math:`\DATADROP~i`.
687
+
f. :ref:`Execute <exec-data.drop>` the instruction :math:`\DATADROP~i`.
690
688
691
689
17. If the :ref:`start function <syntax-start>` :math:`\module.\MSTART` is not empty, then:
0 commit comments