@@ -2854,22 +2854,22 @@ Control Instructions
2854
2854
2855
2855
.. _exec-return_call_indirect :
2856
2856
2857
- :math: `\RETURNCALLINDIRECT ~x`
2858
- .............................
2857
+ :math: `\RETURNCALLINDIRECT ~x~y `
2858
+ ...............................
2859
2859
2860
2860
1. Let :math: `F` be the :ref: `current <exec-notation-textual >` :ref: `frame <syntax-frame >`.
2861
2861
2862
- 2. Assert: due to :ref: `validation <valid-call_indirect >`, :math: `F.\AMODULE .\MITABLES [0 ]` exists.
2862
+ 2. Assert: due to :ref: `validation <valid-call_indirect >`, :math: `F.\AMODULE .\MITABLES [x ]` exists.
2863
2863
2864
- 3. Let :math: `\X {ta}` be the :ref: `table address <syntax-tableaddr >` :math: `F.\AMODULE .\MITABLES [0 ]`.
2864
+ 3. Let :math: `\X {ta}` be the :ref: `table address <syntax-tableaddr >` :math: `F.\AMODULE .\MITABLES [x ]`.
2865
2865
2866
2866
4. Assert: due to :ref: `validation <valid-call_indirect >`, :math: `S.\STABLES [\X {ta}]` exists.
2867
2867
2868
2868
5. Let :math: `\X {tab}` be the :ref: `table instance <syntax-tableinst >` :math: `S.\STABLES [\X {ta}]`.
2869
2869
2870
- 6. Assert: due to :ref: `validation <valid-call_indirect >`, :math: `F.\AMODULE .\MITYPES [x ]` exists.
2870
+ 6. Assert: due to :ref: `validation <valid-call_indirect >`, :math: `F.\AMODULE .\MITYPES [y ]` exists.
2871
2871
2872
- 7. Let :math: `\X {ft}_{\F {expect}}` be the :ref: `function type <syntax-functype >` :math: `F.\AMODULE .\MITYPES [x ]`.
2872
+ 7. Let :math: `\X {ft}_{\F {expect}}` be the :ref: `function type <syntax-functype >` :math: `F.\AMODULE .\MITYPES [y ]`.
2873
2873
2874
2874
8. Assert: due to :ref: `validation <valid-call_indirect >`, a value with :ref: `value type <syntax-valtype >` |I32 | is on the top of the stack.
2875
2875
@@ -2900,10 +2900,10 @@ Control Instructions
2900
2900
2901
2901
.. math ::
2902
2902
\begin {array}{lcl@{\qquad }l}
2903
- \val ~(\RETURNCALLINDIRECT ~x) &\stepto & (\RETURNINVOKE ~a)
2904
- & (\iff \val ~(\CALLINDIRECT ~x) \stepto (\INVOKE ~a)) \\
2905
- \val ~(\RETURNCALLINDIRECT ~x) &\stepto & \TRAP
2906
- & (\iff \val ~(\CALLINDIRECT ~x) \stepto \TRAP ) \\
2903
+ \val ~(\RETURNCALLINDIRECT ~x~y ) &\stepto & (\RETURNINVOKE ~a)
2904
+ & (\iff \val ~(\CALLINDIRECT ~x~y ) \stepto (\INVOKE ~a)) \\
2905
+ \val ~(\RETURNCALLINDIRECT ~x~y ) &\stepto & \TRAP
2906
+ & (\iff \val ~(\CALLINDIRECT ~x~y ) \stepto \TRAP ) \\
2907
2907
\end {array}
2908
2908
2909
2909
0 commit comments