|
37 | 37 | (func $features/reference-types/testLocal<funcref>
|
38 | 38 | (local $0 funcref)
|
39 | 39 | (local $1 funcref)
|
| 40 | + i32.const 1 |
40 | 41 | local.get $0
|
41 | 42 | ref.is_null
|
| 43 | + i32.sub |
42 | 44 | i32.eqz
|
43 | 45 | i32.eqz
|
44 | 46 | if
|
45 | 47 | i32.const 0
|
46 | 48 | i32.const 32
|
47 |
| - i32.const 54 |
| 49 | + i32.const 94 |
48 | 50 | i32.const 3
|
49 | 51 | call $~lib/builtins/abort
|
50 | 52 | unreachable
|
51 | 53 | end
|
52 | 54 | ref.null func
|
53 | 55 | local.set $0
|
| 56 | + i32.const 1 |
54 | 57 | local.get $0
|
55 | 58 | ref.is_null
|
| 59 | + i32.sub |
56 | 60 | i32.eqz
|
57 | 61 | i32.eqz
|
58 | 62 | if
|
59 | 63 | i32.const 0
|
60 | 64 | i32.const 32
|
61 |
| - i32.const 56 |
| 65 | + i32.const 96 |
62 | 66 | i32.const 3
|
63 | 67 | call $~lib/builtins/abort
|
64 | 68 | unreachable
|
65 | 69 | end
|
66 | 70 | ref.null func
|
67 | 71 | local.set $1
|
| 72 | + i32.const 1 |
68 | 73 | local.get $1
|
69 | 74 | ref.is_null
|
| 75 | + i32.sub |
70 | 76 | i32.eqz
|
71 | 77 | i32.eqz
|
72 | 78 | if
|
73 | 79 | i32.const 0
|
74 | 80 | i32.const 32
|
75 |
| - i32.const 58 |
| 81 | + i32.const 98 |
76 | 82 | i32.const 3
|
77 | 83 | call $~lib/builtins/abort
|
78 | 84 | unreachable
|
|
81 | 87 | (func $features/reference-types/testLocal<externref>
|
82 | 88 | (local $0 externref)
|
83 | 89 | (local $1 externref)
|
| 90 | + i32.const 1 |
84 | 91 | local.get $0
|
85 | 92 | ref.is_null
|
| 93 | + i32.sub |
86 | 94 | i32.eqz
|
87 | 95 | i32.eqz
|
88 | 96 | if
|
89 | 97 | i32.const 0
|
90 | 98 | i32.const 32
|
91 |
| - i32.const 54 |
| 99 | + i32.const 94 |
92 | 100 | i32.const 3
|
93 | 101 | call $~lib/builtins/abort
|
94 | 102 | unreachable
|
95 | 103 | end
|
96 | 104 | ref.null extern
|
97 | 105 | local.set $0
|
| 106 | + i32.const 1 |
98 | 107 | local.get $0
|
99 | 108 | ref.is_null
|
| 109 | + i32.sub |
100 | 110 | i32.eqz
|
101 | 111 | i32.eqz
|
102 | 112 | if
|
103 | 113 | i32.const 0
|
104 | 114 | i32.const 32
|
105 |
| - i32.const 56 |
| 115 | + i32.const 96 |
106 | 116 | i32.const 3
|
107 | 117 | call $~lib/builtins/abort
|
108 | 118 | unreachable
|
109 | 119 | end
|
110 | 120 | ref.null extern
|
111 | 121 | local.set $1
|
| 122 | + i32.const 1 |
112 | 123 | local.get $1
|
113 | 124 | ref.is_null
|
| 125 | + i32.sub |
114 | 126 | i32.eqz
|
115 | 127 | i32.eqz
|
116 | 128 | if
|
117 | 129 | i32.const 0
|
118 | 130 | i32.const 32
|
119 |
| - i32.const 58 |
| 131 | + i32.const 98 |
120 | 132 | i32.const 3
|
121 | 133 | call $~lib/builtins/abort
|
122 | 134 | unreachable
|
|
125 | 137 | (func $features/reference-types/testLocal<anyref>
|
126 | 138 | (local $0 anyref)
|
127 | 139 | (local $1 anyref)
|
| 140 | + i32.const 1 |
128 | 141 | local.get $0
|
129 | 142 | ref.is_null
|
| 143 | + i32.sub |
130 | 144 | i32.eqz
|
131 | 145 | i32.eqz
|
132 | 146 | if
|
133 | 147 | i32.const 0
|
134 | 148 | i32.const 32
|
135 |
| - i32.const 54 |
| 149 | + i32.const 94 |
136 | 150 | i32.const 3
|
137 | 151 | call $~lib/builtins/abort
|
138 | 152 | unreachable
|
139 | 153 | end
|
140 | 154 | ref.null any
|
141 | 155 | local.set $0
|
| 156 | + i32.const 1 |
142 | 157 | local.get $0
|
143 | 158 | ref.is_null
|
| 159 | + i32.sub |
144 | 160 | i32.eqz
|
145 | 161 | i32.eqz
|
146 | 162 | if
|
147 | 163 | i32.const 0
|
148 | 164 | i32.const 32
|
149 |
| - i32.const 56 |
| 165 | + i32.const 96 |
150 | 166 | i32.const 3
|
151 | 167 | call $~lib/builtins/abort
|
152 | 168 | unreachable
|
153 | 169 | end
|
154 | 170 | ref.null any
|
155 | 171 | local.set $1
|
| 172 | + i32.const 1 |
156 | 173 | local.get $1
|
157 | 174 | ref.is_null
|
| 175 | + i32.sub |
158 | 176 | i32.eqz
|
159 | 177 | i32.eqz
|
160 | 178 | if
|
161 | 179 | i32.const 0
|
162 | 180 | i32.const 32
|
163 |
| - i32.const 58 |
| 181 | + i32.const 98 |
164 | 182 | i32.const 3
|
165 | 183 | call $~lib/builtins/abort
|
166 | 184 | unreachable
|
|
170 | 188 | nop
|
171 | 189 | )
|
172 | 190 | (func $start:features/reference-types
|
| 191 | + (local $0 funcref) |
173 | 192 | global.get $features/reference-types/someObject
|
174 | 193 | global.get $features/reference-types/someKey
|
175 | 194 | call $~lib/bindings/Reflect/has
|
|
262 | 281 | unreachable
|
263 | 282 | end
|
264 | 283 | end
|
| 284 | + i32.const 1 |
| 285 | + global.get $features/reference-types/funcGlobal |
| 286 | + ref.is_null |
| 287 | + i32.sub |
| 288 | + i32.eqz |
| 289 | + i32.eqz |
| 290 | + if |
| 291 | + i32.const 0 |
| 292 | + i32.const 32 |
| 293 | + i32.const 72 |
| 294 | + i32.const 1 |
| 295 | + call $~lib/builtins/abort |
| 296 | + unreachable |
| 297 | + end |
| 298 | + ref.null func |
| 299 | + global.set $features/reference-types/funcGlobal |
| 300 | + i32.const 1 |
| 301 | + global.get $features/reference-types/funcGlobal |
| 302 | + ref.is_null |
| 303 | + i32.sub |
| 304 | + i32.eqz |
| 305 | + i32.eqz |
| 306 | + if |
| 307 | + i32.const 0 |
| 308 | + i32.const 32 |
| 309 | + i32.const 74 |
| 310 | + i32.const 1 |
| 311 | + call $~lib/builtins/abort |
| 312 | + unreachable |
| 313 | + end |
| 314 | + ref.null func |
| 315 | + global.set $features/reference-types/funcGlobalInit |
| 316 | + i32.const 1 |
| 317 | + global.get $features/reference-types/funcGlobalInit |
| 318 | + ref.is_null |
| 319 | + i32.sub |
| 320 | + i32.eqz |
| 321 | + i32.eqz |
| 322 | + if |
| 323 | + i32.const 0 |
| 324 | + i32.const 32 |
| 325 | + i32.const 76 |
| 326 | + i32.const 1 |
| 327 | + call $~lib/builtins/abort |
| 328 | + unreachable |
| 329 | + end |
| 330 | + i32.const 1 |
| 331 | + global.get $features/reference-types/externGlobal |
| 332 | + ref.is_null |
| 333 | + i32.sub |
| 334 | + i32.eqz |
| 335 | + i32.eqz |
| 336 | + if |
| 337 | + i32.const 0 |
| 338 | + i32.const 32 |
| 339 | + i32.const 79 |
| 340 | + i32.const 1 |
| 341 | + call $~lib/builtins/abort |
| 342 | + unreachable |
| 343 | + end |
265 | 344 | ref.null extern
|
266 | 345 | global.set $features/reference-types/externGlobal
|
| 346 | + i32.const 1 |
267 | 347 | global.get $features/reference-types/externGlobal
|
268 | 348 | ref.is_null
|
| 349 | + i32.sub |
269 | 350 | i32.eqz
|
270 | 351 | i32.eqz
|
271 | 352 | if
|
272 | 353 | i32.const 0
|
273 | 354 | i32.const 32
|
274 |
| - i32.const 41 |
| 355 | + i32.const 81 |
275 | 356 | i32.const 1
|
276 | 357 | call $~lib/builtins/abort
|
277 | 358 | unreachable
|
278 | 359 | end
|
279 | 360 | ref.null extern
|
280 | 361 | global.set $features/reference-types/externGlobalInit
|
| 362 | + i32.const 1 |
281 | 363 | global.get $features/reference-types/externGlobalInit
|
282 | 364 | ref.is_null
|
| 365 | + i32.sub |
283 | 366 | i32.eqz
|
284 | 367 | i32.eqz
|
285 | 368 | if
|
286 | 369 | i32.const 0
|
287 | 370 | i32.const 32
|
288 |
| - i32.const 43 |
| 371 | + i32.const 83 |
289 | 372 | i32.const 1
|
290 | 373 | call $~lib/builtins/abort
|
291 | 374 | unreachable
|
292 | 375 | end
|
| 376 | + i32.const 1 |
293 | 377 | global.get $features/reference-types/anyGlobal
|
294 | 378 | ref.is_null
|
| 379 | + i32.sub |
295 | 380 | i32.eqz
|
296 | 381 | i32.eqz
|
297 | 382 | if
|
298 | 383 | i32.const 0
|
299 | 384 | i32.const 32
|
300 |
| - i32.const 46 |
| 385 | + i32.const 86 |
301 | 386 | i32.const 1
|
302 | 387 | call $~lib/builtins/abort
|
303 | 388 | unreachable
|
304 | 389 | end
|
305 | 390 | ref.null any
|
306 | 391 | global.set $features/reference-types/anyGlobal
|
| 392 | + i32.const 1 |
307 | 393 | global.get $features/reference-types/anyGlobal
|
308 | 394 | ref.is_null
|
| 395 | + i32.sub |
309 | 396 | i32.eqz
|
310 | 397 | i32.eqz
|
311 | 398 | if
|
312 | 399 | i32.const 0
|
313 | 400 | i32.const 32
|
314 |
| - i32.const 48 |
| 401 | + i32.const 88 |
315 | 402 | i32.const 1
|
316 | 403 | call $~lib/builtins/abort
|
317 | 404 | unreachable
|
318 | 405 | end
|
319 | 406 | ref.null any
|
320 | 407 | global.set $features/reference-types/anyGlobalInit
|
| 408 | + i32.const 1 |
321 | 409 | global.get $features/reference-types/anyGlobalInit
|
322 | 410 | ref.is_null
|
| 411 | + i32.sub |
323 | 412 | i32.eqz
|
324 | 413 | i32.eqz
|
325 | 414 | if
|
326 | 415 | i32.const 0
|
327 | 416 | i32.const 32
|
328 |
| - i32.const 50 |
| 417 | + i32.const 90 |
329 | 418 | i32.const 1
|
330 | 419 | call $~lib/builtins/abort
|
331 | 420 | unreachable
|
|
340 | 429 | if
|
341 | 430 | i32.const 0
|
342 | 431 | i32.const 32
|
343 |
| - i32.const 68 |
| 432 | + i32.const 108 |
344 | 433 | i32.const 1
|
345 | 434 | call $~lib/builtins/abort
|
346 | 435 | unreachable
|
|
352 | 441 | if
|
353 | 442 | i32.const 0
|
354 | 443 | i32.const 32
|
355 |
| - i32.const 70 |
| 444 | + i32.const 110 |
356 | 445 | i32.const 1
|
357 | 446 | call $~lib/builtins/abort
|
358 | 447 | unreachable
|
|
364 | 453 | if
|
365 | 454 | i32.const 0
|
366 | 455 | i32.const 32
|
367 |
| - i32.const 73 |
| 456 | + i32.const 113 |
368 | 457 | i32.const 3
|
369 | 458 | call $~lib/builtins/abort
|
370 | 459 | unreachable
|
|
0 commit comments