|
1 | 1 | (module
|
2 |
| -<<<<<<< HEAD |
3 |
| -======= |
4 |
| - (type $i32_=>_i32 (func (param i32) (result i32))) |
5 |
| ->>>>>>> master |
6 | 2 | (type $none_=>_i32 (func (result i32)))
|
7 | 3 | (type $i32_i32_=>_i32 (func (param i32 i32) (result i32)))
|
8 | 4 | (type $i32_=>_i32 (func (param i32) (result i32)))
|
9 | 5 | (type $none_=>_none (func))
|
10 | 6 | (type $i32_=>_none (func (param i32)))
|
11 | 7 | (type $i32_i32_=>_none (func (param i32 i32)))
|
12 |
| - (type $i32_i32_i32_=>_none (func (param i32 i32 i32))) |
13 | 8 | (type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32)))
|
| 9 | + (type $i32_i32_i32_=>_none (func (param i32 i32 i32))) |
14 | 10 | (type $i64_=>_i64 (func (param i64) (result i64)))
|
15 | 11 | (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
16 | 12 | (global $~lib/rt/itcms/total (mut i32) (i32.const 0))
|
|
1119 | 1115 | local.get $0
|
1120 | 1116 | i32.const 15
|
1121 | 1117 | i32.and
|
1122 |
| -<<<<<<< HEAD |
1123 |
| - i32.eqz |
1124 |
| - i32.const 0 |
1125 |
| - local.get $0 |
1126 |
| - select |
1127 |
| - if (result i32) |
1128 |
| - local.get $1 |
1129 |
| -======= |
1130 | 1118 | i32.const 1
|
1131 |
| - local.get $1 |
| 1119 | + local.get $0 |
1132 | 1120 | select
|
1133 | 1121 | if (result i32)
|
1134 | 1122 | i32.const 1
|
1135 | 1123 | else
|
1136 |
| - local.get $0 |
1137 |
| ->>>>>>> master |
| 1124 | + local.get $1 |
1138 | 1125 | i32.load
|
1139 | 1126 | i32.const 1
|
1140 | 1127 | i32.and
|
|
1445 | 1432 | i32.store offset=4
|
1446 | 1433 | local.get $0
|
1447 | 1434 | local.get $1
|
1448 |
| -<<<<<<< HEAD |
1449 | 1435 | i32.store offset=8
|
1450 | 1436 | local.get $1
|
1451 | 1437 | local.get $0
|
|
1458 | 1444 | local.get $2
|
1459 | 1445 | local.get $0
|
1460 | 1446 | i32.store offset=8
|
1461 |
| -======= |
1462 |
| - ) |
1463 |
| - (func $~lib/rt/itcms/__new (result i32) |
1464 |
| - (local $0 i32) |
1465 |
| - (local $1 i32) |
1466 |
| - global.get $~lib/rt/itcms/total |
1467 |
| - global.get $~lib/rt/itcms/threshold |
1468 |
| - i32.ge_u |
1469 |
| - if |
1470 |
| - block $__inlined_func$~lib/rt/itcms/interrupt |
1471 |
| - i32.const 2048 |
1472 |
| - local.set $0 |
1473 |
| - loop $do-continue|0 |
1474 |
| - local.get $0 |
1475 |
| - call $~lib/rt/itcms/step |
1476 |
| - i32.sub |
1477 |
| - local.set $0 |
1478 |
| - global.get $~lib/rt/itcms/state |
1479 |
| - i32.eqz |
1480 |
| - if |
1481 |
| - global.get $~lib/rt/itcms/total |
1482 |
| - i64.extend_i32_u |
1483 |
| - i64.const 200 |
1484 |
| - i64.mul |
1485 |
| - i64.const 100 |
1486 |
| - i64.div_u |
1487 |
| - i32.wrap_i64 |
1488 |
| - i32.const 1024 |
1489 |
| - i32.add |
1490 |
| - global.set $~lib/rt/itcms/threshold |
1491 |
| - br $__inlined_func$~lib/rt/itcms/interrupt |
1492 |
| - end |
1493 |
| - local.get $0 |
1494 |
| - i32.const 0 |
1495 |
| - i32.gt_s |
1496 |
| - br_if $do-continue|0 |
1497 |
| - end |
1498 |
| - global.get $~lib/rt/itcms/total |
1499 |
| - global.get $~lib/rt/itcms/total |
1500 |
| - global.get $~lib/rt/itcms/threshold |
1501 |
| - i32.sub |
1502 |
| - i32.const 1024 |
1503 |
| - i32.lt_u |
1504 |
| - i32.const 10 |
1505 |
| - i32.shl |
1506 |
| - i32.add |
1507 |
| - global.set $~lib/rt/itcms/threshold |
1508 |
| - end |
1509 |
| - end |
1510 |
| - global.get $~lib/rt/tlsf/ROOT |
1511 |
| - i32.eqz |
1512 |
| - if |
1513 |
| - call $~lib/rt/tlsf/initialize |
1514 |
| - end |
1515 |
| - global.get $~lib/rt/tlsf/ROOT |
1516 |
| - call $~lib/rt/tlsf/allocateBlock |
1517 |
| - local.tee $0 |
1518 |
| - i32.const 8 |
1519 |
| - i32.store offset=12 |
1520 |
| - local.get $0 |
1521 |
| - i32.const 4 |
1522 |
| - i32.store offset=16 |
1523 |
| - local.get $0 |
1524 |
| - global.get $~lib/rt/itcms/fromSpace |
1525 |
| - global.get $~lib/rt/itcms/white |
1526 |
| - call $~lib/rt/itcms/Object#linkTo |
1527 |
| ->>>>>>> master |
1528 | 1447 | global.get $~lib/rt/itcms/total
|
1529 | 1448 | local.get $0
|
1530 | 1449 | i32.load
|
|
0 commit comments