Skip to content

Commit a3a8600

Browse files
gtreptarv-auditorrv-jenkins
authored
Optional table indices (#667)
* Allow all optional table indices https://webassembly.github.io/spec/core/text/instructions.html#id1 * Update wasm tests submodule. The `tokens.wast` test is tracked in #662. * Set Version: 0.1.76 * Set Version: 0.1.77 --------- Co-authored-by: devops <[email protected]> Co-authored-by: rv-jenkins <[email protected]>
1 parent c272c7b commit a3a8600

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

package/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.76
1+
0.1.77

pykwasm/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pykwasm"
7-
version = "0.1.76"
7+
version = "0.1.77"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

pykwasm/src/pykwasm/kdist/wasm-semantics/wasm-text.md

+17-5
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,29 @@ module WASM-TEXT-COMMON-SYNTAX
107107
| "table.grow" Index
108108
| "table.fill" Index
109109
| "table.copy" Index Index
110-
| "table.copy" [macro]
111110
| "table.init" Index Index
112-
| "table.init" Index [macro]
113111
| "elem.drop" Index
114112
| "call_indirect" Index TypeUse
115-
| "call_indirect" TypeUse [macro]
116-
// ---------------------------------------
113+
// ---------------------------------------------------
114+
117115
// Abbreviations
116+
syntax PlainInstr ::= "table.get" [macro]
117+
| "table.set" [macro]
118+
| "table.size" [macro]
119+
| "table.grow" [macro]
120+
| "table.fill" [macro]
121+
| "table.copy" [macro]
122+
| "table.init" Index [macro]
123+
| "call_indirect" TypeUse [macro]
124+
// -----------------------------------------------------
125+
rule table.get => table.get 0
126+
rule table.set => table.set 0
127+
rule table.size => table.size 0
128+
rule table.grow => table.grow 0
129+
rule table.fill => table.fill 0
130+
rule table.copy => table.copy 0 0
118131
rule table.init I => table.init 0 I
119132
rule call_indirect TU:TypeUse => call_indirect 0 TU
120-
rule table.copy => table.copy 0 0
121133
122134
syntax PlainInstr ::= IValType "." StoreOpM
123135
| FValType "." StoreOpM

tests/conformance/unparseable.txt

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ memory.wast
2222
select.wast
2323
skip-stack-guard-page.wast
2424
table_copy.wast
25+
tokens.wast

tests/conformance/unsupported-llvm.txt

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ left-to-right.wast
1212
linking.wast
1313
memory_redundancy.wast
1414
memory_trap.wast
15+
tokens.wast
1516
traps.wast

tests/wasm-tests

Submodule wasm-tests updated 278 files

0 commit comments

Comments
 (0)