libjit-sys 0.2.1

Just-In-Time Compilation in Rust using LibJIT bindings
Documentation
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
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
2014-06-18  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-value.c (jit_value_get_param): add range check for param
	argument (thanks Niklas Koep).

2014-03-11  Niklas Koep  <niklas.koep@gmail.com>

	* doc/Makefile.am, doc/libjit.texi: Include docs from jit-compile.c.

2014-01-21  John Perkins  <jeperk70@gmail.com>

	* doc/libjit.texi: Fix makeinfo problem with newer texinfo.

2014-01-20  Ben Noordhuis  <info@bnoordhuis.nl>

	* jit/jit-thread.c (_jit_thread_init): Fix Windows-only race
	condition.

2013-10-17  Aleksey Demakov  <ademakov@gmail.com>

	* README, doc/libjit.texi: Update info on obtaining libjit sources.

2013-08-13  Chetan Reddy  <chetanreddy@gmail.com>

	* jit/jit-memory-cache.c (_jit_cache_start_function): If there is no
	room left for a cache node on the current page then let restart with
	a new page rather than giving up on it.

2013-03-04  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-memory-cache.c (_jit_cache_extend): the function now
	returns a value (thanks Alexey Galakhov <agalakhov@gmail.com>).

	* include/jit/jit-memory.h, jit/jit-internal.h, jit/jit-memory.c:
	* jit/jit-memory-cache.c: add jit_function_info_t typedef and use it
	in the memory manager interface for more clarity (the idea is taken
	from Alexey Galakhov's proposal but done in a weaker form, without
	type safety).

2013-02-27  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-dump.c (jit_dump_function): fix error finding function end
	address (thanks Alexey Galakhov <agalakhov@gmail.com> for spotting).

	* jit/Makefile.am, jit/jit-apply-alpha.h, jit/jit-apply-alpha.c
	* jit/jit-gen-alpha.h, jit/jit-rules-alpha.h, jit/jit-rules-alpha.c
	* jit/jit-rules-alpha.ins: Remove all alpha related files from the
	distro. The files are still in the repo in the attic dir.

2013-02-26  Aleksey Demakov  <ademakov@gmail.com>

	* configure.ac, jit/jit-opcodes.ops, jit/jit-interp-opcode.ops
	* Makefile.am, jit/Makefile.am, include/jit/Makefile.am: Move ops
	files from the config to jit dir, remove the config dir.

	* configure.ac: Use build-aux dir for autoconf files. Update the
	mailing list address.

2012-11-06  Aleksey Demakov  <ademakov@gmail.com>

	* dpas/dpas-scope.c (dpas_scope_destroy): Fix a memory leak in dpas.

	* include/jit/jit-memory.h, jit/jit-internal.h, jit/jit-memory.c
	* jit-cache.c: restore ability to allocate memory for recompiled
	functions.

2012-11-05  Aleksey Demakov  <ademakov@gmail.com>

	* jitplus/jit-plus-function.cpp (create): free function signature.
	* tutorial/t3.c, tutorial/t3.c: free function signature.

2012-10-30  Aleksey Demakov  <ademakov@gmail.com>

	* tutorial/t1.c, tutorial/t2.c: free function signature.

	* jit/jit-block.c (delete_block): fix memory leak.

	* jit/jit-memory-cache.c: rename jit-cache.c

2012-10-20  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-memory.h, jit/jit-internal.h, jit/jit-memory.c
	* jit-cache.c: get back to the scheme where function start and end
	addresses are kept by the memory manager, not in jit_function_t.

2012-10-16  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-memory.h: add file that defines pluggable memory
	manager interface.
	* jit-internal.h, jit/jit-memory.c: add a number of _jit_memory_*
	pluggable memory wrapper functions. Replace with these wrappers
	all _jit_cache_* calls.
	* jit/jit-cache.c (jit_default_memory_manager): add function that
	gets memory mamnager plugin interface.
	* jit/jit-cache.h: remove file.
	* include/jit/jit-context.h:
	* jit/jit-context.c (jit_context_set_memory_manager): add function.

2012-10-12  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-util.h, jit/jit-alloc.c (jit_malloc_exec)
	(jit_free_exec, jit_flush_exec, jit_exec_page_size): remove functions
	from public API.
	* jit/jit-internal.h, jit/jit-alloc.c (_jit_malloc_exec)
	(_jit_free_exec, _jit_flush_exec): make these functions internal.

	* jit/jit-util.c: new file, move here all public util functions from
	jit/jit-alloc.c, jit/jit-memory.c, jit/jit-string.c.

2012-10-08  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-cache.c, jit/jit-cache.c(_jit_cache_alloc_trampoline)
	(_jit_cache_free_trampoline, _jit_cache_alloc_closure)
	(_jit_cache_free_closure): add functions.
	* jit/jit-function.c (jit_function_create, _jit_function_destroy):
	use trampoline alloc/free functions.

	* jit/jit-apply.c, include/jit/jit-init.h (jit_get_closure_size)
	(jit_get_closure_alignment, jit_get_trampoline_size)
	(jit_get_trampoline_alignment): add functions.
	* jit/jit-apply.c (jit_closures_supported): for consistency rename
	function to jit_supports_closures.

2012-10-07  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-function.c (jit_function_create, _jit_function_destroy):
	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_alloc_function)
	(_jit_cache_free_function): allocate and free jit_function structs
	within cache.

2012-10-04  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_start_function):
	remove the restart_count argument.
	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_extend): add
	function to allocate more cache space.
	* jit/jit-cache.c (_jit_cache_alloc_data): let be called outside
	function generation context.

2012-07-29  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_start_function)
	(_jit_cache_end_function, _jit_cache_get_code_break)
	(_jit_cache_set_code_break, _jit_cache_get_code_limit)
	(_jit_cache_alloc_data): new API for function allocation.
	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_is_full)
	(_jit_cache_start_method, _jit_cache_end_method)
	(_jit_cache_alloc, _jit_cache_check_space): remove.
	* jit/jit-cache.h, jit/jit-rules.h: remove jit_cache_posn struct.
	Store the cache position data in jit_gencode struct.
	* jit/jit-rules.h, jit/jit-rules.c: (_jit_gen_check_space)
	(_jit_gen_alloc): add.
	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_function):
	rename from _jit_cache_get_method. 

2012-02-11  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_end_method): add
	result argument that indicates if the code genration will need
	to be restarted.
	* jit/jit-cache.h, jit/jit-cache.c (jit_cache_mark_full): remove
	macro and replace it with direct jit_cache_posn access where
	appropriate.
	* jit/jit-cache.h, jit/jit-cache.c (jit_cache_get_posn): likewise.
	* jit/jit-cache.h, jit/jit-rules-interp.c (jit_cache_native): move
	macro to where it only used.
	* jit/jit-cache.h, jit/jit-cache.c: remove other unused stuff.

2012-01-22  Klaus Treichel  <ktreichel@web.de>

	* config/jit-opcodes.ops: Move declaration of obsolete opcodes to
	the separate include file jit-opcode-compat.h and include this new
	file instead.

	* include/jit/jit-opcode-compat.h: add new include file for
	obsolete opcodes.

	* include/jit/Makefile.am: add jit-opcode-compat.h to the include
	sources.

2012-01-21  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules.h (struct jit_gencode): add offset_encoder field
	to encode bytecode offsets with jit_varints.

	* jit/jit-internal.h (struct _jit_function): move fields cookie,
	start, end here from jit_cache_method; add bytecode_offset field
	to encode bytecode offsets with jit_varints.

	* jit/jit-compile.c (mark_offset, _jit_function_get_bytecode): add
	functions that use jit_varints for bytecode offset compression.

	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_method):
	remove cookie argument.

	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_mark_bytecode)
	(_jit_cache_set_cookie, _jit_cache_get_start_method)
	(_jit_cache_get_end_method, _jit_cache_get_native)
	(_jit_cache_get_bytecode, _jit_cache_get_size): remove functions,
	get rid of bytecode offset compression and method region machinary.

	* jit/jit-dump.c, jit/jit-function.c, jit/jit-rules-interp.c
	* jit/jit-except.c, jit/jit-unwind.c: adjust where appropriate for
	cache API change.

2011-12-18  Aleksey Demakov  <ademakov@gmail.com>

	* jit/Makefile.am:
	* jit/jit-varint.h, jit/jit-varint.c: add new files for varaible
	length int encoding with algorithm similar but not identical to one
	currently used in jit-cache.c.  The new algorithm in certain cases
	better compresses unsigned ints.

2011-09-30  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_new_region):
	function removed.

2011-09-03  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_get_method_list):
	function removed.

2011-07-27  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-config.h: added new file as central location for all
	platform config macros deduced from ./configure and cpp.
	* jit/Makefile.am: add jit-config.h.

	* include/jit/jit-context.h, jit/jit-context.c
	(jit_context_supports_threads): removed.
	* include/jit/jit-init.h, jit/jit-init.c (jit_supports_threads):
	added function to replace jit_context_supports_threads.

	* include/jit/jit-init.h, jit/jit-init.c
	(jit_supports_virtual_memory): added new function to check if
	the jit supports virtual memory routines.

	* include/jit/jit-vmem.h, jit/jit-vmem.c (jit_vmem_init)
	(jit_vmem_page_size, jit_vmem_round_up, jit_vmem_round_down)
	(jit_vmem_reserve, jit_vmem_reserve_committed, jit_vmem_release)
	(jit_vmem_commit, jit_vmem_decommit, jit_vmem_protect): added new
	files with virtual memory routines.
	* include/jit/Makefile.am, include/jit/jit.h: add jit-vmem.h
	* jit/Makefile.am: add jit-vmem.c

	* jit/jit-init.c (jit_init): call jit_vmem_init().

2011-07-10  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (choose_output_register, _jit_regs_assign):
	fix handling of explicitely assigned registers.

	* jit/jit-rules-x86.c (shift_reg): remove function.
	* jit/jit-rules-x86.ins (JIT_OP_ISHL, JIT_OP_ISHR, JIT_OP_ISHR_UN):
	rewrite rules with explicit assignment to "ecx" register, don't use
	shift_reg() function.

2011-07-02  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-compile.c (compile_block): amend debug info

2010-11-28  Klaus Treichel  <ktreichel@web.de>

	* config/jit-opcodes.ops: Set the destination value type for the
	address_of_label opcode.

	* jit/jit-dump.c (jit_dump_insn): Print the destination value for
	the address_of_label opcode.

2010-11-07  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-cache.h: Fix comment for _jit_cache_get_end_method.

2010-10-24  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-reg-alloc.c (_jit_regs_alloc_global): Set in_global_register
	on global register assignment.

2010-10-04  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-internal.h: Add missing typedef in the declaration of the
	_jit_intrinsic_signature enumaeration. (Really Noah Lavine)

2010-09-21  Klaus Treichel  <ktreichel@web.de>

	* config/jit-opcodes.ops: Add definitions for the opcode's
	intrinsics.

	* jit/Makefile.am: Add jit-opcode-apply.c to the sources.

	* jit/jit-internal.h (enum _jit_intrinsic_signature): Declare the
	various intrinsic signatures.
	(struct _jit_intrinsic_info): Declare structure to hold the intrinsic
	information for an opcode.

	* jit/jit-opcode-apply.c: Add support for constant folding.

	* tools/gen-ops-parset.y, tools/gen-ops-scanner.l: Add support for
	generating the opcode intrinsic table.

2010-09-12  Klaus Treichel  <ktreichel@web.de>

	* config/jit-opcodes.ops: Remove the *eq_inv and *ne_inv float
	compare a branch opcodes because they behave exactly the same as
	the corresponding opcodes without the _INV suffix.
	Add macros to map the removed opcodes to their counterparts without
	the _INV suffix.

	* jit/jit-insn.c (jit_insn_to_not_bool): Replace the mappings
	to *EQ_INV and *NE_INV by mappings to *EQ and *NE.
	Remove the mappings for *EQ_INV and *NE_INV.
	(jit_insn_branch_if): likwise
	(jit_insn_branch_if_not): likewise

	* jit/jit-interp.c (_jit_run_function): Remove handling of
	the *EQ_INV and *NE_INV opcodes.

	* jt/jit-rules-interp.c (_jit_gen_insn): Remove the *EQ_INV
	and *NE_INV cases.

	* jit/jit-rules-x86-64.ins.c: Remove handling of the *EQ_INV and *NE_INV
	opcodes.

2010-08-10  Klaus Treichel  <ktreichel@web.de>

	* config/jit-opcodes.ops: Fix arg1 for the address_of opcode.

