Debian Codegraph @

tests/snapshots/cli/custom-page-sizes/custom-page-sizes.wast.json

raw
1 {
2 "source_filename": "tests/cli/custom-page-sizes/custom-page-sizes.wast",
3 "commands": [
4 {
5 "type": "module",
6 "line": 4,
7 "filename": "custom-page-sizes.0.wasm",
8 "module_type": "binary"
9 },
10 {
11 "type": "module",
12 "line": 5,
13 "filename": "custom-page-sizes.1.wasm",
14 "module_type": "binary"
15 },
16 {
17 "type": "module",
18 "line": 8,
19 "filename": "custom-page-sizes.2.wasm",
20 "module_type": "binary"
21 },
22 {
23 "type": "module",
24 "line": 9,
25 "filename": "custom-page-sizes.3.wasm",
26 "module_type": "binary"
27 },
28 {
29 "type": "module",
30 "line": 12,
31 "filename": "custom-page-sizes.4.wasm",
32 "module_type": "binary"
33 },
34 {
35 "type": "assert_return",
36 "line": 28,
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": 29,
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": 31,
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": 32,
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": 33,
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": 34,
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": 35,
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": 36,
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": 38,
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": 39,
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": 40,
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": 41,
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": 42,
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": 43,
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": 48,
285 "filename": "custom-page-sizes.5.wasm",
286 "module_type": "binary"
287 },
288 {
289 "type": "assert_return",
290 "line": 54,
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": 55,
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": 56,
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": 59,
341 "filename": "custom-page-sizes.6.wasm",
342 "module_type": "binary"
343 },
344 {
345 "type": "assert_return",
346 "line": 83,
347 "action": {
348 "type": "invoke",
349 "field": "copy-small-to-large",
350 "args": []
351 },
352 "expected": [
353 {
354 "type": "i32",
355 "value": "0"
356 },
357 {
358 "type": "i32",
359 "value": "2"
360 },
361 {
362 "type": "i32",
363 "value": "6"
364 }
365 ]
366 },
367 {
368 "type": "assert_return",
369 "line": 84,
370 "action": {
371 "type": "invoke",
372 "field": "load8-large",
373 "args": []
374 },
375 "expected": [
376 {
377 "type": "i32",
378 "value": "6"
379 },
380 {
381 "type": "i32",
382 "value": "17"
383 }
384 ]
385 },
386 {
387 "type": "assert_return",
388 "line": 85,
389 "action": {
390 "type": "invoke",
391 "field": "load8-large",
392 "args": []
393 },
394 "expected": [
395 {
396 "type": "i32",
397 "value": "7"
398 },
399 {
400 "type": "i32",
401 "value": "34"
402 }
403 ]
404 },
405 {
406 "type": "assert_return",
407 "line": 87,
408 "action": {
409 "type": "invoke",
410 "field": "copy-large-to-small",
411 "args": []
412 },
413 "expected": [
414 {
415 "type": "i32",
416 "value": "1"
417 },
418 {
419 "type": "i32",
420 "value": "3"
421 },
422 {
423 "type": "i32",
424 "value": "4"
425 }
426 ]
427 },
428 {
429 "type": "assert_return",
430 "line": 88,
431 "action": {
432 "type": "invoke",
433 "field": "load8-large",
434 "args": []
435 },
436 "expected": [
437 {
438 "type": "i32",
439 "value": "4"
440 },
441 {
442 "type": "i32",
443 "value": "102"
444 }
445 ]
446 },
447 {
448 "type": "assert_return",
449 "line": 89,
450 "action": {
451 "type": "invoke",
452 "field": "load8-large",
453 "args": []
454 },
455 "expected": [
456 {
457 "type": "i32",
458 "value": "5"
459 },
460 {
461 "type": "i32",
462 "value": "119"
463 }
464 ]
465 },
466 {
467 "type": "assert_return",
468 "line": 90,
469 "action": {
470 "type": "invoke",
471 "field": "load8-large",
472 "args": []
473 },
474 "expected": [
475 {
476 "type": "i32",
477 "value": "6"
478 },
479 {
480 "type": "i32",
481 "value": "136"
482 }
483 ]
484 }
485 ]
486 }