Debian Codegraph @

tests/snapshots/testsuite/proposals/custom-page-sizes/custom-page-sizes.wast.json

raw
1 {
2 "source_filename": "tests/testsuite/proposals/custom-page-sizes/custom-page-sizes.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 2,
7 "filename": "custom-page-sizes.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "module",
12 "line": 3,
13 "filename": "custom-page-sizes.1.wasm",
14 "module_type": "binary"
15 },
16 {
17 "type": "module",
18 "line": 6,
19 "filename": "custom-page-sizes.2.wasm",
20 "module_type": "binary"
21 },
22 {
23 "type": "module",
24 "line": 7,
25 "filename": "custom-page-sizes.3.wasm",
26 "module_type": "binary"
27 },
28 {
29 "type": "module",
30 "line": 10,
31 "filename": "custom-page-sizes.4.wasm",
32 "module_type": "binary"
33 },
34 {
35 "type": "assert_return",
36 "line": 26,
37 "action": {
38 "type": "invoke",
39 "field": "size",
40 "args": []
41 },
42 "expected": [
43 {
44 "type": "i32",
45 "value": "0"
46 }
47 ]
48 },
49 {
50 "type": "assert_trap",
51 "line": 27,
52 "action": {
53 "type": "invoke",
54 "field": "load",
55 "args": [
56 {
57 "type": "i32",
58 "value": "0"
59 }
60 ]
61 },
62 "text": "out of bounds memory access"
63 },
64 {
65 "type": "assert_return",
66 "line": 29,
67 "action": {
68 "type": "invoke",
69 "field": "grow",
70 "args": [
71 {
72 "type": "i32",
73 "value": "65536"
74 }
75 ]
76 },
77 "expected": [
78 {
79 "type": "i32",
80 "value": "0"
81 }
82 ]
83 },
84 {
85 "type": "assert_return",
86 "line": 30,
87 "action": {
88 "type": "invoke",
89 "field": "size",
90 "args": []
91 },
92 "expected": [
93 {
94 "type": "i32",
95 "value": "65536"
96 }
97 ]
98 },
99 {
100 "type": "assert_return",
101 "line": 31,
102 "action": {
103 "type": "invoke",
104 "field": "load",
105 "args": [
106 {
107 "type": "i32",
108 "value": "65535"
109 }
110 ]
111 },
112 "expected": [
113 {
114 "type": "i32",
115 "value": "0"
116 }
117 ]
118 },
119 {
120 "type": "assert_return",
121 "line": 32,
122 "action": {
123 "type": "invoke",
124 "field": "store",
125 "args": [
126 {
127 "type": "i32",
128 "value": "65535"
129 },
130 {
131 "type": "i32",
132 "value": "1"
133 }
134 ]
135 },
136 "expected": []
137 },
138 {
139 "type": "assert_return",
140 "line": 33,
141 "action": {
142 "type": "invoke",
143 "field": "load",
144 "args": [
145 {
146 "type": "i32",
147 "value": "65535"
148 }
149 ]
150 },
151 "expected": [
152 {
153 "type": "i32",
154 "value": "1"
155 }
156 ]
157 },
158 {
159 "type": "assert_trap",
160 "line": 34,
161 "action": {
162 "type": "invoke",
163 "field": "load",
164 "args": [
165 {
166 "type": "i32",
167 "value": "65536"
168 }
169 ]
170 },
171 "text": "out of bounds memory access"
172 },
173 {
174 "type": "assert_return",
175 "line": 36,
176 "action": {
177 "type": "invoke",
178 "field": "grow",
179 "args": [
180 {
181 "type": "i32",
182 "value": "65536"
183 }
184 ]
185 },
186 "expected": [
187 {
188 "type": "i32",
189 "value": "65536"
190 }
191 ]
192 },
193 {
194 "type": "assert_return",
195 "line": 37,
196 "action": {
197 "type": "invoke",
198 "field": "size",
199 "args": []
200 },
201 "expected": [
202 {
203 "type": "i32",
204 "value": "131072"
205 }
206 ]
207 },
208 {
209 "type": "assert_return",
210 "line": 38,
211 "action": {
212 "type": "invoke",
213 "field": "load",
214 "args": [
215 {
216 "type": "i32",
217 "value": "131071"
218 }
219 ]
220 },
221 "expected": [
222 {
223 "type": "i32",
224 "value": "0"
225 }
226 ]
227 },
228 {
229 "type": "assert_return",
230 "line": 39,
231 "action": {
232 "type": "invoke",
233 "field": "store",
234 "args": [
235 {
236 "type": "i32",
237 "value": "131071"
238 },
239 {
240 "type": "i32",
241 "value": "1"
242 }
243 ]
244 },
245 "expected": []
246 },
247 {
248 "type": "assert_return",
249 "line": 40,
250 "action": {
251 "type": "invoke",
252 "field": "load",
253 "args": [
254 {
255 "type": "i32",
256 "value": "131071"
257 }
258 ]
259 },
260 "expected": [
261 {
262 "type": "i32",
263 "value": "1"
264 }
265 ]
266 },
267 {
268 "type": "assert_trap",
269 "line": 41,
270 "action": {
271 "type": "invoke",
272 "field": "load",
273 "args": [
274 {
275 "type": "i32",
276 "value": "131072"
277 }
278 ]
279 },
280 "text": "out of bounds memory access"
281 },
282 {
283 "type": "module",
284 "line": 46,
285 "filename": "custom-page-sizes.5.wasm",
286 "module_type": "binary"
287 },
288 {
289 "type": "assert_return",
290 "line": 55,
291 "action": {
292 "type": "invoke",
293 "field": "size",
294 "args": []
295 },
296 "expected": [
297 {
298 "type": "i32",
299 "value": "0"
300 }
301 ]
302 },
303 {
304 "type": "assert_return",
305 "line": 56,
306 "action": {
307 "type": "invoke",
308 "field": "grow",
309 "args": [
310 {
311 "type": "i32",
312 "value": "65537"
313 }
314 ]
315 },
316 "expected": [
317 {
318 "type": "i32",
319 "value": "-1"
320 }
321 ]
322 },
323 {
324 "type": "assert_return",
325 "line": 57,
326 "action": {
327 "type": "invoke",
328 "field": "size",
329 "args": []
330 },
331 "expected": [
332 {
333 "type": "i32",
334 "value": "0"
335 }
336 ]
337 },
338 {
339 "type": "module",
340 "line": 60,
341 "filename": "custom-page-sizes.6.wasm",
342 "module_type": "binary"
343 },
344 {
345 "type": "assert_return",
346 "line": 84,
347 "action": {
348 "type": "invoke",
349 "field": "copy-small-to-large",
350 "args": [
351 {
352 "type": "i32",
353 "value": "6"
354 },
355 {
356 "type": "i32",
357 "value": "0"
358 },
359 {
360 "type": "i32",
361 "value": "2"
362 }
363 ]
364 },
365 "expected": []
366 },
367 {
368 "type": "assert_return",
369 "line": 85,
370 "action": {
371 "type": "invoke",
372 "field": "load8-large",
373 "args": [
374 {
375 "type": "i32",
376 "value": "6"
377 }
378 ]
379 },
380 "expected": [
381 {
382 "type": "i32",
383 "value": "17"
384 }
385 ]
386 },
387 {
388 "type": "assert_return",
389 "line": 86,
390 "action": {
391 "type": "invoke",
392 "field": "load8-large",
393 "args": [
394 {
395 "type": "i32",
396 "value": "7"
397 }
398 ]
399 },
400 "expected": [
401 {
402 "type": "i32",
403 "value": "34"
404 }
405 ]
406 },
407 {
408 "type": "assert_return",
409 "line": 88,
410 "action": {
411 "type": "invoke",
412 "field": "copy-large-to-small",
413 "args": [
414 {
415 "type": "i32",
416 "value": "4"
417 },
418 {
419 "type": "i32",
420 "value": "1"
421 },
422 {
423 "type": "i32",
424 "value": "3"
425 }
426 ]
427 },
428 "expected": []
429 },
430 {
431 "type": "assert_return",
432 "line": 89,
433 "action": {
434 "type": "invoke",
435 "field": "load8-small",
436 "args": [
437 {
438 "type": "i32",
439 "value": "4"
440 }
441 ]
442 },
443 "expected": [
444 {
445 "type": "i32",
446 "value": "102"
447 }
448 ]
449 },
450 {
451 "type": "assert_return",
452 "line": 90,
453 "action": {
454 "type": "invoke",
455 "field": "load8-small",
456 "args": [
457 {
458 "type": "i32",
459 "value": "5"
460 }
461 ]
462 },
463 "expected": [
464 {
465 "type": "i32",
466 "value": "119"
467 }
468 ]
469 },
470 {
471 "type": "assert_return",
472 "line": 91,
473 "action": {
474 "type": "invoke",
475 "field": "load8-small",
476 "args": [
477 {
478 "type": "i32",
479 "value": "6"
480 }
481 ]
482 },
483 "expected": [
484 {
485 "type": "i32",
486 "value": "136"
487 }
488 ]
489 },
490 {
491 "type": "module",
492 "line": 96,
493 "name": "m",
494 "filename": "custom-page-sizes.7.wasm",
495 "module_type": "binary"
496 },
497 {
498 "type": "register",
499 "line": 100,
500 "name": "m",
501 "as": "m"
502 },
503 {
504 "type": "module",
505 "line": 102,
506 "filename": "custom-page-sizes.8.wasm",
507 "module_type": "binary"
508 },
509 {
510 "type": "module",
511 "line": 106,
512 "filename": "custom-page-sizes.9.wasm",
513 "module_type": "binary"
514 },
515 {
516 "type": "assert_malformed",
517 "line": 113,
518 "filename": "custom-page-sizes.10.wat",
519 "module_type": "text",
520 "text": "invalid custom page size"
521 },
522 {
523 "type": "module",
524 "line": 116,
525 "filename": "custom-page-sizes.11.wasm",
526 "module_type": "binary"
527 },
528 {
529 "type": "assert_return",
530 "line": 125,
531 "action": {
532 "type": "invoke",
533 "field": "size",
534 "args": []
535 },
536 "expected": [
537 {
538 "type": "i32",
539 "value": "3"
540 }
541 ]
542 },
543 {
544 "type": "assert_return",
545 "line": 126,
546 "action": {
547 "type": "invoke",
548 "field": "load",
549 "args": [
550 {
551 "type": "i32",
552 "value": "0"
553 }
554 ]
555 },
556 "expected": [
557 {
558 "type": "i32",
559 "value": "120"
560 }
561 ]
562 },
563 {
564 "type": "assert_return",
565 "line": 127,
566 "action": {
567 "type": "invoke",
568 "field": "load",
569 "args": [
570 {
571 "type": "i32",
572 "value": "1"
573 }
574 ]
575 },
576 "expected": [
577 {
578 "type": "i32",
579 "value": "121"
580 }
581 ]
582 },
583 {
584 "type": "assert_return",
585 "line": 128,
586 "action": {
587 "type": "invoke",
588 "field": "load",
589 "args": [
590 {
591 "type": "i32",
592 "value": "2"
593 }
594 ]
595 },
596 "expected": [
597 {
598 "type": "i32",
599 "value": "122"
600 }
601 ]
602 },
603 {
604 "type": "assert_trap",
605 "line": 129,
606 "action": {
607 "type": "invoke",
608 "field": "load",
609 "args": [
610 {
611 "type": "i32",
612 "value": "3"
613 }
614 ]
615 },
616 "text": "out of bounds memory access"
617 },
618 {
619 "type": "assert_return",
620 "line": 130,
621 "action": {
622 "type": "invoke",
623 "field": "grow",
624 "args": [
625 {
626 "type": "i32",
627 "value": "1"
628 }
629 ]
630 },
631 "expected": [
632 {
633 "type": "i32",
634 "value": "-1"
635 }
636 ]
637 },
638 {
639 "type": "module",
640 "line": 133,
641 "filename": "custom-page-sizes.12.wasm",
642 "module_type": "binary"
643 },
644 {
645 "type": "assert_return",
646 "line": 138,
647 "action": {
648 "type": "invoke",
649 "field": "size",
650 "args": []
651 },
652 "expected": [
653 {
654 "type": "i32",
655 "value": "1"
656 }
657 ]
658 }
659 ]
660 }