|
29 | 29 | (global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0))
|
30 | 30 | (global $~lib/native/ASC_LOW_MEMORY_LIMIT i32 (i32.const 0))
|
31 | 31 | (global $~lib/rt/__rtti_base i32 (i32.const 592))
|
32 |
| - (global $~lib/memory/__data_end i32 (i32.const 660)) |
33 |
| - (global $~lib/memory/__stack_pointer (mut i32) (i32.const 17044)) |
34 |
| - (global $~lib/memory/__heap_base i32 (i32.const 17044)) |
| 32 | + (global $~lib/memory/__data_end i32 (i32.const 668)) |
| 33 | + (global $~lib/memory/__stack_pointer (mut i32) (i32.const 17052)) |
| 34 | + (global $~lib/memory/__heap_base i32 (i32.const 17052)) |
35 | 35 | (memory $0 1)
|
36 | 36 | (data (i32.const 12) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00 \00\00\00i\00n\00f\00e\00r\00-\00g\00e\00n\00e\00r\00i\00c\00.\00t\00s\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
37 | 37 | (data (i32.const 76) "\1c\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\00\80?\00\00\00@\00\00@@")
|
|
45 | 45 | (data (i32.const 444) ",\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\14\00\00\00~\00l\00i\00b\00/\00r\00t\00.\00t\00s\00\00\00\00\00\00\00\00\00")
|
46 | 46 | (data (i32.const 496) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
47 | 47 | (data (i32.const 524) "<\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
48 |
| - (data (i32.const 592) "\08\00\00\00 \00\00\00\00\00\00\00 \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\02\19\00\00\00\00\00\00\00\00\00\00\00\00\00\00 \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") |
| 48 | + (data (i32.const 592) "\t\00\00\00 \00\00\00\00\00\00\00 \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\02\19\00\00\00\00\00\00\00\00\00\00\00\00\00\00 \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") |
49 | 49 | (table $0 2 2 funcref)
|
50 | 50 | (elem $0 (i32.const 1) $start:infer-generic~anonymous|0)
|
51 | 51 | (export "test1" (func $infer-generic/test1))
|
52 | 52 | (export "memory" (memory $0))
|
53 | 53 | (export "test2" (func $export:infer-generic/test2))
|
54 | 54 | (export "test3" (func $export:infer-generic/test3))
|
55 | 55 | (export "test4" (func $export:infer-generic/test4))
|
| 56 | + (export "test5" (func $export:infer-generic/test5)) |
56 | 57 | (export "inferAssert" (func $export:infer-generic/inferAssert))
|
57 | 58 | (start $~start)
|
58 | 59 | (func $infer-generic/inferCompatible<f64> (param $a f64) (param $b f64) (result i32)
|
|
2220 | 2221 | local.get $arr
|
2221 | 2222 | call $infer-generic/inferEncapsulatedClass<f32>
|
2222 | 2223 | )
|
2223 |
| - (func $infer-generic/inferEncapsulatedFunction<f32,f64> (param $fn i32) (result i32) |
| 2224 | + (func $infer-generic/inferEncapsulatedFunctionNull<f64> (param $fn i32) (result i32) |
2224 | 2225 | local.get $fn
|
2225 | 2226 | )
|
2226 | 2227 | (func $infer-generic/test3 (param $fn i32) (result i32)
|
| 2228 | + local.get $fn |
| 2229 | + call $infer-generic/inferEncapsulatedFunctionNull<f64> |
| 2230 | + ) |
| 2231 | + (func $infer-generic/inferEncapsulatedFunction<f32,f64> (param $fn i32) (result i32) |
| 2232 | + local.get $fn |
| 2233 | + ) |
| 2234 | + (func $infer-generic/test4 (param $fn i32) (result i32) |
2227 | 2235 | local.get $fn
|
2228 | 2236 | call $infer-generic/inferEncapsulatedFunction<f32,f64>
|
2229 | 2237 | )
|
2230 | 2238 | (func $infer-generic/inferEncapsulatedFunctionMixed<f32,f64> (param $fn i32) (result i32)
|
2231 | 2239 | local.get $fn
|
2232 | 2240 | )
|
2233 |
| - (func $infer-generic/test4 (param $fn i32) (result i32) |
| 2241 | + (func $infer-generic/test5 (param $fn i32) (result i32) |
2234 | 2242 | local.get $fn
|
2235 | 2243 | call $infer-generic/inferEncapsulatedFunctionMixed<f32,f64>
|
2236 | 2244 | )
|
|
2242 | 2250 | if (result i32)
|
2243 | 2251 | i32.const 0
|
2244 | 2252 | i32.const 32
|
2245 |
| - i32.const 67 |
| 2253 | + i32.const 75 |
2246 | 2254 | i32.const 3
|
2247 | 2255 | call $~lib/builtins/abort
|
2248 | 2256 | unreachable
|
|
2303 | 2311 | local.get $1
|
2304 | 2312 | call $~lib/function/Function<%28bool%2Cf32%2Ci32%2C~lib/array/Array<f32>%29=>bool>#__visit
|
2305 | 2313 | )
|
| 2314 | + (func $~lib/function/Function<%28%29=>f64>#__visit (param $this i32) (param $cookie i32) |
| 2315 | + local.get $this |
| 2316 | + i32.load offset=4 |
| 2317 | + local.get $cookie |
| 2318 | + call $~lib/rt/itcms/__visit |
| 2319 | + ) |
| 2320 | + (func $~lib/function/Function<%28%29=>f64>~visit (param $0 i32) (param $1 i32) |
| 2321 | + local.get $0 |
| 2322 | + local.get $1 |
| 2323 | + call $~lib/function/Function<%28%29=>f64>#__visit |
| 2324 | + ) |
2306 | 2325 | (func $~lib/function/Function<%28f32%29=>f64>#__visit (param $this i32) (param $cookie i32)
|
2307 | 2326 | local.get $this
|
2308 | 2327 | i32.load offset=4
|
|
2329 | 2348 | block $invalid
|
2330 | 2349 | block $~lib/function/Function<%28f32%2Ci32%29=>f64>
|
2331 | 2350 | block $~lib/function/Function<%28f32%29=>f64>
|
2332 |
| - block $infer-generic/Ref |
2333 |
| - block $~lib/function/Function<%28bool%2Cf32%2Ci32%2C~lib/array/Array<f32>%29=>bool> |
2334 |
| - block $~lib/array/Array<f32> |
2335 |
| - block $~lib/arraybuffer/ArrayBufferView |
2336 |
| - block $~lib/string/String |
2337 |
| - block $~lib/arraybuffer/ArrayBuffer |
2338 |
| - local.get $0 |
2339 |
| - i32.const 8 |
2340 |
| - i32.sub |
2341 |
| - i32.load |
2342 |
| - br_table $~lib/arraybuffer/ArrayBuffer $~lib/string/String $~lib/arraybuffer/ArrayBufferView $~lib/array/Array<f32> $~lib/function/Function<%28bool%2Cf32%2Ci32%2C~lib/array/Array<f32>%29=>bool> $infer-generic/Ref $~lib/function/Function<%28f32%29=>f64> $~lib/function/Function<%28f32%2Ci32%29=>f64> $invalid |
| 2351 | + block $~lib/function/Function<%28%29=>f64> |
| 2352 | + block $infer-generic/Ref |
| 2353 | + block $~lib/function/Function<%28bool%2Cf32%2Ci32%2C~lib/array/Array<f32>%29=>bool> |
| 2354 | + block $~lib/array/Array<f32> |
| 2355 | + block $~lib/arraybuffer/ArrayBufferView |
| 2356 | + block $~lib/string/String |
| 2357 | + block $~lib/arraybuffer/ArrayBuffer |
| 2358 | + local.get $0 |
| 2359 | + i32.const 8 |
| 2360 | + i32.sub |
| 2361 | + i32.load |
| 2362 | + br_table $~lib/arraybuffer/ArrayBuffer $~lib/string/String $~lib/arraybuffer/ArrayBufferView $~lib/array/Array<f32> $~lib/function/Function<%28bool%2Cf32%2Ci32%2C~lib/array/Array<f32>%29=>bool> $infer-generic/Ref $~lib/function/Function<%28%29=>f64> $~lib/function/Function<%28f32%29=>f64> $~lib/function/Function<%28f32%2Ci32%29=>f64> $invalid |
| 2363 | + end |
| 2364 | + return |
2343 | 2365 | end
|
2344 | 2366 | return
|
2345 | 2367 | end
|
| 2368 | + local.get $0 |
| 2369 | + local.get $1 |
| 2370 | + call $~lib/arraybuffer/ArrayBufferView~visit |
2346 | 2371 | return
|
2347 | 2372 | end
|
2348 | 2373 | local.get $0
|
2349 | 2374 | local.get $1
|
2350 |
| - call $~lib/arraybuffer/ArrayBufferView~visit |
| 2375 | + call $~lib/array/Array<f32>~visit |
2351 | 2376 | return
|
2352 | 2377 | end
|
2353 | 2378 | local.get $0
|
2354 | 2379 | local.get $1
|
2355 |
| - call $~lib/array/Array<f32>~visit |
| 2380 | + call $~lib/function/Function<%28bool%2Cf32%2Ci32%2C~lib/array/Array<f32>%29=>bool>~visit |
2356 | 2381 | return
|
2357 | 2382 | end
|
2358 |
| - local.get $0 |
2359 |
| - local.get $1 |
2360 |
| - call $~lib/function/Function<%28bool%2Cf32%2Ci32%2C~lib/array/Array<f32>%29=>bool>~visit |
2361 | 2383 | return
|
2362 | 2384 | end
|
| 2385 | + local.get $0 |
| 2386 | + local.get $1 |
| 2387 | + call $~lib/function/Function<%28%29=>f64>~visit |
2363 | 2388 | return
|
2364 | 2389 | end
|
2365 | 2390 | local.get $0
|
|
2412 | 2437 | if
|
2413 | 2438 | i32.const 0
|
2414 | 2439 | i32.const 32
|
2415 |
| - i32.const 46 |
| 2440 | + i32.const 54 |
2416 | 2441 | i32.const 1
|
2417 | 2442 | call $~lib/builtins/abort
|
2418 | 2443 | unreachable
|
|
2440 | 2465 | if
|
2441 | 2466 | i32.const 0
|
2442 | 2467 | i32.const 32
|
2443 |
| - i32.const 62 |
| 2468 | + i32.const 70 |
2444 | 2469 | i32.const 1
|
2445 | 2470 | call $~lib/builtins/abort
|
2446 | 2471 | unreachable
|
|
2483 | 2508 | if
|
2484 | 2509 | i32.const 0
|
2485 | 2510 | i32.const 32
|
2486 |
| - i32.const 63 |
| 2511 | + i32.const 71 |
2487 | 2512 | i32.const 1
|
2488 | 2513 | call $~lib/builtins/abort
|
2489 | 2514 | unreachable
|
|
2581 | 2606 | global.set $~lib/memory/__stack_pointer
|
2582 | 2607 | local.get $1
|
2583 | 2608 | )
|
| 2609 | + (func $export:infer-generic/test5 (param $0 i32) (result i32) |
| 2610 | + (local $1 i32) |
| 2611 | + global.get $~lib/memory/__stack_pointer |
| 2612 | + i32.const 4 |
| 2613 | + i32.sub |
| 2614 | + global.set $~lib/memory/__stack_pointer |
| 2615 | + call $~stack_check |
| 2616 | + global.get $~lib/memory/__stack_pointer |
| 2617 | + local.get $0 |
| 2618 | + i32.store |
| 2619 | + local.get $0 |
| 2620 | + call $infer-generic/test5 |
| 2621 | + local.set $1 |
| 2622 | + global.get $~lib/memory/__stack_pointer |
| 2623 | + i32.const 4 |
| 2624 | + i32.add |
| 2625 | + global.set $~lib/memory/__stack_pointer |
| 2626 | + local.get $1 |
| 2627 | + ) |
2584 | 2628 | (func $export:infer-generic/inferAssert (param $0 i32)
|
2585 | 2629 | global.get $~lib/memory/__stack_pointer
|
2586 | 2630 | i32.const 4
|
|
0 commit comments