Commit a28e134
authored
Preserve element segment encoding more often (#1807)
This commit fixes a small regression in reencoding from #1794 where
element segments subtly changed encoding by accident. This commit
additionally ensures that there's a text format for all element
encodings and updates printing to respect the same defaults. It should
now be possible to represent all formats for element segments in the
text format and have them round-trippable.1 parent 7de4d1d commit a28e134
331 files changed
Lines changed: 714 additions & 628 deletions
File tree
- crates
- wasm-encoder/src
- wasmprinter/src
- wast/src/core
- resolve
- fuzz/src
- tests
- cli
- snapshots
- local
- gc
- type-equivalence.wast
- type-subtyping.wast
- legacy-exceptions
- try_catch.wast
- try_delegate.wast
- memory64.wast
- missing-features/issue540.wast
- testsuite
- binary-leb128.wast
- block.wast
- br.wast
- br_if.wast
- br_table.wast
- bulk.wast
- call.wast
- call_indirect.wast
- elem.wast
- func.wast
- func_ptrs.wast
- global.wast
- if.wast
- imports.wast
- left-to-right.wast
- linking.wast
- load.wast
- local_tee.wast
- loop.wast
- memory_grow.wast
- nop.wast
- proposals
- exception-handling
- imports.wast
- try_table.wast
- extended-const
- elem.wast
- global.wast
- function-references
- br_table.wast
- elem.wast
- func.wast
- global.wast
- if.wast
- linking.wast
- ref_func.wast
- ref_is_null.wast
- return_call_indirect.wast
- select.wast
- type-equivalence.wast
- gc
- br_if.wast
- br_table.wast
- elem.wast
- func.wast
- global.wast
- i31.wast
- if.wast
- linking.wast
- local_tee.wast
- ref_is_null.wast
- return_call_indirect.wast
- select.wast
- type-equivalence.wast
- type-rec.wast
- type-subtyping.wast
- memory64
- binary-leb128.wast
- br_if.wast
- br_table.wast
- call_indirect.wast
- elem.wast
- func.wast
- global.wast
- i31.wast
- if.wast
- imports.wast
- linking.wast
- load.wast
- load2.wast
- load64.wast
- local_tee.wast
- memory_grow.wast
- ref_is_null.wast
- return_call_indirect.wast
- select.wast
- table_copy.wast
- table_init.wast
- try_table.wast
- type-equivalence.wast
- type-rec.wast
- type-subtyping.wast
- multi-memory
- imports.wast
- load.wast
- load2.wast
- memory_grow.wast
- tail-call/return_call_indirect.wast
- threads/imports.wast
- ref_func.wast
- ref_is_null.wast
- return.wast
- select.wast
- simd_const.wast
- table_copy.wast
- table_init.wast
- unreachable.wast
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1408 | 1408 | | |
1409 | 1409 | | |
1410 | 1410 | | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1419 | 1418 | | |
1420 | 1419 | | |
1421 | 1420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1531 | 1531 | | |
1532 | 1532 | | |
1533 | 1533 | | |
1534 | | - | |
1535 | | - | |
| 1534 | + | |
1536 | 1535 | | |
1537 | 1536 | | |
1538 | 1537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
| 706 | + | |
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
| |||
727 | 733 | | |
728 | 734 | | |
729 | 735 | | |
730 | | - | |
| 736 | + | |
731 | 737 | | |
732 | 738 | | |
733 | 739 | | |
| |||
752 | 758 | | |
753 | 759 | | |
754 | 760 | | |
755 | | - | |
| 761 | + | |
756 | 762 | | |
757 | 763 | | |
758 | 764 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
133 | 144 | | |
134 | 145 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments