Commit f2b49e4
committed
fix(runtime): remove WASIP2 interception and fix cross-instance CallIndirect
Major changes per CLAUDE.md compliance:
- Remove ~383 lines of WASIP2-CANONICAL interception block that was
bypassing component adapter modules for P2→P1 translation
- Add cross-instance import checking in CallIndirect handler so
indirect calls to imported functions redirect to linked instances
- Remove hardcoded fallback mappings that violated NO FALLBACK rule
- Convert all debug println! to proper tracing framework calls
- Fix 18 syntax errors in platform_stubs.rs (missing parentheses)
- Fix .unwrap_or fallback patterns to return proper errors instead
of silently substituting defaults (FAIL LOUD AND EARLY)
Also includes component model improvements:
- Enhanced canonical ABI implementation
- Improved component instantiation with proper export mapping
- Resource management enhancements
- WAST validator improvements1 parent d3e5674 commit f2b49e4
File tree
79 files changed
+12210
-2374
lines changed- .github/workflows
- cargo-wrt/src
- wrt-build-core
- src
- wrt-component/src
- builtins
- canonical_abi
- components
- linker
- threading
- wrt-debug/src
- wrt-decoder/src
- component
- wrt-format/src
- wrt-foundation/src
- capabilities
- wrt-instructions/src
- wrt-platform/src
- wrt-runtime
- src
- engine
- stackless
- tests
- wrt-wasi
- src
- host_provider
- nn
- preview2
- wrtd/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
79 files changed
+12210
-2374
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
105 | 117 | | |
106 | 118 | | |
107 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3058 | 3058 | | |
3059 | 3059 | | |
3060 | 3060 | | |
3061 | | - | |
3062 | 3061 | | |
3063 | 3062 | | |
3064 | 3063 | | |
| |||
3088 | 3087 | | |
3089 | 3088 | | |
3090 | 3089 | | |
3091 | | - | |
3092 | | - | |
3093 | | - | |
3094 | | - | |
3095 | | - | |
3096 | | - | |
3097 | | - | |
3098 | | - | |
3099 | 3090 | | |
3100 | 3091 | | |
3101 | 3092 | | |
3102 | | - | |
3103 | | - | |
3104 | 3093 | | |
3105 | 3094 | | |
3106 | 3095 | | |
| |||
3126 | 3115 | | |
3127 | 3116 | | |
3128 | 3117 | | |
3129 | | - | |
3130 | 3118 | | |
3131 | 3119 | | |
3132 | | - | |
3133 | 3120 | | |
3134 | 3121 | | |
3135 | 3122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | 375 | | |
380 | 376 | | |
381 | 377 | | |
| |||
687 | 683 | | |
688 | 684 | | |
689 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
690 | 692 | | |
691 | 693 | | |
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
696 | | - | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
697 | 702 | | |
698 | 703 | | |
699 | 704 | | |
| |||
818 | 823 | | |
819 | 824 | | |
820 | 825 | | |
821 | | - | |
| 826 | + | |
| 827 | + | |
822 | 828 | | |
823 | 829 | | |
824 | 830 | | |
| |||
1645 | 1651 | | |
1646 | 1652 | | |
1647 | 1653 | | |
| 1654 | + | |
| 1655 | + | |
1648 | 1656 | | |
1649 | 1657 | | |
1650 | 1658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
77 | 89 | | |
78 | 90 | | |
79 | 91 | | |
| |||
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
93 | 150 | | |
94 | 151 | | |
95 | 152 | | |
| |||
523 | 580 | | |
524 | 581 | | |
525 | 582 | | |
| 583 | + | |
526 | 584 | | |
527 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
528 | 589 | | |
529 | 590 | | |
530 | 591 | | |
| |||
537 | 598 | | |
538 | 599 | | |
539 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
540 | 604 | | |
541 | 605 | | |
542 | 606 | | |
| |||
549 | 613 | | |
550 | 614 | | |
551 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
552 | 619 | | |
553 | 620 | | |
554 | 621 | | |
| |||
561 | 628 | | |
562 | 629 | | |
563 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
564 | 634 | | |
565 | 635 | | |
566 | 636 | | |
| |||
574 | 644 | | |
575 | 645 | | |
576 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
577 | 650 | | |
578 | 651 | | |
579 | 652 | | |
| |||
592 | 665 | | |
593 | 666 | | |
594 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
595 | 671 | | |
596 | 672 | | |
597 | 673 | | |
| |||
606 | 682 | | |
607 | 683 | | |
608 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
609 | 688 | | |
610 | 689 | | |
611 | 690 | | |
| |||
620 | 699 | | |
621 | 700 | | |
622 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
623 | 705 | | |
624 | 706 | | |
625 | 707 | | |
| |||
634 | 716 | | |
635 | 717 | | |
636 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
637 | 722 | | |
638 | 723 | | |
639 | 724 | | |
| |||
648 | 733 | | |
649 | 734 | | |
650 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
651 | 739 | | |
652 | 740 | | |
653 | 741 | | |
| |||
666 | 754 | | |
667 | 755 | | |
668 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
669 | 783 | | |
670 | 784 | | |
671 | 785 | | |
| |||
1503 | 1617 | | |
1504 | 1618 | | |
1505 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1506 | 1635 | | |
1507 | 1636 | | |
1508 | 1637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
0 commit comments