Commit c998fdc
authored
Drop support for old-style
I today started looking at updating this project to the new draft of the
canonical ABI specified at WebAssembly/component-model#23 and while
there's quite a few changes that need to happen the first thing that
struck me was that maintaining all of the support for old-style witx
files is pretty onerous. Especially the ABI-calculating code has lots of
special cases for various witx constructs and the Preview1 ABI, and I
wasn't really sure how to update this in many situations.
Overall the original purpose of the witx support was to prove out that
it's possible to support both the old witx abi and the new canonical ABI
in the same generator. The canonical ABI has changed significantly in
the meantime however and this doesn't necessarily make sense to do any
more. I think it would be best now to reevaluate at the point when WASI
is ready to switch to the component model what to do with the old witx
support. I no longer think that "build it in here" is the obvious
option. As this diff shows there's quite a bit of weight to carry the
old witx abis as this commit clocks in at nearly 7000 lines removed.
The specifics being dropped here are:
* Parsing support for `*.witx`
* Support for `Pointer` and `ConstPointer`
* Support for `WitxInstruction`
* Support for push/pull buffers
The push/pull buffer feature was never actually fully implemented, even
for Rust hosts they only kind-of worked. Most other generators never
even implemented support for them. Additionally support for other
`*.witx` constructs was somewhat spotty at best with very few tests.
My hope is that there are no existing users of this support. If there
are then I think it's best to re-evaluate how best to solve the scenario
on-hand.*.witx files (#195)1 parent ffc65f7 commit c998fdc
File tree
68 files changed
+230
-6740
lines changed- crates
- gen-core
- src
- gen-c
- src
- gen-js
- src
- gen-markdown/src
- gen-rust-wasm
- src
- tests
- gen-rust/src
- gen-spidermonkey/src
- gen-wasmtime-py
- src
- gen-wasmtime
- src
- tests
- parser
- src
- ast
- tests
- ui
- parse-fail
- rust-wasm-impl
- rust-wasm
- src
- test-helpers
- src
- test-rust-wasm
- src/bin
- wasmlink
- src
- adapter
- wasmtime-impl
- wasmtime
- src
- wit-component/src
- tests
- codegen
- wasi-next
- wasi_snapshot_preview1
- runtime/buffers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
68 files changed
+230
-6740
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 176 | + | |
182 | 177 | | |
183 | 178 | | |
184 | 179 | | |
| |||
257 | 252 | | |
258 | 253 | | |
259 | 254 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | 255 | | |
270 | 256 | | |
271 | 257 | | |
272 | 258 | | |
273 | 259 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 260 | + | |
278 | 261 | | |
279 | 262 | | |
280 | 263 | | |
| |||
339 | 322 | | |
340 | 323 | | |
341 | 324 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | 325 | | |
351 | 326 | | |
352 | 327 | | |
353 | 328 | | |
354 | 329 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | 330 | | |
364 | 331 | | |
365 | 332 | | |
| |||
370 | 337 | | |
371 | 338 | | |
372 | 339 | | |
373 | | - | |
| 340 | + | |
374 | 341 | | |
375 | 342 | | |
376 | 343 | | |
| |||
424 | 391 | | |
425 | 392 | | |
426 | 393 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | 394 | | |
439 | 395 | | |
440 | 396 | | |
| |||
565 | 521 | | |
566 | 522 | | |
567 | 523 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | 524 | | |
574 | 525 | | |
575 | 526 | | |
| |||
584 | 535 | | |
585 | 536 | | |
586 | 537 | | |
587 | | - | |
588 | | - | |
589 | 538 | | |
590 | 539 | | |
591 | 540 | | |
| |||
640 | 589 | | |
641 | 590 | | |
642 | 591 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
| 592 | + | |
651 | 593 | | |
652 | 594 | | |
653 | 595 | | |
| |||
713 | 655 | | |
714 | 656 | | |
715 | 657 | | |
716 | | - | |
| 658 | + | |
717 | 659 | | |
718 | 660 | | |
719 | 661 | | |
| |||
879 | 821 | | |
880 | 822 | | |
881 | 823 | | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | 824 | | |
895 | 825 | | |
896 | 826 | | |
897 | 827 | | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | 828 | | |
933 | 829 | | |
934 | 830 | | |
| |||
1365 | 1261 | | |
1366 | 1262 | | |
1367 | 1263 | | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | 1264 | | |
1376 | 1265 | | |
1377 | 1266 | | |
| |||
1672 | 1561 | | |
1673 | 1562 | | |
1674 | 1563 | | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | 1564 | | |
1688 | 1565 | | |
1689 | 1566 | | |
| |||
1897 | 1774 | | |
1898 | 1775 | | |
1899 | 1776 | | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | 1777 | | |
1916 | 1778 | | |
1917 | 1779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
0 commit comments