Debian Codegraph @

tests/snapshots/testsuite/memory_grow.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/memory_grow.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 1,
7 "filename": "memory_grow.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "assert_return",
12 "line": 14,
13 "action": {
14 "type": "invoke",
15 "field": "size",
16 "args": []
17 },
18 "expected": [
19 {
20 "type": "i32",
21 "value": "0"
22 }
23 ]
24 },
25 {
26 "type": "assert_trap",
27 "line": 15,
28 "action": {
29 "type": "invoke",
30 "field": "store_at_zero",
31 "args": []
32 },
33 "text": "out of bounds memory access"
34 },
35 {
36 "type": "assert_trap",
37 "line": 16,
38 "action": {
39 "type": "invoke",
40 "field": "load_at_zero",
41 "args": []
42 },
43 "text": "out of bounds memory access"
44 },
45 {
46 "type": "assert_trap",
47 "line": 17,
48 "action": {
49 "type": "invoke",
50 "field": "store_at_page_size",
51 "args": []
52 },
53 "text": "out of bounds memory access"
54 },
55 {
56 "type": "assert_trap",
57 "line": 18,
58 "action": {
59 "type": "invoke",
60 "field": "load_at_page_size",
61 "args": []
62 },
63 "text": "out of bounds memory access"
64 },
65 {
66 "type": "assert_return",
67 "line": 19,
68 "action": {
69 "type": "invoke",
70 "field": "grow",
71 "args": [
72 {
73 "type": "i32",
74 "value": "1"
75 }
76 ]
77 },
78 "expected": [
79 {
80 "type": "i32",
81 "value": "0"
82 }
83 ]
84 },
85 {
86 "type": "assert_return",
87 "line": 20,
88 "action": {
89 "type": "invoke",
90 "field": "size",
91 "args": []
92 },
93 "expected": [
94 {
95 "type": "i32",
96 "value": "1"
97 }
98 ]
99 },
100 {
101 "type": "assert_return",
102 "line": 21,
103 "action": {
104 "type": "invoke",
105 "field": "load_at_zero",
106 "args": []
107 },
108 "expected": [
109 {
110 "type": "i32",
111 "value": "0"
112 }
113 ]
114 },
115 {
116 "type": "assert_return",
117 "line": 22,
118 "action": {
119 "type": "invoke",
120 "field": "store_at_zero",
121 "args": []
122 },
123 "expected": []
124 },
125 {
126 "type": "assert_return",
127 "line": 23,
128 "action": {
129 "type": "invoke",
130 "field": "load_at_zero",
131 "args": []
132 },
133 "expected": [
134 {
135 "type": "i32",
136 "value": "2"
137 }
138 ]
139 },
140 {
141 "type": "assert_trap",
142 "line": 24,
143 "action": {
144 "type": "invoke",
145 "field": "store_at_page_size",
146 "args": []
147 },
148 "text": "out of bounds memory access"
149 },
150 {
151 "type": "assert_trap",
152 "line": 25,
153 "action": {
154 "type": "invoke",
155 "field": "load_at_page_size",
156 "args": []
157 },
158 "text": "out of bounds memory access"
159 },
160 {
161 "type": "assert_return",
162 "line": 26,
163 "action": {
164 "type": "invoke",
165 "field": "grow",
166 "args": [
167 {
168 "type": "i32",
169 "value": "4"
170 }
171 ]
172 },
173 "expected": [
174 {
175 "type": "i32",
176 "value": "1"
177 }
178 ]
179 },
180 {
181 "type": "assert_return",
182 "line": 27,
183 "action": {
184 "type": "invoke",
185 "field": "size",
186 "args": []
187 },
188 "expected": [
189 {
190 "type": "i32",
191 "value": "5"
192 }
193 ]
194 },
195 {
196 "type": "assert_return",
197 "line": 28,
198 "action": {
199 "type": "invoke",
200 "field": "load_at_zero",
201 "args": []
202 },
203 "expected": [
204 {
205 "type": "i32",
206 "value": "2"
207 }
208 ]
209 },
210 {
211 "type": "assert_return",
212 "line": 29,
213 "action": {
214 "type": "invoke",
215 "field": "store_at_zero",
216 "args": []
217 },
218 "expected": []
219 },
220 {
221 "type": "assert_return",
222 "line": 30,
223 "action": {
224 "type": "invoke",
225 "field": "load_at_zero",
226 "args": []
227 },
228 "expected": [
229 {
230 "type": "i32",
231 "value": "2"
232 }
233 ]
234 },
235 {
236 "type": "assert_return",
237 "line": 31,
238 "action": {
239 "type": "invoke",
240 "field": "load_at_page_size",
241 "args": []
242 },
243 "expected": [
244 {
245 "type": "i32",
246 "value": "0"
247 }
248 ]
249 },
250 {
251 "type": "assert_return",
252 "line": 32,
253 "action": {
254 "type": "invoke",
255 "field": "store_at_page_size",
256 "args": []
257 },
258 "expected": []
259 },
260 {
261 "type": "assert_return",
262 "line": 33,
263 "action": {
264 "type": "invoke",
265 "field": "load_at_page_size",
266 "args": []
267 },
268 "expected": [
269 {
270 "type": "i32",
271 "value": "3"
272 }
273 ]
274 },
275 {
276 "type": "module",
277 "line": 36,
278 "filename": "memory_grow.1.wasm",
279 "module_type": "binary"
280 },
281 {
282 "type": "assert_return",
283 "line": 41,
284 "action": {
285 "type": "invoke",
286 "field": "grow",
287 "args": [
288 {
289 "type": "i32",
290 "value": "0"
291 }
292 ]
293 },
294 "expected": [
295 {
296 "type": "i32",
297 "value": "0"
298 }
299 ]
300 },
301 {
302 "type": "assert_return",
303 "line": 42,
304 "action": {
305 "type": "invoke",
306 "field": "grow",
307 "args": [
308 {
309 "type": "i32",
310 "value": "1"
311 }
312 ]
313 },
314 "expected": [
315 {
316 "type": "i32",
317 "value": "0"
318 }
319 ]
320 },
321 {
322 "type": "assert_return",
323 "line": 43,
324 "action": {
325 "type": "invoke",
326 "field": "grow",
327 "args": [
328 {
329 "type": "i32",
330 "value": "0"
331 }
332 ]
333 },
334 "expected": [
335 {
336 "type": "i32",
337 "value": "1"
338 }
339 ]
340 },
341 {
342 "type": "assert_return",
343 "line": 44,
344 "action": {
345 "type": "invoke",
346 "field": "grow",
347 "args": [
348 {
349 "type": "i32",
350 "value": "2"
351 }
352 ]
353 },
354 "expected": [
355 {
356 "type": "i32",
357 "value": "1"
358 }
359 ]
360 },
361 {
362 "type": "assert_return",
363 "line": 45,
364 "action": {
365 "type": "invoke",
366 "field": "grow",
367 "args": [
368 {
369 "type": "i32",
370 "value": "800"
371 }
372 ]
373 },
374 "expected": [
375 {
376 "type": "i32",
377 "value": "3"
378 }
379 ]
380 },
381 {
382 "type": "assert_return",
383 "line": 46,
384 "action": {
385 "type": "invoke",
386 "field": "grow",
387 "args": [
388 {
389 "type": "i32",
390 "value": "65536"
391 }
392 ]
393 },
394 "expected": [
395 {
396 "type": "i32",
397 "value": "-1"
398 }
399 ]
400 },
401 {
402 "type": "assert_return",
403 "line": 47,
404 "action": {
405 "type": "invoke",
406 "field": "grow",
407 "args": [
408 {
409 "type": "i32",
410 "value": "64736"
411 }
412 ]
413 },
414 "expected": [
415 {
416 "type": "i32",
417 "value": "-1"
418 }
419 ]
420 },
421 {
422 "type": "assert_return",
423 "line": 48,
424 "action": {
425 "type": "invoke",
426 "field": "grow",
427 "args": [
428 {
429 "type": "i32",
430 "value": "1"
431 }
432 ]
433 },
434 "expected": [
435 {
436 "type": "i32",
437 "value": "803"
438 }
439 ]
440 },
441 {
442 "type": "module",
443 "line": 50,
444 "filename": "memory_grow.2.wasm",
445 "module_type": "binary"
446 },
447 {
448 "type": "assert_return",
449 "line": 55,
450 "action": {
451 "type": "invoke",
452 "field": "grow",
453 "args": [
454 {
455 "type": "i32",
456 "value": "0"
457 }
458 ]
459 },
460 "expected": [
461 {
462 "type": "i32",
463 "value": "0"
464 }
465 ]
466 },
467 {
468 "type": "assert_return",
469 "line": 56,
470 "action": {
471 "type": "invoke",
472 "field": "grow",
473 "args": [
474 {
475 "type": "i32",
476 "value": "1"
477 }
478 ]
479 },
480 "expected": [
481 {
482 "type": "i32",
483 "value": "0"
484 }
485 ]
486 },
487 {
488 "type": "assert_return",
489 "line": 57,
490 "action": {
491 "type": "invoke",
492 "field": "grow",
493 "args": [
494 {
495 "type": "i32",
496 "value": "1"
497 }
498 ]
499 },
500 "expected": [
501 {
502 "type": "i32",
503 "value": "1"
504 }
505 ]
506 },
507 {
508 "type": "assert_return",
509 "line": 58,
510 "action": {
511 "type": "invoke",
512 "field": "grow",
513 "args": [
514 {
515 "type": "i32",
516 "value": "2"
517 }
518 ]
519 },
520 "expected": [
521 {
522 "type": "i32",
523 "value": "2"
524 }
525 ]
526 },
527 {
528 "type": "assert_return",
529 "line": 59,
530 "action": {
531 "type": "invoke",
532 "field": "grow",
533 "args": [
534 {
535 "type": "i32",
536 "value": "6"
537 }
538 ]
539 },
540 "expected": [
541 {
542 "type": "i32",
543 "value": "4"
544 }
545 ]
546 },
547 {
548 "type": "assert_return",
549 "line": 60,
550 "action": {
551 "type": "invoke",
552 "field": "grow",
553 "args": [
554 {
555 "type": "i32",
556 "value": "0"
557 }
558 ]
559 },
560 "expected": [
561 {
562 "type": "i32",
563 "value": "10"
564 }
565 ]
566 },
567 {
568 "type": "assert_return",
569 "line": 61,
570 "action": {
571 "type": "invoke",
572 "field": "grow",
573 "args": [
574 {
575 "type": "i32",
576 "value": "1"
577 }
578 ]
579 },
580 "expected": [
581 {
582 "type": "i32",
583 "value": "-1"
584 }
585 ]
586 },
587 {
588 "type": "assert_return",
589 "line": 62,
590 "action": {
591 "type": "invoke",
592 "field": "grow",
593 "args": [
594 {
595 "type": "i32",
596 "value": "65536"
597 }
598 ]
599 },
600 "expected": [
601 {
602 "type": "i32",
603 "value": "-1"
604 }
605 ]
606 },
607 {
608 "type": "module",
609 "line": 66,
610 "filename": "memory_grow.3.wasm",
611 "module_type": "binary"
612 },
613 {
614 "type": "assert_return",
615 "line": 87,
616 "action": {
617 "type": "invoke",
618 "field": "check-memory-zero",
619 "args": [
620 {
621 "type": "i32",
622 "value": "0"
623 },
624 {
625 "type": "i32",
626 "value": "65535"
627 }
628 ]
629 },
630 "expected": [
631 {
632 "type": "i32",
633 "value": "0"
634 }
635 ]
636 },
637 {
638 "type": "assert_return",
639 "line": 88,
640 "action": {
641 "type": "invoke",
642 "field": "grow",
643 "args": [
644 {
645 "type": "i32",
646 "value": "1"
647 }
648 ]
649 },
650 "expected": [
651 {
652 "type": "i32",
653 "value": "1"
654 }
655 ]
656 },
657 {
658 "type": "assert_return",
659 "line": 89,
660 "action": {
661 "type": "invoke",
662 "field": "check-memory-zero",
663 "args": [
664 {
665 "type": "i32",
666 "value": "65536"
667 },
668 {
669 "type": "i32",
670 "value": "131071"
671 }
672 ]
673 },
674 "expected": [
675 {
676 "type": "i32",
677 "value": "0"
678 }
679 ]
680 },
681 {
682 "type": "assert_return",
683 "line": 90,
684 "action": {
685 "type": "invoke",
686 "field": "grow",
687 "args": [
688 {
689 "type": "i32",
690 "value": "1"
691 }
692 ]
693 },
694 "expected": [
695 {
696 "type": "i32",
697 "value": "2"
698 }
699 ]
700 },
701 {
702 "type": "assert_return",
703 "line": 91,
704 "action": {
705 "type": "invoke",
706 "field": "check-memory-zero",
707 "args": [
708 {
709 "type": "i32",
710 "value": "131072"
711 },
712 {
713 "type": "i32",
714 "value": "196607"
715 }
716 ]
717 },
718 "expected": [
719 {
720 "type": "i32",
721 "value": "0"
722 }
723 ]
724 },
725 {
726 "type": "assert_return",
727 "line": 92,
728 "action": {
729 "type": "invoke",
730 "field": "grow",
731 "args": [
732 {
733 "type": "i32",
734 "value": "1"
735 }
736 ]
737 },
738 "expected": [
739 {
740 "type": "i32",
741 "value": "3"
742 }
743 ]
744 },
745 {
746 "type": "assert_return",
747 "line": 93,
748 "action": {
749 "type": "invoke",
750 "field": "check-memory-zero",
751 "args": [
752 {
753 "type": "i32",
754 "value": "196608"
755 },
756 {
757 "type": "i32",
758 "value": "262143"
759 }
760 ]
761 },
762 "expected": [
763 {
764 "type": "i32",
765 "value": "0"
766 }
767 ]
768 },
769 {
770 "type": "assert_return",
771 "line": 94,
772 "action": {
773 "type": "invoke",
774 "field": "grow",
775 "args": [
776 {
777 "type": "i32",
778 "value": "1"
779 }
780 ]
781 },
782 "expected": [
783 {
784 "type": "i32",
785 "value": "4"
786 }
787 ]
788 },
789 {
790 "type": "assert_return",
791 "line": 95,
792 "action": {
793 "type": "invoke",
794 "field": "check-memory-zero",
795 "args": [
796 {
797 "type": "i32",
798 "value": "262144"
799 },
800 {
801 "type": "i32",
802 "value": "327679"
803 }
804 ]
805 },
806 "expected": [
807 {
808 "type": "i32",
809 "value": "0"
810 }
811 ]
812 },
813 {
814 "type": "assert_return",
815 "line": 96,
816 "action": {
817 "type": "invoke",
818 "field": "grow",
819 "args": [
820 {
821 "type": "i32",
822 "value": "1"
823 }
824 ]
825 },
826 "expected": [
827 {
828 "type": "i32",
829 "value": "5"
830 }
831 ]
832 },
833 {
834 "type": "assert_return",
835 "line": 97,
836 "action": {
837 "type": "invoke",
838 "field": "check-memory-zero",
839 "args": [
840 {
841 "type": "i32",
842 "value": "327680"
843 },
844 {
845 "type": "i32",
846 "value": "393215"
847 }
848 ]
849 },
850 "expected": [
851 {
852 "type": "i32",
853 "value": "0"
854 }
855 ]
856 },
857 {
858 "type": "module",
859 "line": 101,
860 "filename": "memory_grow.4.wasm",
861 "module_type": "binary"
862 },
863 {
864 "type": "assert_return",
865 "line": 259,
866 "action": {
867 "type": "invoke",
868 "field": "as-br-value",
869 "args": []
870 },
871 "expected": [
872 {
873 "type": "i32",
874 "value": "1"
875 }
876 ]
877 },
878 {
879 "type": "assert_return",
880 "line": 261,
881 "action": {
882 "type": "invoke",
883 "field": "as-br_if-cond",
884 "args": []
885 },
886 "expected": []
887 },
888 {
889 "type": "assert_return",
890 "line": 262,
891 "action": {
892 "type": "invoke",
893 "field": "as-br_if-value",
894 "args": []
895 },
896 "expected": [
897 {
898 "type": "i32",
899 "value": "1"
900 }
901 ]
902 },
903 {
904 "type": "assert_return",
905 "line": 263,
906 "action": {
907 "type": "invoke",
908 "field": "as-br_if-value-cond",
909 "args": []
910 },
911 "expected": [
912 {
913 "type": "i32",
914 "value": "6"
915 }
916 ]
917 },
918 {
919 "type": "assert_return",
920 "line": 265,
921 "action": {
922 "type": "invoke",
923 "field": "as-br_table-index",
924 "args": []
925 },
926 "expected": []
927 },
928 {
929 "type": "assert_return",
930 "line": 266,
931 "action": {
932 "type": "invoke",
933 "field": "as-br_table-value",
934 "args": []
935 },
936 "expected": [
937 {
938 "type": "i32",
939 "value": "1"
940 }
941 ]
942 },
943 {
944 "type": "assert_return",
945 "line": 267,
946 "action": {
947 "type": "invoke",
948 "field": "as-br_table-value-index",
949 "args": []
950 },
951 "expected": [
952 {
953 "type": "i32",
954 "value": "6"
955 }
956 ]
957 },
958 {
959 "type": "assert_return",
960 "line": 269,
961 "action": {
962 "type": "invoke",
963 "field": "as-return-value",
964 "args": []
965 },
966 "expected": [
967 {
968 "type": "i32",
969 "value": "1"
970 }
971 ]
972 },
973 {
974 "type": "assert_return",
975 "line": 271,
976 "action": {
977 "type": "invoke",
978 "field": "as-if-cond",
979 "args": []
980 },
981 "expected": [
982 {
983 "type": "i32",
984 "value": "0"
985 }
986 ]
987 },
988 {
989 "type": "assert_return",
990 "line": 272,
991 "action": {
992 "type": "invoke",
993 "field": "as-if-then",
994 "args": []
995 },
996 "expected": [
997 {
998 "type": "i32",
999 "value": "1"
1000 }
1001 ]
1002 },
1003 {
1004 "type": "assert_return",
1005 "line": 273,
1006 "action": {
1007 "type": "invoke",
1008 "field": "as-if-else",
1009 "args": []
1010 },
1011 "expected": [
1012 {
1013 "type": "i32",
1014 "value": "1"
1015 }
1016 ]
1017 },
1018 {
1019 "type": "assert_return",
1020 "line": 275,
1021 "action": {
1022 "type": "invoke",
1023 "field": "as-select-first",
1024 "args": [
1025 {
1026 "type": "i32",
1027 "value": "0"
1028 },
1029 {
1030 "type": "i32",
1031 "value": "1"
1032 }
1033 ]
1034 },
1035 "expected": [
1036 {
1037 "type": "i32",
1038 "value": "1"
1039 }
1040 ]
1041 },
1042 {
1043 "type": "assert_return",
1044 "line": 276,
1045 "action": {
1046 "type": "invoke",
1047 "field": "as-select-second",
1048 "args": [
1049 {
1050 "type": "i32",
1051 "value": "0"
1052 },
1053 {
1054 "type": "i32",
1055 "value": "0"
1056 }
1057 ]
1058 },
1059 "expected": [
1060 {
1061 "type": "i32",
1062 "value": "1"
1063 }
1064 ]
1065 },
1066 {
1067 "type": "assert_return",
1068 "line": 277,
1069 "action": {
1070 "type": "invoke",
1071 "field": "as-select-cond",
1072 "args": []
1073 },
1074 "expected": [
1075 {
1076 "type": "i32",
1077 "value": "0"
1078 }
1079 ]
1080 },
1081 {
1082 "type": "assert_return",
1083 "line": 279,
1084 "action": {
1085 "type": "invoke",
1086 "field": "as-call-first",
1087 "args": []
1088 },
1089 "expected": [
1090 {
1091 "type": "i32",
1092 "value": "-1"
1093 }
1094 ]
1095 },
1096 {
1097 "type": "assert_return",
1098 "line": 280,
1099 "action": {
1100 "type": "invoke",
1101 "field": "as-call-mid",
1102 "args": []
1103 },
1104 "expected": [
1105 {
1106 "type": "i32",
1107 "value": "-1"
1108 }
1109 ]
1110 },
1111 {
1112 "type": "assert_return",
1113 "line": 281,
1114 "action": {
1115 "type": "invoke",
1116 "field": "as-call-last",
1117 "args": []
1118 },
1119 "expected": [
1120 {
1121 "type": "i32",
1122 "value": "-1"
1123 }
1124 ]
1125 },
1126 {
1127 "type": "assert_return",
1128 "line": 283,
1129 "action": {
1130 "type": "invoke",
1131 "field": "as-call_indirect-first",
1132 "args": []
1133 },
1134 "expected": [
1135 {
1136 "type": "i32",
1137 "value": "-1"
1138 }
1139 ]
1140 },
1141 {
1142 "type": "assert_return",
1143 "line": 284,
1144 "action": {
1145 "type": "invoke",
1146 "field": "as-call_indirect-mid",
1147 "args": []
1148 },
1149 "expected": [
1150 {
1151 "type": "i32",
1152 "value": "-1"
1153 }
1154 ]
1155 },
1156 {
1157 "type": "assert_return",
1158 "line": 285,
1159 "action": {
1160 "type": "invoke",
1161 "field": "as-call_indirect-last",
1162 "args": []
1163 },
1164 "expected": [
1165 {
1166 "type": "i32",
1167 "value": "-1"
1168 }
1169 ]
1170 },
1171 {
1172 "type": "assert_trap",
1173 "line": 286,
1174 "action": {
1175 "type": "invoke",
1176 "field": "as-call_indirect-index",
1177 "args": []
1178 },
1179 "text": "undefined element"
1180 },
1181 {
1182 "type": "assert_return",
1183 "line": 288,
1184 "action": {
1185 "type": "invoke",
1186 "field": "as-local.set-value",
1187 "args": []
1188 },
1189 "expected": []
1190 },
1191 {
1192 "type": "assert_return",
1193 "line": 289,
1194 "action": {
1195 "type": "invoke",
1196 "field": "as-local.tee-value",
1197 "args": []
1198 },
1199 "expected": [
1200 {
1201 "type": "i32",
1202 "value": "1"
1203 }
1204 ]
1205 },
1206 {
1207 "type": "assert_return",
1208 "line": 290,
1209 "action": {
1210 "type": "invoke",
1211 "field": "as-global.set-value",
1212 "args": []
1213 },
1214 "expected": []
1215 },
1216 {
1217 "type": "assert_return",
1218 "line": 292,
1219 "action": {
1220 "type": "invoke",
1221 "field": "as-load-address",
1222 "args": []
1223 },
1224 "expected": [
1225 {
1226 "type": "i32",
1227 "value": "0"
1228 }
1229 ]
1230 },
1231 {
1232 "type": "assert_return",
1233 "line": 293,
1234 "action": {
1235 "type": "invoke",
1236 "field": "as-loadN-address",
1237 "args": []
1238 },
1239 "expected": [
1240 {
1241 "type": "i32",
1242 "value": "0"
1243 }
1244 ]
1245 },
1246 {
1247 "type": "assert_return",
1248 "line": 294,
1249 "action": {
1250 "type": "invoke",
1251 "field": "as-store-address",
1252 "args": []
1253 },
1254 "expected": []
1255 },
1256 {
1257 "type": "assert_return",
1258 "line": 295,
1259 "action": {
1260 "type": "invoke",
1261 "field": "as-store-value",
1262 "args": []
1263 },
1264 "expected": []
1265 },
1266 {
1267 "type": "assert_return",
1268 "line": 296,
1269 "action": {
1270 "type": "invoke",
1271 "field": "as-storeN-address",
1272 "args": []
1273 },
1274 "expected": []
1275 },
1276 {
1277 "type": "assert_return",
1278 "line": 297,
1279 "action": {
1280 "type": "invoke",
1281 "field": "as-storeN-value",
1282 "args": []
1283 },
1284 "expected": []
1285 },
1286 {
1287 "type": "assert_return",
1288 "line": 299,
1289 "action": {
1290 "type": "invoke",
1291 "field": "as-unary-operand",
1292 "args": []
1293 },
1294 "expected": [
1295 {
1296 "type": "i32",
1297 "value": "31"
1298 }
1299 ]
1300 },
1301 {
1302 "type": "assert_return",
1303 "line": 301,
1304 "action": {
1305 "type": "invoke",
1306 "field": "as-binary-left",
1307 "args": []
1308 },
1309 "expected": [
1310 {
1311 "type": "i32",
1312 "value": "11"
1313 }
1314 ]
1315 },
1316 {
1317 "type": "assert_return",
1318 "line": 302,
1319 "action": {
1320 "type": "invoke",
1321 "field": "as-binary-right",
1322 "args": []
1323 },
1324 "expected": [
1325 {
1326 "type": "i32",
1327 "value": "9"
1328 }
1329 ]
1330 },
1331 {
1332 "type": "assert_return",
1333 "line": 304,
1334 "action": {
1335 "type": "invoke",
1336 "field": "as-test-operand",
1337 "args": []
1338 },
1339 "expected": [
1340 {
1341 "type": "i32",
1342 "value": "0"
1343 }
1344 ]
1345 },
1346 {
1347 "type": "assert_return",
1348 "line": 306,
1349 "action": {
1350 "type": "invoke",
1351 "field": "as-compare-left",
1352 "args": []
1353 },
1354 "expected": [
1355 {
1356 "type": "i32",
1357 "value": "1"
1358 }
1359 ]
1360 },
1361 {
1362 "type": "assert_return",
1363 "line": 307,
1364 "action": {
1365 "type": "invoke",
1366 "field": "as-compare-right",
1367 "args": []
1368 },
1369 "expected": [
1370 {
1371 "type": "i32",
1372 "value": "1"
1373 }
1374 ]
1375 },
1376 {
1377 "type": "assert_return",
1378 "line": 309,
1379 "action": {
1380 "type": "invoke",
1381 "field": "as-memory.grow-size",
1382 "args": []
1383 },
1384 "expected": [
1385 {
1386 "type": "i32",
1387 "value": "1"
1388 }
1389 ]
1390 },
1391 {
1392 "type": "module",
1393 "line": 312,
1394 "name": "Mgm",
1395 "filename": "memory_grow.5.wasm",
1396 "module_type": "binary"
1397 },
1398 {
1399 "type": "register",
1400 "line": 316,
1401 "name": "Mgm",
1402 "as": "grown-memory"
1403 },
1404 {
1405 "type": "assert_return",
1406 "line": 317,
1407 "action": {
1408 "type": "invoke",
1409 "module": "Mgm",
1410 "field": "grow",
1411 "args": []
1412 },
1413 "expected": [
1414 {
1415 "type": "i32",
1416 "value": "1"
1417 }
1418 ]
1419 },
1420 {
1421 "type": "module",
1422 "line": 318,
1423 "name": "Mgim1",
1424 "filename": "memory_grow.6.wasm",
1425 "module_type": "binary"
1426 },
1427 {
1428 "type": "register",
1429 "line": 323,
1430 "name": "Mgim1",
1431 "as": "grown-imported-memory"
1432 },
1433 {
1434 "type": "assert_return",
1435 "line": 324,
1436 "action": {
1437 "type": "invoke",
1438 "module": "Mgim1",
1439 "field": "grow",
1440 "args": []
1441 },
1442 "expected": [
1443 {
1444 "type": "i32",
1445 "value": "2"
1446 }
1447 ]
1448 },
1449 {
1450 "type": "module",
1451 "line": 325,
1452 "name": "Mgim2",
1453 "filename": "memory_grow.7.wasm",
1454 "module_type": "binary"
1455 },
1456 {
1457 "type": "assert_return",
1458 "line": 330,
1459 "action": {
1460 "type": "invoke",
1461 "module": "Mgim2",
1462 "field": "size",
1463 "args": []
1464 },
1465 "expected": [
1466 {
1467 "type": "i32",
1468 "value": "3"
1469 }
1470 ]
1471 },
1472 {
1473 "type": "assert_invalid",
1474 "line": 334,
1475 "filename": "memory_grow.8.wasm",
1476 "module_type": "binary",
1477 "text": "type mismatch"
1478 },
1479 {
1480 "type": "assert_invalid",
1481 "line": 343,
1482 "filename": "memory_grow.9.wasm",
1483 "module_type": "binary",
1484 "text": "type mismatch"
1485 },
1486 {
1487 "type": "assert_invalid",
1488 "line": 353,
1489 "filename": "memory_grow.10.wasm",
1490 "module_type": "binary",
1491 "text": "type mismatch"
1492 },
1493 {
1494 "type": "assert_invalid",
1495 "line": 363,
1496 "filename": "memory_grow.11.wasm",
1497 "module_type": "binary",
1498 "text": "type mismatch"
1499 },
1500 {
1501 "type": "assert_invalid",
1502 "line": 374,
1503 "filename": "memory_grow.12.wasm",
1504 "module_type": "binary",
1505 "text": "type mismatch"
1506 },
1507 {
1508 "type": "assert_invalid",
1509 "line": 384,
1510 "filename": "memory_grow.13.wasm",
1511 "module_type": "binary",
1512 "text": "type mismatch"
1513 },
1514 {
1515 "type": "assert_invalid",
1516 "line": 393,
1517 "filename": "memory_grow.14.wasm",
1518 "module_type": "binary",
1519 "text": "type mismatch"
1520 }
1521 ]
1522 }