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/runtime.rst
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -419,6 +419,7 @@ It filters out entries of a specific kind in an order-preserving fashion:
419
419
pair: abstract syntax; frame
420
420
pair: abstract syntax; label
421
421
.. _syntax-frame:
422
+
.. _syntax-framestate:
422
423
.. _syntax-label:
423
424
.. _frame:
424
425
.. _label:
@@ -486,6 +487,8 @@ and a reference to the function's own :ref:`module instance <syntax-moduleinst>`
486
487
.. math::
487
488
\begin{array}{llll}
488
489
\production{frame} & \frame &::=&
490
+
\FRAME_n\{ \framestate \} \\
491
+
\production{frame state} & \framestate &::=&
489
492
\{ \ALOCALS~\val^\ast, \AMODULE~\moduleinst \} \\
490
493
\end{array}
491
494
@@ -499,7 +502,7 @@ Conventions
499
502
500
503
* The meta variable :math:`L` ranges over labels where clear from context.
501
504
502
-
* The meta variable :math:`F` ranges over frames where clear from context.
505
+
* The meta variable :math:`F` ranges over frame states where clear from context.
503
506
504
507
* The following auxiliary definition takes a :ref:`block type <syntax-blocktype>` and looks up the :ref:`function type <syntax-functype>` that it denotes in the current frame:
505
508
@@ -534,7 +537,7 @@ In order to express the reduction of :ref:`traps <trap>`, :ref:`calls <syntax-ca
534
537
\REFEXTERNADDR~\externaddr \\ &&|&
535
538
\INVOKE~\funcaddr \\ &&|&
536
539
\LABEL_n\{\instr^\ast\}~\instr^\ast~\END \\ &&|&
537
-
\FRAME_n\{\frame\}~\instr^\ast~\END \\
540
+
\FRAME_n\{\framestate\}~\instr^\ast~\END \\
538
541
\end{array}
539
542
540
543
The |TRAP| instruction represents the occurrence of a trap.
@@ -618,14 +621,14 @@ Configurations
618
621
A *configuration* consists of the current :ref:`store <syntax-store>` and an executing *thread*.
619
622
620
623
A thread is a computation over :ref:`instructions <syntax-instr>`
621
-
that operates relative to a current :ref:`frame <syntax-frame>` referring to the :ref:`module instance <syntax-moduleinst>` in which the computation runs, i.e., where the current function originates from.
624
+
that operates relative to the state of a current :ref:`frame <syntax-framestate>` referring to the :ref:`module instance <syntax-moduleinst>` in which the computation runs, i.e., where the current function originates from.
0 commit comments