|
16 | 16 | (data (i32.const 204) "\02\00\00\00\01\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00F\00") |
17 | 17 | (data (i32.const 236) "\04\00\00\00\01\00\00\00\00\00\00\00\01\00\00\00\04\00\00\00I\00B\00") |
18 | 18 | (data (i32.const 268) "\04\00\00\00\01\00\00\00\00\00\00\00\01\00\00\00\04\00\00\00I\00C\00") |
| 19 | + (data (i32.const 300) "\1e\00\00\00\01\00\00\00\00\00\00\00\01\00\00\00\1e\00\00\00n\00o\00t\00 \00i\00m\00p\00l\00e\00m\00e\00n\00t\00e\00d\00") |
19 | 20 | (table $0 1 funcref) |
20 | 21 | (global $class-overloading/which (mut i32) (i32.const 32)) |
21 | 22 | (global $~lib/rt/stub/startOffset (mut i32) (i32.const 0)) |
|
25 | 26 | (global $class-overloading/c (mut i32) (i32.const 0)) |
26 | 27 | (global $class-overloading/ia (mut i32) (i32.const 0)) |
27 | 28 | (global $class-overloading/ic (mut i32) (i32.const 0)) |
| 29 | + (global $class-overloading/b2 (mut i32) (i32.const 0)) |
28 | 30 | (global $~started (mut i32) (i32.const 0)) |
29 | | - (global $~lib/memory/__heap_base i32 (i32.const 292)) |
| 31 | + (global $~lib/memory/__heap_base i32 (i32.const 352)) |
30 | 32 | (export "_start" (func $~start)) |
31 | 33 | (export "memory" (memory $0)) |
32 | 34 | (func $~lib/rt/stub/computeSize (param $0 i32) (result i32) |
|
589 | 591 | end |
590 | 592 | local.get $0 |
591 | 593 | ) |
| 594 | + (func $class-overloading/A2#constructor (param $0 i32) (result i32) |
| 595 | + local.get $0 |
| 596 | + i32.eqz |
| 597 | + if |
| 598 | + i32.const 0 |
| 599 | + i32.const 13 |
| 600 | + call $~lib/rt/stub/__new |
| 601 | + call $~lib/rt/stub/__retain |
| 602 | + local.set $0 |
| 603 | + end |
| 604 | + local.get $0 |
| 605 | + ) |
| 606 | + (func $class-overloading/B2#constructor (param $0 i32) (result i32) |
| 607 | + local.get $0 |
| 608 | + i32.eqz |
| 609 | + if |
| 610 | + i32.const 0 |
| 611 | + i32.const 14 |
| 612 | + call $~lib/rt/stub/__new |
| 613 | + call $~lib/rt/stub/__retain |
| 614 | + local.set $0 |
| 615 | + end |
| 616 | + local.get $0 |
| 617 | + call $class-overloading/A2#constructor |
| 618 | + local.set $0 |
| 619 | + local.get $0 |
| 620 | + ) |
| 621 | + (func $class-overloading/A2#foo (param $0 i32) (result i32) |
| 622 | + i32.const 320 |
| 623 | + i32.const 128 |
| 624 | + i32.const 198 |
| 625 | + i32.const 5 |
| 626 | + call $~lib/builtins/abort |
| 627 | + unreachable |
| 628 | + ) |
592 | 629 | (func $start:class-overloading |
593 | 630 | (local $0 i32) |
594 | 631 | global.get $~lib/memory/__heap_base |
|
1074 | 1111 | call $~lib/builtins/abort |
1075 | 1112 | unreachable |
1076 | 1113 | end |
| 1114 | + i32.const 0 |
| 1115 | + call $class-overloading/B2#constructor |
| 1116 | + global.set $class-overloading/b2 |
| 1117 | + global.get $class-overloading/b2 |
| 1118 | + call $class-overloading/A2#foo@virtual |
| 1119 | + i32.const 3 |
| 1120 | + i32.eq |
| 1121 | + i32.eqz |
| 1122 | + if |
| 1123 | + i32.const 0 |
| 1124 | + i32.const 128 |
| 1125 | + i32.const 209 |
| 1126 | + i32.const 1 |
| 1127 | + call $~lib/builtins/abort |
| 1128 | + unreachable |
| 1129 | + end |
1077 | 1130 | ) |
1078 | 1131 | (func $~start |
1079 | 1132 | global.get $~started |
|
1402 | 1455 | end |
1403 | 1456 | unreachable |
1404 | 1457 | ) |
| 1458 | + (func $class-overloading/A1#constructor (param $0 i32) (result i32) |
| 1459 | + local.get $0 |
| 1460 | + i32.eqz |
| 1461 | + if |
| 1462 | + i32.const 0 |
| 1463 | + i32.const 16 |
| 1464 | + call $~lib/rt/stub/__new |
| 1465 | + call $~lib/rt/stub/__retain |
| 1466 | + local.set $0 |
| 1467 | + end |
| 1468 | + local.get $0 |
| 1469 | + ) |
| 1470 | + (func $class-overloading/B1#constructor (param $0 i32) (result i32) |
| 1471 | + local.get $0 |
| 1472 | + i32.eqz |
| 1473 | + if |
| 1474 | + i32.const 0 |
| 1475 | + i32.const 15 |
| 1476 | + call $~lib/rt/stub/__new |
| 1477 | + call $~lib/rt/stub/__retain |
| 1478 | + local.set $0 |
| 1479 | + end |
| 1480 | + local.get $0 |
| 1481 | + call $class-overloading/A1#constructor |
| 1482 | + local.set $0 |
| 1483 | + local.get $0 |
| 1484 | + ) |
| 1485 | + (func $class-overloading/A1#baz (param $0 i32) (result i32) |
| 1486 | + i32.const 320 |
| 1487 | + i32.const 128 |
| 1488 | + i32.const 186 |
| 1489 | + i32.const 5 |
| 1490 | + call $~lib/builtins/abort |
| 1491 | + unreachable |
| 1492 | + ) |
| 1493 | + (func $class-overloading/A1#bar (param $0 i32) (result i32) |
| 1494 | + local.get $0 |
| 1495 | + call $class-overloading/A1#baz@virtual |
| 1496 | + ) |
| 1497 | + (func $class-overloading/B2#foo (param $0 i32) (result i32) |
| 1498 | + (local $1 i32) |
| 1499 | + (local $2 i32) |
| 1500 | + i32.const 0 |
| 1501 | + call $class-overloading/B1#constructor |
| 1502 | + local.tee $1 |
| 1503 | + call $class-overloading/A1#bar |
| 1504 | + local.set $2 |
| 1505 | + local.get $1 |
| 1506 | + call $~lib/rt/stub/__release |
| 1507 | + local.get $2 |
| 1508 | + ) |
| 1509 | + (func $class-overloading/A2#foo@virtual (param $0 i32) (result i32) |
| 1510 | + (local $1 i32) |
| 1511 | + block $default |
| 1512 | + block $case0 |
| 1513 | + local.get $0 |
| 1514 | + i32.const 8 |
| 1515 | + i32.sub |
| 1516 | + i32.load |
| 1517 | + local.set $1 |
| 1518 | + local.get $1 |
| 1519 | + i32.const 14 |
| 1520 | + i32.eq |
| 1521 | + br_if $case0 |
| 1522 | + br $default |
| 1523 | + end |
| 1524 | + local.get $0 |
| 1525 | + call $class-overloading/B2#foo |
| 1526 | + return |
| 1527 | + end |
| 1528 | + local.get $0 |
| 1529 | + call $class-overloading/A2#foo |
| 1530 | + ) |
| 1531 | + (func $class-overloading/B1#baz (param $0 i32) (result i32) |
| 1532 | + i32.const 3 |
| 1533 | + ) |
| 1534 | + (func $class-overloading/A1#baz@virtual (param $0 i32) (result i32) |
| 1535 | + (local $1 i32) |
| 1536 | + block $default |
| 1537 | + block $case0 |
| 1538 | + local.get $0 |
| 1539 | + i32.const 8 |
| 1540 | + i32.sub |
| 1541 | + i32.load |
| 1542 | + local.set $1 |
| 1543 | + local.get $1 |
| 1544 | + i32.const 15 |
| 1545 | + i32.eq |
| 1546 | + br_if $case0 |
| 1547 | + br $default |
| 1548 | + end |
| 1549 | + local.get $0 |
| 1550 | + call $class-overloading/B1#baz |
| 1551 | + return |
| 1552 | + end |
| 1553 | + local.get $0 |
| 1554 | + call $class-overloading/A1#baz |
| 1555 | + ) |
1405 | 1556 | ) |
0 commit comments