2010-08-09  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-gen-x86-64.h: Add macros for the cvttss2si and cvttsd2si
	instructions.

	* jit-rules-x86-64.ins  (JIT_OP_FLOAT32_TO_INT,
	JIT_OP_FLOAT32_TO_UINT, JIT_OP_FLOAT32_TO_LONG,
	JIT_OP_INT_TO_FLOAT32, JIT_OP_UINT_TO_FLOAT32,
	JIT_OP_LONG_TO_FLOAT32, JIT_OP_FLOAT64_TO_FLOAT32,
	JIT_OP_FLOAT64_TO_INT, JIT_OP_FLOAT64_TO_UINT,
	JIT_OP_FLOAT64_TO_LONG, JIT_OP_INT_TO_FLOAT64,
	JIT_OP_UINT_TO_FLOAT64, JIT_OP_LONG_TO_FLOAT64,
	JIT_OP_FLOAT32_TO_FLOAT64: Add support for these new opcodes.

2010-08-08  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86.ins (JIT_OP_FLOAT32_TO_INT,
	JIT_OP_FLOAT64_TO_INT, JIT_OP_FLOAT32_TO_LONG,
	JIT_OP_FLOAT64_TO_LONG, JIT_OP_INT_TO_FLOAT32,
	JIT_OP_INT_TO_FLOAT64, JIT_OP_UINT_TO_FLOAT32,
	JIT_OP_UINT_TO_FLOAT64, JIT_OP_LONG_TO_FLOAT32,
	JIT_OP_LONG_TO_FLOAT64, JIT_OP_ULONG_TO_FLOAT32,
	JIT_OP_ULONG_TO_FLOAT64, JIT_OP_FLOAT64_TO_FLOAT32,
	JIT_OP_FLOAT32_TO_FLOAT64: Add support for these new opcodes.

	* tests/math.pas: Add tests for integer/float conversions.

2010-08-07  Klaus Treichel  <ktreichel@web.de>

	* config/jit-opcodes.ops: Add opcodes for direct conversions from
	and to 32-bit and 64-bit floatingpoint values.

	* jit/jit-interp.c (_jit_run_function): Add support for the new
	opcodes.

	* jit/jit-insn.c: Add the new opcodes to the convert_intrinsics
	table.
	(jit_insn_convert): Use the new opcodes for conversions from and to
	32-bit and 64-bit floatingpoint values.

2010-08-06  Klaus Treichel  <ktreichel@web.de>

	* configure.ac: Add checks for the rint, round and trunc c library
	functions.

	* config/jit-opcodes.ops: (ftrunc, dtrunc, nftrunc): Add opcode
	definitions for the new trunc instruction.

	* dpas/dpas-builtin.c: Add new Trunc builtin.

	* include/jit/jit-insn.c (jit_insn_trunc): Add prototype.

	* include/jit/jit-intrinsic.h (jit_float32_trunc, jit_float64_trunc,
	jit_nfloat_trunc): Add prototypes.

	* jit/jit-insn.c (jit_insn_trunc): Add new float rounding function.
	Refine comments for the rounding functions.

	* jit/jit-interp.c (_jit_run_function): Add support for the new
	trunc opcodes.

	* jit/jit-intrinsic.c: Nove float rounding intrinsics to one block
	and refine conmments.
	(jit_float32_rint): Use rintf or rint if available.
	(jit_float64_rint): Use rint if available.
	(jit_nfloat_rint): Use rintl if available.
	(jit_float32_round): Use roundf or round if available.
	(jit_float64_round): Use round if available.
	(jit_nfloat_round): Use roundl if available.
	(jit_float32_trunc, jit_float64_trunc, jit_nfloat_trunc): Add new
	rounding intrinsics for rounding float values towards zero.

	* jit/jit-symbol.c: Add the new intrinsics jit_float32_trunc,
	jit_float64_trunc and jit_nfloat_trunc to the symbol table.

	* tests/math.pas: Add tests for the new trunc insn.

	* include/jit/jit-plus.h: Add jit_function insn_trunc member.

	* jitplus/jit-plus-function.cpp (insn_trunc): Implement wrapper for
	the new trunc insn.

2010-08-04  Klaus Treichel  <ktreichel@web.de>

	* include/jit/Makefile.am: Don't include jit-arch.h in the
	distribution.

	* tools/gen-apply.c: Include a local copy of jit-arch.h instead of
	the one in the include dir because that one is not yet present in
	the build process.

	* tools/Makefile.am: Create a local symbolic link jit-arch.h to
	the arch specific header in the include dir.

2010-08-03  Klaus Treichel  <ktreichel@web.de>

	* Makefile.am: Add config to the subdirectories.

	* configure.ac: Add config/Makefile the the makefiles to generate.

	* include/jit/Makefile.am: Add jit-opcode.h to BUILT_SOURCES and
	DISTCLEANFILES. Add the rule to generate jit-opcodes.h.

	* include/jit/jit-opcode.h: Delete because it will be generated.

	* jit/Makefile.am: Add jit-opcode.c, jit-interp-opcode.c and
	jit-interp-opcode.h to BUILT_SOURCES.
	Add jit-interp-opcode.c and jit-interp-opcode.h to libjit_la_SOURCES.
	Add rules to generate jit-opcode.c, jit-interp-opcode.c and
	jit-interp-opcode.h.
	Adjust rule to generate jit-interp-labels.h. 

	* jit/jit-dump.c: Remove the extern declaration of the interpreter
	opcode table.

	* jit/jit-interp.h: Replace the opcode declaration by including
	the generated file.

	* jit/jit-opcode.c: Delete because its generated now.

	* jit/jit-interp.c: Adjust names of interpreter specific opcodes.

	* jit/jit-rules-interp.c: Likewise.

	* jit/mklabel.sh: Adjust for opcode name change of interpreter
	specific opcodes.

	* tools/.gitignore: Add new built files.

	* tools/Makefile.am: Add rules to build gen-ops.

	* tools/gen-ops-parser.y, tools/gen-ops-scanner.l: Add opcode table
	generator.

	* config/Makefile.am: Added

	* config/jit-opcodes.ops: Add definition source of the bastic
	libjit opcodes.

	* config/jit-interp-opcodes.ops: Add definition source of the
	interpreter specific libjit opcodes.

	* include/jit/.gitignore, jit/.gitignore: Add new built files to
	the ignore list.

2010-05-31  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-block.c: allow empty block branch optimization for blocks
	used both in branch insns and in address-of insns. Branch labels are
	split from address-of labels and become eligible for optimization
	while the address-of labels stay with the original block.

2010-05-22  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-apply-x86-64.h (JIT_MEMCPY): fix build for MacOS X.

2010-05-15  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-instrinsic.c ((jit_float32_to_int, jit_float32_to_uint,
	jit_float32_to_long, jit_float32_to_ulong, jit_float32_to_int_ovf,
	jit_float32_to_uint_ovf, jit_float32_to_long_ovf,
	jit_float32_to_ulong_ovf, jit_float64_to_int, jit_float64_to_uint,
	jit_float64_to_long, jit_float64_to_ulong, jit_float64_to_int_ovf,
	jit_float64_to_uint_ovf, jit_float64_to_long_ovf,
	jit_float64_to_ulong_ovf, jit_int_to_float32, jit_int_to_float64,
	jit_uint_to_float32, jit_uint_to_float64, jit_long_to_float32,
	jit_long_to_float64, jit_ulong_to_float32, jit_ulong_to_float64,
	jit_float32_to_float64, jit_float64_to_float32): Add intrinsics for
	direct conversion from float32 and float64 to the various integer
	types and float32 to float64 and vice versa.

	* include/jit/jit-intrinsic.h: Add the prototypes for the new
	intrinsics.

	* jit/jit-symbol.c: Add the new intrinsics to the symbol table.

	* jit/jit-value.c (jit_constant_convert): Use the new intrinsics in
	constant conversions.

	* jit/jit-block.c (jit_block_get_next_label): Fix comment for texinfo.

	* tools/gen-apply.c: Fix strict-alias-rules in returning struct tests.

2010-05-08  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-block.c (_jit_block_clean_cfg): Don't merge an empty block
	if the block's address was used.

2010-01-24  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-insn.c (jit_insn_branch_if, jit_insn_branch_if_not): Fix
	accesses to possibly freed memory.

2009-12-09  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-block.c (_jit_block_record_label): bail out on previously
	assigned label.

	* jit/jit-block.c (merge_empty): fix label merging.

	* jit/jit-internal.h, jit/jit-insn.c (jit_insn_address_of_label)
	* jit/jit-block.c (_jit_block_record_label_flags): flag labels that
	are taken address of.

	* jit/jit-block.c (eliminate_unreachable, _jit_block_clean_cfg):
	do not optimize away blocks with labels flagged as being taken
	address of.

2009-11-01  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-block.c (_jit_block_clean_cfg): implement the "combine" part
	of cleanup algorithm.

2009-10-31  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-compile.c (_JIT_RESULT_TO_OBJECT, _JIT_RESULT_FROM_OBJECT):
	Fix compiler warnings on systems where sizeof(int) != sizeof(void *)

	* jit/jit-rules-x86-64.c (fixup_alloca): Added to handle alloca
	fixups with param area enabled.
	(_jit_gen_epilog): Generate the epilog differenty if the stackpointer
	was changed during code generation with param area enabled.

	* jit/jit-rules-x86-64.h: Add the alloca_fixups to the
	extra_gen_state.

	* jit/jit-rules-x86-64.ins: Add support for JIT_OP_ALLOCA.
	(alloca support based on a patch from Peter Lobsinger, thanks)

2009-10-30  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-function.h, jit/jit-function.c
	(jit_function_labels_equal): add function that checks if two labels
	belong to the same basic block.

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c
	(_jit_regs_clear_all_outgoing): add function.
	* jit/jit-compile.c (compile_block): use _jit_regs_clear_all_outgoing
	after each function call.

	* include/jit/jit-except.h (JIT_RESULT_CACHE_FULL): add result code.
	* jit/jit-cache.h, jit/jit-cache.c (_jit_cache_check_space): add
	function to check the available cache space.
	* jit/jit-compile.c: use internal exception to handle the cache full
	condition.
	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c, jit/jit-rules-alpha.c,
	* jit/jit-rules-arm.c, jit/jit-rules-interp.c, jit/jit-rules-x86.c,
	* jit/jit-rules-x86-64.c, tools/gen-rules-parser.y: use internal
	exceptions to signal the cache full condition and other codegen
	errors.
	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c (_jit_regs_inst_ptr)
	(_jit_regs_end): remove functions.

2009-10-13  Gopal V  <gopalv@php.net>

	* jit/jit-insn.c (jit_insn_branch_if_not,jit_insn_branch_if): Redo
	last patch to use the branch instructions, but without removing the
	actual compare step (Aleksey's suggestion).

2009-10-09  Gopal V  <gopalv@php.net>

	* jit/jit-insn.c (jit_insn_branch_if_not,jit_insn_branch_if): Remove
	the premature optimization of compare & branch operations (thanks 
	Klaus).

2009-08-04  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-block.c (_jit_block_clean_cfg): avoid jump tables
	while cleaning branches (thanks Fredrik Ehnbom).

2009-06-10  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins (JIT_OP_BR_LFALSE): add opcode rule.

2009-06-10  Michele Tartara  <mikyt@users.sourceforge.net>

	* jit/jit-rules-x86.ins (JIT_OP_BR_LTRUE): add opcode rule.

2009-06-05  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-compile.c (jit_function_compile) 
	(jit_function_compile_entry, jit_function_setup_entry) 
	(_jit_function_compile_on_demand): new file, move all compile
	functions here from jit-function.c.

	* jit/jit-compile.c (jit_compile, jit_compile_entry): add new
	functions that do exactly the same as jit_function_compile and
	jit_function_compile_entry but return JIT_RESULT_ error code.

	* jit/jit-compile.c (jit_optimize): add function to optimize IR.

	* include/jit/jit-function.h: add optimization level constants
	JIT_OPTLEVEL_NONE and JIT_OPTLEVEL_NORMAL.
	* jit/jit-function.c (jit_function_create) set JIT_OPTLEVEL_NORMAL
	optimization level by default.
	* jit/jit-function.c (jit_function_get_max_optimization_level):
	return JIT_OPTLEVEL_NORMAL.
	* jit/jit-internal.h (struct _jit_function): add is_optimized field
	to _jit_function struct.

	* jit/jit-compile.c (compile): catch internal exceptions.
	* jit/jit-block.c: use internal exceptions instead of return codes
	for CFG error handling.

2009-05-10  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-except.h (JIT_RESULT_UNDEFINED_LABEL):
	* jit/jit-except.c (jit_exception_builtin): add new builtin
	exception.

	* jit/jit-internal.h (struct _jit_label_info): add srtuct.
	(struct _jit_builder): replace label_blocks with label_info.

	* jit/jit-block.c (_jit_block_record_label):
	* jit/jit-dump.c (jit_dump_function):
	* jit/jit-insn.c (jit_insn_label): allow more than one label per
	basic block.

	* include/jit/jit-block.h:
	* jit/jit-block.c (jit_block_get_next_label): add function.

2009-05-09  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-internal.h, jit/jit-block.c, jit/jit-insn.c,
	* jit/jit-function.c: allocate insns as individual array for each
	basic block instead of using common per-function pool.

	* jit/jit-internal.h, jit/jit-block.c: keep useless basic blocks
	in the deleted_blocks list instead of freeing them immediately as
	these blocks still may be referenced from elsewhere, for instance,
	from jit_value_t structs.

	* jit/jit-internal.h, jit/jit-block.c (_jit_block_is_final): add
	function to check if the given block is the last one.
	* jit/jit-rules-alpha.c, jit/jit-rules-arm.c, jit/jit-rules-x86.c,
	* jit/jit-rules-x86-64.c (jump_to_epilog): use _jit_block_is_final.

2009-04-29  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-block.c (_jit_block_build_cfg, _jit_block_clean_cfg): add
	functions to build and clean control flow graph.
	* jit/jit-block.c, jit-live.c (_jit_block_peephole_branch): remove
	function superseded by jit_block_clean_cfg().
	* jit/jit-internal.h, jit/jit-block.c:
	* jit/jit-function.c, jit/jit-insn.c: add control flow graph edges
	to basic blocks, streamline basic block handling.

	* jit/jit-block.c (jit_block_get_label): return jit_label_undefined
	instead of zero on error.
	* jit/jit-insn.c (jit_insn_call_finally): create a new block after
	JIT_OP_CALL_FINALLY.
	* jit/Makefile.am (libjit_la_SOURCES): remove jit-cfg.[ch].

2009-04-24  Michele Tartara  <mikyt@users.sourceforge.net>

	* jit/jit-gen-arm.h (arm_mov_reg_float): fix typo.
	* jit/jit-rules-arm.c (_jit_gen_load_value): fix load logic.

2009-04-22  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_call, jit_insn_call_indirect) 
	(jit_insn_call_indirect_vtable, jit_insn_call_native): don't end
	basic block before a function call, rather end it after the call if
	the call may throw some exception.
	* jit/jit-function.c (compile_block): spill all registers before
	calls.

2009-04-21  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-dump.c (jit_dump_insn): fix "call_finally" dump.

2009-04-16  Michele Tartara  <mikyt@users.sourceforge.net>

	* jit/jit-rules-arm.c: ARM backend fixes.

2009-04-16  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (set_regdesc_flags): fix bug reported by
	jan@wedesoft.de.

2009-04-05  Michele Tartara  <mikyt@users.sourceforge.net>

	* jit/jit-type.c (perform_layout): let struct alignment be greater
	than alignment of every indvidual field.

2009-03-28  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules.h (jit_reg_name, jit_reg_flags, jit_reg_code); add
	convenience macros for register info access.
	* jit/jit-rules.h, jit/jit-rules-interp.c, jit/jit-rules-x86.c,
	* jit/jit-rules-arm.c (_jit_reg_get_pair, jit_reg_get_pair): add
	function and macro for finding register pair.
	* jit/jit-reg-alloc.c: replace use of _jit_regs_needs_long_pair with
	jit_reg_get_pair().
	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c (_jit_regs_get_cpu)
	(_jit_regs_needs_long_pair): remove unused functions.

2009-03-25  Michele Tartara  <mikyt@users.sourceforge.net>

	* jit/jit-gen-arm.h (arm_alu_cc_reg): fix a typo.
	* jit/jit-rules-arm.ins (JIT_OP_IDIV): support negative dividends.

2009-03-24  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules.h (jit_reg_other_reg): add macro.
	* jit/jit-reg-alloc.c: replace OTHER_REG with jit_reg_other_reg.
	* jit/jit-rules-x86.c (_jit_gen_load_value): use jit_reg_other_reg.
	* jit/jit-rules-arm.c (_jit_gen_load_value) 
	(_jit_gen_load_value_struct): use jit_reg_other_reg.

2009-03-23  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-arm.ins: minor cleanup.

2009-03-23  Michele Tartara  <mikyt@users.sourceforge.net>

	* jit/jit-gen-arm.h: add more ARM codegen macros including VFP
	support.
	* jit/jit-rules-arm.ins: restore ARM FPA rules, implement IDIV and
	fix MEMSET opcodes.
	* jit/jit-rules-arm.h, jit/jit-rules-arm.c: more ARM code.
	* jit/jit-reg-alloc.c (_jit_regs_commit): fix typo.

2009-02-07  Aleksey Demakov  <ademakov@gmail.com>

	* gen-sel-parser.y, gen-sel-scanner.l: remove obsolete files.
	* tools/Makefile.am: remove gen-sel target.
	* jit/jit-apply-arm.h (jit_builtin_apply): fix bug and optimize.

2009-02-06  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply-x86.h: Add @PLT to the definition of JIT_MEMCPY to
	prevent set TEXTREL flags in the shared library.

2009-02-06  Michele Tartara  <mikyt@users.sourceforge.net>

	* jit/jit-rules.h: define JIT_BACKEND_ARM on ARM.
	* tools/gen-apply.c: define PLATFORM_IS_ARM on ARM.
	* include/jit/jit-arch-arm.h: add ARM arch header.
	* jit/Makefile.am, jit/jit-rules-arm.ins, jit/jit-rules-arm.sel:
	replace obsolete .sel file for ARM with .ins file.
	* jit/jit-apply-arm.h: define jit_indirector_size, jit_should_pad,
	override jit_builtin_apply.
	* jit/jit-apply-arm.c (_jit_create_indirector, _jit_pad_buffer): add
	functions.
	* jit/jit-apply-func.h: for each jit_builtin_* macro add individual
	check if it's already defined.

2009-01-30  Peter Fristedt  <fristedt@gmail.com>
            Kirill Kononenko  <Kirill.Kononenko@gmail.com>

	* tools/gen-apply.c (run_detect_struct_##n): Work around a bug in
	gcc-4.3 with optimization level 2 and Debian Lenny. Make
	'jit_nint stack[1]' volatile.

2009-01-01  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86-64.ins (JIT_OP_NFLOAT_TO_FLOAT32,
	JIT_OP_NFLOAT_TO_FLOAT64): Add rules for the case that the
	destination value is in the stack frame.
	(JIT_OP_BR_ILT, JIT_OP_BR_ILE, JIT_OP_BR_IGT, JIT_OP_BR_IGE):
	Handle the comparision with a constant 0 with a test opcode instead
	of a cmp.
	(JIT_OP_ISIGN, JIT_OP_LSIGN): Add handling of the integer sign
	opcodes.

2008-12-21  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-dump.c (jit_dump_function): dump undefined labels as such
	rather than generating new labels for them.

2008-12-12  Aleksey Demakov  <ademakov@gmail.com>

	* jitruby/*: add Paul Brannan's ruby-libjit.

2008-12-11  Juan Jesus Garcia de Soria  <juanj.g_soria@grupobbva.com>

	* jit/jit-insn.c (jit_insn_call_native): extend small int return
	values to full ints as native calls sometimes return garbage in MSB
	of the return register.

2008-12-11  Aleksey Demakov  <ademakov@gmail.com>

	* configure.ac: bump version to 0.1.3

2008-12-10  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86-64.c (x86_64_call_code): Load %rax with 8 before
	doing the call for calls to variadic functions.

	* jit/jit-rules-x86-64.ins (JIT_OP_CALL_INDIRECT,
	JIT_OP_CALL_VTABLE_PTR): likewise.

2008-12-10  Aleksey Demakov  <ademakov@gmail.com>

	* configure.ac: bump version to 0.1.2
	* NEWS: update news for the 0.1.2 release

2008-11-23  Arto Bendiken <arto.bendiken@gmail.com>

	* jit/jit-apply-x86.h, tools/gen-apply.c, tools/gen-apply-macosx.h:
	Mac OS X compatibility fixes.

2008-11-04  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply-x86-64.h (jit_builtin_apply): Use r11 for calling
	the function and pass the constant 8 in rax for the number of SSE
	registers used to pass values for variadic functions.

	* jit/jit-rules-x86-64.c (_spill_reg): Spill values with sizes
	less than 4 as jit_type_int on the stack.

2008-10-12  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-unwind.c: fix typos.

	* jit/jit-interp.c (_jit_run_function): adjust exception_pc if
	exception is generated by a previous instruction.

2008-10-05  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-interp.c (_jit_run_function): fix implementation of the
	JIT_OP_TRUNC_INT and JIT_OP_TRUNC_UINT opcodes in interpreter.

	* jit/jit-rules-interp.c (_jit_gen_insn): add support of the
	JIT_OP_INCOMING_REG opcode, interpreter needs it for exception
	handling.

2008-08-07  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply.c jit/jit-insn.c, jit/jit-interp.c,
	tools/gen-apply.c: Include stdlib.h if available to pick up the
	declaration of alloca on NetBSD.

2008-07-26  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86-64.c (xmm_cmp_reg_imm, xmm_cmp_setcc_reg_imm,
	xmm_cmp_brcc_reg_imm): Add functions to handle compares with an
	immediate value.

	* jit/jit-rules-x86-64.ins: Add rules for an immediate value for
	JIT_OP_FEQ, ..., JIT_OP_DEQ, ... and the float32 and float64
	conditional branch opcodes.

2008-07-19  Klaus Treichel  <ktreichel@web.de>

	* dpas/dpas-parser.y (handle_boolean_binary): Add macro for binary
	operators returning a boolean value.
	(handle_compare_binary): Use handle_boolean_binary instead of
	handle_binary for non pointer compares. Set the result type to
	dpas_type_boolean instead of the common type for pointer compares.

	* tests/cond.pas: Add float compare tests where nan values are
	involved. Add compare tests for the *_inv opcodes.
	Add the same tests using branches for all float compare opcodes.

	* jit/jit-rules-x86-64.c (xmm_setcc, xmm_cmp_setcc_reg_reg,
	xmm_brcc, xmm_cmp_brcc_reg_reg, xmm_cmp_brcc_reg_membase): Add
	functions to handle float compares with consideration of nan values.

	* jit/jit-rules-x66-64.ins: Rewrite the float32 and float64 compare
	and branch rules using the new functions in jit-rules-x86-64.c.
	Add the corresponding *_inv rules.

2008-07-06  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86-64.ins: Replace the check if an immediate value
	is a signed 32bit value by using an if clause the new imms32 clause.
	Flag rules for branch opcodes with the branch option and add the
	commutative option where appropriate.

2008-07-06  Juan Jesus Garcia de Soria  <juanj.g_soria@grupobbva.com>

	* jit/jit-reg-alloc.c (choose_input_order): take into account global
	registers to see if it is suitable to exchange input values. This
	fixes a problem that took place when a commutative op is applied to
	a value that resides in a global register and is both the dest and
	the second source value of the op.

2008-05-30  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-common.h: remove unused jit_function_compiled_t
	type.

	* include/jit/jit-except.h, include/jit/jit-common.h: move
	JIT_NO_OFFSET from jit-except.h to jit-common.h.

	* include/jit/jit-unwind.h, jit/jit-unwind.c: new files.
	* include/jit/jit.h, include/jit/Makefile.am: add jit-unwind.h.
	* jit/Makefile.am: add jit-unwind.c.

	* jit/jit-except.c (jit_exception_get_stack_trace): re-implement
	using unwind routines.

2008-05-28  Juan Jesus Garcia de Soria  <juanj.g_soria@grupobbva.com>

	* jit/jit-alloc.c (jit_free_exec): fix VirtualFree arguments.

	* jit/jit-function.c (_jit_function_destroy): free signature on the
	function destruction.

2008-05-27  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-internal.h (jit_builder_t):
	* jit/jit-insn.c (initialize_setjmp_block): remove longjmp_label
	field as useless.

2008-05-26  Klaus Treichel  <ktreichel@web.de>

	* tools/gen-rules-parser.y, tools/gen-rules-scanner.l: Add the imms32
	and immu32 keywords for 32bit signed and unsigned immediate values.

	* tools/gen-apply.c: Add support for apply return structs where
	different float types are at different offsets in the return struct.

	* jit/jit-apply.c (closure_handler): Handle return of different float
	types with different macros.

	* jit/jit-apply-x86.h (jit_builtin_return_float): Adjust macro to
	the new apply return struct layout.
	Add the new jit_builtin_return_double and jit_builtin_return_nfloat
	macros.
	Fix jit_builtin_return_float macro for MS cl.

	* jit/jit-apply-x86-64.h (jit_builtin_return_float): Adjust macro
	to the new apply return struct layout.
	Add the new jit_builtin_return_double and jit_builtin_return_nfloat
	macros.

	* jit/jit-apply-func.h: Add the new jit_builtin_return_double,
	jit_builtin_return_nfloat and jit_builtin_return_long macros.

2008-05-26  Juan Jesus Garcia de Soria  <juanj.g_soria@grupobbva.com>

	* include/jit/jit-defs.h.in: define JIT_EXPORT_DATA macro to support
	win32 DLL symbol import/export idiosyncrasy. On non-win32 this macro
	is simply "extern".
	* include/jit/jit-type.h, include/jit/jit-opcode.h: replace "extern"
	with JIT_EXPORT_DATA in data declaration.

2008-05-24  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86-64.c (_jit_gen_prolog, _jit_gen_epilog): Add
	support for the param area.
	(_jit_setup_call_stack): Define this function only if not using
	the param area.
	(_jit_create_call_setup_insns): Call _jit_fix_call_stack with
	and without usage of the param area.
	(_jit_create_call_return_insns): Declare the locals abi and
	current_param only if built without support of the param area to
	avoid compiler warnings.

	* jit/jit-rules-x86-64.ins: Add the support of the
	JIT_OP_SET_PARAM_* opcodes for param area support.

	* jit/jit-rules-x86-64.h: Define JIT_USE_PARAM_AREA and do some
	code cleanup and reformatting.

2008-05-23  Juan Jesus Garcia de Soria  <juanj.g_soria@grupobbva.com>

	* jit/jit-alloc.c (jit_malloc_exec, jit_free_exec): on win32 use
	VirtualAlloc and VirtualFree to allocate/free executable memory.

2008-05-23  Klaus Treichel   <ktreichel@web.de>

	* dpas/dpas-scanner.l, tools/gen-rules-scanner.l,
	tools/gen-sel-scanner.l: Define YY_NO_UNISTD_H if unistd.h is not
	available to prevent flex from including unistd.h.

	* include/jit/jit-arch-x86.h, include/jit/jit-arch-x86.h: Fix the
	 definition of _JIT_ARCH_GET_CURRENT_FRAME for MS cl. Use a
	temporary value for ebp/rbp because cl doesn't like arguments like
	f->x in the __asm statements.

	* jit/jit-rules-x86.ins: Move declaration of patch to the start of
	the block in JIT_OP_ULONG_TO_NFLOAT to be ANSI C compliant.

2008-05-21  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-walk.h (jit_get_next_frame_address): use
	JIT_ARCH_GET_NEXT_FRAME if defined, use gcc syntax only if
	defined __GNUC__.

2008-05-12  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply-x86-64.h: Include jit/jit-common.h instead of
	jit-internal.h to get the definition of the libjit types.

2008-05-08  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: 
	* jit/jit-rules-x86-64.ins: 
	* jit/jit-function.c (compile_block): let register allocator see
	JIT_OP_INCOMING_REG and JIT_OP_RETURN_REG instructions so it can
	free unused values on these instructions rather than on the block
	end.

	* jit/jit-reg-alloc.c (_jit_regs_set_incoming): it is not possible
	to correctly spill the old register value at this point so do not
	attempt this and do not promise this.

2008-05-04  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-reg-alloc.c (_jit_regs_set_outgoing): Set the outgoing
	register inhibited regardless if the value was already in the
	register or not.

	* jit/jit-insn.c (jit_insn_check_null): Emit the check only if the
	value to check is no nint constant != 0.

2008-04-22  Aleksey Demakov  <ademakov@gmail.com>

	* configure.in: update to modern autoconf, rename to configure.ac.
	* configure.ac: renamed from configure.in.

2008-04-20  Klaus Treichel  <ktreichel@web.de>

	* tests/Makefile.am: Add cond.pas to the tests.

	* tests/math.pas: Add tests for more opcodes and execute existing
	tests for more types.

	* tests/cond.pas: Add tests for conditions.

2008-04-20  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: fix the sign opcode for longs (based on
	a patch from Klaus) and slightly modify it for ints.

	* jit/jit-insn.c: some code cleanup:
	(jit_insn_neg, jit_insn_abs, jit_insn_sign): for these unary ops
	replace common_binary()	with more basic function calls that should
	suffice.
	(jit_insn_is_nan, jit_insn_is_finite, jit_insn_is_inf): return
	false for non-floating point values and do not use common_binary()
	as well.

2008-04-19  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-insn.c (jit_insn_sign): the dest value of the sign insn
	has to be int regardless of the argument type.

2008-04-13  Klaus Treichel  <ktreichel@web.de>

	* include/jit/Makefile.am:
	* include/jit/jit-arch-x86-64.h: new file with x86-64 architecture
	specific macros for stack frame inspection.

	* configure.in: check for x86-64 arch, add -fno-omit-frame-pointer
	flag.

	* include/jit/jit-walk.h: use _JIT_ARCH_GET_RETURN_ADDRESS and
	_JIT_ARCH_GET_CURRENT_RETURN if available.

	* jit/jit-gen-x86-64.h: Add additional macros for saving and
	restoring the fpu controlword and the mxcsr register. Add
	additional SSE conversion macros. Add SSE compare macros.
	Add macros for the SSE bit operations on packed values.
	Add macros for SSE sqrt and rounding. Add macros for fpu rounding.

	* jit/jit-rules-x86-64.c: Add the dreg register class and functions
	to handle rounding and SSE bit opcodes on packed values.

	* jit/jit-rules-x86-64.ins: Add INT_TO_NFLOAT, LONG_TO_NFLOAT,
	FLOAT32_TO_NFLOAT, FLOAT64_TO_NFLOAT.
	Rewrite NFLOAT_TO_INT and NFLOAT_TO_LONG to use the new functions
	in jit-rules-x86-64.c. Add handling of ABS, NEG and float compares.

2008-03-31  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86.ins: Fix the sign opcode for integers and the
	constant case for longs.

2008-03-30  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-gen-x86-64.h: Add macros for the test, imul, cdw/cdq/cqo
	and cmov instructions.

	* jit/jit-intrinsic.c (jit_int_sign, jit_long_sign): Return 1 for
	values greater than 0 instead of 0.

	* jit/jit-rules-x84-64.ins: Add IMUL, IDIV, IDIV_UN, IREM, IREM_UN,
	LMUL, LDIV, LDIV_UN, LREM and LREM_UN opcodes. Replace the compares
	with zero done with or with test instructions.

2008-03-29  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-rules-x86.ins: Fix signed division of negative values by a
	constant positive power of two.

2008-03-29  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply.c, tools/gen-apply.c: changes to apply needed for
	x86-64 support.

2008-03-25  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-interp.c (jit_function_apply_vararg): fix return code	if
	exception is thrown.

2008-03-24  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-function.c (cleanup_on_restart): Reset the epilog_fixup.

	* jit/jit-apply-x86-64.c: Move parameter passing handling from
	jit-rules-x86-64.c to this file because they are needed by apply too.

	* jit/jit-apply-x86-64.h: Add declarations needed for parameter passing.

	* jit/jit-gen-x86-64.h: Add macros for shift opcodes, register exchanges
	and moves from general purpose register to xmm register and vice versa.

	* jit/jit-rules-x86-64.c: Move parameter handling to jit-apply.x86-64.c.
	Add handling of structs in _jit_gen_load_value and _spill_reg. Fix more
	parameter passing issues.

	* jit/jit-rules-x86-64.ins: Do some cleanup. Add casts to jit_nint when
	checking for valid ranges. Add integer and long shift opcodes. Add
	memset opcode.

2008-03-04  Klaus Treichel  <ktreichel@web.de>

	* jit/Makefile.am: Add jit-rules-x86-64.inc to CLEANFILES to fix
	make distcheck.

2008-03-03  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-cache.h, jit/jit-cache.c, jit/jit-function.c (compile):
	modify cache algorithm to allow a method to occupy more than one
	cache page.

	* include/jit/jit-context.h: add JIT_OPTION_CACHE_MAX_PAGE_FACTOR
	option.
	* jit/jit-context.c (_jit_context_get_cache): use that option.

2008-03-02  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply-x86-64.h: define the sizes for indirector and
	redirector.

	* jit/jit-apply-x86-64.c: do either a memory indirect, RIP relative
	or register relative jump in the redirector whatever is appropriate
	for the address location in _jit_create_indirector.

	* jit/jit-gen-x86-64.h: add lots of additional code generation
	macros and fix some bugs.

	* jit/jit-insn.c: don't mark the current block dead after throwing
	an exception in jit_insn_call_intrinsic because this is handled in
	jit_insn_call_native if the flag JIT_CALL_NORETURN is specified.

	* jit/Makefile.am: Add the new files jit-rules-x86-64.c,
	jit-rules-x86-64.h and jit-rules-x86-64.ins to the sources.

	* jit/jit-rules.h: add the native backend for X86_64.

	* jit/jit-rules-x86-64.c, jit/jit-rules-x86-64.h,
	jit/jit-rules-x86-64.ins: add the first native  code generation for
	X86_64.

	* jit/jit-value.c: create a nint constant for long/ulong types in
	jit_value_create_constant on 64bit archs.

2008-02-29  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-plus.h, jitplus/jit-plus-jump-table.cpp:
	* jitplus/jit-plus-function.cpp, jitplus/Makefile.am: add
	jit_jump_table class and jit_function::insn_jump_table method, add
	jit-plus-jump-table.cpp file, move jit_build_exception class from
	jit-plus-function.cpp to jit-plus.h.

2008-02-26  Aleksey Demakov  <ademakov@gmail.com>

	* use LGPL 2.1 for all the rest - dpas, tools, tests, and doc.

2008-02-06  Aleksey Demakov  <ademakov@gmail.com>

	* auto_gen.sh: by popular demand restore this file although it only
	does "autoreconf -i -f" now.

	* tools/gen-rules-parser.y: update license and copyright notices.

2008-01-30  Klaus Treichel  <ktreichel@web.de>

	* jit/Makefile.am: Fix typo in my last commit.

2008-01-29  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply-x86-64.h: Fix the macros jit_builtin_return_int
	and jit_builtin_return_float.

	* jit/jit-apply-x86-64.c: Add closure support for x86_64.

	* jit/jit-gen-x86-64.h: Add first codegeneration macros for x86_64.

	* jit/Makefile.am: Add the two new files to the libjit sources.

2008-01-26  Aleksey Demakov  <ademakov@gmail.com>

	* auto_gen.sh: remove, use "autoreconf -i -f" instead (thanks
	Dalibor for the hint).
	* INSTALL, config.guess, config.sub, install-sh, missing: remove
	from CVS, these files are automatically generated by autoreconf.
	* mkinstalldirs: remove, this file is obsolete.

2008-01-25  Aleksey Demakov  <ademakov@gmail.com>

	* include/*, jit/*, jitplus/*, jitdynamic/*: use LGPL 2.1.
	* doc/libjit.texi: remove "Why GPL?" chapter.

2008-01-22  Aleksey Demakov  <ademakov@gmail.com>

	* COPYING.LESSER: add LGPL v2.1 file.

	* jit/*.c, jitplus/*.cpp, jitdynamic/*.c: fix texinfo markup for
	parameters. 

2008-01-21 Dalibor Topic <robilad@kaffe.org>

	* jit/Makefile.am (libjit_la_SOURCES): add mising jit-rules-interp.h
	file.

2008-01-16  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-gen-x86.h: Use the supplied base register instead of
	register no. 5 (EBP) in x86_memindex_emit for displacements greater
	than x86_int8 (<-128 or >127).

2008-01-04  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-opcode.c: Add the nint argument to the return_small_struct
	and flush_small_struct opcodes.

2008-01-03  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-opcode.c: Add the nint argument to the copy_struct opcode.

	* jit/jit-rules-interp.c (_jit_gen_start_block): Fix fixups for
	interpreter.

2007-12-31  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-apply-x86-64.h: Swap source and destination for the call
	of jit_memcpy in jit_builtin_apply so that they are in the correct
	order.

2007-12-28  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-interp.c: fix JIT_OP_LCMP_UN opcode.

2007-12-28  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-interp.c: Fix the opcodes JIT_OP_LADD, JIT_OP_ISHL,
	JIT_OP_LSHR_UN, JIT_OP_ICMP_UN, JIT_OP_LCMP and JIT_OP_LCMP_UN in
	the intpreter backend.

2007-12-24  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-gen-x86.h (x86_alu_reg16_imm): add macro.
	* jit/jit-rules-x86.ins: add JIT_OP_NFLOAT_TO_INT and
	JIT_OP_NFLOAT_TO_LONG rules.

2007-12-21  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-internal.h, jit/jit-context.c, jit/jit-function.c: 
	* jit/jit-interp.c: use on-demand driver for interpreter but skip
	indirector/redirector stuff for it.

2007-12-20  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-plus.h: add jit_context::build_start() and
	jit_context::build_end() methods.

	* include/jit/jit-function.h, jit/jit-function.c
	(jit_function_recompile): remove.
	* include/jit/jit-plus.h, jitplus/jit-plus-function.cpp
	(jit_function::recompile): remove.
	* tutorial/t3.c, tutorial/t4.cpp: recompile manually
	instead of using removed recompile functions.

	* doc/libjit.texi: update tutorial.

2007-12-16  Klaus Treichel  <ktreichel@web.de>

	* configure.in: Add support for multi os archs (like x86_64). Put the
	libraries in the correct directories so that 32- and 64-bit code doesn't
	get mixed up.

	* jit/jit-apply-x86-64.h: Add some information about the clobber list to
	jit_builtin_apply and add r10 and r11 to the clobber list because they
	are not preserved by the callee and we call arbitrary functions here.

	* jit/jit-internal.h: Cast _JIT_ALIGN_TO_TYPE to jit_nuint instead of
	unsigned because jit_nuint is guaranteed to have the size of a pointer.
	This fixes compiler warnings on x86_64 too.

2007-11-27  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.c (_jit_gen_load_value): fix compiler warnings.

2007-11-17  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_mark_offset): do not start new block
	on the bytecode mark. If a mark goes just after another mark then
	replace the old mark rather than add the new.

	* jit/jit-cache.c (_jit_cache_get_bytecode)
	(_jit_cache_get_native): fix offset for the last bytecode mark.

2007-11-13  Aleksey Demakov  <ademakov@gmail.com>

	* tools/Makefile.am (noinst_HEADERS): add gen-apply-macosx.h

2007-11-08  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-plus.h, jitplus/jit-plus-function.cpp (new_label):
	add c++ wrapper for jit_function_reserve_label.

	* include/jit/jit-plus.h (clear_recompilable): fix a typo.

2007-10-07  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins (JIT_OP_JUMP_TABLE): fix jump table code
	generation.

	* include/jit/jit-function.h: 
	* jit/jit-function.c (jit_function_reserve_label): add new function
	to create labels for jump tables.

2007-06-11  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (accumulate_relative_offset): remove.
	* jit/jit-insn.c (find_base_insn, jit_insn_load_relative)
	(jit_insn_store_relative, jit_insn_add_relative): add find_base_insn
	function that should finally optimize relative instructions
	correctly.

2007-06-10  Aleksey Demakov  <ademakov@gmail.com>

	* tools/gen-rules-parser.y (gensel_output_clauses): alter selection
	logic so that "reg" rules are chosen over "local" in case the value
	is used again in the same basic block.

	* jit/jit-rules-x86.ins: tweak COPY rules for bytes, shorts, and
	ints.

	* jit/jit-live.c (forward_propagation, backward_propagation)
	(is_copy_insn): do not perform copy propagation if JIT_OP_COPY_INT
	is used for byte and short values.

2007-05-28  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-live.c (forward_propagation, backward_propagation): do not
	optimize addressable and volatile values.

2007-05-28  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-live.c (_jit_function_compute_liveness)
	(forward_propagation, backward_propagation): add simple copy
	propagation that works only within basic blocks.

	* jit/jit-value.c (jit_value_ref): do not set the live flag here
	as this	is done in jit-live.c now.

2007-05-26  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-intrinsic.c: Fix conversion from ulong to nfloat for values
	greater that jit_max_long.

2007-05-26  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_store): remove incorrect optimization
	that eliminates intermediate value without knowledge of its later
	use.

2007-04-04  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (commit_output_value): fix compilation for
	archs without register stack (thanks Klaus).

2007-03-04  Aleksey Demakov  <ademakov@gmail.com>

	* configure.in: update working version to "0.1.1".

2007-03-03  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/Makefile.am: add jit-arch.h to BUILT_SOURCES.

	* doc/Makefile.am: add extract-docs.sh, mkhtml.sh, mkpdf.sh to
	EXTRA_DIST.

	* configure.in: bump version to 0.1.0.
	* NEWS: update news for the 0.1.0 release.

2007-02-25  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (adjust_assignment, _jit_regs_gen): the ops
	that have dest value on x87 stack but have no x87 input values need
	the dest register to be adjusted after spilling too.
	(is_register_occupied, clobbers_register): undo is_register_occupied
	logic introduced 2007-02-12.

2007-02-14  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-function.c (compile_block): check if cache is full and
	exit if so.

2007-02-13  Aleksey Demakov  <ademakov@gmail.com>

	* doc/texinfo.tex: remove an ancient file version from the tree.
	automake --add-missing as well as auto_gen.sh add an up-to-date
	version of it.

	* jit/jit-insn.c, jit/jit-rules-interp.c: 
	* jitplus/jit-plus-value.cpp, jitplus/jit-plus-function.cpp: fix
	texinfo comments.

2007-02-12  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-dump.c (jit_dump_function): flush the output stream upon
	dumping the function.

	* jit/jit-function.c (cleanup_on_restart, reset_value): add new
	functions to clean up the compilation state on restart.
	(compile): replace the code that did cleanup on restart with a call
	to cleanup_on_restart() which does this job more thoroughly.

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: remove _jit_regs_abort()
	function as the new cleanup-on-restart code makes it superflows.

	* jit/jit-reg-alloc.c (is_register_occupied): add new function;
	(clobbers_register, spill_clobbered_register, _jit_regs_gen): fix
	a problem that shows up with the new cleanup method.

	* tools/gen-rules-parser.y (gensel_output_clauses): the conditions
	for the local and frame patterns are changed. If the value is used
	before it is defined then both in_frame and in_register	flags are
	clear. This situation is perfectly valid if there is a backward
	branch form a point after the definition to a point before the use.
	So if the value is not a constant and it is not in a register assume
	that it is on the stack even if the in_frame flag is not set.

2007-02-10  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-function.c: Use the on-demand compilation driver in
	jit_function_apply too. Return the functions' entry point if the
	function is allready compiled in jit_function_compile_entry.

2007-02-04  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-common.h, include/jit/jit-context.h,
	* include/jit/jit-function.h, jit/jit-internal.h, jit/jit-context.c,
	* jit/jit-function.c: provide for user defined on-demand compilation
	driver and delayed function entry point setup.

2007-01-28  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (_jit_regs_gen, set_regdesc_flags): fix bugs
	introduced 2006-12-30 with loading registers for ternary ops and
	handling input register thrash.

2007-01-26  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-arch-x86.h (_JIT_ARCH_GET_CURRENT_FRAME): tweak
	gcc version of the macro.

	* jit/jit-apply-x86.c (_jit_create_redirector): redirector does not
	use stack frame so remove frame set up and restore instructions.

2007-01-23  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-internal.h, jit/jit-function.c: remove the closure_entry
	field from jit_function_t. Find this value on the fly in
	jit_function_to_closure() and jit_function_to_vtable_pointer()
	to be equal either to entry_point or indirector fields.

	* jit/jit-rules-alpha.ins, jit/jit-rules-x86.ins: use
	jit_function_to_closure() instead of the closure_entry field.

2007-01-17  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: complete special x87
	arithmetic support, for other x87 instructions reverse the order of
	arguments on the stack.

	* jit/jit-rules-x86.ins: take advantage of regalloc's x87 arithmetic
	support. Also do not clobber the entire x87 stack for atan, sin, and
	cos rules.

2007-01-12  Heiko Weiss <heiko.weiss@de.trumpf-laser.com>

	* jit/jit-function.c: Fix a typo in jit_function_from_vtable_pointer
	which breaks the build if libjit is built in interpreter mode.

2007-01-04  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-rules-alpha.c: register class should not include FIXED
	registers.

	* .cvsignore, tools/.cvsignore, tutorial/.cvsignore: updated
	the .cvsignore files to ignore some generated files.

2007-01-03  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-rules-alpha.c: initialize alpha register classes.
	Fix signed-ness warnings.

2007-01-02  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: add JIT_OP_IMIN_UN rule (based on the
	  patch #5540 by Kirill Kononenko).

	* jit/jit-reg-alloc.c (set_regdesc_value, set_regdesc_register)
	(choose_output_register): handle EARLY_CLOBBER flag for dest value.

2006-12-30  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-class.c, jit/jit-reg-class.h, jit/Makefile.am: add
	register classes.

	* jit/jit-rules-x86.c (_jit_init_backend): initialize x86 register
	classes.

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: specify register class
	for each value and scratch register. Clean up interface.

	* tools/gen-rules-scanner.l, tools/gen-rules-parser.y: add register
	class declaration; "reg", "lreg", "freg" are not keywords anymore.
	"scratch" requires register class specification. "clobber" accepts
	register class which means all registers in the class are clobbered.
	Remove "only", "spill_before", "unary", and "binary" keywords.
	Replace "unary_note" and "binary_note" with "note". Also replace
	"unary_branch" and "binary_branch" with "branch".

	* jit/jit-rules-alpha.ins, jit/jit-rules-x86.ins: update according
	to the new rule syntax.

2006-12-20  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-thread.h, jit/jit-thread.c: add _jit_global_lock mutex.
	* jit/jit-init.c (jit_init): make sure that initialization is done
	  only once.

2006-12-17  Klaus Treichel  <ktreichel@web.de>

	* include/jit/jit-function.h, jit/jit-function.c: Add the function
	jit_function_from_vtable_pointer to convert a vtable pointer back to
	the jit_function_t.

2006-11-29  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (save_value): fix bug freeing stack register
	that is not on the stack top.

2006-11-27  Kirill Kononenko  <Kirill.Kononenko@gmail.com>

	* jit/jit-rules-x86.c (throw_builtin):
	* jit/jit-rules-x86.ins (JIT_OP_THROW, JIT_OP_LOAD_PC): directly use
	the inst variable to get current PC value for the position-dependent
	code case (patch #5503).

2006-11-27  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-context.h: add JIT_OPTION_POSITION_INDEPENDENT
	option.
	* jit/jit-internal.h (struct _jit_builder): add position_independent
	field.
	* jit/jit-function.c (_jit_function_ensure_builder): initialize
	position_independent field.

	* jit/jit-rules-x86.c (throw_builtin):
	* jit/jit-rules-x86.ins (JIT_OP_ADDRESS_OF_LABEL, JIT_OP_JUMP_TABLE)
	(JIT_OP_THROW, JIT_OP_LOAD_PC): add position_independent check and
	stub missing cases.

2006-11-26  Kirill Kononenko  <Kirill.Kononenko@gmail.com>

	* jit/jit-rules-x86.ins: if JIT_USE_SIGNALS is defined do not emit
	explicit division by zero check (patch #5278).

2006-11-26  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (choose_output_register): fix global register
	use cost computation.

	* jit/jit-rules-x86.ins: mark as commutative JIT_OP_IADD,
	JIT_OP_IMUL, JIT_OP_LADD, JIT_OP_IAND, JIT_OP_IOR, JIT_OP_IXOR,
	JIT_OP_LAND, JIT_OP_LOR, JIT_OP_XOR rules.

2006-11-25  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (exch_stack_top, free_value): fix freeing
	stack registers.

2006-11-25  Kirill Kononenko  <Kirill.Kononenko@gmail.com>

	* jit/jit-rules-x86.ins: add JIT_OP_ISIGN and JIT_OP_LSIGN rules
	(patch #5533), optimize JIT_OP_LNEG rule (patch #5555). [with
	some modifications by Aleksey Demakov.]

2006-11-11  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: add JIT_OP_IABS and JIT_OP_LABS rules.

2006-11-04  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: make comparison opcodes use three-address
	patterns.

2006-11-01  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (commit_input_value, commit_output_value):
	do not increment/decrement the top of the register stack in case of
	fp-value coalescing.

2006-10-23  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: JIT_OP_EXPAND_INT and JIT_OP_EXPAND_UINT
	rules were broken for local byte or short values. Fixed by removing
	the local pattern altogether as the reg pattern produces the same
	code but without the bug.

2006-10-18  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (clobbers_register, bind_value): enable
	coalescing of the destination value of a copy operation with the
	source value in a single register.

	* jit/jit-rules-x86.ins: tag COPY rules with the "copy" keyword
	and change patterns of TRUNC rules to have a separate destination
	register.

2006-10-16  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-interp.h, jit/jit-interp.c (_jit_run_function): 
	* jit/jit-opcode.c, jit/jit-rules-interp.c (_jit_gen_insn): Repair
	struct handling broken since the last interpreter reorganization,
	remove unused interpreter opcodes.

	* jit/jit-rules-interp.c (_jit_gen_start_block): check if the fixup
	position is before the cache end. This prevents segmentation fault
	when the end of cache block is reached and jit_function_compile()
	attempts to generate more code (it checks for the cache end way too
	late).

2006-10-14  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-interp.c (_jit_create_call_return_insns): fix return
	code in case of no return value or struct returned via pointer (this
	is just like 2006-02-20 fix for x86).

	* jit/jit-cfg.c (create_value_entry): an uninitialized value was
	used (thanks Klaus for spotting).

2006-10-02  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-intrinsic.c: Fix a copy bug in jit_ulong_mul (replace - by *).

2006-09-25  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-arch-x86.h, include/jit/jit-arch-generic.h: add
	headers for architecture-specific definitions.
	(_JIT_ARCH_GET_CURRENT_FRAME): add macro to find the stack frame
	pointer.

	* include/jit/Makefile.am: create jit-arch.h as a symlink to one of
	the jit-arch-*.h files depending on the JIT_ARCH value.
	* configure.in: set JIT_ARCH according to the system architecture.

	* include/jit/jit-walk.h (jit_get_current_frame):
	* jit/jit-walk.c (jit_get_starting_frame):
	* tools/gen-apply.c (find_return_offset, detect_frame_offsets): use
	_JIT_ARCH_GET_CURRENT_FRAME macro if available. This resolves the
	problem	with gcc 4.1.* where __builtin_frame_address() function is
	broken (thanks Klaus for identifing the problem).

2006-09-15  Radek Polak <psonek2@seznam.cz>

        * include/jit/jit-insn.h, jit/jit-insn.c, jit/jit-debugger.c: new
        instruction jit_insn_mark_breakpoint_variable.

2006-09-14  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: remove "old" register
	allocation code.

	* configure.in: remove --enable-new-reg-alloc option.

	* jit/jit-rules-x86.ins: simplify JIT_OP_RETURN_LONG rule, lift code
	from load_small_struct() function to JIT_OP_RETURN_SMALL_STRUCT rule.
	* jit/jit-rules-x86.c: remove load_small_struct() function.

2006-09-09  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c:
	* tools/gen-rules-parser.y: add _JIT_REGS_CLOBBER_STACK flag and use
	it in the code generated for "only" rules instead of the explicit
	stack top check followed by the _jit_regs_spill_all() call.

2006-09-02  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-interp.c (_jit_run_function):
	* jit/jit-rules-interp.c (_jit_gen_insn): remove last traces of
	register allocation from the interpreter.

2006-08-31  Klaus Treichel  <ktreichel@web.de>

	* configure.in: Replace the deprecated AM_PROG_LIBTOOL with the current
	AC_PROG_LIBTOOL.

	* jitdynamic/Makefile.am, jitplus/Makefile.am: Add -no-undefined to the
	LDFLAGS to enable building cygwin/mingw dlls.

2006-08-31  Aleksey Demakov  <ademakov@gmail.com>

	* tools/gen-rules-scanner.l, tools/gen-rules-parser.y: add "frame"
	keyword that is just like "local" but forces the value out from the
	register into the stack frame.

	* jit/jit-rules-x86.ins: rewrite JIT_OP_COPY_STORE_BYTE,
	JIT_OP_ADDRESS_OF, and JIT_OP_COPY_STORE_SHORT rules using the
	"frame" keyword.

	* jit/Makefile.am, jit/jit-rules-x86.c: remove all references to
	jit-rules-x86.sel and jit-rules-x86.slc.

	* jit/jit-rules-x86.c: remove mov_memindex_reg_byte() and
	widen_byte() functions.

2006-08-30  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-interp.h, jit/jit-interp.c, jit/jit-opcode.c,
	jit/jit-rules-interp.h, jit/jit-rules-interp.c: major change in the
	internal interpreter instruction set. Now the stack is used only for
	function arguments. There are three pseudo-registers used instead of
	the stack for operands. One is used for the destination value, two
	others are used for the source values. The destination register is
	spilled after each instruction. This scheme obviates the need for
	register allocation for the interpreter backend.

	* jit/jit-function.c (jit_function_compile, compile_block): do not
	make register allocator calls if JIT_BACKEND_INTERP is defined.

2006-08-29  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-function.c (jit_function_from_pc): fix problem with wrong
	exception handler address for interpreter.

	* jit/jit-insn.c (jit_insn_return, jit_insn_return_ptr): do not pop
	the setjmp context for the interpreter backend because it takes care
	of this by itself.

	* jit/jit-rules.h, jit/jit-rules-alpha.c, jit/jit-rules-arm.c,
	* jit/jit-rules-interp.c, jit/jit-rules-x86.c, jit/jit-reg-alloc.c:
	move part of the _jit_gen_exch_top() functionality into a separate
	_jit_gen_move_top() function.

	* include/jit/jit-opcode.h:
	* jit/jit-opcode.c: add JIT_OPCODE_IS_JUMP_TABLE flag to mark the
	JIT_OP_JUMP_TABLE opcode.

	* jit/jit-dump.c (jit_dump_insn, dump_interp_code): add jump table
	dumping.

2006-08-28  Klaus Treichel  <ktreichel@web.de>

	* dpas/Makefile.am, jit/Makefile.am, tests/Makefile.am: Add missing
	sources to fix creation of tarballs (make dist).

2006-08-25  Yan Burman  <yan_952@hotmail.com>

	* jitdynamic/jit-cpp-mangle.c (mangle_type_gcc3): fix typo in
	is_unsigned usage (patch #5324)

2006-08-23  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-apply-alpha.c jit/jit-apply-alpha.h: Fix jit_redirector_size.
	alpha_call is 6 instructions, not 1. 5 to load the addr, 1 to call.

	* jit/jit-gen-alpha.h: add macros for fp sign copy and arithmetic.

	* jit/jit-rules-alpha.c: remove TODO() from unused functions.

2006-08-23  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-internal.h (struct _jit_function): change the type of
	redirector and indirector fields from char array to pointer.
	* jit/jit-function.c (jit_function_create): allocate the redirector
	and indirector buffers in the code cache. Call jit_flush_exec on
	these buffers. This fixes problems on alpha and some x86 linux
	distros. [This one is based on the initial solution suggested by
	Kirill Kononenko <Kirill.Kononenko@gmail.com>].

	* jit/jit-rules-x86.c (_jit_gen_redirector): ifdef out as this
	function is not used with the x86 backend.

	* jit/jit-reg-alloc.c: improve handling of three-address op codes.
	Now the dest register may re-use one of the input registers while
	previously it was always assigned to a separate register. Also
	restructure the code that will be used for better selection of x87
	instructions (this code was not used before and still is not but
	this is about to change).

	* jit/jit-rules-x86.ins: rewrite all LOAD_RELATIVE and LOAD_ELEMENT
	ops for x86 as three-address. Adjust IREM ops so that they work
	correctly together with the latest allocator changes.

2006-08-22  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-alloc.c: Use mmap and munmap to allocate executable memory
	where available because memory allocated with malloc is not executable
	on some archs/distros.

2006-08-21  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-rules-alpha.c jit/jit-gen-alpha.h: Add macros for
	int to fp and fp to int conversions. Use _jit_pad_bufer.

2006-08-20  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-apply-alpha.c jit/jit-apply-alpha.h jit/jit-rules-alpha.h
	jit/jit-rules-alpha.ins jit/jit-rules-alpha.c jit/jit-gen-alpha.h:
	Remove unnecessary code from the prolog, epilog, redirector, and
	closure. Implement > and >= opcodes for signed and unsigned values.

2006-08-19  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (set_regdesc_flags): fix a problem with the
	clobber	flag being ignored. The problem was introduced by the patch
	from 2006-06-17.

2006-08-15  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-rules-alpha.c jit/jit-rules-alpha.h jit/jit-rules-alpha.ins
	Add a TODO() macro to print unimplemented warnings. Fix some 
	casting warnings. Implement _jit_gen_redirector(...). Fix
	JIT_CDECL_WORD_REG_PARAMS to use the correct parameter 
	registers. Add some stack push and pop instructions.

2006-08-15  Kirill Kononenko  <Kirill.Kononenko@gmail.com>

	* configure.in: add --enable-signals option;
	* jit/Makefile.am: add jit/jit-signal.c;
	* jit/jit-signal.c, jit/jit-internal.h: add _jit_signal_init();
	* jit/jit-init.c: call _jit_signal_init() if JIT_USE_SIGNALS is
	defined. (patch #5278.)

2006-08-11  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-rules-alpha.c jit/jit-rules-alpha.ins Properly handle
	fixups on alpha. Implement JIT_OP_CALL_EXTERNAL for alpha.

2006-07-29  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (use_cheapest_register): allow a register that
	contains an input value to be used as a scratch register. The input
	value in this case is copied to another register. This resolves the
	problem with JIT_OP_IREM rule that failed to allocate a scratch reg
	in a very specific case (all EBX, ESI, EDI regs are used as global,
	dividend is initially in ECX and copied to EAX:EDX pair where x86
	idiv expects it to be).

	* jit/jit-reg-alloc.c (set_regdesc_flags): fix a bug.

2006-07-23  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-apply-alpha.c jit/jit-apply-alpha.h jit/jit-apply-func.h
	jit/jit-gen-alpha.h jit/jit-rules-alpha.c jit/jit-rules-alpha.h
	jit/jit-rules-alpha.ins Implement the redirector for alpha. 
	Continue to implement more functions in jit/jit-rules-alpha.c.

2006-07-15  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-apply-alpha.c jit/jit-gen-alpha.h jit/jit-rules-alpha.h
	jit/jit-rules-alpha.c: Implement closure for alpha. Use jsr 
	instead of bsr in alpha_call. Clean up prolog and epilog 
	generation for alpha to be more readable.

2006-07-13  Thomas Cort  <linuxgeek@gmail.com>

	* jit/jit-gen-alpha.h jit/jit-rules-alpha.c jit/jit-rules-alpha.h:
	Added trap barrier macro alpha_trapb. Implemented 
	_jit_gen_prolog and _jit_gen_epilog for alpha.

2006-07-12  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_move_blocks_to_start): fix problem with
	wrong order of blocks that were moved from the position just after
	the init_block and with disappearance of blocks after the empty
	init_block.

2006-07-12  Thomas Cort  <linuxgeek@gmail.com>

	* README.alpha jit/Makefile.am jit/jit-apply-alpha.c 
	jit/jit-apply-alpha.h jit/jit-elf-defs.h jit/jit-gen-alpha.h
	jit/jit-rules-alpha.c jit/jit-rules-alpha.h 
	jit/jit-rules-alpha.ins /jit/jit-rules.h: Initial import of the
	code for the alpha port.

2006-07-06  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: fix division by power of two.

2006-07-05  Aleksey Demakov  <ademakov@gmail.com>

	* configure.in: make new register allocator the default.

	* jit/jit-reg-alloc.c (is_register_alive, compute_spill_cost): fix
	problem with destroying the end register of a long pair.

2006-07-03  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: add JIT_OP_LOW_WORD, JIT_OP_EXPAND_INT,
	JIT_OP_EXPAND_UINT, JIT_OP_INT_TO_NFLOAT, JIT_OP_UINT_TO_NFLOAT,
	JIT_OP_LONG_TO_NFLOAT, JIT_OP_ULONG_TO_NFLOAT and rewrite
	JIT_OP_TRUNC_SBYTE, JIT_OP_TRUNC_UBYTE, JIT_OP_LOAD_PC rules.

	* jit/jit-rules-x86.c (_jit_opcode_is_supported): include .inc file
	instead of .slc if USE_NEW_REG_ALLOC is defined.

2006-06-28  Aleksey Demakov  <ademakov@gmail.com>

	* tools/gen-rules-parser.y (gensel_output_code): 
	* jit/jit-rules-x86.ins: use $1 for dest register instead of $0
	for consistency.

2006-06-27  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (accumulate_relative_offset): add function that
	accumulates JIT_OP_ADD_RELATIVE offsets.
	(jit_insn_store_relative, jit_insn_load_relative)
	(jit_insn_add_relative): use accumulate_relative_offset() instead
	of previous_relative() to find the offset from the original address
	and do not replace the accumulated instructions with JIT_OP_NOP as
	it was before. The old approach is problematic because it is unknown
	at this point if the values we accumulated are dead or they will be
	used by instructions added later. The dead code elimination pass
	removes unused values just as well but with enough knowledge to	be
	safe. The new code also does not move JIT_OP_ADDRESS_OF towards	the
	relative instructions that uses the address. Supposedly such move
	may be used by the code generator as a hint. However currently the
	code generator does not use such a hint. The old code is kept for
	reference #ifdefed out.

2006-06-17  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: implement support of the
	JIT_REGS_FREE_DEST flag for 3-argument instructions. Tweak reg alloc
	API.

	* tools/gen-rules-parser.y: adjust for reg alloc API changes. Use
	'$0' pattern element to refer to destination register in 3-argument
	instructions.

	* jit/jit-rules-x86.ins: rewrite JIT_OP_IDIV, JIT_OP_IDIV_UN,
	JIT_OP_IREM, JIT_OP_IREM_UN, JIT_OP_ADDRESS_OF_LABEL,
	JIT_OP_LOAD_RELATIVE_FLOAT32, JIT_OP_LOAD_RELATIVE_FLOAT32,
	JIT_OP_LOAD_RELATIVE_NFLOAT, JIT_OP_LOAD_ELEMENT_FLOAT32,
	JIT_OP_LOAD_ELEMENT_FLOAT64, JIT_OP_LOAD_ELEMENT_NFLOAT rules.

2006-06-16  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.sel, jit/jit-rules-x86.ins: fix JIT_OP_IDIV	and
	JIT_OP_IREM rules for the divisor value of -1.

2006-06-09  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: rewrite JIT_OP_STORE_RELATIVE_BYTE,
	JIT_OP_STORE_RELATIVE_SHORT, JIT_OP_STORE_RELATIVE_LONG,
	JIT_OP_STORE_RELATIVE_FLOAT32, JIT_OP_STORE_RELATIVE_FLOAT64,
	JIT_OP_STORE_RELATIVE_NFLOAT, JIT_OP_STORE_ELEMENT_LONG,
	JIT_OP_STORE_ELEMENT_NFLOAT rules to use regular pattern
	syntax instead of manual.

2006-06-03  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: remove _jit_regs_free_reg() call from
	JIT_OP_RETURN_FLOAT32, JIT_OP_PUSH_FLOAT32, JIT_OP_RETURN_FLOAT64,
	JIT_OP_RETURN_NFLOAT, JIT_OP_PUSH_FLOAT64, and JIT_OP_PUSH_NFLOAT
	rules. With new ``gen-rules'' tool it frees wrong register and
	the right register is anyway freed automatically by the new
	allocator.

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c (_jit_regs_abort): add
	function to unbind values from registers if the code generation
	failed. This is required because new allocator may temporary bind
	constants to registers and if neither _jit_regs_commit() nor
	_jit_regs_abort() is called the constant value will be left in
	inconsistent state. The problem shows up when the end of a cache
	block has been reached and the compilation is restarted with a new
	block.

	* jit/jit-reg-alloc.c (_jit_regs_begin, _jit_regs_end):	add
	convenience functions.

	* tools/gen-rules-parser.y (gensel_output_clauses): make generated
	code more readable by using _jit_regs_begin() and _jit_regs_end()
	where appropriate.

	* jit/jit-reg-alloc.c: allow to load the second part of a register
	pair to a global register. This is because x86 long arithmetics
	use 4 registers at once: EAX:EDX and ECX:EBX. At the same time
	EBX is the global register candidate. If the instruction clobbers
	the global register, the new allocator automatically pushes it on
	the stack before and pops after the instruction.

	* jit/jit-function.c (compile_block): modify trace messages.

2006-05-28  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-insn.c: Add a code_label in initialize_setjmp_block just
	before the end_label that is moved with the block to the start of
	the function as jump target to the code. Otherwise other blocks
	moved to the start after this block will never be executed.

2006-05-27  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (free_value, save_value): the value that has
	a global register and is also associated with a local register
	needs to be unbound from the local one.

	* jit/jit-reg-alloc.c (compute_spill_cost): assume that the spill
	cost for clean values is not zero. This keeps them in registers
	as long as there are free registers and thus reduces the number of
	loads.
	
2006-05-25  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (use_cheapest_register): fix cost calculation
	again for 'spill_before' rules. The last patch did not work for
	values stored in global registers. Now both global and non-global
	values should be copied to EAX.

2006-05-25  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (use_cheapest_register): fix cost calculation
	that sometimes caused overlooking free registers. This was a serious
	problem as there are some 'spill_before' rules that assume that the
	allocator will always choose EAX as the first free register.

2006-05-21  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h: add _JIT_REGS_FREE_DEST flag to be used in
	cases when the destination register is independent of any input
	register.
	* tools/gen-rules-parser.y: allow specification	of independent
	destination register with '=reg' pattern syntax. (But the allocator
	does not yet handle this.)

2006-05-20  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.c (_jit_gen_exch_top): fix computation of stack
	register index.

	* jit/jit-reg-alloc.c (_jit_regs_assign): micro optimization by
	changing nesting order of for and if statements.

2006-05-19  Aleksey Demakov  <ademakov@gmail.com>

	* jit-reg-alloc.h, jit/jit-reg-alloc.c: determine if input values
	need to be saved and evicted from registers to stack frame at the
	_jit_regs_assign() time. Uniformly save input values that need to
	in _jit_regs_gen(), do not save them in _jit_regs_commit(). This
	simplifies handling of stack registers. Remove initial_stack_top,
	exchanges, num_exchages fields from the _jit_regs_t struct. Add
	save and kill bit fields to the _jit_regdesc_t struct. Refactor
	and clean up code.

2006-05-10  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (use_cheapest_register): check if the other
	part of a register pair clobbers global registers.

	* jit/jit-reg-alloc.c (exch_stack_top): run value exchange loop
	for all values in both registers.

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: delete on_stack field
	from the _jit_regdesc_t struct.

	* jit/jit-reg-alloc.c (_jit_regs_gen): handle instructions that have
	both stack and flat registers.

	* jit/jit-reg-alloc.c (spill_value): spilling an input value remember
	if we do register exchanges for other values.

	* jit/jit-reg-alloc.c: set touched registers more accurately.

2006-05-08  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.c (commit_input_value, commit_output_value):
	fix extra spills introduced at 2006-05-05.

	* jit/jit-rules-x86.c (_jit_gen_spill_top): add missing
	jit_cache_end_output().

2006-05-05  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: fix spilling and many
	problems with stack registers.

2006-05-04  Radek Polak  <psonek2@seznam.cz>

	* jit/jit-dump.c (dump_object_code): Now can dump to any stream
	not just stdout and stderr.

2006-05-01  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.sel, jit/jit-rules-x86.ins: fix problem with
	spilling dest register in JIT_OP_ADDRESS_OF rule.

	* jit/jit-rules-x86.ins: rewrite JIT_OP_STORE_RELATIVE_INT rule.

2006-04-23  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: register allocator now
	supports register sets that constrain the register assignment.

	* tools/gen-rules-parser.y: extend grammar to support register sets.
	Fix bugs.

	* jit/jit-rules-x86.ins: take advantage of new register allocator
	for JIT_OP_MEMORY, JIT_OP_MEMOVE, JIT_OP_MEMESET rules.

2006-04-20  Aleksey Demakov  <ademakov@gmail.com>

	* tools/gen-rules-parser.y: fix generation of `if' pattern code.

2006-04-19  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.c (_jit_gen_load_value): fix compiler warning.

	* tools/gen-rules-parser.y (gensel_output_clauses): fix generation
	of clobber and scratch code.

	* tools/gen-rules-scanner.l, tools/gen-rules-parser.y: add `any'
	keyword.

2006-04-18  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.ins: add instruction selection rules for new
	register allocator.
	* jit/Makefile.am: build new instruction selection rules.
	* configure.in: add --enable-new-reg-alloc option.

2006-04-14  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h, jit/jit-reg-alloc.c: new register allocator
	improved and extended to support stack registers.

	* jit/jit-internal.h (struct _jit_builder): 
	* jit/jit-function.c (compile_block, jit_function_compile): add
	some tracing.

	* jit/jit-rules.h:
	* jit/jit-rules-arm.c:
	* jit/jit-rules-interp.c: 
	* jit/jit-rules-x86.c: add _jit_gen_exch_top and _jit_gen_spill_top
	functions used by new allocator to handle stack registers. Add reg
	argument to _jit_gen_spill_global and_jit_gen_load_global
	functions.

2006-04-11  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_start_catcher): initialize
	thrown_exception (the problem was found by Klaus).

2006-04-08  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-opcode.c: add jump table into jit_opcodes array.

	* tools/gen-rules-parser.y: extend pattern syntax to allow mark
	  registers as clobbered. Fix bugs.

2006-04-07  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-internal.h (struct _jit_function): add indirector field.
	* jit/jit-function.c (jit_function_compile, jit_function_create):
	  use indirector.
	* jit/jit-apply-x86.h: define jit_indirector_size.
	* jit/jit-apply-func.h, jit/jit-apply-x86.c (_jit_create_indirector):
	  add function that emits indirector code.

2006-04-07  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (create_call_setup_insns): zero struct_return
	in case of tail calls (the problem was found by Klaus).

2006-04-03  Aleksey Demakov  <ademakov@gmail.com>

	* tools/gen-rules-scanner.l:
	* tools/gen-rules-parser.y: add `reversible', `x87arith',
	  and `copy' keywords. Fix bugs.

2006-03-23  Klaus Treichel  <ktreichel@web.de>

	* jit/jitc-except.c: Walk the stack to build the stack trace in
	jit_exception_get_stack_trace when the frame is not broken.

2006-03-23  Aleksey Demakov  <ademakov@gmail.com>

	* tools/Makefile.am: 
	* tools/gen-rules-parser.y, tools/gen-rules-scanner.l: add
	"gen-rules" tool that is similar to "gen-sel" but uses new
	register allocator.

2006-03-12  Klaus Treichel  <ktreichel@web.de>

	* jit/jit-insn.c: Pop the setjump context on return from functions
	with a catcher.

2006-03-11  Kirill Kononenko  <Kirill.Kononenko@gmail.com>

	* jit/jit-insn.c (create_call_setup_insn): fix tail calls, work
	if the called function is not the callee function
	(thanks klausT for finding the bug).

2006-02-27  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_convert): fix int->uint and uint->int
	conversion.

2006-02-26  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.sel: fix JIT_OP_STORE_RELATIVE_LONG.

	* jit/jit-gen-x86.h (x86_pop_mem, x86_pop_membase): fix opcode --
	  it was 0x87 (xchg) instead of 0x8f (pop).

2006-02-24  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_address_of_label): fix a typo.
	* jit/jit-rules-x86.sel: fix JIT_OP_ADDRESS_OF_LABEL rule.

2006-02-20  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.c (_jit_create_call_return_insns): fix return
	code in case of no return value or struct returned via pointer.

2006-02-19  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-reg-alloc.h: 
	* jit/jit-reg-alloc.c: Initial version of new local register
	  allocator.

	* jit/jit-rules.h: 
	* jit/jit-rules-arm.c (_jit_gen_spill_global): 
	* jit/jit-rules-interp.c (_jit_gen_spill_global): 
	* jit/jit-rules-x86.c (_jit_gen_spill_global): add function for
	spilling global registers. Used by the new allocator. Only x86
	version is really implemented.

2006-02-13  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-internal.h (struct _jit_value): add index field.
	* jit/jit-value.c (alloc_value): initialize index field;
	* jit/Makefile.am (libjit_la_SOURCES): add jit-bitset.c and jit-cfg.c.

2006-02-12  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.sel: fix JIT_OP_CALL_FINALLY.

2006-02-10  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-bitset.c: 
	* jit/jit-bitset.h: 
	* jit/jit-cfg.c:
	* jit/jit-cfg.h: initial code drop for a more precise liveness
	analysis based on control flow graph.

2006-02-04  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.sel: fix a typo in JIT_OP_JUMP_TABLE.

2006-01-30  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.c (_jit_gen_load_value): optimize loading
	of zero constants. Allow to move a value from one register to
	another.

2006-01-15  Rhys Weatherley  <rweather@southern-storm.com.au>

	* configure.in, NEWS: update version for the "0.0.6" release.

	* configure.in: updating working version to "0.0.7".

2006-01-14  Aleksey Demakov  <ademakov@gmail.com>

	* tools/gen-sel-parser.y: spilling a register which is the first
	part of a register pair spill the other part too.

	* jit/jit-reg-alloc.c (free_register_for_value):
	* jit/jit-rules-x86.sel: if a register is the second part of a
	register pair do not consider it free.

2006-01-13  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c: fix all descriptors of intrinsic functions that
	return an exception code to have return_type equal to
	_jit_type_int_def.

	* jit/jit-dump.c (dump_object_code): fix object file extension.

2006-01-11  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-gen-x86.h (x86_jump_memindex): add macro for indirect
	jumps.
	* jit/jit-internal.h, jit/jit-function.c, jiy/jit-rules-x86.c:
	add fixup_absolute_list field to _jit_block struct for fixing up
	absolute address references to a block.
	* include/jit/jit-opcode.h, include/jit/jit-insn.h, jit/jit-insn.c
	(jit_insn_jump_table), jit/jit-rules-x86.sel, jit/jit-rules-interp.c
	(_jit_gen_insn), jit/jit-interp.c (_jit_run_function):
	add JIT_OP_JUMP_TABLE opcode.

2006-01-08  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-apply-x86.h (jit_builtin_return_int): change definition
	to dereference the return_buf argument and use leal instead of movl.
	This fixes builds with gcc 4.0.2.

2005-12-28  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.sel: implement JIT_OP_MEMMOVE rule. Get rid of
	compiler warnings in JIT_OP_MEMSET.

2005-12-24  Avinash Atreya  <avinashatreya@gmail.com>

	* dpas/dpas-parser.y: implement array expressions (committed by Aleksey
	Demakov, jit_insn_throw replaced with throw_builtin_exception)

2005-12-24  Aleksey Demakov  <ademakov@gmail.com>

	* include/jit/jit-except.h, jit/jit-except.c (jit_exception_builtin): 
	add JIT_RESULT_OUT_OF_BOUNDS builtin exception type code.

	* dpas/dpas-parser.y (throw_builtin_exception): add static function
	that makes jit_exception_builtin call.

	* jit/jit-cache.c (_jit_cache_get_start_method): add function that
	for an address in cache returns the start address of the block that
	contains it.
	* jit/jit-except.c (jit_stack_trace_get_offset): use
	_jit_cache_get_start_method function instead of cache_start field.
	* jit/jit-internal.h, jit/jit-function.c (jit_function_compile):
	remove cache_start field to the jit_function struct.

2005-12-22  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-rules-x86.sel: implement JIT_OP_MEMSET and JIT_OP_MEMCPY
	rules optimized	for small constant size blocks.

2005-12-20  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-gen-x86.h (x86_fld_memindex, x86_fld80_memindex)
	(x86_fst_memindex, x86_fst80_memindex): add floating point load
	and store macros with memindex addressing.

	* jit/jit-rules-x86.sel: optimize floating point element load
	and store rules. Fix potential register allocation problems.

2005-12-18  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-internal.h, jit/jit-function.c (jit_function_compile):
	Add cache_start field to the jit_function struct, set it to the start
	of the function code cache.

	* jit/jit-except.c (jit_stack_trace_get_offset): implement the
	function.

2005-12-15  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-insn.c (jit_insn_address_of): return null if the value is
	constant.

2005-12-15  Avinash Atreya  <avinashatreya@gmail.com>

	* jit/jit-insn.c: Store constants to a temporary to obtain
	address of constant values (Gopal).

2005-12-13  Aleksey Demakov  <ademakov@gmail.com>

	* configure.in: Added --enable-long-double option that forces
	jit_nfloat to be long double.

	* jit/jit-apply-x86.h (jit_builtin_apply, jit_builtin_return_float):
	In gcc/Win32 and gcc/non-Win32 versions of the macros check the size
	of jit_nfloat and use fstpl/fldl or fstpt/fldt instructions
	accordingly.

	* tools/gen-apply.c (detect_float_return): On x86 only the first
	10 bytes of 12 byte long doubles are significant and are used for
	comparison.

2005-12-12  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-dump.c (dump_object_code): in order to make dump work on
	cygwin call "as" and "objdump" in two separate system() calls because
	it looks like the ';' separator between commands does not work there.
	Also on Win32 use TMP and TEMP environment variables as the tmp
	directory names and fallback to "c:/tmp".

	* jit/jit-gen-x86.h (jit_assert): change the macro definition to
	resolve	problems introduced at 2005-12-10.

2005-12-10  Aleksey Demakov  <ademakov@gmail.com>

	* jit/jit-gen-x86.h: Merged changes from the latest Mono project's
	version	of this file.

	* jit/jit-rules-x86.sel: Done the following rules:
	JIT_OP_LOAD_ELEMENT_FLOAT32, JIT_OP_LOAD_ELEMENT_FLOAT64,
	JIT_OP_LOAD_ELEMENT_NFLOAT, JIT_OP_STORE_ELEMENT_LONG,
	JIT_OP_STORE_ELEMENT_FLOAT32, JIT_OP_STORE_ELEMENT_FLOAT64,
	JIT_OP_STORE_ELEMENT_NFLOAT.

2005-11-19  Klaus Treichel  <ktreichel@web.de>

	* jit/apply-x86-64.h: Change definition of JIT_MEMCPY from "jit_memcpy" to
	"jit_memcpy@PLT" to fix the build of a shared library for x86_64.

2004-11-18  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/jit-opcode.h, jit/jit-dump.c, jit/jit-insn.c,
	jit/jit-interp.c, jit/jit-opcode.c, jit/jit-rules-interp.c,
	jit/jit-rules-x86.sel: implement tail calls properly.

2004-11-05  Evin Robertson  <evin@users.sourceforge.net>

	* jit/jit-insn.c (jit_insn_store): use the destination type
	to determine the store opcode, not the source value type.

2004-11-02  Evin Robertson  <evin@users.sourceforge.net>

	* jit/jit-function.c (jit_function_compile): clear block addresses
	and fixup lists if we need to restart on a new cache page (minor
	alterations by Rhys).

	* jit/jit-function.c (jit_function_apply_vararg): return 0 when a
	sub-function throws an exception, not 1.

2004-10-31  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-x86.sel: handle the special case of constant
	destination pointers in "store_relative" instructions, because
	otherwise the register allocator gets confused.

2004-10-29  Peter Lund <firefly@diku.dk>

	* doc/libjit.3: fix manpage formatting issues. (patch attached
	to bug #10779, Gopal).

2004-10-28  Rhys Weatherley  <rweather@southern-storm.com.au>

	* configure.in, jit/jit-debugger.c, jit/jit-thread.c,
	jit/jit-thread.h: implement some of the locking code
	for the debugging API.

2004-10-12  Evin Robertson  <evin@users.sourceforge.net>

	* jit/jit-rules-x86.c (output_branch): correct the offset
	when outputting a long-form backward branch.

	* tests/Makefile.am, tests/loop.pas: test case for the
	long-form backward branch bug.

2004-10-06  Rhys Weatherley  <rweather@southern-storm.com.au>

	* doc/Makefile.am, doc/libjit.texi, include/jit/Makefile.am,
	include/jit/jit-common.h, include/jit/jit-context.h,
	include/jit/jit-debugger.h, include/jit/jit-except.h,
	include/jit/jit-function.h, include/jit/jit.h, jit/Makefile.am,
	jit/jit-context.c, jit/jit-debug.c, jit/jit-debugger.c,
	jit/jit-insn.c, jit/jit-internal.h, jit/jit-interp.c:
	redesign the debugger API so that it contains functions
	like "add breakpoint", "run", "step", etc that more closely resemble
	what a front end debugger will want to have, shifting the
	implementation burden off the front end.

2004-10-04  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/jit-function.h, include/jit/jit-insn.h,
	include/jit/jit-opcode.h, include/jit/jit-plus.h, jit/jit-function.c,
	jit/jit-insn.c, jit/jit-internal.h, jit/jit-interp.c,
	jit/jit-opcode.c, jit/jit-rules-interp.c, jit/jit-rules-arm.sel,
	jit/jit-rules-x86.sel, jitplus/jit-plus-function.cpp:
	add instructions and function API's for supporting debug line
	numbers and breakpoints.

	* doc/Makefile.am, doc/libjit.texi, include/jit/jit-context.h,
	include/jit/jit-insn.h, include/jit/jit-opcode.h,
	include/jit/jit-plus.h, jit/Makefile.am, jit/jit-context.c,
	jit/jit-debug.c, jit/jit-function.c, jit/jit-insn.c,
	jit/jit-internal.h, jit/jit-interp.c, jit/jit-opcode.c,
	jit/jit-rules-arm.sel, jit/jit-rules-interp.c, jit/jit-rules-x86.sel,
	jitplus/jit-plus-function.cpp: clean up the breakpoint API and
	implement debug hooks for the interpreter.

	* jit/jit-insn.c, jit/jit-rules-arm.sel, jit/jit-rules-x86.sel:
	use a common helper function for performing debug hook tests on
	native platforms, to avoid the need to implement breakpoint testing
	individually in every native back end.

2004-09-10  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-x86.sel: pointer-relative loads and stores
	for structures in the x86 back end.

2004-09-09  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-x86.c, jit/jit-rules-x86.sel: add some support
	for structure copying to the x86 back end.

2004-09-06  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-interp.c: the pointer value for indirect and vtable
	calls was being pushed onto the stack twice.

2004-09-05  Norbert Bollow  <nb@SoftwareEconomics.biz>

	* samples/hellovm.c: add a sample program that demonstrates a
	simple VM based on libjit (committed by Rhys).

2004-08-30  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit-rules-x86.sel: fix x86 code generation for floating-point
	return instructions.

2004-08-16  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-cpuid-x86.c (cpuid_query): use %ebx in a way that doesn't
	confuse PIC mode in some versions of gcc (bug #10022).

2004-08-13  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/jit-insn.h, include/jit/jit-opcode.h,
	include/jit/jit-plus.h, jit/jit-insn.c, jit/jit-internal.h,
	jit/jit-interp.h, jit/jit-opcode.c, jit/jit-rules-interp.c,
	jitplus/jit-plus-function.cpp: re-implement the "push_return_area_ptr"
	patch so as to avoid wasting stack space in functions with more
	than one native function call.

2004-08-12  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-interp.c: account for the extra value that is
	added to the stack by the "push_return_area_ptr" instruction.

2004-08-08  Rhys Weatherley  <rweather@southern-storm.com.au>

	* configure.in, NEWS: update version for the "0.0.4" release.

	* configure.in: updating working version to "0.0.5".

2004-08-05  Rhys Weatherley  <rweather@southern-storm.com.au>

	* doc/Makefile.am, doc/README, doc/libjit.texi,
	jit/jit-dump.c, jit/jit-insn.c: documentation updates.

	* dpas/Makefile.am, tools/Makefile.am: support for parallel builds.

2004-08-04  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-opcode.c: fix the operand types for "call_vtable_ptr".

2004-06-25  Rhys Weatherley  <rweather@southern-storm.com.au>

	* tools/gen-apply.c: fix a crash in gen-apply under x86-64.

	* jit/jit-apply-func.h, jit/jit-apply-x86-64.h, tools/gen-apply.c:
	write an x86-64 assembly version of "__builtin_apply", because
	the version inside gcc has an unusable register ordering.

2004-06-24  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-reg-alloc.c, jit/jit-rules-arm.h, jit/jit-rules-interp.c,
	jit/jit-rules-interp.h, jit/jit-rules-x86.h, jit/jit-rules.h:
	use separate JIT_REG_xxx flags for float32, float64, and nfloat
	because some platforms need to put these values in different
	types of registers (e.g. x86-64).

2004-06-22  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-insn.c: properly set the "may_throw" flag for opcodes
	that throw exceptions and which are also supported by the back end.

2004-06-21  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-x86.c, jit/jit-rules-x86.sel: move the code
	for loading/storing small structures into a central location.

2004-06-18  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-dump.c, jit/jit-reg-alloc.c, jit/jit-rules-arm.c,
	jit/jit-rules-arm.h, jit/jit-rules-x86.c, jit/jit-rules-x86.h,
	jit/jit-rules-x86.sel, jit/jit-rules.c, jit/jit-rules.h,
	tests/param.pas: rewrite the x86 and ARM parameter handling
	routines to centralise the code and fix several bugs; add new
	tests for fastcall and stdcall conventions.

2004-06-17  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-reg-alloc.c (_jit_regs_set_outgoing): pass 64-bit "fastcall"
	parameters in ECX:EDX, not in ECX:EBX.

	* tools/gen-apply.c: allow floating-point values to be passed
	in "fastcall" registers.

2004-06-16  Rhys Weatherley  <rweather@southern-storm.com.au>

	* tools/gen-sel-parser.y: add a missing semi-colon.

2004-06-14  Rhys Weatherley  <rweather@southern-storm.com.au>

	* dpas/dpas-internal.h, dpas/dpas-parser.y, dpas/dpas-scanner.l,
	jit/jit-rules-x86.c, jit/jit-rules-x86.sel, tests/Makefile.am,
	tests/param.pas, tools/gen-apply.c: add some test cases for
	parameter passing; fix fastcall/stdcall conventions for x86.

	* jit/jit-rules-arm.h, jit/jit-rules-arm.sel, jit/jit-rules-x86.h,
	jit/jit-rules-x86.sel, tools/gen-sel-parser.y: enable register
	allocation for 64-bit values under x86 and ARM; expand some
	64-bit opcodes in the instruction selectors.

2004-06-12  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-insn.c, jit/jit-rules-x86.c, jit/jit-rules-x86.sel:
	implement or stub missing x86 instruction selection rules.

	* include/jit/jit-insn.h, include/jit/jit-opcode.h,
	include/jit/jit-plus.h, jit/jit-function.c, jit/jit-insn.c,
	jit/jit-interp.c, jit/jit-opcode.c, jit/jit-rules-interp.c,
	jitplus/jit-plus-function.cpp: add the "outgoing_frame_posn"
	instruction, to support tail calls.

2004-06-11  Rhys Weatherley  <rweather@southern-storm.com.au>

	* doc/libjit.texi, jit/jit-insn.c, jit/jit-internal.h,
	jit/jit-reg-alloc.c, jit/jit-rules-arm.c, jit/jit-rules-arm.sel,
	jit/jit-rules-interp.c, jit/jit-rules-x86.c, jit/jit-rules-x86.sel,
	jit/jit-rules.h, jit/jit-value.c, tutorial/Makefile.am,
	tutorial/t2.c, tutorial/t5.c: implement tail calls from a
	function to itself.

	* jit/jit-function.c, jit/jit-reg-alloc.c, jit/jit-rules-arm.c,
	jit/jit-rules-interp.c, jit/jit-rules-x86.c, jit/jit-rules.h:
	implement global register allocation for parameters in stack slots.

	* jit/jit-rules-x86.c, jit/jit-rules-x86.sel, jit/jit-rules.h:
	optimize the x86 function epilog when we are certain that the
	stack height doesn't change between entry and exit (i.e. the
	function is a leaf and there are no alloca's).

2004-06-10  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-apply-arm.c, jit/jit-gen-arm.c, jit/jit-gen-arm.h,
	jit/jit-rules-arm.c, jit/jit-rules-arm.h, jit/jit-rules-arm.sel,
	tools/gen-sel-parser.y: redesign the ARM code generation macros
	so that they have stronger protection against buffer overruns.

	* jit/jit-rules-arm.sel: flush the constant pool after unconditional
	branches, to try to minimize the probability that the pool will
	be flushed in the middle of a loop body.

	* jit/jit-dump.c: dump the hex address of external functions,
	to aid with debugging native disassembly dumps.

	* include/jit/jit-insn.h, include/jit/jit-opcode.h,
	include/jit/jit-plus.h, jit/jit-insn.c, jit/jit-internal.h,
	jit/jit-interp.c, jit/jit-opcode.c, jit/jit-rules-arm.c,
	jit/jit-rules-arm.sel, jitplus/jit-plus-function.cpp:
	add support for outgoing parameter areas, which should reduce
	the overhead of function calls that involve stacked arguments
	on non-x86 platforms; use parameter areas in the ARM back end.

	* include/jit/jit-plus.h, include/jit/jit-value.h, jit/jit-insn.c,
	jit/jit-internal.h, jit/jit-reg-alloc.c, jit/jit-rules-x86.c,
	jit/jit-value.c: don't over-allocate x86 stack frames if
	EBX, ESI, and EDI don't need to be saved; don't perform global
	register allocation on stacked parameters because it confuses
	the register spill logic.

	* jit/jit-reg-alloc.c (_jit_regs_load_value): avoid unnecessary
	spills if a temporary value won't be used again in the current block.

2004-06-09  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-arm.c (flush_constants): update the instruction
	location after flushing the constant table.

	* jit/jit-gen-arm.h: fix some bugs in the encoding of floating-point
	load and store instructions.

	* jit/jit-gen-arm.c (_arm_alu_reg_imm): forgot to update the
	instruction pointer when loading the immediate value.

	* jit/jit-gen-arm.c: optimize the use of rotated immediate values.

	* jit/jit-rules-arm.c (_jit_gen_load_value): use ARM register pairs
	properly for "long" and "float64" values.

2004-06-08  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/Makefile.am, jit/jit-cpuid-x86.c, jit/jit-cpuid-x86.h:
	add an API for querying the x86 "cpuid" information.

	* include/jit/jit-opcode.h, jit/jit-interp.c, jit/jit-opcode.c:
	remove obsolete opcodes which violate "_jit_load_opcode"'s rules.

	* jit/jit-reg-alloc.c, jit/jit-rules-x86.c, jit/jit-rules-x86.sel:
	more x86 instruction selection rules.

	* jit/jit-reg-alloc.c (_jit_regs_set_outgoing): implement
	missing function.

	* jit/jit-gen-arm.h (arm_call): use a more efficient form of
	call for offsets beyond the simple target range.

	* jit/jit-rules-arm.sel, tools/gen-sel-parser.y,
	tools/gen-sel-scanner.l: introduce conditional rules into "gen-sel"
	so that we can disable certain rules on ARM platforms that lack
	floating-point support.

	* jit/jit-rules-arm.c (_jit_gen_spill_reg): spill properly to
	global registers for ARM.

	* jit/jit-reg-alloc.c, jit/jit-rules-arm.c, jit/jit-rules-arm.sel,
	jit/jit-rules-x86.sel: minor register assignment bugs.

	* jit/jit-rules-arm.c: ARM parameters cannot be split between
	registers and the stack.

	* jit/jit-gen-arm.c, jit/jit-gen-arm.h, jit/jit-rules-arm.c,
	jit/jit-rules-arm.h, jit/jit-rules-arm.sel: implement a
	constant pool for ARM, which gets complicated constants out
	of the main stream of execution.

2004-06-08  Miroslaw Dobrzanski-Neumann  <mne@mosaic-ag.com>

	* jit/jit-alloc.c: fix ROUND_END_PTR so that it adds the size
	after casting to jit_nuint.

2004-06-07  Thong Nguyen  <tim@veridicus.com>

	* configure.in, jit/jit-insn.c: add "_setjmp" to the list of
	names to try to work around the "setjmp" macro (needed for Win32).

2004-06-07  Rhys Weatherley  <rweather@southern-storm.com.au>

	* tools/gen-apply.c: gen-apply fixes for Alpha platforms.

	* jit/jit-interp.c: alignment problem with "push_const_float32"
	on 64-bit platforms.

	* jit/jit-intrinsic.c: work around a SIGFPE for sqrt(-1) on Alpha;
	it should return NaN instead.

	* jit/jit-value.c: fix a warning.

	* configure.in, jit/jit-insn.c: use "sigsetjmp" instead of
	"setjmp", because "setjmp" may be a macro on some systems.

	* jit-gen-arm.h: add floating-point instruction macros.

	* jit/jit-gen-arm.h, jit/jit-rules-arm.c, jit/jit-rules-arm.h,
	jit/jit-rules-arm.sel: expand floating-point instructions for ARM.

	* jit/jit-rules-x86.c: fix misnaming of jit_type_get_abi,
	jit_abi_stdcall, and jit_abi_fastcall.

	* tools/gen-apply-macosx.h, tools/gen-apply.c: bypass the
	auto-detection logic in gen-apply under MacOSX because
	it doesn't work with Apple's version of gcc.

	* tools/gen-apply.c: gen-apply fix for ia64.

	* jit/jit-alloc.c (jit_flush_exec): warning fix for ia64.

2004-06-06  Miroslaw Dobrzanski-Neumann  <mne@mosaic-ag.com>

	* jit/jit-alloc.c (jit_flush_exec): flush cache lines properly
	if the start is not on a line boundary.

2004-06-06  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-reg-alloc.c, jit/jit-reg-alloc.h, jit/jit-rules-arm.c,
	jit/jit-rules-arm.sel, jit/jit-rules-x86.c, jit/jit-rules-x86.sel:
	add some more instructions to the ARM back end; split some x86
	back end code out into common code for ARM to use as well.

2004-06-02  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-function.c, jit/jit-insn.c, jit/jit-internal.h,
	jit/jit-reg-alloc.c, jit/jit-reg-alloc.h, jit/jit-rules-arm.c,
	jit/jit-rules-arm.h, jit/jit-rules-interp.c, jit/jit-rules-interp.h,
	jit/jit-rules-x86.c, jit/jit-rules-x86.h, jit/jit-rules.h,
	jit/jit-value.c, tools/gen-sel-parser.y: implement a simple global
	register allocation policy, based on usage counts.

	* jit/jit-reg-alloc.c (_jit_regs_load_value): if a value is in a
	global register and it is not going to be destroyed by an instruction,
	then use the global register as the operand.

	* jit/jit-insn.c: recognise "t = a op b; a = t" and turn it
	into "a = a op b" to make it easier for back ends to recognise
	special idioms such as increments and decrements.

2004-06-01  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-cache.c, jit/jit-elf-read.c, tools/gen-apply.c:
	fix some gcc 3.x compile warnings.

	* jit/jit-rules-arm.c, jit/jit-rules-arm.sel: more instruction
	selection rules for ARM.

	* configure.in, jit/jit-rules.h: enable the x86 back end by
	default on platforms where it makes sense, and add the option
	"--enable-interpreter" to "configure".

2004-05-31  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-rules-x86.sel: optimize multiplications for x86.

	* jit/jit-rules-x86.c, jit/jit-rules-x86.sel, tools/gen-sel-parser.y,
	tools/gen-sel-scanner.l: inline and optimize divisions for x86.

	* jit/jit-rules-x86.sel: throw exceptions correctly for "check_null".

2004-05-30  Rhys Weatherley  <rweather@southern-storm.com.au>

	* doc/libjit.texi: clarify the text that describes LLVM, at the
	request of Chris Lattner, LLVM's author.

	* jit/jit-insn.c (jit_insn_convert): use intrinsic functions
	for conversions when the back end doesn't support the opcode.

	* jit/jit-rules-x86.sel, tools/gen-sel-parser.y,
	tools/gen-sel-scanner.l: improve instruction selection for
	floating-point "push" operations.

	* include/jit/jit-insn.h, jit/jit-insn.c, jit/jit-internal.h,
	jit/jit-rules-x86.c: add "jit_insn_defer_pop_stack" and
	"jit_insn_flush_defer_pop", to defer the popping of function
	call arguments as long as possible.

	* jit/jit-rules-x86.sel: fix a cpu vs non-cpu register problem
	in the floating-point "push" operations for x86.

2004-05-29  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-insn.c, jit/jit-reg-alloc.c, jit/jit-reg-alloc.h,
	jit/jit-rules-x86.c, jit/jit-rules-x86.sel: continue the
	x86 back end; particularly byte/short stores.

	* jit/jit-rules-x86.sel: stub out JIT_OP_RETURN_REG, which
	doesn't need any special handling for x86.

2004-05-27  Rhys Weatherley  <rweather@southern-storm.com.au>

	* tools/gen-apply.c: split "detect_struct_conventions" up a bit
	more to (hopefully) prevent problems under MacOSX; fix a bug in
	the generation of "jit_apply_builder_align_regs" that affected
	ARM and PPC systems.

	* dpas/dpas-types.c (dpas_type_identical): treat "float64" and
	"nfloat" as identical on platforms whose "long double" type is
	the same as "double".

	* jit/jit-rules-x86.c, jit/jit-rules-x86.sel, tools/gen-sel-parser.y,
	tools/gen-sel-scanner.l: relative loads and stores for x86.

2004-05-26  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-insn.c, jit/jit-rules-x86.c, jit/jit-rules-x86.sel,
	jit/jit-rules.h, tools/gen-sel-parser.y: fix some compile issues
	in the x86 native back end.

	* jit/jit-function.c, jit/jit-rules-x86.c, jit/jit-rules-x86.sel,
	tools/gen-sel-parser.y: more bug fixes for the x86 back end.

	* include/jit/jit-insn.h, include/jit/jit-plus.h, jit/jit-insn.c,
	jitplus/jit-plus-function.cpp: add "jit_insn_new_block" to simplify
	creating a new block that doesn't have an explicit label.

	* dpas/dpas-parser.y, include/jit/jit-block.h, jit/jit-block.c,
	jit/jit-insn.c: add "jit_block_current_is_dead" to simplify
	testing if the last block is reachable or not, taking empty
	trailing blocks into account.

	* jit/jit-rules-x86.c, jit/jit-rules-x86.sel, tools/gen-sel-parser.y,
	tools/gen-sel-scanner.l: more selection cases for the x86 back end.

	* jit/Makefile.am, jit/jit-gen-arm.h, jit/jit-rules-arm.c,
	jit/jit-rules-arm.sel: add the beginnings of the instruction
	selector for ARM.

2004-05-25  Rhys Weatherley  <rweather@southern-storm.com.au>

	* tools/.cvsignore, tools/Makefile.am, tools/gen-sel-parser.y,
	tools/gen-sel-scanner.l: add the "gen-sel" program to the tree,
	to assist with building native instruction selectors.

	* jit/.cvsignore, jit/Makefile.am, jit/jit-rules-x86.c,
	jit/jit-rules-x86.sel, tools/gen-sel-parser.y: check in the
	initial instruction selector for x86 (incomplete).

	* jit/jit-rules-x86.sel, tools/gen-sel-parser.y,
	tools/gen-sel-scanner.l: selectors for branch instructions.

	* jit/jit-rules-x86.sel: selectors for call instructions.

2004-05-24  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/jit-insn.h, include/jit/jit-opcode.h, jit/jit-block.c,
	jit/jit-dump.c, jit/jit-except.c, jit/jit-function.c, jit/jit-insn.c,
	jit/jit-internal.h, jit/jit-interp.c, jit/jit-interp.h,
	jit/jit-opcode.c, jit/jit-rules-arm.c, jit/jit-rules-interp.c,
	jit/jit-rules-x86.c, jit/jit-rules.h, jit/jit-setjmp.h:
	rewrite the exception region routines to make them easier
	to use from CLI and JVM style systems.

	* jit/jit-rules-interp.c (_jit_gen_start_block): set the address
	of the exception handler for interpreted code.

	* include/jit/jit-plus.h, jitplus/jit-plus-function.cpp:
	add missing functions to the C++ API.

2004-05-22  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-block.c (_jit_block_peephole_branch): don't allow
	conditional branches to cross an exception context boundary,
	because doing so will violate "finally" semantics.

	* dpas/dpas-parser.y, include/jit/jit-insn.h, jit/jit-function.c,
	jit/jit-insn.c, jit/jit-internal.h: rename "jit_insn_move_blocks"
	to "jit_insn_move_blocks_to_end" and add a new function
	"jit_insn_move_blocks_to_start" for creating initialization code.

	* include/jit/jit-opcode.h, jit/jit-except.c, jit/jit-function.c,
	jit/jit-insn.c, jit/jit-internal.h, jit/jit-interp.c, jit/jit-opcode.c,
	jit/jit-setjmp.h: modify the function call logic to use "setjmp"
	with native back ends.

2004-05-21  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-gen-arm.c, jit/jit-gen-arm.h: modify the ARM codegen
	macros so that they can be used for branch elimination.

	* include/jit/jit-except.h, jit/jit-except.cpp, jit/jit-function.c,
	jit/jit-insn.c, jit/jit-internal.h, jit/jit-interp.cpp,
	jit/jit-interp.h, jit/jit-setjmp.h: redesign the exception handling
	mechanism to use "setjmp" rather than C++ exceptions.

	* configure.in, doc/Makefile.am, doc/libjit.texi, dpas/Makefile.am,
	jit/Makefile.am, jit/jit-except.c, jit/jit-except.cpp,
	jit/jit-interp.c, jit/jit-interp.cpp, jitdynamic/Makefile.am:
	remove the last remaining C++ code from libjit.so so that
	it is now a pure C library.

	* include/jit/jit-insn.h, include/jit/jit-opcode.h,
	include/jit/jit-plus.h, jit/jit-insn.c, jit/jit-interp.c,
	jit/jit-opcode.c, jitplus/jit-plus-function.cpp:
	add the "jit_insn_alloca" instruction.

	* configure.in, jit/.cvsignore, jit/Makefile.am, jit/jit-interp.c,
	jit/mklabel.sh: use computed goto's in the interpreter if supported
	by the underlying compiler.

2004-05-20  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/jit-value.h, jit/jit-insn.c, jit/jit-value.c:
	convert constant conditional branches such as "if true goto L" into
	unconditional branches.

	* jit/jit-block.c, jit/jit-internal.h, jit/jit-live.c,
	jit/jit-rules-interp.c: perform peephole optimization of
	branches to branches before live variable analysis, so that
	the back ends don't need to worry about jump threading.

	* jit/jit-block.c, jit/jit-live.c: treat dead blocks as empty
	when peepholing branches to the next block.

2004-05-15  Rhys Weatherley  <rweather@southern-storm.com.au>

	* tools/gen-apply.c: fix a macro generation bug for Win32 systems.

	* jit/jit-reg-alloc.c: fix a compile bug.

2004-05-14  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/Makefile.am, include/jit/jit-objmodel-private.h,
	include/jit/jit-objmodel.h, include/jit/jit.h, jit/Makefile.am,
	jit/jit-objmodel.c: put some infrastructure in place to support
	pluggable object models.

2004-05-13  Rhys Weatherley  <rweather@southern-storm.com.au>

	* dpas/dpas-parser.y, dpas/dpas-types.c, dpas/dpas-types.h:
	put some infrastructure (incomplete) in place to support array
	index expressions.

	* configure.in, NEWS: update version for the "0.0.2" release.

	* configure.in: updating working version to "0.0.3".

2004-05-12  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jitdynamic/Makefile.am, jitplus/Makefile.am: use both .libs and
	non.libs versions of the so paths, because some versions of libtool
	add .libs implicitly and others don't.

	* dpas/dpas-builtin.c, dpas/dpas-parser.y, dpas/dpas-types.c,
	dpas/dpas-types.h: add the "SameType" and "SameShape" builtins,
	to assist with unit testing type coercions.

	* dpas/dpas-parser.y (IfTail): fix a bug that caused the "then"
	case of an "if" to fall through to the "else".

	* dpas/dpas-parser.y: resolve ea-based lvalues in operators.

	* include/jit/jit-defs.h.in: incorrect values for jit_max_int
	and jit_max_long.

	* dpas/dpas-scanner.l (dpas_parse_hex): ignore the 'H' on the
	end of a hexadecimal constant.

	* Makefile.am, configure.in, tests/.cvsignore, tests/Makefile.am,
	tests/coerce.pas: check in some initial infrastructure for the
	dpas-based test suite.

	* jit/jit-type.c (jit_type_promote_int): promote ubyte and ushort
	to uint, not int.

	* jit/jit-insn.c, tests/coerce.pas: more coercion test cases and fixes.

	* dpas/dpas-builtin.c, jit/jit-dump.c, jit/jit-value.c: add builtins
	for mathematical operations.

	* dpas/dpas-parser.y, jit/jit-interp.cpp, tests/Makefile.am,
	tests/math.pas: test cases and bug fixes for mathematical operations.

	* dpas/dpas-main.c, include/jit/jit-context.h, jit/jit-context.c,
	jit/jit-insn.c, tests/Makefile.am: add the "--dont-fold" option
	to Dynamic Pascal, so that we can run the test cases without folding.

	* tests/README: add a README file to describe how to write test cases.

2004-05-11  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/jit-insn.h, jit/jit-insn.c, jit/jit-interp.cpp,
	jit/jit-interp.h, jit/jit-opcode.c, jit/jit-rules-interp.c:
	round out the function call handling opcodes for the interpreter.

	* jit/jit-rules-interp.c, jit/jit-rules-interp.h: implement
	the exception-handling opcodes for the interpreter.

	* dpas/dpas-parser.y, dpas/dpas-scope.c, dpas/dpas-scope.h:
	fix a bug that caused global variables in Dynamic Pascal
	to be incorrectly allocated as locals.

	* jit/jit-reg-alloc.c (_jit_regs_load_to_top_two): handle the
	case where the second value is on the stack but not the first.

	* dpas/dpas-parser.y, dpas/dpas-types.c, dpas/dpas-types.h:
	report errors for unimplemented expressions and statements,
	so that users are not "surprised" when things silently fail.

	* .cvsignore, auto_gen.sh, configure.in, doc/.cvsignore,
	dpas/.cvsignore, dpas/Makefile.am, include/.cvsignore,
	jit/.cvsignore, jit/Makefile.am, jitdynamic/.cvsignore,
	jitdynamic/Makefile.am, jitplus/.cvsignore, jitplus/Makefile.am,
	tools/.cvsignore, tutorial/.cvsignore, tutorial/Makefile.am:
	modify the autoconf/automake build system to use libtool.

2004-05-10  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-reg-alloc.c, jit/jit-reg-alloc.h, jit/jit-rules-interp.c:
	interpreter code conversion for relative pointer and copy opcodes;
	fix some bugs in stack-based register allocation.

	* dpas/dpas-parser.y, dpas/dpas-types.c, dpas/dpas-types.h:
	loading and storing record fields in Dynamic Pascal.

	* dpas/dpas-builtin.c: implement the "New" and "Dispose" builtins.

2004-05-08  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-cache.c, jit/jit-cache.h, jit/jit-dump.c, jit/jit-interp.h,
	jit/jit-rules-interp.c: add "_jit_cache_get_end_method", to allow
	the end of a method's code to be located without explicit marking.

	* configure.in, include/jit/jit-util.h, jit/jit-string.c:
	remove the locale-sensitive string comparison routines because
	they aren't used in libjit, and front ends will normally have
	their own functions for this purpose.

	* Makefile.am, configure.in, doc/Makefile.am, doc/libjit.texi,
	include/jit/Makefile.am, include/jit/jit-dynamic.h,
	include/jit/jit-util.h, jit/Makefile.am, jit/jit-dynlib.c,
	jit/jit-mangle.c, jitdynamic/.cvsignore, jitdynamic/Makefile.am,
	jitdynamic/jit-cpp-mangle.c, jitdynamic/jit-dynlib.c:
	move the dynlib and C++ name mangling routines into a separate
	"jitdynamic" library, which will handle all of the cross-language
	naming and dynamic invocation logic.

	* include/jit/jit-type.h, jit/jit-internal.h, jit/jit-type.c,
	jitdynamic/jit-cpp-mangle.c: move the "JIT_TYPE_xxx" constants
	into the public headers and add "jit_type_get_kind" so that
	front end code can classify types quickly.

	* jit/jit-dump.c: use "objdump" to dump compiled native code.

2004-05-07  Rhys Weatherley  <rweather@southern-storm.com.au>

	* dpas/dpas-function.c, dpas/dpas-internal.h, dpas/dpas-main.c,
	dpas/dpas-parser.y, jit/jit-interp.cpp, jit/jit-interp.h,
	jit/jit-opcode.c, jit/jit-rules-interp.c: execute the "main"
	method once a Dynamic Pascal program has been compiled;
	fix some calling convention problems with "call_external".

	* dpas/dpas-builtin.c, dpas/dpas-scanner.l: add the "Flush"
	and "Terminate" builtins; fix a small bug in string scanning.

	* include/jit/jit-elf.h, jit/Makefile.am, jit/jit-context.c,
	jit/jit-elf-read.c, jit/jit-internal.h, jit/jit-symbol.c:
	implement symbol relocations for the ELF binary reader.

	* dpas/dpas-parser.y: code generation for "for" loops.

2004-05-06  Rhys Weatherley  <rweather@southern-storm.com.au>

	* dpas/Makefile.am, dpas/dpas-builtin.c, dpas/dpas-function.c,
	dpas/dpas-internal.h, dpas/dpas-main.c, dpas/dpas-parser.y,
	dpas/dpas-scope.c, dpas/dpas-scope.h, dpas/dpas-semantics.h,
	dpas/dpas-types.c, dpas/dpas-types.h, include/jit/jit-block.h,
	include/jit/jit-insn.h, include/jit/jit-plus.h, jit/jit-block.c,
	jit/jit-dump.c, jit/jit-function.c, jit/jit-insn.c, jit/jit-interp.cpp,
	jit/jit-opcode.c, jit/jit-rules-arm.c, jit/jit-rules-interp.c,
	jit/jit-rules-x86.c, jit/jit-type.c, jit/jit-value.c,
	jitplus/jit-plus-function.cpp: get basic compilation working
	in Dynamic Pascal.

2004-05-03  Rhys Weatherley  <rweather@southern-storm.com.au>

	* tools/gen-apply.c: improve the maintainability of the apply macros.

	* include/jit/jit-block.h, include/jit/jit-context.h,
	include/jit/jit-dump.h, include/jit/jit-elf.h, include/jit/jit-init.h,
	include/jit/jit-meta.h, include/jit/jit-type.h, include/jit/jit-util.h,
	jit/jit-type.c, jit/jit-value.c: add more instances of JIT_NOTHROW
	to the headers; add some special meta tags for types.

	* include/jit/jit-type.h, jit/jit-type.c: tag the system-dependent
	types so that they can be distinguished from the fixed-sized types
	when it is necessary to do so.

	* jit/Makefile.am, jit/jit-mangle.c: add the beginnings of a C++
	name mangler, to help with extracting C++ symbols from dynamic
	shared libraries.

	* doc/Makefile.am, doc/libjit.texi, doc/mangling_rules.txt,
	include/jit/jit-type.h, include/jit/jit-util.h, jit/jit-mangle.c,
	jit/jit-type.c: continue the implementation of the C++ name
	mangling routines.

2004-05-01  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-apply-x86.c, jit/jit-rules-x86.c, tools/gen-apply.c:
	fix function prolog and epilog handling for structure returns
	under x86/cdecl.

	* configure.in: set the initial working version to 0.0.1.

	* jit/jit-rules-x86.c: implement x86 code generation for some of
	the basic operators.

	* include/jit/jit-insn.h, include/jit/jit-opcode.h,
	include/jit/jit-plus.h, jit/jit-insn.c, jit/jit-interp.cpp,
	jit/jit-opcode.c, jit/jit-reg-alloc.c, jit/jit-reg-alloc.h,
	jit/jit-rules-interp.c, jitplus/jit-plus-function.cpp:
	add array access instructions.

	* tools/gen-apply.c: clean up the builder/parser macros and
	detect padding of the floating-point registers.

2004-04-30  Rhys Weatherley  <rweather@southern-storm.com.au>

	* include/jit/jit-function.h, include/jit/jit-insn.h,
	include/jit/jit-opcode.h, include/jit/jit-plus.h, jit/jit-except.cpp,
	jit/jit-function.c, jit/jit-insn.c, jit/jit-internal.h,
	jit/jit-interp.cpp, jit/jit-interp.h, jit/jit-opcode.c,
	jit/jit-rules-arm.c, jit/jit-rules-interp.c, jit/jit-rules-x86.c,
	jit/jit-rules.h, jitplus/jit-plus-function.cpp: put some
	infrastructure in place to support "try"-related instructions.

	* dpas/dpas-parser.y, dpas/dpas-scope.h, dpas/dpas-semantics.h:
	introduce effective address based l-values into dpas.

2004-04-27  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-dump.c, jit/jit-reg-alloc.c: fix a register stack bug
	in "_jit_regs_set_value"; add some more debug code.

	* include/jit/jit-opcode.h, jit/jit-insn.c, jit/jit-internal.h,
	jit/jit-interp.cpp, jit/jit-opcode.c: wrap function calls
	with code to set up and remove exception frame information.

	* jit/jit-function.c, jit/jit-insn.c, jit/jit-internal.h:
	intuit "nothrow" and "noreturn" flags for compiled functions.

	* include/jit/jit-insn.h, include/jit/jit-plus.h, jit/jit-insn.c,
	jitplus/jit-plus-function.cpp: add "jit_insn_throw",
	"jit_insn_rethrow", and "jit_insn_get_call_stack" to assist
	with throwing exceptions.

	* include/jit/jit-insn.h, jit/jit-block.c, jit/jit-insn.c,
	jit/jit-internal.h: add some instructions for managing "try" blocks.

	* include/jit/jit-opcode.h, jit/jit-block.c, jit/jit-insn.c,
	jit/jit-internal.h, jit/jit-opcode.c: more work on "try" blocks.

2004-04-26  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-reg-alloc.c, jit/jit-reg-alloc.h: add functions to
	assist with register allocation on stack-based architectures.

	* jit/jit-rules-interp.c: implement "_jit_gen_load_value" for
	the interpreter backend.

	* jit/jit-interp.cpp, jit/jit-interp.h: fix some opcode names that
	should be prefixed with "JIT_OP".

	* jit/jit-function.c, jit/jit-internal.h, jit/jit-reg-alloc.c,
	jit/jit-reg-alloc.h, jit/jit-rules-arm.c, jit/jit-rules-interp.c,
	jit/jit-rules-interp.h, jit/jit-rules-x86.c, jit/jit-rules.h:
	interpreter back end code generation for binary, unary, and
	branch opcodes.

	* doc/libjit.texi, jit/jit-rules-interp.c: fix the Texinfo section
	markers in the "Porting" chapter.

	* jit/jit-rules-interp.c: code generation for interpreter return's.

	* include/jit/jit-except.h, include/jit/jit-function.h,
	include/jit/jit-plus.h, jit/jit-except.cpp, jit/jit-function.c,
	jit/jit-interp.cpp, jit/jit-interp.h, jit/jit-rules-interp.c,
	jitplus/jit-plus-function.cpp: implement "jit_function_apply"
	and "jit_function_apply_vararg" for the interpreter back end.

	* jitplus/jit-plus-function.cpp: initialization errors in
	the C++ binding.

	* jit/jit-function.c, jit/jit-insn.c, jit/jit-interp.cpp,
	jit/jit-rules-interp.c: work on code generation for function calls.

	* doc/libjit.texi, include/jit/jit-insn.h, include/jit/jit-plus.h,
	jit/jit-insn.c, jitplus/jit-plus-function.cpp, tutorial/t2.c:
	add a "flags" parmeter to "jit_insn_call" and friends, so that
	"nothrow", "noreturn", and "tail" options can be supplied.

	* jit/jit-dump.c, jit/jit-interp.cpp, jit/jit-interp.h,
	jit/jit-opcode.c, jit/jit-rules-interp.c: dump the translated
	native code from "jit_dump_function" are compilation.

	* jit/jit-interp.cpp, jit/jit-rules-interp.c: argument variable
	offsets should in item units, not byte units.

	* jit/jit-insn.c, jit/jit-reg-alloc.c, jit/jit-reg-alloc.h,
	jit/jit-rules-interp.c: improve register allocation in stacks.

2004-04-25  Rhys Weatherley  <rweather@southern-storm.com.au>

	* jit/jit-apply-func.h, jit/jit-apply-x86.c, jit/jit-apply-x86.h,
	jit/jit-cache.c: use CPU-specifc padding for aligning code
	areas with NOP's, for greater runtime efficiency.

	* include/jit/jit-elf.h, jit/Makefile.am, jit/jit-elf-write.c:
	add the skeleton of the ELF writing routines.

	* jit/jit-interp.cpp: modify VM_BR_TARGET so that it is PIC-friendly.

2004-04-24  Rhys Weatherley  <rweather@southern-storm.com.au>

	* */*: Initial public release.  Most of the skeleton code is in place.