1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
|
mov rax,qword ptr heap_size_65_offset[r9]
xor rbx,rbx
mov qword ptr n_marked_words_offset[r9],rbx
shl rax,6
mov qword ptr lazy_array_list_offset[r9],rbx
mov qword ptr heap_size_64_65_offset[r9],rax
mov r11,rax
lea rsi,(-4000)[rsp]
mov rax,qword ptr caf_list[rip]
mov qword ptr end_stack_offset[r9],rsi
mov r10,neg_heap_p3_offset[r9]
mov r13,qword ptr end_stack_offset[r9]
mov r14,0
test rax,rax
je _end_mark_cafs
_mark_cafs_lp:
mov rbx,qword ptr [rax]
mov rbp,qword ptr (-8)[rax]
push rbp
lea rbp,8[rax]
lea r12,8[rax+rbx*8]
call _mark_stack_nodes
pop rax
test rax,rax
att_jne _mark_cafs_lp
_end_mark_cafs:
mov rsi,qword ptr stack_top_offset[r9]
mov rbp,qword ptr stack_p_offset[r9]
mov r12,rsi
att_call _mark_stack_nodes
continue_mark_after_pmark:
mov qword ptr n_marked_words_offset[r9],r14
mov rcx,qword ptr lazy_array_list_offset[r9]
test rcx,rcx
je end_restore_arrays
restore_arrays:
mov rbx,qword ptr [rcx]
lea rax,__ARRAY__+2[rip]
mov qword ptr [rcx],rax
cmp rbx,1
je restore_array_size_1
lea rdx,[rcx+rbx*8]
mov rax,qword ptr 16[rdx]
test rax,rax
je restore_lazy_array
mov rbp,rax
push rdx
xor rdx,rdx
mov rax,rbx
movzx rbx,word ptr (-2+2)[rbp]
div rbx
mov rbx,rax
pop rdx
mov rax,rbp
restore_lazy_array:
mov rdi,qword ptr 16[rcx]
mov rbp,qword ptr 8[rcx]
mov qword ptr 8[rcx],rbx
mov rsi,qword ptr 8[rdx]
mov qword ptr 16[rcx],rax
mov qword ptr 8[rdx],rbp
mov qword ptr 16[rdx],rdi
test rax,rax
je no_reorder_array
movzx rdx,word ptr (-2)[rax]
sub rdx,256
movzx rbp,word ptr (-2+2)[rax]
cmp rbp,rdx
att_je no_reorder_array
add rcx,24
imul rbx,rdx
mov rax,rdx
lea rdx,[rcx+rbx*8]
mov rbx,rbp
sub rax,rbp
att_call reorder
no_reorder_array:
mov rcx,rsi
test rcx,rcx
att_jne restore_arrays
att_jmp end_restore_arrays
restore_array_size_1:
mov rbp,qword ptr 8[rcx]
mov rdx,qword ptr 16[rcx]
mov qword ptr 8[rcx],rbx
mov rax,qword ptr 24[rcx]
mov qword ptr 24[rcx],rbp
mov qword ptr 16[rcx],rax
mov rcx,rdx
test rcx,rcx
att_jne restore_arrays
end_restore_arrays:
mov rdi,qword ptr heap_vector_offset[r9]
lea rcx,finalizer_list[rip]
lea rdx,free_finalizer_list[rip]
mov rbp,qword ptr [rcx]
determine_free_finalizers_after_mark:
lea rax,__Nil-8[rip]
cmp rbp,rax
je end_finalizers_after_mark
lea rax,[r10+rbp]
mov rbx,rax
and rax,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov esi,dword ptr [r8+rax]
test esi,dword ptr [rdi+rbx*4]
je finalizer_not_used_after_mark
lea rcx,8[rbp]
mov rbp,qword ptr 8[rbp]
att_jmp determine_free_finalizers_after_mark
finalizer_not_used_after_mark:
mov qword ptr [rdx],rbp
lea rdx,8[rbp]
mov rbp,qword ptr 8[rbp]
mov qword ptr [rcx],rbp
att_jmp determine_free_finalizers_after_mark
end_finalizers_after_mark:
mov qword ptr [rdx],rbp
att_call add_garbage_collect_time
mov rax,qword ptr bit_vector_size_offset[r9]
mov rdi,qword ptr n_allocated_words_offset[r9]
add rdi,qword ptr n_marked_words_offset[r9]
shl rdi,3
mov rsi,rax
shl rsi,3
push rdx
push rax
mov rax,rdi
mul qword ptr _heap_size_multiple[rip]
shrd rax,rdx,8
shr rdx,8
mov rbx,rax
test rdx,rdx
pop rax
pop rdx
je not_largest_heap
mov rbx,qword ptr heap_size_65_offset[r9]
shl rbx,6
not_largest_heap:
cmp rbx,rsi
jbe no_larger_heap
mov rsi,qword ptr heap_size_65_offset[r9]
shl rsi,6
cmp rbx,rsi
jbe not_larger_than_heap
mov rbx,rsi
not_larger_than_heap:
mov rax,rbx
shr rax,3
mov qword ptr bit_vector_size_offset[r9],rax
no_larger_heap:
mov rbp,rax
mov rdi,qword ptr heap_vector_offset[r9]
shr rbp,5
test al,31
je no_extra_word
mov dword ptr [rdi+rbp*4],0
no_extra_word:
sub rax,qword ptr n_marked_words_offset[r9]
shl rax,3
mov qword ptr n_last_heap_free_bytes_offset[r9],rax
mov rax,qword ptr n_marked_words_offset[r9]
shl rax,3
add qword ptr total_gc_bytes[rip],rax
test qword ptr _flags[rip],2
je _no_heap_use_message2
mov r12,rsp
and rsp,-16
mov rbx,r9
.if LINUX
mov r13,rsi
mov r14,rdi
lea rdi,marked_gc_string_1[rip]
.else
sub rsp,32
lea rcx,marked_gc_string_1
.endif
att_call _ew_print_string
mov r9,rbx
.if LINUX
mov rdi,qword ptr n_marked_words_offset[r9]
shl rdi,3
.else
mov rcx,qword ptr n_marked_words
shl rcx,3
.endif
att_call _ew_print_int
mov r9,rbx
.if LINUX
lea rdi,heap_use_after_gc_string_2[rip]
.else
lea rcx,heap_use_after_gc_string_2
.endif
att_call _ew_print_string
.if LINUX
mov rsi,r13
mov rdi,r14
.endif
mov rsp,r12
mov r9,rbx
_no_heap_use_message2:
att_call call_finalizers
mov rsi,qword ptr n_allocated_words_offset[r9]
xor rbx,rbx
mov rcx,rdi
mov qword ptr n_free_words_after_mark_offset[r9],rbx
_scan_bits:
cmp ebx,dword ptr [rcx]
je _zero_bits
mov dword ptr [rcx],ebx
add rcx,4
sub rbp,1
att_jne _scan_bits
jmp _end_scan
_zero_bits:
lea rdx,4[rcx]
add rcx,4
sub rbp,1
jne _skip_zero_bits_lp1
jmp _end_bits
_skip_zero_bits_lp:
test rax,rax
jne _end_zero_bits
_skip_zero_bits_lp1:
mov eax,dword ptr [rcx]
add rcx,4
sub rbp,1
att_jne _skip_zero_bits_lp
test rax,rax
att_je _end_bits
mov rax,rcx
mov dword ptr (-4)[rcx],ebx
sub rax,rdx
jmp _end_bits2
_end_zero_bits:
mov rax,rcx
sub rax,rdx
shl rax,3
add qword ptr n_free_words_after_mark_offset[r9],rax
mov dword ptr (-4)[rcx],ebx
cmp rax,rsi
att_jb _scan_bits
_found_free_memory:
mov qword ptr bit_counter_offset[r9],rbp
mov qword ptr bit_vector_p_offset[r9],rcx
lea rbx,(-4)[rdx]
sub rbx,rdi
shl rbx,6
mov rdi,qword ptr heap_p3_offset[r9]
add rdi,rbx
mov r15,rax
lea rbx,[rdi+rax*8]
sub r15,rsi
mov rsi,qword ptr stack_top_offset[r9]
mov qword ptr heap_end_after_gc_offset[r9],rbx
att_jmp restore_registers_after_gc_and_return
_end_bits:
mov rax,rcx
sub rax,rdx
add rax,4
_end_bits2:
shl rax,3
add qword ptr n_free_words_after_mark_offset[r9],rax
cmp rax,rsi
att_jae _found_free_memory
_end_scan:
mov qword ptr bit_counter_offset[r9],rbp
att_jmp compact_gc
/* rbp : pointer to stack element */
/* rdi : heap_vector */
/* rax,rbx,rcx,rdx,rsi : free */
_mark_stack_nodes:
cmp rbp,r12
je _end_mark_nodes
_mark_stack_nodes_:
mov rcx,qword ptr [rbp]
add rbp,8
lea rdx,[r10+rcx]
cmp rdx,r11
att_jnc _mark_stack_nodes
mov rbx,rdx
and rdx,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov esi,dword ptr [r8+rdx]
test esi,dword ptr [rdi+rbx*4]
att_jne _mark_stack_nodes
push rbp
push 0
jmp _mark_arguments
_mark_hnf_2:
cmp rsi,0x20000000
jbe fits_in_word_6
or dword ptr 4[rdi+rbx*4],1
fits_in_word_6:
add r14,3
_mark_record_2_c:
mov rbx,qword ptr 8[rcx]
push rbx
cmp rsp,r13
jb __mark_using_reversal
_mark_node2:
_shared_argument_part:
mov rcx,qword ptr [rcx]
_mark_node:
lea rdx,[r10+rcx]
cmp rdx,r11
jnc _mark_next_node
mov rbx,rdx
and rdx,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov esi,dword ptr [r8+rdx]
test esi,dword ptr [rdi+rbx*4]
att_jne _mark_next_node
_mark_arguments:
mov rax,qword ptr [rcx]
test rax,2
je _mark_lazy_node
movzx rbp,word ptr (-2)[rax]
test rbp,rbp
je _mark_hnf_0
or dword ptr [rdi+rbx*4],esi
add rcx,8
cmp rbp,256
jae _mark_record
sub rbp,2
att_je _mark_hnf_2
jb _mark_hnf_1
_mark_hnf_3:
mov rdx,qword ptr 8[rcx]
cmp rsi,0x20000000
jbe fits_in_word_1
or dword ptr 4[rdi+rbx*4],1
fits_in_word_1:
add r14,3
lea rax,[r10+rdx]
mov rbx,rax
and rax,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov esi,dword ptr [r8+rax]
test esi,dword ptr [rdi+rbx*4]
att_jne _shared_argument_part
_no_shared_argument_part:
or dword ptr [rdi+rbx*4],esi
add rbp,1
add r14,rbp
lea rax,[rax+rbp*8]
lea rdx,(-8)[rdx+rbp*8]
cmp rax,32*8
jbe fits_in_word_2
or dword ptr 4[rdi+rbx*4],1
fits_in_word_2:
mov rbx,qword ptr [rdx]
sub rbp,2
push rbx
_push_hnf_args:
mov rbx,qword ptr (-8)[rdx]
sub rdx,8
push rbx
sub rbp,1
att_jge _push_hnf_args
cmp rsp,r13
att_jae _mark_node2
att_jmp __mark_using_reversal
_mark_hnf_1:
cmp rsi,0x40000000
jbe fits_in_word_4
or dword ptr 4[rdi+rbx*4],1
fits_in_word_4:
add r14,2
mov rcx,qword ptr [rcx]
att_jmp _mark_node
_mark_lazy_node_1:
add rcx,8
or dword ptr [rdi+rbx*4],esi
cmp rsi,0x20000000
jbe fits_in_word_3
or dword ptr 4[rdi+rbx*4],1
fits_in_word_3:
add r14,3
cmp rbp,1
att_je _mark_node2
_mark_selector_node_1:
add rbp,2
mov rdx,qword ptr [rcx]
je _mark_indirection_node
lea rsi,[r10+rdx]
mov rbx,rsi
shr rbx,8
and rsi,31*8
add rbp,1
lea r8,bit_set_table2[rip]
mov esi,dword ptr [r8+rsi]
jle _mark_record_selector_node_1
test esi,dword ptr [rdi+rbx*4]
jne _mark_node3
mov rbp,qword ptr [rdx]
test rbp,2
att_je _mark_node3
cmp word ptr (-2)[rbp],2
jbe _small_tuple_or_record
_large_tuple_or_record:
mov rbp,qword ptr 16[rdx]
mov r15,rbp
add rbp,r10
mov rbx,rbp
and rbp,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov ebp,dword ptr [r8+rbp]
test ebp,dword ptr [rdi+rbx*4]
att_jne _mark_node3
movsxd rbp,dword ptr(-8)[rax]
add rax,rbp
lea rbp,__indirection[rip]
mov qword ptr (-8)[rcx],rbp
movzx eax,word ptr (4-8)[rax]
mov rbp,rcx
cmp rax,16
jl _mark_tuple_selector_node_1
mov rdx,r15
je _mark_tuple_selector_node_2
mov rcx,qword ptr (-24)[r15+rax]
mov qword ptr [rbp],rcx
att_jmp _mark_node
_mark_tuple_selector_node_2:
mov rcx,qword ptr [r15]
mov qword ptr [rbp],rcx
att_jmp _mark_node
_small_tuple_or_record:
movsxd rbp,dword ptr(-8)[rax]
add rax,rbp
lea rbp,__indirection[rip]
mov qword ptr (-8)[rcx],rbp
movzx eax,word ptr (4-8)[rax]
mov rbp,rcx
_mark_tuple_selector_node_1:
mov rcx,qword ptr [rdx+rax]
mov qword ptr [rbp],rcx
att_jmp _mark_node
_mark_record_selector_node_1:
je _mark_strict_record_selector_node_1
test esi,dword ptr [rdi+rbx*4]
att_jne _mark_node3
mov rbp,qword ptr [rdx]
test rbp,2
att_je _mark_node3
cmp word ptr (-2)[rbp],258
att_jbe _small_tuple_or_record
mov rbp,qword ptr 16[rdx]
mov r15,rbp
add rbp,r10
mov rbx,rbp
and rbp,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov ebp,dword ptr [r8+rbp]
test ebp,dword ptr [rdi+rbx*4]
att_jne _mark_node3
movsxd rbp,dword ptr(-8)[rax]
add rax,rbp
lea rbp,__indirection[rip]
mov qword ptr (-8)[rcx],rbp
movzx eax,word ptr (4-8)[rax]
mov rbp,rcx
cmp rax,16
jle _mark_record_selector_node_2
mov rdx,r15
sub rax,24
_mark_record_selector_node_2:
mov rcx,qword ptr [rdx+rax]
mov qword ptr [rbp],rcx
att_jmp _mark_node
_mark_strict_record_selector_node_1:
test esi,dword ptr [rdi+rbx*4]
att_jne _mark_node3
mov rbp,qword ptr [rdx]
test rbp,2
att_je _mark_node3
cmp word ptr (-2)[rbp],258
jbe _select_from_small_record
mov rbp,qword ptr 16[rdx]
mov r15,rbp
add rbp,r10
mov rbx,rbp
and rbp,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov ebp,dword ptr [r8+rbp]
test ebp,dword ptr [rdi+rbx*4]
att_jne _mark_node3
_select_from_small_record:
movsxd rbx,dword ptr (-8)[rax]
add rax,rbx
sub rcx,8
movzx ebx,word ptr (4-8)[rax]
cmp rbx,16
jle _mark_strict_record_selector_node_2
mov rbx,qword ptr (-24)[r15+rbx]
jmp _mark_strict_record_selector_node_3
_mark_strict_record_selector_node_2:
mov rbx,qword ptr [rdx+rbx]
_mark_strict_record_selector_node_3:
mov qword ptr 8[rcx],rbx
movzx ebx,word ptr (6-8)[rax]
test rbx,rbx
je _mark_strict_record_selector_node_5
cmp rbx,16
jle _mark_strict_record_selector_node_4
mov rdx,r15
sub rbx,24
_mark_strict_record_selector_node_4:
mov rbx,qword ptr [rdx+rbx]
mov qword ptr 16[rcx],rbx
_mark_strict_record_selector_node_5:
mov rax,qword ptr ((-8)-8)[rax]
mov qword ptr [rcx],rax
att_jmp _mark_next_node
_mark_indirection_node:
_mark_node3:
mov rcx,rdx
att_jmp _mark_node
_mark_next_node:
pop rcx
test rcx,rcx
att_jne _mark_node
pop rbp
cmp rbp,r12
att_jne _mark_stack_nodes_
_end_mark_nodes:
ret
_mark_lazy_node:
movsxd rbp,dword ptr (-4)[rax]
test rbp,rbp
je _mark_node2_bb
cmp rbp,1
att_jle _mark_lazy_node_1
cmp rbp,256
jge _mark_closure_with_unboxed_arguments
inc rbp
or dword ptr [rdi+rbx*4],esi
add r14,rbp
lea rdx,[rdx+rbp*8]
lea rcx,[rcx+rbp*8]
cmp rdx,32*8
jbe fits_in_word_7
or dword ptr 4[rdi+rbx*4],1
fits_in_word_7:
sub rbp,3
_push_lazy_args:
mov rbx,qword ptr (-8)[rcx]
sub rcx,8
push rbx
sub rbp,1
att_jge _push_lazy_args
sub rcx,8
cmp rsp,r13
att_jae _mark_node2
att_jmp __mark_using_reversal
_mark_closure_with_unboxed_arguments:
mov rax,rbp
and rbp,255
sub rbp,1
att_je _mark_node2_bb
shr rax,8
add rbp,2
or dword ptr [rdi+rbx*4],esi
add r14,rbp
lea rdx,[rdx+rbp*8]
sub rbp,rax
cmp rdx,32*8
jbe fits_in_word_7_
or dword ptr 4[rdi+rbx*4],1
fits_in_word_7_:
sub rbp,2
att_jl _mark_next_node
lea rcx,16[rcx+rbp*8]
att_jne _push_lazy_args
_mark_closure_with_one_boxed_argument:
mov rcx,qword ptr (-8)[rcx]
att_jmp _mark_node
_mark_hnf_0:
lea r8,__STRING__+2[rip]
cmp rax,r8
jbe _mark_string_or_array
or dword ptr [rdi+rbx*4],esi
lea r8,CHAR+2[rip]
cmp rax,r8
ja _mark_normal_hnf_0
_mark_real_int_bool_or_char:
add r14,2
cmp rsi,0x40000000
att_jbe _mark_next_node
or dword ptr 4[rdi+rbx*4],1
att_jmp _mark_next_node
_mark_normal_hnf_0:
inc r14
att_jmp _mark_next_node
_mark_node2_bb:
or dword ptr [rdi+rbx*4],esi
add r14,3
cmp rsi,0x20000000
att_jbe _mark_next_node
or dword ptr 4[rdi+rbx*4],1
att_jmp _mark_next_node
_mark_record:
sub rbp,258
je _mark_record_2
jl _mark_record_1
_mark_record_3:
add r14,3
cmp rsi,0x20000000
jbe fits_in_word_13
or dword ptr 4[rdi+rbx*4],1
fits_in_word_13:
mov rdx,qword ptr 8[rcx]
movzx rbx,word ptr (-2+2)[rax]
lea rsi,[r10+rdx]
mov rax,rsi
and rsi,31*8
shr rax,8
sub rbx,1
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rsi]
jb _mark_record_3_bb
test edx,dword ptr [rdi+rax*4]
att_jne _mark_node2
add rbp,1
or dword ptr [rdi+rax*4],edx
add r14,rbp
lea rsi,[rsi+rbp*8]
cmp rsi,32*8
jbe _push_record_arguments
or dword ptr 4[rdi+rax*4],1
_push_record_arguments:
mov rdx,qword ptr 8[rcx]
mov rbp,rbx
shl rbx,3
add rdx,rbx
sub rbp,1
att_jge _push_hnf_args
att_jmp _mark_node2
_mark_record_3_bb:
test edx,dword ptr [rdi+rax*4]
att_jne _mark_next_node
add rbp,1
or dword ptr [rdi+rax*4],edx
add r14,rbp
lea rsi,[rsi+rbp*8]
cmp rsi,32*8
att_jbe _mark_next_node
or dword ptr 4[rdi+rax*4],1
att_jmp _mark_next_node
_mark_record_2:
cmp rsi,0x20000000
jbe fits_in_word_12
or dword ptr 4[rdi+rbx*4],1
fits_in_word_12:
add r14,3
cmp word ptr (-2+2)[rax],1
att_ja _mark_record_2_c
att_je _mark_node2
att_jmp _mark_next_node
_mark_record_1:
cmp word ptr (-2+2)[rax],0
att_jne _mark_hnf_1
att_jmp _mark_real_int_bool_or_char
_mark_string_or_array:
je _mark_string_
_mark_array:
mov rbp,qword ptr 16[rcx]
test rbp,rbp
je _mark_lazy_array
movzx rax,word ptr (-2)[rbp]
test rax,rax
je _mark_strict_basic_array
movzx rbp,word ptr (-2+2)[rbp]
test rbp,rbp
je _mark_b_record_array
cmp rsp,r13
jb _mark_array_using_reversal
sub rax,256
cmp rax,rbp
je _mark_a_record_array
_mark_ab_record_array:
or dword ptr [rdi+rbx*4],esi
mov rbp,qword ptr 8[rcx]
imul rax,rbp
add rax,3
add r14,rax
lea rax,(-8)[rcx+rax*8]
add rax,r10
shr rax,8
cmp rbx,rax
jae _end_set_ab_array_bits
inc rbx
mov rbp,1
cmp rbx,rax
jae _last_ab_array_bits
_mark_ab_array_lp:
or dword ptr [rdi+rbx*4],ebp
inc rbx
cmp rbx,rax
att_jb _mark_ab_array_lp
_last_ab_array_bits:
or dword ptr [rdi+rbx*4],ebp
_end_set_ab_array_bits:
mov rax,qword ptr 8[rcx]
mov rdx,qword ptr 16[rcx]
movzx rbx,word ptr (-2+2)[rdx]
movzx rdx,word ptr (-2)[rdx]
shl rbx,3
lea rdx,(-2048)[rdx*8]
push rbx
push rdx
lea rbp,24[rcx]
push r12
jmp _mark_ab_array_begin
_mark_ab_array:
mov rbx,qword ptr 16[rsp]
push rax
push rbp
lea r12,[rbp+rbx]
att_call _mark_stack_nodes
mov rbx,qword ptr (8+16)[rsp]
pop rbp
pop rax
add rbp,rbx
_mark_ab_array_begin:
sub rax,1
att_jnc _mark_ab_array
pop r12
add rsp,16
att_jmp _mark_next_node
_mark_a_record_array:
or dword ptr [rdi+rbx*4],esi
mov rbp,qword ptr 8[rcx]
imul rax,rbp
push rax
add rax,3
add r14,rax
lea rax,(-8)[rcx+rax*8]
add rax,r10
shr rax,8
cmp rbx,rax
jae _end_set_a_array_bits
inc rbx
mov rbp,1
cmp rbx,rax
jae _last_a_array_bits
_mark_a_array_lp:
or dword ptr [rdi+rbx*4],ebp
inc rbx
cmp rbx,rax
att_jb _mark_a_array_lp
_last_a_array_bits:
or dword ptr [rdi+rbx*4],ebp
_end_set_a_array_bits:
pop rax
lea rbp,24[rcx]
push r12
lea r12,24[rcx+rax*8]
att_call _mark_stack_nodes
pop r12
att_jmp _mark_next_node
_mark_lazy_array:
cmp rsp,r13
att_jb _mark_array_using_reversal
or dword ptr [rdi+rbx*4],esi
mov rax,qword ptr 8[rcx]
add rax,3
add r14,rax
lea rax,(-8)[rcx+rax*8]
add rax,r10
shr rax,8
cmp rbx,rax
jae _end_set_lazy_array_bits
inc rbx
mov rbp,1
cmp rbx,rax
jae _last_lazy_array_bits
_mark_lazy_array_lp:
or dword ptr [rdi+rbx*4],ebp
inc rbx
cmp rbx,rax
att_jb _mark_lazy_array_lp
_last_lazy_array_bits:
or dword ptr [rdi+rbx*4],ebp
_end_set_lazy_array_bits:
mov rax,qword ptr 8[rcx]
lea rbp,24[rcx]
push r12
lea r12,24[rcx+rax*8]
att_call _mark_stack_nodes
pop r12
att_jmp _mark_next_node
_mark_array_using_reversal:
push 0
mov rsi,1
jmp __mark_node
_mark_strict_basic_array:
mov rax,qword ptr 8[rcx]
lea r8,dINT+2[rip]
cmp rbp,r8
jle _mark_strict_int_or_real_array
lea r8,BOOL+2[rip]
cmp rbp,r8
je _mark_strict_bool_array
_mark_strict_int32_or_real32_array:
add rax,6+1
shr rax,1
jmp _mark_basic_array_
_mark_strict_int_or_real_array:
add rax,3
att_jmp _mark_basic_array_
_mark_strict_bool_array:
add rax,24+7
shr rax,3
att_jmp _mark_basic_array_
_mark_b_record_array:
mov rbp,qword ptr 8[rcx]
sub rax,256
imul rax,rbp
add rax,3
att_jmp _mark_basic_array_
_mark_string_:
mov rax,qword ptr 8[rcx]
add rax,16+7
shr rax,3
_mark_basic_array_:
or dword ptr [rdi+rbx*4],esi
add r14,rax
lea rax,(-8)[rcx+rax*8]
add rax,r10
shr rax,8
cmp rbx,rax
att_jae _mark_next_node
inc rbx
mov rbp,1
cmp rbx,rax
jae _last_string_bits
_mark_string_lp:
or dword ptr [rdi+rbx*4],ebp
inc rbx
cmp rbx,rax
att_jb _mark_string_lp
_last_string_bits:
or dword ptr [rdi+rbx*4],ebp
att_jmp _mark_next_node
__end_mark_using_reversal:
pop rdx
test rdx,rdx
att_je _mark_next_node
mov qword ptr [rdx],rcx
att_jmp _mark_next_node
__mark_using_reversal:
push rcx
mov rsi,1
mov rcx,qword ptr [rcx]
att_jmp __mark_node
__mark_arguments:
mov rax,qword ptr [rcx]
test al,2
je __mark_lazy_node
movzx rbp,word ptr (-2)[rax]
test rbp,rbp
je __mark_hnf_0
add rcx,8
cmp rbp,256
jae __mark__record
sub rbp,2
je __mark_hnf_2
jb __mark_hnf_1
__mark_hnf_3:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,3
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x20000000
mov rax,qword ptr 8[rcx]
jbe fits__in__word__1
or dword ptr 4[rdi+rbx*4],1
fits__in__word__1:
add rax,r10
mov rbx,rax
and rax,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rax]
test edx,dword ptr [rdi+rbx*4]
jne __shared_argument_part
__no_shared_argument_part:
or dword ptr [rdi+rbx*4],edx
mov rdx,qword ptr 8[rcx]
add rbp,1
mov qword ptr 8[rcx],rsi
add r14,rbp
add rcx,8
shl rbp,3
or qword ptr [rdx],1
add rax,rbp
add rdx,rbp
cmp rax,32*8
jbe fits__in__word__2
or dword ptr 4[rdi+rbx*4],1
fits__in__word__2:
mov rbp ,qword ptr (-8)[rdx]
mov qword ptr (-8)[rdx],rcx
lea rsi,(-8)[rdx]
mov rcx,rbp
att_jmp __mark_node
__mark_hnf_1:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,2
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x40000000
att_jbe __shared_argument_part
or dword ptr 4[rdi+rbx*4],1
__shared_argument_part:
mov rbp,qword ptr [rcx]
mov qword ptr [rcx],rsi
lea rsi,2[rcx]
mov rcx,rbp
att_jmp __mark_node
__mark_no_selector_2:
pop rbx
__mark_no_selector_1:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,3
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x20000000
att_jbe __shared_argument_part
or dword ptr 4[rdi+rbx*4],1
att_jmp __shared_argument_part
__mark_lazy_node_1:
att_je __mark_no_selector_1
__mark_selector_node_1:
add rbp,2
je __mark_indirection_node
add rbp,1
push rbx
mov rbp,qword ptr [rcx]
push rax
lea rax,[r10+rbp]
jle __mark_record_selector_node_1
mov rbx,rax
and rax,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov eax,dword ptr [r8+rax]
test eax,dword ptr [rdi+rbx*4]
pop rax
att_jne __mark_no_selector_2
mov rbx,qword ptr [rbp]
test bl,2
att_je __mark_no_selector_2
cmp word ptr (-2)[rbx],2
jbe __small_tuple_or_record
__large_tuple_or_record:
mov r8,qword ptr 16[rbp]
add r8,r10
mov rbx,r8
and r8,31*8
shr rbx,8
lea r15,bit_set_table2[rip]
mov r8d,dword ptr [r15+r8]
test r8d,dword ptr [rdi+rbx*4]
mov r15,qword ptr 16[rbp]
att_jne __mark_no_selector_2
movsxd rdx,dword ptr (-8)[rax]
add rax,rdx
lea rdx,__indirection[rip]
pop rbx
mov qword ptr (-8)[rcx],rdx
movzx eax,word ptr (4-8)[rax]
mov r8,rcx
cmp rax,16
jl __mark_tuple_selector_node_1
je __mark_tuple_selector_node_2
mov rcx,qword ptr (-24)[r15+rax]
mov qword ptr [r8],rcx
att_jmp __mark_node
__mark_tuple_selector_node_2:
mov rcx,qword ptr [r15]
mov qword ptr [r8],rcx
att_jmp __mark_node
__small_tuple_or_record:
movsxd rdx,dword ptr (-8)[rax]
add rax,rdx
lea rdx,__indirection[rip]
pop rbx
mov qword ptr (-8)[rcx],rdx
movzx eax,word ptr (4-8)[rax]
mov r8,rcx
__mark_tuple_selector_node_1:
mov rcx,qword ptr [rbp+rax]
mov qword ptr [r8],rcx
att_jmp __mark_node
__mark_record_selector_node_1:
je __mark_strict_record_selector_node_1
mov rbx,rax
and rax,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov eax,dword ptr [r8+rax]
test eax,dword ptr [rdi+rbx*4]
pop rax
att_jne __mark_no_selector_2
mov rbx,qword ptr [rbp]
test bl,2
att_je __mark_no_selector_2
cmp word ptr (-2)[rbx],258
jbe __small_record
mov r8,qword ptr 16[rbp]
add r8,r10
mov rbx,r8
and r8,31*8
shr rbx,8
lea r15,bit_set_table2[rip]
mov r8d,dword ptr [r15+r8]
test r8d,dword ptr [rdi+rbx*4]
mov r15,qword ptr 16[rbp]
att_jne __mark_no_selector_2
__small_record:
movsxd rdx,dword ptr(-8)[rax]
add rax,rdx
lea rdx,__indirection[rip]
pop rbx
mov qword ptr (-8)[rcx],rdx
movzx eax,word ptr (4-8)[rax]
mov r8,rcx
cmp rax,16
jle __mark_record_selector_node_2
mov rbp,r15
sub rax,24
__mark_record_selector_node_2:
mov rcx,qword ptr [rbp+rax]
mov qword ptr [r8],rcx
att_jmp __mark_node
__mark_strict_record_selector_node_1:
mov rbx,rax
and rax,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov eax,dword ptr [r8+rax]
test eax,dword ptr [rdi+rbx *4]
pop rax
att_jne __mark_no_selector_2
mov rbx,qword ptr [rbp]
test bl,2
att_je __mark_no_selector_2
cmp word ptr (-2)[rbx],258
jle __select_from_small_record
mov r8,qword ptr 16[rbp]
add r8,r10
mov rbx,r8
and r8,31*8
shr rbx,8
lea r15,bit_set_table2[rip]
mov r8d,dword ptr [r15+r8]
test r8d,dword ptr [rdi+rbx*4]
mov r15,qword ptr 16[rbp]
att_jne __mark_no_selector_2
__select_from_small_record:
movsxd rbx,dword ptr(-8)[rax]
add rax,rbx
sub rcx,8
movzx ebx,word ptr (4-8)[rax]
cmp rbx,16
jle __mark_strict_record_selector_node_2
mov rbx,qword ptr (-24)[r15+rbx]
jmp __mark_strict_record_selector_node_3
__mark_strict_record_selector_node_2:
mov rbx,qword ptr [rbp+rbx]
__mark_strict_record_selector_node_3:
mov qword ptr 8[rcx],rbx
movzx ebx,word ptr (6-8)[rax]
test rbx,rbx
je __mark_strict_record_selector_node_5
cmp rbx,16
jle __mark_strict_record_selector_node_4
mov rbp,r15
sub rbx,24
__mark_strict_record_selector_node_4:
mov rbx,qword ptr [rbp+rbx]
mov qword ptr 16[rcx],rbx
__mark_strict_record_selector_node_5:
pop rbx
mov rax,qword ptr ((-8)-8)[rax]
mov qword ptr [rcx],rax
att_jmp __mark_node
__mark_indirection_node:
mov rcx,qword ptr [rcx]
att_jmp __mark_node
__mark_hnf_2:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,3
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x20000000
jbe fits__in__word__6
or dword ptr 4[rdi+rbx*4],1
fits__in__word__6:
__mark_record_2_c:
mov rax,qword ptr [rcx]
mov rbp,qword ptr 8[rcx]
or rax,2
mov qword ptr 8[rcx],rsi
mov qword ptr [rcx],rax
lea rsi,8[rcx]
mov rcx,rbp
__mark_node:
lea rdx,[r10+rcx]
cmp rdx,r11
jae __mark_next_node
mov rbx,rdx
and rdx,31*8
shr rbx,8
lea r8,bit_set_table2[rip]
mov ebp,dword ptr [r8+rdx]
test ebp,dword ptr [rdi+rbx*4]
att_je __mark_arguments
__mark_next_node:
test rsi,3
jne __mark_parent
mov rbp,qword ptr (-8)[rsi]
mov rdx,qword ptr [rsi]
mov qword ptr [rsi],rcx
mov qword ptr (-8)[rsi],rdx
sub rsi,8
mov rcx,rbp
and rbp,3
and rcx,-4
or rsi,rbp
att_jmp __mark_node
__mark_parent:
mov rbx,rsi
and rsi,-4
att_je __end_mark_using_reversal
and rbx,3
mov rbp,qword ptr [rsi]
mov qword ptr [rsi],rcx
sub rbx,1
je __argument_part_parent
lea rcx,(-8)[rsi]
mov rsi,rbp
att_jmp __mark_next_node
__argument_part_parent:
and rbp,-4
mov rdx,rsi
mov rcx,qword ptr (-8)[rbp]
mov rbx,qword ptr [rbp]
mov qword ptr (-8)[rbp],rbx
mov qword ptr [rbp],rdx
lea rsi,(2-8)[rbp]
att_jmp __mark_node
__mark_lazy_node:
movsxd rbp,dword ptr(-4)[rax]
test rbp,rbp
je __mark_node2_bb
add rcx,8
cmp rbp,1
att_jle __mark_lazy_node_1
cmp rbp,256
jge __mark_closure_with_unboxed_arguments
add rbp,1
mov rax,rdx
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,rbp
lea rax,[rax+rbp*8]
sub rbp,2
or dword ptr [rdi+rbx*4],edx
cmp rax,32*8
jbe fits__in__word__7
or dword ptr 4[rdi+rbx*4],1
fits__in__word__7:
__mark_closure_with_unboxed_arguments__2:
lea rdx,[rcx+rbp*8]
mov rax,qword ptr [rcx]
or rax,2
mov qword ptr [rcx],rax
mov rcx,qword ptr [rdx]
mov qword ptr [rdx],rsi
mov rsi,rdx
att_jmp __mark_node
__mark_closure_with_unboxed_arguments:
mov rax,rbp
and rbp,255
sub rbp,1
je __mark_closure_1_with_unboxed_argument
add rbp,2
shr rax,8
add r14,rbp
push rcx
lea rcx,[rdx+rbp*8]
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
sub rbp,rax
or dword ptr [rdi+rbx*4],edx
cmp rcx,32*8
jbe fits__in_word_7_
or dword ptr 4[rdi+rbx*4],1
fits__in_word_7_:
pop rcx
sub rbp,2
att_jg __mark_closure_with_unboxed_arguments__2
att_je __shared_argument_part
sub rcx,8
att_jmp __mark_next_node
__mark_closure_1_with_unboxed_argument:
sub rcx,8
att_jmp __mark_node2_bb
__mark_hnf_0:
lea r8,dINT+2[rip]
cmp rax,r8
jne __no_int_3
mov rbp,qword ptr 8[rcx]
cmp rbp,33
jb ____small_int
__mark_real_bool_or_small_string:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,2
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x40000000
att_jbe __mark_next_node
or dword ptr 4[rdi+rbx*4],1
att_jmp __mark_next_node
____small_int:
shl rbp,4
lea rcx,small_integers[rip]
add rcx,rbp
att_jmp __mark_next_node
__no_int_3:
lea r8,__STRING__+2[rip]
cmp rax,r8
jbe __mark_string_or_array
lea r8,CHAR+2[rip]
cmp rax,r8
jne __no_char_3
movzx rbp,byte ptr 8[rcx]
shl rbp,4
lea rcx,static_characters[rip]
add rcx,rbp
att_jmp __mark_next_node
__no_char_3:
att_jb __mark_real_bool_or_small_string
lea rcx,((-8)-2)[rax]
att_jmp __mark_next_node
__mark_node2_bb:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,3
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x20000000
att_jbe __mark_next_node
or dword ptr 4[rdi+rbx*4],1
att_jmp __mark_next_node
__mark__record:
sub rbp,258
je __mark_record_2
jl __mark_record_1
__mark_record_3:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,3
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x20000000
jbe fits__in__word__13
or dword ptr 4[rdi+rbx*4],1
fits__in__word__13:
movzx rbx,word ptr (-2+2)[rax]
mov rdx,qword ptr 8[rcx]
add rdx,r10
mov rax,rdx
and rdx,31*8
shr rax,8
push rsi
lea r8,bit_set_table2[rip]
mov esi,dword ptr [r8+rdx]
test esi,dword ptr [rdi+rax*4]
jne __shared_record_argument_part
add rbp,1
or dword ptr [rdi+rax *4],esi
lea rdx,[rdx+rbp*8]
add r14,rbp
pop rsi
cmp rdx,32*8
jbe fits__in__word__14
or dword ptr 4[rdi+rax*4],1
fits__in__word__14:
sub rbx,1
mov rdx,qword ptr 8[rcx]
jl __mark_record_3_bb
att_je __shared_argument_part
mov qword ptr 8[rcx],rsi
add rcx,8
sub rbx,1
je __mark_record_3_aab
lea rsi,[rdx+rbx*8]
mov rax,qword ptr [rdx]
or rax,1
mov rbp,qword ptr [rsi]
mov qword ptr [rdx],rax
mov qword ptr [rsi],rcx
mov rcx,rbp
att_jmp __mark_node
__mark_record_3_bb:
sub rcx,8
att_jmp __mark_next_node
__mark_record_3_aab:
mov rbp,qword ptr [rdx]
mov qword ptr [rdx],rcx
lea rsi,1[rdx]
mov rcx,rbp
att_jmp __mark_node
__shared_record_argument_part:
mov rdx,qword ptr 8[rcx]
pop rsi
test rbx,rbx
att_jne __shared_argument_part
sub rcx,8
att_jmp __mark_next_node
__mark_record_2:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,3
or dword ptr [rdi+rbx*4],edx
cmp rdx,0x20000000
jbe fits__in__word_12
or dword ptr 4[rdi+rbx*4],1
fits__in__word_12:
cmp word ptr (-2+2)[rax],1
att_ja __mark_record_2_c
att_je __shared_argument_part
sub rcx,8
att_jmp __mark_next_node
__mark_record_1:
cmp word ptr (-2+2)[rax],0
att_jne __mark_hnf_1
sub rcx,8
att_jmp __mark_real_bool_or_small_string
__mark_string_or_array:
je __mark_string_
__mark_array:
mov rbp,qword ptr 16[rcx]
test rbp,rbp
je __mark_lazy_array
movzx rax,word ptr (-2)[rbp]
test rax,rax
je __mark_strict_basic_array
movzx rbp,word ptr (-2+2)[rbp]
test rbp,rbp
je __mark_b_record_array
sub rax,256
cmp rax,rbp
je __mark_a_record_array
__mark__ab__record__array:
push rdx
push rbx
mov rbx,rbp
mov rbp,qword ptr 8[rcx]
add rcx,16
push rcx
shl rbp,3
mov rdx,rax
imul rdx,rbp
sub rax,rbx
add rcx,8
add rdx,rcx
att_call reorder
pop rcx
xchg rax,rbx
mov rbp,qword ptr (-8)[rcx]
imul rax,rbp
imul rbx,rbp
add r14,rbx
add rbx,rax
shl rbx,3
lea rbp,[r10+rcx]
add rbp,rbx
pop rbx
pop rdx
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
or dword ptr [rdi+rbx*4],edx
lea rdx,[rcx+rax*8]
jmp __mark_r_array
__mark_a_record_array:
imul rax,qword ptr 8[rcx]
add rcx,16
jmp __mark_lr_array
__mark_lazy_array:
mov rax,qword ptr 8[rcx]
add rcx,16
__mark_lr_array:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
mov rbp,r10
or dword ptr [rdi+rbx*4],edx
lea rdx,[rcx+rax*8]
add rbp,rdx
__mark_r_array:
shr rbp,8
cmp rbx,rbp
jae __skip_mark_lazy_array_bits
inc rbx
__mark_lazy_array_bits:
or dword ptr [rdi+rbx*4],1
inc rbx
cmp rbx,rbp
att_jbe __mark_lazy_array_bits
__skip_mark_lazy_array_bits:
add r14,3
add r14,rax
cmp rax,1
jbe __mark_array_length_0_1
mov rbp,qword ptr [rdx]
mov rbx,qword ptr [rcx]
mov qword ptr [rdx],rbx
mov qword ptr [rcx],rbp
mov rbp,qword ptr (-8)[rdx]
sub rdx,8
mov rbx,qword ptr lazy_array_list_offset[r9]
add rbp,2
mov qword ptr [rdx],rbx
mov qword ptr (-8)[rcx],rbp
mov qword ptr (-16)[rcx],rax
sub rcx,16
mov qword ptr lazy_array_list_offset[r9],rcx
mov rcx,qword ptr (-8)[rdx]
mov qword ptr (-8)[rdx],rsi
lea rsi,(-8)[rdx]
att_jmp __mark_node
__mark_array_length_0_1:
lea rcx,(-16)[rcx]
att_jb __mark_next_node
mov rbx,qword ptr 24[rcx]
mov rbp,qword ptr 16[rcx]
mov rdx,qword ptr lazy_array_list_offset[r9]
mov qword ptr 24[rcx],rbp
mov qword ptr 16[rcx],rdx
mov qword ptr [rcx],rax
mov qword ptr lazy_array_list_offset[r9],rcx
mov qword ptr 8[rcx],rbx
add rcx,8
mov rbp,qword ptr [rcx]
mov qword ptr [rcx],rsi
lea rsi,2[rcx]
mov rcx,rbp
att_jmp __mark_node
__mark_b_record_array:
mov rbp,qword ptr 8[rcx]
sub rax,256
imul rax,rbp
add rax,3
jmp __mark_basic_array
__mark_strict_basic_array:
mov rax,qword ptr 8[rcx]
lea r8,dINT+2[rip]
cmp rbp,r8
jle __mark__strict__int__or__real__array
lea r8,BOOL+2[rip]
cmp rbp,r8
je __mark__strict__bool__array
__mark__strict__int32__or__real32__array:
add rax,6+1
shr rax,1
att_jmp __mark_basic_array
__mark__strict__int__or__real__array:
add rax,3
att_jmp __mark_basic_array
__mark__strict__bool__array:
add rax,24+7
shr rax,3
att_jmp __mark_basic_array
__mark_string_:
mov rax,qword ptr 8[rcx]
add rax,16+7
shr rax,3
__mark_basic_array:
lea r8,bit_set_table2[rip]
mov edx,dword ptr [r8+rdx]
add r14,rax
or dword ptr [rdi+rbx*4],edx
lea rax,(-8)[rcx+rax*8]
add rax,r10
shr rax,8
cmp rbx,rax
att_jae __mark_next_node
inc rbx
mov rbp,1
cmp rbx,rax
att_jae __last__string__bits
__mark_string_lp:
or dword ptr [rdi+rbx*4],ebp
inc rbx
cmp rbx,rax
att_jb __mark_string_lp
__last__string__bits:
or dword ptr [rdi+rbx*4],ebp
att_jmp __mark_next_node
|