Commit 4c1f42a
committed
wast-parser: add support for '(module definition ...)'
WASM v3 spec tests added the '(module definition ...)' construct to
WAST. This tells the test runner that the module should not be
instantiated immediately. The '(module instance ...)' construct (not yet
supported in wabt) instructs the test runner to instantiate the module.
This change adds an `is_definition` field to ScriptModule. The field
reflects whether the `definition` keyword was encountered after the
`module` keyword.
When WastParser encounters a TextModule in a script command, it now
returns a ScriptModule with the corresponding ScriptTextModule if the
module is definition-only.1 parent ed94ed7 commit 4c1f42a
File tree
7 files changed
+709
-585
lines changed- include/wabt
- src
- prebuilt
7 files changed
+709
-585
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1368 | 1368 | | |
1369 | 1369 | | |
1370 | 1370 | | |
| 1371 | + | |
| 1372 | + | |
1371 | 1373 | | |
1372 | 1374 | | |
1373 | 1375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
752 | 761 | | |
753 | 762 | | |
754 | 763 | | |
| |||
3664 | 3673 | | |
3665 | 3674 | | |
3666 | 3675 | | |
3667 | | - | |
3668 | | - | |
3669 | | - | |
3670 | | - | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
3671 | 3690 | | |
3672 | 3691 | | |
3673 | 3692 | | |
| |||
3852 | 3871 | | |
3853 | 3872 | | |
3854 | 3873 | | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
3855 | 3877 | | |
3856 | 3878 | | |
3857 | 3879 | | |
| |||
3867 | 3889 | | |
3868 | 3890 | | |
3869 | 3891 | | |
| 3892 | + | |
3870 | 3893 | | |
3871 | 3894 | | |
3872 | 3895 | | |
| |||
3882 | 3905 | | |
3883 | 3906 | | |
3884 | 3907 | | |
| 3908 | + | |
3885 | 3909 | | |
3886 | 3910 | | |
3887 | 3911 | | |
| |||
3890 | 3914 | | |
3891 | 3915 | | |
3892 | 3916 | | |
| 3917 | + | |
3893 | 3918 | | |
3894 | 3919 | | |
3895 | 3920 | | |
| |||
0 commit comments