Commit a1b2228
committed
Initial work towards getting post-return functions
This adds a few new pseudo-instructions plus a new method on `Interface`
to generate a `post-return` function. For now these are simply named
`{name}_post_return` and the integration point there will probably
change as the component model shapes up.
The integration here is intended to still be relatively primitive in
that the actual component model integration will likely look different
in the future. Given how `wit-bindgen` works today, though, this should
at least get things part of the way there.1 parent 9ef6717 commit a1b2228
File tree
11 files changed
+619
-407
lines changed- crates
- gen-guest-c/src
- gen-guest-rust/src
- gen-guest-spidermonkey-js/src
- gen-host-js
- src
- tests
- gen-host-wasmtime-py/src
- gen-host-wasmtime-rust
- src
- tests
- guest-rust/src
- wit-parser/src
- tests/runtime/lists
11 files changed
+619
-407
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | 426 | | |
436 | 427 | | |
437 | 428 | | |
| |||
491 | 482 | | |
492 | 483 | | |
493 | 484 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
500 | 488 | | |
501 | 489 | | |
502 | 490 | | |
| |||
1105 | 1093 | | |
1106 | 1094 | | |
1107 | 1095 | | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1108 | 1132 | | |
1109 | 1133 | | |
1110 | 1134 | | |
| |||
1284 | 1308 | | |
1285 | 1309 | | |
1286 | 1310 | | |
1287 | | - | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1288 | 1314 | | |
1289 | 1315 | | |
1290 | 1316 | | |
| |||
2205 | 2231 | | |
2206 | 2232 | | |
2207 | 2233 | | |
2208 | | - | |
| 2234 | + | |
2209 | 2235 | | |
2210 | 2236 | | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
2211 | 2275 | | |
2212 | 2276 | | |
2213 | 2277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
533 | 534 | | |
534 | | - | |
535 | | - | |
536 | | - | |
| 535 | + | |
537 | 536 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
544 | 541 | | |
545 | 542 | | |
546 | 543 | | |
547 | | - | |
| 544 | + | |
548 | 545 | | |
549 | 546 | | |
550 | 547 | | |
| |||
594 | 591 | | |
595 | 592 | | |
596 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
597 | 625 | | |
598 | 626 | | |
599 | 627 | | |
| |||
1294 | 1322 | | |
1295 | 1323 | | |
1296 | 1324 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
| 1325 | + | |
1301 | 1326 | | |
1302 | 1327 | | |
1303 | 1328 | | |
| |||
1328 | 1353 | | |
1329 | 1354 | | |
1330 | 1355 | | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
| 1356 | + | |
1335 | 1357 | | |
1336 | 1358 | | |
1337 | 1359 | | |
| |||
1387 | 1409 | | |
1388 | 1410 | | |
1389 | 1411 | | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
| 1412 | + | |
1394 | 1413 | | |
1395 | 1414 | | |
1396 | 1415 | | |
| |||
1425 | 1444 | | |
1426 | 1445 | | |
1427 | 1446 | | |
1428 | | - | |
| 1447 | + | |
1429 | 1448 | | |
1430 | 1449 | | |
1431 | 1450 | | |
| |||
1580 | 1599 | | |
1581 | 1600 | | |
1582 | 1601 | | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
| 1602 | + | |
| 1603 | + | |
1588 | 1604 | | |
1589 | | - | |
| 1605 | + | |
1590 | 1606 | | |
1591 | 1607 | | |
1592 | 1608 | | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1593 | 1668 | | |
1594 | 1669 | | |
1595 | 1670 | | |
0 commit comments