Commit 88a090d
authored
threads: fix
* threads: fix `ref.i31_shared` encoding
In the initial implementation, this encoding was incorrectly emitted as
`0xFE 0x1F`, clobbering the encoding for `i64.atomic.rmw.add` (probably
a copy-paste error). This change updates `wasm-encoder` to use the
correct `0xFE 0x72` encoding.
* threads: fix `ref.i31_shared` stack type
This instruction should return the `shared` version of `ref.i31`.
* Add a simple re-encodable testref.i31_shared encoding (#1724)1 parent eb997df commit 88a090d
5 files changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3693 | 3693 | | |
3694 | 3694 | | |
3695 | 3695 | | |
3696 | | - | |
| 3696 | + | |
3697 | 3697 | | |
3698 | 3698 | | |
3699 | 3699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4534 | 4534 | | |
4535 | 4535 | | |
4536 | 4536 | | |
4537 | | - | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
4538 | 4540 | | |
4539 | 4541 | | |
4540 | 4542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments