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-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -655,7 +655,7 @@ It is up to the :ref:`embedder <embedder>` to define how such conditions are rep
655
655
656
656
13. Push the frame :math:`F` to the stack.
657
657
658
-
14. For each :ref:`element segment <syntax-elem>` :math:`\elem_i` in :math:`\module.\MELEMS` whose :ref:`mode <syntax-elemmode>` is of the form :math:`\EACTIVE~\{ \ETABLE~\tableidx_i, \EOFFSET~\X{einstr}^\ast_i~\END \}`, do:
658
+
14. For each :ref:`element segment <syntax-elem>` :math:`\elem_i` in :math:`\module.\MELEMS` whose :ref:`mode <syntax-elemmode>` is either of the form:math:`\EDECLARATIVE` or:math:`\EACTIVE~\{ \ETABLE~\tableidx_i, \EOFFSET~\X{einstr}^\ast_i~\END \}`, do:
659
659
660
660
a. Let :math:`n` be the length of the vector :math:`\elem_i.\EINIT`.
661
661
@@ -685,15 +685,19 @@ It is up to the :ref:`embedder <embedder>` to define how such conditions are rep
685
685
686
686
g. :ref:`Execute <exec-data.drop>` the instruction :math:`\DATADROP~i`.
687
687
688
-
16. If the :ref:`start function <syntax-start>` :math:`\module.\MSTART` is not empty, then:
688
+
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:`\DDECLARATIVE`, do:
689
+
690
+
a. :ref:`Execute <exec-data.drop>` the instruction :math:`\DATADROP~i`.
691
+
692
+
17. If the :ref:`start function <syntax-start>` :math:`\module.\MSTART` is not empty, then:
689
693
690
694
a. Let :math:`\start` be the :ref:`start function <syntax-start>` :math:`\module.\MSTART`.
691
695
692
696
b. :ref:`Execute <exec-call>` the instruction :math:`\CALL~\start.\SFUNC`.
693
697
694
-
17. Assert: due to :ref:`validation <valid-module>`, the frame :math:`F` is now on the top of the stack.
698
+
18. Assert: due to :ref:`validation <valid-module>`, the frame :math:`F` is now on the top of the stack.
0 commit comments