|
37 | 37 | (func $features/reference-types/testLocal<funcref>
|
38 | 38 | (local $0 funcref)
|
39 | 39 | (local $1 funcref)
|
40 |
| - i32.const 1 |
41 | 40 | local.get $0
|
42 | 41 | ref.is_null
|
43 |
| - i32.sub |
| 42 | + i32.eqz |
44 | 43 | i32.eqz
|
45 | 44 | i32.eqz
|
46 | 45 | if
|
|
53 | 52 | end
|
54 | 53 | ref.null func
|
55 | 54 | local.set $0
|
56 |
| - i32.const 1 |
57 | 55 | local.get $0
|
58 | 56 | ref.is_null
|
59 |
| - i32.sub |
| 57 | + i32.eqz |
60 | 58 | i32.eqz
|
61 | 59 | i32.eqz
|
62 | 60 | if
|
|
69 | 67 | end
|
70 | 68 | ref.null func
|
71 | 69 | local.set $1
|
72 |
| - i32.const 1 |
73 | 70 | local.get $1
|
74 | 71 | ref.is_null
|
75 |
| - i32.sub |
| 72 | + i32.eqz |
76 | 73 | i32.eqz
|
77 | 74 | i32.eqz
|
78 | 75 | if
|
|
87 | 84 | (func $features/reference-types/testLocal<externref>
|
88 | 85 | (local $0 externref)
|
89 | 86 | (local $1 externref)
|
90 |
| - i32.const 1 |
91 | 87 | local.get $0
|
92 | 88 | ref.is_null
|
93 |
| - i32.sub |
| 89 | + i32.eqz |
94 | 90 | i32.eqz
|
95 | 91 | i32.eqz
|
96 | 92 | if
|
|
103 | 99 | end
|
104 | 100 | ref.null extern
|
105 | 101 | local.set $0
|
106 |
| - i32.const 1 |
107 | 102 | local.get $0
|
108 | 103 | ref.is_null
|
109 |
| - i32.sub |
| 104 | + i32.eqz |
110 | 105 | i32.eqz
|
111 | 106 | i32.eqz
|
112 | 107 | if
|
|
119 | 114 | end
|
120 | 115 | ref.null extern
|
121 | 116 | local.set $1
|
122 |
| - i32.const 1 |
123 | 117 | local.get $1
|
124 | 118 | ref.is_null
|
125 |
| - i32.sub |
| 119 | + i32.eqz |
126 | 120 | i32.eqz
|
127 | 121 | i32.eqz
|
128 | 122 | if
|
|
137 | 131 | (func $features/reference-types/testLocal<anyref>
|
138 | 132 | (local $0 anyref)
|
139 | 133 | (local $1 anyref)
|
140 |
| - i32.const 1 |
141 | 134 | local.get $0
|
142 | 135 | ref.is_null
|
143 |
| - i32.sub |
| 136 | + i32.eqz |
144 | 137 | i32.eqz
|
145 | 138 | i32.eqz
|
146 | 139 | if
|
|
153 | 146 | end
|
154 | 147 | ref.null any
|
155 | 148 | local.set $0
|
156 |
| - i32.const 1 |
157 | 149 | local.get $0
|
158 | 150 | ref.is_null
|
159 |
| - i32.sub |
| 151 | + i32.eqz |
160 | 152 | i32.eqz
|
161 | 153 | i32.eqz
|
162 | 154 | if
|
|
169 | 161 | end
|
170 | 162 | ref.null any
|
171 | 163 | local.set $1
|
172 |
| - i32.const 1 |
173 | 164 | local.get $1
|
174 | 165 | ref.is_null
|
175 |
| - i32.sub |
| 166 | + i32.eqz |
176 | 167 | i32.eqz
|
177 | 168 | i32.eqz
|
178 | 169 | if
|
|
211 | 202 | global.get $features/reference-types/someKey
|
212 | 203 | call $~lib/bindings/Reflect/get
|
213 | 204 | call $~lib/bindings/console/log
|
214 |
| - i32.const 1 |
215 | 205 | call $features/reference-types/somethingReal
|
216 | 206 | ref.is_null
|
217 |
| - i32.sub |
| 207 | + i32.eqz |
218 | 208 | i32.eqz
|
219 | 209 | if
|
220 | 210 | i32.const 0
|
|
228 | 218 | unreachable
|
229 | 219 | end
|
230 | 220 | end
|
231 |
| - i32.const 1 |
232 | 221 | call $features/reference-types/somethingNull
|
233 | 222 | ref.is_null
|
234 |
| - i32.sub |
| 223 | + i32.eqz |
235 | 224 | i32.eqz
|
236 | 225 | if
|
237 | 226 | nop
|
|
247 | 236 | unreachable
|
248 | 237 | end
|
249 | 238 | end
|
250 |
| - i32.const 1 |
251 | 239 | call $features/reference-types/somethingReal
|
252 | 240 | ref.is_null
|
253 |
| - i32.sub |
| 241 | + i32.eqz |
254 | 242 | if
|
255 | 243 | nop
|
256 | 244 | else
|
|
265 | 253 | unreachable
|
266 | 254 | end
|
267 | 255 | end
|
268 |
| - i32.const 1 |
269 | 256 | call $features/reference-types/somethingNull
|
270 | 257 | ref.is_null
|
271 |
| - i32.sub |
| 258 | + i32.eqz |
272 | 259 | if
|
273 | 260 | i32.const 0
|
274 | 261 | i32.eqz
|
|
281 | 268 | unreachable
|
282 | 269 | end
|
283 | 270 | end
|
284 |
| - i32.const 1 |
285 | 271 | global.get $features/reference-types/funcGlobal
|
286 | 272 | ref.is_null
|
287 |
| - i32.sub |
| 273 | + i32.eqz |
288 | 274 | i32.eqz
|
289 | 275 | i32.eqz
|
290 | 276 | if
|
|
297 | 283 | end
|
298 | 284 | ref.null func
|
299 | 285 | global.set $features/reference-types/funcGlobal
|
300 |
| - i32.const 1 |
301 | 286 | global.get $features/reference-types/funcGlobal
|
302 | 287 | ref.is_null
|
303 |
| - i32.sub |
| 288 | + i32.eqz |
304 | 289 | i32.eqz
|
305 | 290 | i32.eqz
|
306 | 291 | if
|
|
313 | 298 | end
|
314 | 299 | ref.null func
|
315 | 300 | global.set $features/reference-types/funcGlobalInit
|
316 |
| - i32.const 1 |
317 | 301 | global.get $features/reference-types/funcGlobalInit
|
318 | 302 | ref.is_null
|
319 |
| - i32.sub |
| 303 | + i32.eqz |
320 | 304 | i32.eqz
|
321 | 305 | i32.eqz
|
322 | 306 | if
|
|
327 | 311 | call $~lib/builtins/abort
|
328 | 312 | unreachable
|
329 | 313 | end
|
330 |
| - i32.const 1 |
331 | 314 | global.get $features/reference-types/externGlobal
|
332 | 315 | ref.is_null
|
333 |
| - i32.sub |
| 316 | + i32.eqz |
334 | 317 | i32.eqz
|
335 | 318 | i32.eqz
|
336 | 319 | if
|
|
343 | 326 | end
|
344 | 327 | ref.null extern
|
345 | 328 | global.set $features/reference-types/externGlobal
|
346 |
| - i32.const 1 |
347 | 329 | global.get $features/reference-types/externGlobal
|
348 | 330 | ref.is_null
|
349 |
| - i32.sub |
| 331 | + i32.eqz |
350 | 332 | i32.eqz
|
351 | 333 | i32.eqz
|
352 | 334 | if
|
|
359 | 341 | end
|
360 | 342 | ref.null extern
|
361 | 343 | global.set $features/reference-types/externGlobalInit
|
362 |
| - i32.const 1 |
363 | 344 | global.get $features/reference-types/externGlobalInit
|
364 | 345 | ref.is_null
|
365 |
| - i32.sub |
| 346 | + i32.eqz |
366 | 347 | i32.eqz
|
367 | 348 | i32.eqz
|
368 | 349 | if
|
|
373 | 354 | call $~lib/builtins/abort
|
374 | 355 | unreachable
|
375 | 356 | end
|
376 |
| - i32.const 1 |
377 | 357 | global.get $features/reference-types/anyGlobal
|
378 | 358 | ref.is_null
|
379 |
| - i32.sub |
| 359 | + i32.eqz |
380 | 360 | i32.eqz
|
381 | 361 | i32.eqz
|
382 | 362 | if
|
|
389 | 369 | end
|
390 | 370 | ref.null any
|
391 | 371 | global.set $features/reference-types/anyGlobal
|
392 |
| - i32.const 1 |
393 | 372 | global.get $features/reference-types/anyGlobal
|
394 | 373 | ref.is_null
|
395 |
| - i32.sub |
| 374 | + i32.eqz |
396 | 375 | i32.eqz
|
397 | 376 | i32.eqz
|
398 | 377 | if
|
|
405 | 384 | end
|
406 | 385 | ref.null any
|
407 | 386 | global.set $features/reference-types/anyGlobalInit
|
408 |
| - i32.const 1 |
409 | 387 | global.get $features/reference-types/anyGlobalInit
|
410 | 388 | ref.is_null
|
411 |
| - i32.sub |
| 389 | + i32.eqz |
412 | 390 | i32.eqz
|
413 | 391 | i32.eqz
|
414 | 392 | if
|
|
0 commit comments