add elem.drop and extend call_indirect to accept table index

This commit is contained in:
Ilya Rezvov
2022-06-04 21:58:34 -06:00
parent 6eb3acde17
commit 82defff076
7 changed files with 74 additions and 29 deletions
+2 -1
View File
@@ -137,7 +137,7 @@ data Instruction index =
| BrTable [index] index
| Return
| Call index
| CallIndirect index
| CallIndirect index index
-- Reference instructions
| RefNull ElemType
| RefIsNull
@@ -186,6 +186,7 @@ data Instruction index =
| TableGet TableIndex
| TableSet TableIndex
| TableCopy TableIndex TableIndex
| ElemDrop ElemIndex
-- Numeric instructions
| I32Const Word32
| I64Const Word64