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 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003
|
2011-03-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Remove dead code signaled by clang analyzer.
* libgst/cint.c: Likewise.
* libgst/comp.c: Likewise, and add missing INC_RESTORE_POINTER.
* libgst/dict.c: Likewise.
* libgst/interp.c: Likewise.
* libgst/mpz.c: Likewise.
* libgst/oop.c: Likewise.
* libgst/opt.c: Likewise.
* libgst/re.c: Likewise.
2011-03-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Add missing verification rule.
2011-02-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Fix creation of FloatQ's on non-x86 platforms.
2011-02-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Fix GC bug reported by Gwenael Casaccio.
2011-02-14 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/interp.c: Always inline unwind_context.
2011-02-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Fix previous patch. Add printf for coverage
of variadic functions.
2011-02-04 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/cint.c: Propagate type conversion failures.
2011-02-04 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/sockets.c: Add size check for the socket addr.
2011-01-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Return boolean values from IS_OOP_*.
* libgst/oop.inl: Likewise.
2011-01-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Accept UndefinedObject for #cObjectPtr.
2011-01-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load Autoload.st last.
2011-01-10 Paolo Bonzini <bonzini@gnu.org>
Mathiue Suen <mathieusuen@yahoo.fr>
* libgst/dict.inl: Fix 32-bit #int and 64-bit #uint limits.
2010-12-05 Paolo Bonzini <bonzini@gnu.org>
* lib-src/sockets.c: Use O_NONBLOCK from socketx.h.
2010-12-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Avoid crash on #changeClassTo: and UnicodeString.
2010-11-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Detect out-of-memory.
2010-11-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Change the stack top to nil in _gst_sync_wait
and put the semaphore back in _gst_sync_signal. This allows
Smalltalk code to distinguish interruptions from successful waits.
2010-11-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/memzero.h: Remove.
* libgst/dict.c: Replace memzero with memset.
* libgst/dict.inl: Replace memzero with memset.
* libgst/gstpriv.h: Replace memzero with memset.
* libgst/heap.c: Replace memzero with memset.
* libgst/lex.c: Replace memzero with memset.
* libgst/mpz.c: Replace memzero with memset.
* libgst/opt.c: Replace memzero with memset.
* libgst/prims.def: Replace memzero with memset.
* libgst/save.c: Replace memzero with memset.
* libgst/xlat.c: Replace memzero with memset.
2010-11-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Streamline unwind_context even more. The compiler
can do enough optimization that we can use the free_lifo_context
global directly. Also, _gst_nil_oop is kept in a register so
icache-wise it pays to always do the store into parentContext.
2010-11-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Add instantiate_numbytes, use it for instantiate
and non-pointer instantiate_with; do not unroll nil initialization
since N is usually small here. Rewrite nil_fill.
* libgst/interp.c: Unroll the first few itertaions of prepare_context.
Do not use nil_fill.
* libgst/md-config.h: Remove loop unrolling macros.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Tune for x86-64.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.inl: Add optimized x86 versions of tagged arithmetic
operations.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.inl: Add here functions for SmallInteger OOP arithmetic.
* libgst/prims.def: Use the new functions.
* libgst/vm.def: Use the new functions.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Reorder printing of statistics so that the results
are not influenced by printing the result and by the #afterEval
hooks.
2010-10-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/events.c: Remove pthread_in_use.
2010-10-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/events.c: Include pthread.h if using pthreads.
2010-10-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: NULL-terminate the output of VMpr_String_asCData.
Suggested by Holger Hans Peter Freyther.
2010-10-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Retrieve CCallbackDescriptor on image load.
2010-09-27 Holger Hans Peter Freyther <zecke@selfish.org>
* libgst/oop.c: Fix a typo.
2010-09-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Correctly handle scoped methods within
a class block.
2010-09-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Fix NULL pointer dereference.
2010-09-25 Gwenael Casaccio <mrgwen@gmail.com>
* libgst/gst-parse.c: Support multi-keyword class attributes.
2010-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Correctly use size_t/ssize_t.
* libgst/sysdep/common/files.c: Likewise.
* libgst/prims.def: Likewise. Remove duplicate checks.
2010-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Remove _gst_full_write.
* libgst/sysdep/common/files.c: Move _gst_full_write...
* libgst/save.c: ... here. longjmp out to _gst_save_to_file when
it fails.
2010-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Fix warnings.
* libgst/real.c: Fix out-of-bounds array access (which is actually
unreachable, but GCC still warns).
* libgst/prims.def: Fix two warnings.
* libgst/sysdep/win32/signals.c: Fix warning.
2010-07-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Fix GC_DEBUGGING compilation. Fix GC bug in
"ObjectMemory current".
2010-06-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Use _gst_copy_oop_range and _gst_mark_oop_range.
* libgst/oop.c: Rewrite tail recursion in _gst_mark_an_oop_internal.
Add _gst_mark_oop_range.
* libgst/oop.h: Add _gst_mark_oop_range, change prototype of
_gst_mark_an_oop_internal.
* libgst/oop.inl: Remove COPY_OOP_RANGE and MARK_OOP_RANGE, adjust
MAYBE_MARK_OOP.
2010-06-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: "Touch" all pointer arguments to socket
system calls to avoid EFAULT.
2010-06-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/time.c: Fix previous change for millisecond
vs. microsecond confusion.
2010-05-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/time.c: Prefer using nanosleep to usleep.
usleep is totally broken under Solaris 8 and 9. Reported by Rick
Flower.
2010-05-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load DynVariable.st.
2010-05-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Flush aggressively around _gst_execute_statements.
* libgst/gst-parse.c: Likewise.
2010-04-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Fix previous commit.
2010-04-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Make connect return int.
2010-04-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Remove dead code.
2010-04-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/events.c: Ahem, this really could not work.
2010-04-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Fix warnings on platforms with no lstat.
2010-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Fix logic for no SOCK_CLOEXEC or no accept4.
2010-02-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Adjust for AnsiExcept.st rename.
2010-02-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Make EXIT_INTERPRETER safer since we now can fork
CallinProcesses to Processes.
2010-02-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Compile the termination method with an infinite
loop to avoid falling off the last context.
2010-02-05 Gwenael Casaccio <mrgwen@gmail.com>
* libgst/sysdep/posix/events.c: Fix initialization of waiting_thread.
2010-01-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/genbc-decl.y: Embarrassing typo.
2010-01-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Hack to build with GMP 5.
2010-01-01 Paolo Bonzini <bonzini@gnu.org>
* Update copyright years.
2009-12-11 Gwenael Casaccio <mrgwen@gmail.com>
* libgst/prims.def: Fix bug in similarityTo:.
2009-12-09 Alexey Zakhlestin <indeyets@gmail.com>
* libgst/gstpriv.h: Include sockets.h.
* libgst/print.c: Fix printf.
* libgst/socklen.c: Use socklen_t where appropriate.
* libgst/sym.c: Remove useless cast.
* libgst/sysdep/common/files.c: Fix 64-bit cleanliness problems.
* libgst/sysdep/posix/findexec.c: Likewise.
2009-12-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Add LN_ABSOLUTE, emit relative line number bytecodes
together with _following_ bytecode.
* libgst/byte.h: Add LN_ABSOLUTE.
* libgst/comp.c: Emit absolute line number for the line with the
selector.
* libgst/opt.c: Remove now useless two-line-numbers optimization.
2009-11-26 Lee Duhem <lee.duhem@gmail.com>
* libgst/comp.c: Make formatted source of Behavior>>methodsFor: look
better.
2009-11-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Pass PREFIX and EXEC_PREFIX.
2009-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Do not fail on pow(0.0, 0.0).
2009-11-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Fix computation of jump lengths.
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpub.c: Move init_vmproxy and _gst_get_vmproxy...
* libgst/callin.c: ... here. Make_gst_init_vmproxy public, do
not call it from _gst_get_vmproxy.
* libgst/callin.h: Declare them here...
* libgst/files.h: ... not here.
* libgst/files.c: Call _gst_init_vmproxy.
2009-10-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/events.c: Implement pause/wakeup.
2009-10-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Fix !HAVE_IPV6 compilation, and other Cygwin
problems.
2009-10-13 Nigel Williams <nigelw@elder-gods.net>
* libgst/cint.c: Always open with lt_dlopen first, then try
lt_dlopenext.
2009-10-13 Eli Green <detgk@me.com>
* libgst/events.h: Fix multiply defined symbols on Mac OS X.
2009-10-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix #becomeForward: to look at LIFO contexts.
2009-10-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Allow reusing #at: primitive for #at:ifAbsent:.
2009-10-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Implement memchr primitive.
2009-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/signals.c: Simplify given known set of valid
signals.
2009-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.h: Add _gst_get_fd_error.
* libgst/sysdep/win32/events.c: Implement it.
* libgst/sysdep/posix/events.c: Implement it as a stub.
* libgst/sockets.c: Use it in getSoError.
2009-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/events.c: Extract select-based polling from
poll_thread, use it in _gst_sync_file_polling and
_gst_async_file_polling, save error conditions returned
by WSAEnumNetworkEvents.
2009-09-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Fix crash on invalid class variable definitions.
2009-08-26 Paolo Bonzini <bonzini@gnu.org>
Complete transition from events.c to sysdep/*/events.c, moving
the common parts back outside sysdep/ and adding a stab at the
Win32 version. This lets us throw Makefile/lib-src hacks away.
* libgst/gstpriv.h: Include signal.h, do not include poll.h.
* libgst/events.h: Add _gst_register_socket.
* libgst/sysdep.h: Add _gst_wait_for_input. Remove TIMER_REAL,
TIMER_PROCESS.
* libgst/input.c: Use _gst_wait_for_input and _gst_sync_file_polling.
* libgst/sockets.c: Use gstpriv.h. Do _gst_register_socket. Do
not warn under mingw.
* libgst/interp.c: Cope with nonexistent SIGUSR1. Avoid useless
abstraction in _gst_signal_after.
* libgst/sysdep/common/files.c: Cope with nonexistent SIGPIPE.
* libgst/sysdep/cygwin/timer.c: Adjust for changes in sysdep.h.
* libgst/sysdep/posix/timer.c: Adjust for changes in sysdep.h.
* libgst/sysdep/win32/timer.c: Adjust for changes in sysdep.h.
* libgst/sysdep/win32/events.c: Rewrite.
* libgst/sysdep/win32/signals.c: Remove signals not found under mingw.
* libgst/sysdep/posix/events.c: Add _gst_register_socket and
_gst_wait_for_input. Adjust to move OS-independent parts...
* libgst/events.c: ... here.
2009-08-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Just skip primitives that are unknown to the image.
2009-08-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Move from packages/sockets/.
* libgst/sockets.h: New.
* libgst/files.c: Initialize sockets.
2009-08-24 Paolo Bonzini <bonzini@gnu.org>
Nicolas Petton <petton.nicolas@gmail.com>
* libgst/dict.inl: Add num_valid_oops.
* libgst/prims.def: Add becomeForward primitive.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.inl: Fix ??? comment.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Export finished_incremental_gc.
* libgst/oop.h: Declare _gst_finished_incremental_gc. Use
maybe_release_xlat.
* libgst/oop.inl: Fix bottom-to-top incremental collector.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Rename highest_swept_oop to next_oop_to_sweep,
shift it down by one.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Always do _gst_finish_incremental_gc so that
finished_incremental_gc is called.
2009-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.h: Declare it.
* libgst/sysdep/posix/events.c: Add _gst_wakeup.
* libgst/sysdep/win32/events.c: Ditto.
* libgst/gstpub.c: Add it to VMproxy and add gst_wakeup.
* libgst/gstpub.h: Add wakeUp to VMproxy, add gst_wakeup.
* libgst/interp.c: Call _gst_wakeup from _gst_async_call.
2009-08-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Tweak.
* libgst/sysdep.c: Split into...
* libgst/sysdep/common/files.c, libgst/sysdep/common/time.c,
libgst/sysdep/cygwin/files.c, libgst/sysdep/cygwin/findexec.c,
libgst/sysdep/cygwin/mem.c, libgst/sysdep/cygwin/signals.c,
libgst/sysdep/cygwin/time.c, libgst/sysdep/cygwin/timer.c,
libgst/sysdep/posix/files.c, libgst/sysdep/posix/findexec.c,
libgst/sysdep/posix/mem.c, libgst/sysdep/posix/signals.c,
libgst/sysdep/posix/time.c, libgst/sysdep/posix/timer.c,
libgst/sysdep/win32/files.c, libgst/sysdep/win32/findexec.c,
libgst/sysdep/win32/mem.c, libgst/sysdep/win32/signals.c,
libgst/sysdep/win32/time.c, libgst/sysdep/win32/timer.c: ... all
these.
* libgst/events.c: Copy to...
* libgst/sysdep/posix/events.c: ... this...
* libgst/sysdep/win32/events.c: ... and this.
* libgst/sysdep/cygwin/events.c: New.
2009-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Add _gst_pause.
* libgst/events.h: Declare it.
* libgst/interp.c: Add active_process_yield.
* libgst/prims.def: Use it. Remove sleeping from VMpr_Processor_yield.
Add VMpr_Processor_pause. Return whether incremental GC has finished
in the VMpr_ObjectMemory_incrementalGCStep primitive.
* libgst/sysdep.c: Add _gst_usleep.
* libgst/sysdep.h: Declare it.
2009-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Track correctly the bottom-to-top sweeping of OOPs.
Return from _gst_incremental_gc_step whether incr. GC has finished.
* libgst/oop.h: Adjust prototype.
* libgst/oop.inl: Track here the bottom-to-top sweeping of OOPs.
2009-08-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add dlopen functions for modules.
* libgst/cint.h: Declare them.
* libgst/gstpub.c: Implement public variants and add to VMProxy.
* libgst/gstpub.h: Declare public variants.
2009-08-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Do not create gcSemaphore.
* libgst/oop.c: Abort upon absence of gcSemaphore.
2009-08-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Remove Delay, SharedQueue, MappedCollection, Bag.
* libgst/dict.h: Likewise.
* libgst/files.c: Move them after initialization.
2009-07-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add git revision number to Version contents.
2009-07-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/genbc-parse.y: Fix uninitialized memory use that
"interestingly" triggered only under Wine.
2009-07-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Return 64-bit millisecond clock.
* libgst/sysdep.c: Return 64-bit millisecond clock, use monotonic
clock_gettime if available.
* libgst/prims.def: Return 64-bit millisecond clock.
2009-07-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Add optimization barrier.
* libgst/vm.def: Use it.
* libgst/prims.def: Eliminate uninitialized variable.
2009-07-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Small cleanup.
2009-07-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/genpr-parse.y: Fix for newer bison.
2009-07-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Use new real.c interface.
* libgst/real.c: New.
* libgst/real.h: New.
2009-07-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Include all symbols after popular demand for
completion.
2009-06-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Fix my own snafu.
2009-06-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Check for infinite recursion of #doesNotUnderstand:
before printing the result of an evaluation.
2009-06-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Pad long doubles to 16 bytes.
2009-06-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Fix parsing of 16r2.ABCDEFd.
2009-06-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix typo.
2009-06-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Return whether large integer->float conversion was
exact.
* libgst/mpz.h: Adjust prototypes.
* libgst/prims.def: Fail on inexact conversions.
2009-03-30 Derek Zhou <agonyzhou@comcast.net>
Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Do not reset counters if profiling is on.
* libgst/interp-bc.inl: Make state consistent when
profiling callbacks might be called.
* libgst/interp.c: Likewise.
* libgst/dict.c: Add profiling callback.
* libgst/dict.h: Add profiling callback.
* libgst/interp-bc.inl: Call it.
* libgst/interp.c: Declare variables.
* libgst/interp.h: Declare variables.
* libgst/prims.def: Add profiling primitive.
2009-03-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load RecursionLock.st before Transcript.st.
2009-02-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Fix off-by-one in _gst_identity_dictionary_at_put.
2009-01-23 Derek Zhou <agonyzhou@comcast.net>
* libgst/oop.c: Allow shrinking the heap down to the eden's size.
2009-01-21 Derek Zhou <agonyzhou@comcast.net>
* libgst/oop.c: Only compact if there were lots of garbage,
shrinking the heap limit at the same time.
2009-01-19 Paolo Bonzini <bonzini@gnu.org>
Derek Zhou <agonyzhou@comcast.net>
* libgst/oop.c: Always call _gst_finish_incremental_gc before
a non-growing compaction of the heap.
2009-01-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add chown.
2008-12-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Discard EPIPE too, it is caught by POLLHUP.
2008-12-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Resize the oldspace if tenuring needs more space than
we would have liked to have, but then do a GC if this happens.
2008-11-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Use fixed values for MMAP_AREA_SIZE and
MMAP_THRESHOLD.
2008-10-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Do not modify already-complete blocks.
* libgst/interp-bc.inl: Sync _gst_send_method and _gst_send_message_internal.
2008-10-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fix ISO C99-ism.
2008-10-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-jit.inl: Fix compilation error.
2008-10-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.h: Remove ATTRIBUTE_PURE from functions that are CSEable,
but write to memory (typically by memoizing values or allocating OOPs).
* libgst/input.h: Likewise.
* libgst/interp.c: Likewise.
* libgst/opt.h: Likewise.
* libgst/sym.h: Likewise.
* libgst/opt.c: Change compute_jump_length to be const.
2008-09-22 Paolo Bonzini <bonzini@gnu.org>
* cint.c: Fix ia64 cobjects.st failure by always using a ffi_arg-sized
field.
2008-09-22 Paolo Bonzini <bonzini@gnu.org>
* genpr-parse.c: Rename strupr.
* genpr-parse.h: Rename strupr.
* genpr-parse.y: Rename strupr.
2008-09-22 Paolo Bonzini <bonzini@gnu.org>
* input.c: Revert 2008-09-18 change. Check whether get_cur_file()
returns nil instead.
2008-09-21 Paolo Bonzini <bonzini@gnu.org>
* alloc.h: Change nomemory hook prototype.
* alloc.c: Use return value of nomemory hook.
* oop.c: Pass new oldspace heap back from nomemory hook.
2008-09-20 Paolo Bonzini <bonzini@gnu.org>
* cint.c: Adjust calls to _gst_show_backtrace.
* gstpub.c: Add gst_show_backtrace and declare it in VMProxy.
* gstpub.h: Likewise.
* interp.c: Adjust calls to _gst_show_backtrace, add FILE *
argument there.
* interp.h: Adjust prototype of _gst_show_backtrace.
* prims.def: Adjust calls to _gst_show_backtrace.
2008-09-18 Paolo Bonzini <bonzini@gnu.org>
* input.c: Do not create FileSegments for non-FileStream streams.
2008-09-14 Paolo Bonzini <bonzini@gnu.org>
* cint.c: Fix possible GC bugs.
2008-09-02 Paolo Bonzini <bonzini@gnu.org>
* prims.def: Do not use closesocket, close is now emulated
on Windows.
2008-08-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Mark the termination method as annotated.
2008-08-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Add socket<->fd conversions.
* libgst/sysdep.c: Likewise.
2008-08-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Emulate FD_CLOEXEC on MinGW.
2008-08-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Do not pass POLLHUP errors to Smalltalk.
2008-08-08 Samuel Tardieu <sam@rfc1149.net>
* libgst/sysdep.c (do_interrupts): Remove unused prototype.
(DISABLED_MASK): Add SIGQUIT.
2008-08-08 Samuel Tardieu <sam@rfc1149.net>
* libgst/sysdep.c (_gst_open_pipe): Remove unused variable.
2008-08-08 Samuel Tardieu <sam@rfc1149.net>
* libgst/sysdep.c (find_executable): Correctly zero-terminate
"location" before returning it.
2008-08-07 Paolo Bonzini <bonzini@gnu.org>
* gstpriv.h: Define __sync_synchronize.
* interp.h: Do not export _gst_except_flag if not JIT.
* interp.c: Use a separate queue for async calls scheduled
from a signal handler. Protect other async call queue accesses
with a lock. Add memory barriers.
* interp-bc.inl: Protect async call queue accesses with a lock.
Add memory barriers.
* interp-jit.inl: Protect async call queue accesses with a lock.
Add memory barriers. Reset _gst_except_flag earlier.
Use the return value of _gst_run_native_code to check if the
termination method was invoked.
* sysdep.h: Define _gst_signal_count.
* sysdep.c: Use it instead of a static variable.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* events.c: Reset errno if _gst_sync_file_polling finds
POLLHUP, POLLERR or POLLNVAL.
* events.h: Document this.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* events.c: Use _gst_{dis,en}able_interrupts (true);
make a worker function for _gst_remove_fd_polling_handlers and
file_polling_handler. Call it asynchronously from
file_polling_handler. Do not disable interrupts from
_gst_async_file_polling.
* gstpub.c: Export _gst_async_call and _gst_sync_signal.
* gstpub.h: Likewise.
* interp-bc.inl: Perform asynchronous calls.
* interp-jit.inl: Perform asynchronous calls.
* interp.c: Adjust async_queue_entry for asynchronous calls.
Export sync_signal. Adjust calls to _gst_{dis,en}able_interrupts.
* interp.h: Declare _gst_async_call and _gst_sync_signal.
* sysdep.c: Rewrite _gst_{dis,en}able_interrupts to rely on
sigaction setting the mask on POSIX systems. Set up the
mask in _gst_set_signal_handler.
* sysdep.h: Adjust prototypes, adjust documentation of
_gst_set_signal_handler.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* interp-bc.inl: Change disable_preemption to async_queue_enabled.
* interp-jit.inl: Likewise.
* interp.c: Make queued_async_signals a dynamic array. Make
sync_signal able to behave like Semaphore>>#notify. Do not
disable/enable interrupts on behalf of the Smalltalk program;
async_queue_enabled already fakes that. Do not disable/enable
interrupts in the synchronized wait/signal functions.
* prims.def: Do not disable/enable interrupts around the
synchronized wait/signal functions.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* input.c: Do not use #nextHunk.
2008-08-05 Paolo Bonzini <bonzini@gnu.org>
* dict.c: Adjust layout of FileDescriptor and FileStream. Do not
fill in FileStream variables in FileDescriptors.
* dict.h: Likewise.
* prims.def: Adjust uses of gst_file_stream.
2008-08-05 Paolo Bonzini <bonzini@gnu.org>
* dict.c: Remove _gst_byte_stream_class. Change superclass of
FileDescriptor.
* dict.h: Likewise.
* files.c: Do not load ByteStream.st.
2008-08-05 Paolo Bonzini <bonzini@gnu.org>
* dict.c: Add _gst_iterable_class. Change superclass of
Collection and Stream.
* dict.h: Likewise.
* files.c: Load Iterable.st.
2008-08-04 Paolo Bonzini <bonzini@gnu.org>
* interp.c: Move ignored signals...
* sysdep.c: ... here. Reset them for exec-ed executables.
2008-08-01 Paolo Bonzini <bonzini@gnu.org>
* sysdep.c: Use O_CLOEXEC if available instead of FD_CLOEXEC.
2008-08-01 Paolo Bonzini <bonzini@gnu.org>
* sysdep.c: Always set SIGCHLD handler, and invoke the file
interrupt handler from it. This makes sure that all children
are reaped.
2008-08-01 Paolo Bonzini <bonzini@gnu.org>
* sysdep.c: Fix off-by-one errors involving readlink(2).
2008-07-28 Paolo Bonzini <bonzini@gnu.org>
* gst-parse.c: Parse negative numbers as unary minus + number.
* lex.c: Add _gst_negate_yylval and simplify _gst_scan_number.
* lex.h: Declare _gst_negate_yylval.
2008-07-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Modify _gst_line_number to store the line offset
and emit the first line number as absolute.
* libgst/byte.h: Add LN_RESET and LN_FORCE.
* libgst/comp.c: Use new _gst_line_number functionality instead
of line_offset.
* libgst/opt.c: Rewrite is_simple_return to account for line numbers
that are >= 256.
2008-07-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Change HAVE_INET_SOCKETS to HAVE_SOCKETS.
* libgst/prims.def: Change HAVE_INET_SOCKETS to HAVE_SOCKETS.
* libgst/sysdep.c: Change HAVE_INET_SOCKETS to HAVE_SOCKETS.
2008-07-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Enable jump superoperators.
2008-07-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Replace FETCH with FETCH_VEC.
* libgst/vm.def: Use ADVANCE instead of PREFETCH also for jump
superoperators. Move "ip += 2" to ADVANCE. Remove argument
to FETCH (it was always dispatch_vec), add PREPARE_STACK to
jump bytecodes.
2008-07-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Rewrite _gst_optimize_bytecodes to build a CFG
and reassemble the method at the end of the optimization.
2008-07-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Fix order of instance variables for metaclass.
2008-06-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Create a jmp_buf for _gst_interpret.
* libgst/interp-jit.inl: Likewise.
* libgst/interp.c: Rewrite handling of interp_jmp_buf and signals. Use
the jmp_buf from _gst_interpret when SIGINT is sent but the current
process is terminated.
* libgst/prims.def: Use push_jmp_buf and pop_jmp_buf. Propagate
interruptions until the interpreter is reached.
2008-06-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Return the receiver, not nil, if the returned type
is #void.
2008-05-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Fix %w in _gst_msg_sendf.
2008-05-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Add VMpr_ArrayedCollection_equal.
2008-05-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Don't pin weak objects to a fixed location.
* libgst/oop.h: Remove now unused fields.
2008-05-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.h: Declare _gst_invalidate_croutine_cache.
* libgst/cint.c: Define it. Replace cache validity boolean with
a cache generation number.
* libgst/oop.c: Call it after GC.
2008-05-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Make VMpr_ByteArray_replaceFromToWithStartingAt
more generic.
2008-05-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Extract part of push_smalltalk_obj into c_to_smalltalk.
Add closure support.
* libgst/cint.h: Declare functions for closures.
* libgst/dict.c: Add CCallbackDescriptor.
* libgst/dict.h: Add CCallbackDescriptor.
* libgst/files.c: Load CCallback.st.
* libgst/prims.def: Declare closure primitives.
2008-05-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Support '%B' for the receiver in msgSendf.
* libgst/interp.c: Callins evaluate blocks if the selector is NULL.
2008-05-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Replace CFunctionDescriptor references with CCallable.
Allow OOPs in the argument vector and parse them as #cObject.
* libgst/cint.h: Likewise.
* libgst/dict.c: Add _gst_c_callable_class and definition of CCallable.
* libgst/dict.h: Add _gst_c_callable_class.
* libgst/files.c: Load CCallable.st.
* libgst/save.c: Replace CFunctionDescriptor references with CCallable.
2008-05-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Remove symbol_type_map, type_map, classify_type_symbol,
_gst_make_descriptor. Make lookup_function global.
* libgst/cint.h: Declare _gst_lookup_function instead of
_gst_make_descriptor.
* libgst/prims.def: Replace VMpr_CFuncDescriptor_create with
VMpr_CFuncDescriptor_addressOf.
2008-05-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Make CFunctionDescriptor a subclass of CObject,
moving in turn the indexed instance variables into an array.
* libgst/dict.c: Adjust definition. Change uninitialized creation
in _gst_cobject_new_base to initialized.
* libgst/save.c: Adjust saving.
2008-05-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Complete 2008-04-01 change by splitting part of
c_func_info in a cache accessed with a pointer_map. This way, the
CFunctionDescriptor can store the function pointer instead of the
pointer to the c_func_info.
2008-05-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/sym.c: Improve comment on TwistedPools wrt namespace
imports.
2008-05-18 Stephen Compall <scompall@nocandysw.com>
* libgst/gst-parse.c: Refactor pragma evaluation into new
function, and use it to support namespace pragmas.
2008-05-17 Stephen Compall <scompall@nocandysw.com>
* libgst/dict.h: Add `sharedPools' instvar to gst_namespace.
* libgst/dict.c: Likewise.
* libgst/sym.c: Import shared pools from namespaces as they are
visited, and expand the comment on TwistedPools to document this.
2008-05-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Fix _gst_oop_indexed_base.
2008-05-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Allow ints in OOP->float conversions.
2008-05-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Allow passing any object with non-pointer indexed
instance variables as a #cObject.
2008-05-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Add ephemerons to buffer before marking their class
(else, if the class actually has to be marked, we won't add them to the
buffer at all).
2008-05-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.h: Add _gst_oop_indexed_base and _gst_oop_indexed_kind.
* libgst/callin.c: Implement them.
* libgst/gstpub.h: Add them to the VMProxy and to the public API.
* libgst/gstpub.c: Implement the public API wrappers.
2008-05-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Move ISP_* constants...
* libgst/dict.h: ... here...
* libgst/gst.h: ... and here. Prefix these with GST_.
* libgst/dict.c: Adjust uses.
* libgst/dict.inl: Adjust uses.
* libgst/prims.def: Adjust uses.
* libgst/xlat.c: Adjust uses.
2008-05-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Adjust send_block_value prototype.
* libgst/interp-bc.inl: Support block argument culling.
* libgst/interp-jit.inl: Support block argument culling.
* libgst/prims.def: Add primitives for block argument culling.
* libgst/vm.def: Adjust calls to send_block_value.
2008-05-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Adjust calls to COBJECT_NEW, COBJECT_VALUE,
SET_COBJECT_VALUE.
* libgst/cint.c: Likewise. Add _gst_c_type_size.
* libgst/cint.h: Declare _gst_c_type_size.
* libgst/dict.c: Likewise. Rename _gst_c_object_new to
_gst_c_object_new_base, add new instance variable to CObject.
Make CObject absolute in _gst_free_cobject.
* libgst/dict.h: Adjust struct gst_cobject and rename
prototype of _gst_c_object_new to _gst_c_object_new_base.
* libgst/dict.inl: Add cobject_value, set_cobject_value,
cobject_index_check. Adjust COBJECT_NEW. Rename COBJECT_VALUE_OBJ
and SET_COBJECT_VALUE_OBJ to COBJECT_OFFSET_OBJ and
SET_COBJECT_OFFSET_OBJ, respectively.
* libgst/prims.def: Adjust calls to COBJECT_NEW, COBJECT_VALUE,
SET_COBJECT_VALUE. Add calls to cobject_index_check. Handle
derefAt:type: from a garbage-collected CObject specially, and
otherwise preserve the base when casting a CObject.
2008-05-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Eliminate VMpr_CObject_derefAtPut,
restrict VMpr_CObject_derefAt to CObject types.
2008-04-25 Paolo Bonzini <bonzini@gnu.org>
Stephen Compall <scompall@nocandysw.com>
* libgst/sym.c: Document (prose by Stephen Compall) and
implement TwistedPools, using a linearized list of pool dictionaries
for the lookup.
2008-04-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Put fundamental instance variables of Behavior
at the beginning.
* libgst/dict.h: Likewise.
2008-04-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Rename name variable of FileDescriptor to file.
Support non-existent relocated paths by setting the variable to nil.
* libgst/files.c: Load FilePath.st.
* libgst/input.c: Support separate filename (for printing errors) and
File object (for FileSegments).
* libgst/input.h: Adjust prototypes.
* libgst/prims.def: Add fourth optional argument to filein primitive.
2008-04-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Likewise.
2008-04-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Don't use numFixedArgs instance variable of
a CFunctionDescriptor. Add classOOP parameters to _gst_make_descriptor.
Return NULL if there is a problem instead of printing an error.
* libgst/cint.h: Rename numFixedArgs field of gst_cfunc_descriptor
to tagOOP. Adjust prototype of _gst_make_descriptor.
* libgst/dict.c Rename numFixedArgs variable to tag here too.
* libgst/prims.def: Create subclasses of CFunctionDescriptor
if VMpr_CFuncDescriptor_create is sent to a subclass. Fail
if _gst_make_descriptor returns NULL.
2008-04-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Rename unwindPoints variable of Process to environment.
* libgst/files.c: Load ProcEnv.st.
2008-04-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Correct output for execution environment contexts
that have a parent.
2008-03-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add stat/lstat versions that return an object.
* libgst/dict.inl: Move from/to off_t conversion here...
* libgst/prims.def: ... from here.
2008-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Make #fileIn primitive fail if the filename is bad.
2008-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Never register the "nil" object, it is useless.
2008-03-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Mark VMpr_Process_suspend as a possible
source of interrupts.
2008-03-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load BlockClosure before the first closures
are executed (by the JIT).
2008-03-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add SystemKernelPath.
* libgst/files.c: Call `FileSegment relocate' before loading
pre-image files.
2008-03-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Relocate MODULE_PATH.
* libgst/dict.c: Relocate paths placed in the Smalltalk dictionary.
* libgst/files.c: Relocate image and kernel paths. Apply default
executable path.
* libgst/files.h: Remove _gst_executable_path.
* libgst/gstpub.c: Add gst_relocate_path, gst_set_executable_path.
* libgst/gstpub.h: Add gst_relocate_path, gst_set_executable_path.
* libgst/sysdep.c: Add _gst_relocate_path, _gst_set_executable_path.
* libgst/sysdep.h: Add _gst_relocate_path, _gst_set_executable_path.
2008-03-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Avoid mixed declarations and code.
2008-02-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Add _gst_remove_fd_polling_handlers.
* libgst/events.h: Declare it.
* libgst/prims.def: Use it.
2008-02-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Don't specify the path to ffi.h.
2008-02-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/re.c: Don't convert read-only strings to Regexes,
convert mutable strings instead.
2008-02-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Improve the precision of reading 0.1.
2008-02-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Move inclusion of sigsegv.h...
* libgst/gstpriv.h: ... here.
2008-02-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Microoptimization of + and - (avoid shifts).
* libgst/gstpriv.h: Microoptimization of integer overflow detection.
2008-01-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Fix #divExact: for huge numerator and small
denominator.
2008-01-17 Tony Garnock-Jones <tonygarnockjones@gmail.com>
* libgst/prims.def: Differentiate the return value for the
two processes.
2008-01-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Do not pop arguments that end up in an
object that the primitive creates.
2008-01-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix #signal:atMilliseconds: for negative
argument.
2008-01-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Disable copy-on-write if libsigsegv is not
available.
2008-01-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Move definition of NO_SIGSEGV_HANDLING...
* libgst/oop.h: ... here.
2008-01-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Don't fail for 0 divExact: x.
2008-01-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Use gst_invoke_hook.
2008-01-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Remove _gst_had_error.
* libgst/comp.h: Remove _gst_had_error.
* libgst/lex.c: Add _gst_had_error and _gst_error_recovery, use the
latter in scan_newline.
* libgst/lex.h: Add _gst_had_error and _gst_error_recovery.
* libgst/gst-parse.c: Nest error recovery jmp_bufs when
_gst_push_temporaries_dictionary is used. Don't call _gst_free_tree
when an error is recovered. Set _gst_error_recovery in recover_error
and look for ERROR_RECOVERY tokens too. Don't define TOKEN_SEP.
* libgst/gst-parse.h: Remove need for TOKEN_SEP definition. Add
ERROR_RECOVERY token.
2008-01-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Do not imply '.' after assignment operator.
2007-12-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix right #bitShift: with high RHS and LHS<0.
* libgst/vm.def: Fix right #bitShift: with high RHS and LHS<0.
2007-12-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c (check_weak_refs): Undo part, only fix the thinko.
(sweep_oop): Undo previous change.
2007-12-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c (check_weak_refs): Make dead weak objects non-weak,
fix thinko.
(sweep_oop): Don't make dead weak objects non-weak.
2007-12-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/genpr-parse.y: Declare _gst_primitives_md5 as unsigned char.
* libgst/interp.h: Ditto.
2007-12-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpub.h: Declare functions only accessible via the VMProxy.
* libgst/gstpub.c: Define them.
2007-12-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Never override malloc.
* libgst/heap.c: Never defer to sbrk.
2007-12-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Don't yield in resume_process.
2007-12-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Disable third register variable for i386.
2007-12-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fix code generation for DeferredVariableBinding store.
2007-12-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fix IR generation for DeferredVariableBinding store.
2007-12-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Extract part of suspend_process into
remove_process_from_list. Use it in resume_process if the process
is active. Yield the active process.
* libgst/prims.def: Add VMpr_Process_suspend.
2007-11-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Loosen tests of usage of instantiate and
instantiate_with.
2007-11-22 Paolo Bonzini <bonzini@gnu.org>
* gst-tool.c: Test both EXEEXT and ARGV_EXEEXT.
* libgst/cint.c: Fix my_mkdir for Cygwin.
Reported by Freddie Akeroyd.
2007-11-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Provide a default MAXSYMLINKS, for Cygwin.
Reported by Freddie Akeroyd.
2007-11-18 Paolo Bonzini <bonzini@gnu.org>
Freddie Akeroyd <F.A.Akeroyd@rl.ac.uk>
* gst-tool.c: Use EXEEXT. Look for backslashes as directory
separators.
* libgst/cint.c: Add my_mkdir and my_mkdtemp.
* libgst/sysdep.c: Fix syntax error under Win32.
2007-11-18 Paolo Bonzini <bonzini@gnu.org>
* main.c: Don't use asprintf.
2007-11-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Use pow/powl.
2007-11-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Use _gst_file_is_newer.
* libgst/sysdep.c: Remove _gst__gst_get_file_modify_time, add
_gst_file_is_newer.
* libgst/sysdep.h: Likewise.
2007-11-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Return false if file cannot be opened by
gst_process_file, and set errno appropriately.
* libgst/files.c: Use errno on return from gst_process_file.
* main.c: Use errno on return from gst_process_file.
* gst-tool.c: Use errno on return from gst_process_file.
2007-10-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/re.c: Call init_re from exported functions.
2007-10-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Add brackets to source code of #methodsFor:.
Set isOldSyntax bit of the CompiledMethod header.
* libgst/comp.h: Add isOldSyntax bit.
* libgst/gst-parse.c: Parse isolated methods with new syntax.
* libgst/tree.c: Add isOldSyntax argument to _gst_make_method.
* libgst/tree.h: Likewise, and add it to AST.
2007-10-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Don't replace instance variables except
in the first declaration inside a subclass declaration.
2007-10-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Use another scramble function suggested by
Andres Valloud.
2007-10-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Break hard links when saving.
2007-10-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Do rotations correctly in scramble.
2007-10-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add necessary class variables for rewrite.
2007-10-01 Stephen Compall <scompall@nocandysw.com>
* libgst/re.c: Add init_re, registering ASCII case table.
2007-09-27 Freddie Akeroyd <F.A.Akeroyd@rl.ac.uk>
Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Wrap symlink to avoid errors in case the prototype
is absent.
* libgst/prims.def: Disable ENOTSOCK checking if constant not defined.
2007-09-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Strengthen error checking for wrong
"Class >> method [ ... ]" stanzas.
2007-09-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/re.c: Cache any read-only string literal.
2007-09-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Fix NULL dereference on Smalltalk subclass:
Foo [ ].
2007-09-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Disable register allocation tricks if not
optimizing, as well as third register on Apple compilers.
2007-09-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/re.c: Yet another GC problem.
2007-09-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Fix GC problem with attributes.
2007-09-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.h: Move NO_SIGSEGV_HANDLING...
* libgst/oop.c: ... here.
* libgst/save.c: Make writable mmap if defined.
2007-09-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.inl: Fix 64-bit cleanliness error.
2007-09-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Open image file with r+ and truncate it afterwards.
* libgst/sysdep.c: Use O_CREAT for r+.
2007-09-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Adjust by fileOffset when generating source string
with _gst_counted_string_new.
2007-08-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Create deferred variable bindings with a path.
Adjust calls to _gst_find_variable_binding.
* libgst/dict.c: Add path variable to DeferredVariableBinding.
* libgst/dict.h: Add path variable to struct
gst_deferred_variable_binding.
* libgst/sym.h: Remove last parameter from
_gst_find_variable_binding.
* libgst/sym.c: Assume last parameter of _gst_find_variable_binding
to be true. Adjust call to _gst_make_deferred_binding_constant.
* libgst/tree.h: Adjust last parameter of
_gst_make_deferred_binding_constant.
* libgst/tree.c: Turn last parameter of _gst_find_variable_binding
into a tree. Support new constant types in _gst_print_tree.
2007-08-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/superop1.inl: Regenerate.
* libgst/superop2.inl: Regenerate.
* libgst/byte.def: Regenerate.
* libgst/vm.def: Reenable superoperators.
* libgst/opt.c: Reenable superoperators.
2007-08-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Make make_constant_oop global, adjust for new
return value of _gst_find_variable_binding, create
DeferredVariableBinding objects. Compile store-into-
variable to store+pop+push. Adjust equal_constant to
support CONST_DEFERRED_BINDING and adjusting for the new return value
of _gst_find_variable_binding.
* libgst/comp.h: Declare _gst_find_variable_binding.
* libgst/dict.c: Add DeferredVariableBinding.
* libgst/dict.h: Add DeferredVariableBinding and
struct gst_deferred_variable_binding.
* libgst/files.c: Add DeferBinding.st, load LookupKey hierarchy early.
* libgst/opt.c: Temporarily disable superoperators. Pass LookupKeys
in the verifier.
* libgst/sym.c: Return a tree_node from _gst_find_variable_binding,
adjust _gst_find_variable, add _gst_get_undeclared_dictionary.
* libgst/sym.h: Adjust declarations.
* libgst/tree.c: Add _gst_make_deferred_binding_constant.
* libgst/tree.h: Add _gst_make_deferred_binding_constant.
2007-08-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Support non-Associations storing global variables.
* libgst/xlat.c: Support non-Associations storing global variables.
* libgst/print.c: Support LookupKeys storing global variables.
* libgst/dict.c: Reload _gst_lookup_key_class on startup.
2007-08-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Dereference the VariableBinding stored in a CType.
2007-08-13 Paolo Bonzini <bonzinI@gnu.org>
* libgst/cint.c: Remove enum cdata_type, moved to cint.h. Reorder
c_type_name and type_map accordingly. Add CDATA_UCHAR, CDATA_SHORT,
and CDATA_USHORT. Convert from/to them appropriately in
push_smalltalk_obj, get_ffi_type.
* libgst/cint.h: Add enum cdata_type.
* libgst/prims.def: Use enum cdata_type values.
* libgst/sym.c: Add symbols for #short, #uShort, #uChar.
* libgst/sym.h: Add symbols for #short, #uShort, #uChar.
2007-08-13 Paolo Bonzini <bonzinI@gnu.org>
* libgst/interp.c: Fix GC bug in _gst_prepare_execution_environment.
2007-08-13 Paolo Bonzini <bonzinI@gnu.org>
* libgst/callin.c: Use _gst_c_object_new instead of
_gst_c_object_new_typed.
* libgst/cint.c: Likewise.
* libgst/dict.inl: Likewise.
* libgst/dict.c: Remove _gst_c_object_type_ctype and _gst_c_type_new.
Add a new parameter to _gst_c_object_new_typed and call it
_gst_c_object_new; dereference the binding of the TYPEOOP.
Remove _gst_alloc_cobject.
* libgst/prims.def: Remove VMpr_CObject_alloc. Check receiver
type for VMpr_CObject_allocType. Use _gst_c_object_new instead of
_gst_c_object_new_typed.
2007-08-12 Paolo Bonzini <bonzinI@gnu.org>
* libgst/comp.c: Make literals read-only in make_oop_constant.
* libgst/dict.inl: Make Float* and Character literals read-only.
2007-07-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load VFSZip.st.
2007-07-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.h: Fix prototype declaration when readline is not
available.
2007-07-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.h: Turn second parameter of _gst_set_stream_info to OOP.
* libgst/input.c: Likewise.
* libgst/prims.def: Remove fileIn primitive. Remove check on
file validity from fileInLine primitive. Adjust call to
_gst_set_stream_info.
2007-07-17 Stephen Compall <scompall@nocandysw.com>
* libgst/prims.def: Rename compileString primitives to
primCompile.
* libgst/xlat.c: Mention #primCompile:.
2007-07-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: When compacting, do not discard grey pages from
the loaded space. Add _gst_print_grey_list.
* libgst/oop.h: Add fields to delimit loaded space to
struct memory_space.
* libgst/save.c: Fill them in.
2007-07-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Fix pasto in _gst_grow_dictionary.
2007-07-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Reset _gst_except_flag to false at beginning
of monitor_byte_codes.
2007-07-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Add break.
2007-07-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Rename...
* libgst/files.c: ... to this.
* libgst/files.c: Change "gst_" functions to "_gst_".
* libgst/callin.c: Move gst_interpreter_proxy and _gst_init_vmproxy...
* libgst/gstpub.c: ... here (new file). Add "gst_*" functions.
* libgst/callin.h: Rename *cobject functions to *c_object.
* libgst/interp.c: Change bool_addr_index to _gst_{get,set}_var.
* libgst/prims.def: Switch to new interface.
* libgst/files.c: Rename find_kernel_file to _gst_find_file, drop
second parameter.
* libgst/input.c: Add _gst_process_stdin, _gst_process_file.
* libgst/gstpub.c: Add public and VMProxy counterparts.
* libgst/comp.c: Turn _gst_invoke_hook parameter into an enum.
* libgst/files.c: Turn _gst_invoke_hook parameter into an enum.
* libgst/save.c: Turn _gst_invoke_hook parameter into an enum.
* libgst/gstpub.c: Add public and VMProxy counterparts.
* libgst/input.c: Add _gst_no_tty and turn "prompt" field into char *.
* libgst/files.c: Remove --emacs-process and -S handling.
* libgst/files.c: Create _gst_initialize out of init_paths and
_gst_init_smalltalk, remove SMALLTALK_KERNEL and SMALLTALK_IMAGE
handling out of init_paths, remove option handling, always derive
image path from image file.
* libgst/callin.c: Change _gst_init_smalltalk calls to _gst_initialize.
* libgst/gst.h: Add enums for above changes.
2007-07-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix "==" vs. "=" typo.
* libgst/sysdep.c: Fix previous change for Linux.
2007-07-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Add _gst_executable_path.
* libgst/lib.h: Set it in gst_smalltalk_args.
* libgst/dict.c: Set CSymbols.ExecutableFileName.
* libgst/sysdep.c: Add _gst_find_executable.
* libgst/sysdep.h: Declare _gst_find_executable.
2007-07-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add binding for mkdtemp and chmod.
2007-07-03 Freddie Akeroyd <F.A.Akeroyd@rl.ac.uk>
Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Remove #undef small.
* libgst/alloc.h: Move it here.
* libgst/prims.def: Flush stdio files before quitting.
* libgst/sysdep.c: Implement _gst_recv with recvfrom.
2007-07-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Export LibexecPath.
2007-07-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Remove bogus check on file in of FileDescriptor
objects.
2007-06-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Ensure null termination of _gst_image_file_path.
2007-06-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Don't lose on integer literals followed by identifiers.
2007-06-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Put full path names into kernel/image paths and into
the image file name.
* libgst/lib.h: Adjust constness.
2007-06-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Use GetFullPathName under Windows.
2007-06-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Use utime if utimes missing.
* tests/fileext.st: Run tests using Unix file separator.
2007-06-15 Freddie Akeroyd <F.A.Akeroyd@rl.ac.uk>
Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Remove my_utime.
* libgst/sysdep.c: Move it here as _gst_set_file_access_times.
* libgst/sysdep.h: Declare it.
* libgst/dict.c: Add CSymbols.PathSeparator.
2007-06-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Try VirtualAlloc with NULL address if a fixed
address fails.
2007-06-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add symlink function.
2007-06-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Initialize an attribute's arguments array before
filling it, a GC may trigger while it is being created.
2007-06-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add Continuation class.
* libgst/dict.h: Add Continuation class.
* libgst/interp.c: Add resume_suspended_context, extracted from
change_process_context.
* libgst/interp.h: Add Continuation class definition.
* libgst/prims.def: Add a primitive for continuations.
* libgst/lib.c: Add Continuation.st and Generator.st.
2007-06-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Be quiet, but still automatically add periods, when
in Emacs mode.
* libgst/comp.c: Likewise.
2007-06-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.h: Add PRIM_SHUTDOWN_WRITE.
* libgst/interp.c: Implement it. Fix bug in PRIM_MK_TEMP.
* libgst/sysdep.c: Use pipes/sockets instead of pty's.
2007-06-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Load StreamOps.st.
2007-05-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Support [:arg1 :arg2] syntax for blocks.
2007-05-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Revert meaning of the last parameter
to parse_doit. Skip over the final '!' in parse_chunks,
don't do so in parse_doit and parse_method_list. Exit
parse_namespace_definition upon finding a '!'.
2007-05-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Pass radix when converting ScaledDecimals like 2r1.1s.
* libgst/sym.c: Change #asScaledDecimal:scale: to
#asScaledDecimal:radix:scale:.
* libgst/sym.h: Likewise.
2007-05-25 Daniele Sciascia <daniele.sciascia@lu.unisi.ch>
* libgst/dict.c: Turn _gst_find_shared_pool_variable into
_gst_namespace_association_at, add _gst_namespace_at.
* libgst/dict.h: Declare it.
* libgst/gst-parse.c: Support attributes both before and after
temporaries. Improve error recovery. Set the correct namespace
when extending a class. Fix error locations. Support class
definition in a namespace definition. Replace "Class protocol" with
"Foo class". Support subclassing nil. Lookup classes in the
superspaces too.
* libgst/sym.c: Use _gst_namespace_association_at.
2007-05-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Don't trust {FLT,DBL,LDBL}_DIG.
2007-05-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Remove TokenStream.st. Fix pasto.
* libgst/dict.c: Remove TokenStream and _gst_token_stream_class.
* libgst/dict.h: Remove _gst_token_stream_class.
2007-05-07 Stephen Compall <s11@member.fsf.org>
* libgst/sysdep.c: Fix return value of anon_mmap_commit.
2007-04-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Fix spelling of __PIC__.
2007-04-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Move all FileSegment stuff to input.c
* libgst/input.c: Rename _gst_get_cur_string to _gst_get_source_string
and return FileSegments or substrings here. Concatenate pieces of
readline input like in a STREAM_OOP.
* libgst/input.h: Adjust _gst_get_cur_string prototype.
2007-04-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: More Smalltalk Stream fixes.
2007-04-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Load SysDict.st early in the bootstrap process.
* libgst/prims.def: Remove VMpr_Dictionary_atPut.
2007-04-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Fix latent bug with Smalltalk Stream parsing.
2007-04-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Fix bug if first line entered at REPL is empty.
2007-04-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Fix building on s390.
2007-04-11 Daniele Sciascia <daniele.sciascia@lu.unisi.ch>
* libgst/gst-parse.c: Fix locations in error messages.
* libgst/lex.c: Reset parentheses only when showing prompts.
2007-04-11 Daniele Sciascia <daniele.sciascia@lu.unisi.ch>
* libgst/gst-parse.c: Fix parsing of "Eval [ foo := ]".
2007-04-11 Paolo Bonzini <bonzini@gnu.org>
Daniele Sciascia <daniele.sciascia@lu.unisi.ch>
* libgst/gst-parse.c: Improved error recovery.
2007-04-11 Paolo Bonzini <bonzini@gnu.org>
Daniele Sciascia <daniele.sciascia@lu.unisi.ch>
* libgst/gst-parse.c: Fix parsing when expressions were required
but not found.
2007-04-11 Paolo Bonzini <bonzini@gnu.org>
Daniele Sciascia <daniele.sciascia@lu.unisi.ch>
* libgst/dict.c: Load _gst_binding_dictionary_class on runtime.
* libgst/gst-parse.c: Fix setting up class variables.
2007-04-11 Daniele Sciascia <daniele.sciascia@lu.unisi.ch>
* libgst/comp.c: Make compute_keyword_selector public.
* libgst/comp.h: Likewise.
* libgst/gst-parse.c: Lots of cool new stuff.
* libgst/gst-parse.h: Provide prototype for _gst_print_tokens.
2007-04-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Add undeclared parameter to
_gst_exeecute_statements. Make a statement list if necessary.
Adjust callers. Add CONST_BINDING case to equal_constant and
make_constant_oop.
* libgst/comp.h: Adjust prototypes.
* libgst/gst-parse.c: Rewrite parse_doit. Set undeclared parsing
around method compilation. Don't check errors from
_gst_make_binding_constant
* libgst/gstpriv.h: Load sym.h early.
* libgst/input.c: Don't return true in _gst_get_cur_stream_prompt
for emacs mode.
* libgst/interp.c: Remove bogus comment.
* libgst/interp.h: Reword bogus comment.
* libgst/lex.c: Guess if a period should be added at end of line.
* libgst/lib.c: Set undeclared parsing around file loading.
* libgst/prims.def: Fix warning. Set undeclared parsing around filein.
* libgst/sym.c: Add possibility to store undeclared variablers into
a custom dictionary.
* libgst/sym.h: Add related definitions.
* libgst/tree.c: Create a CONST_BINDING in _gst_make_binding_constant.
* libgst/tree.h: Add CONST_BINDING to const_type enum.
2007-03-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Change _gst_declare_tracing to int, use value of 2
for tracing variables intead _gst_trace_kernel_*.
* libgst/comp.h: Likewise.
* libgst/interp.c: Likewise. Adapt bool_addr_index to return int *.
* libgst/interp.h: Likewise.
* libgst/prims.def: Support passing/returning an int in trace flag
get/set primitives.
* libgst/lib.c: Remove -d, -e options, and map old -[de] to new
-[DE], allowing the user to specify them multiple times. Keep only
long version of -p, make option -Q synonym of -q (it was in the
documentation). Kill _gst_trace_kernel_*. Only valid verbosity
values are now 1/2/3.
* libgst/oop.h: Change _gst_gc_message to int.
* libgst/oop.c: Likewise, adapting to changes to the verbosity values.
2007-03-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Support MacOS X/PPC macros to use lwbrx.
* libgst/save.c: Fix primitive table checksum for 64-biy systems.
2007-03-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Fix parsing of #-123.
2007-03-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Look for <category: ...> attribute, write result
in this_method_category, pick it in _gst_make_new_method. Add a
default category argument to _gst_make_new_method. Always create
a MethodInfo object in _gst_make_new_method.
* libgst/comp.h: Adjust _gst_make_new_method prototype.
* libgst/prims.def: Adjust _gst_make_new_method prototype.
* libgst/sym.c: Add _gst_category_symbol.
* libgst/sym.h: Add _gst_category_symbol.
2007-03-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Load Random.st after system is initialized.
* libgst/dict.c: Remove Random class and _gst_random_class.
* libgst/dict.h: Remove _gst_random_class.
2007-03-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Fix off-by-one error.
* libgst/input.c: Fix line/column assignment. Don't provide
method source for readline stream.
2007-03-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Create FileSegment and MethodInfo object in
_gst_make_new_method, pass the MethodInfo down to method_new.
2007-02-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Remove two unused variables.
* libgst/comp.c: Add start/end position parameters to method_new,
method_info_new, file_segment_new, _gst_make_new_method. Adjust
callers. Get ending location of the method in _gst_execute_statements.
* libgst/comp.h: Adjust prototype of _gst_make_new_method.
* libgst/gst-parse.c: Don't call _gst_clear_method_start_pos.
Get ending location of the method in parse_method.
* libgst/gst-parse.h: Add file_offset field to YYLTYPE.
* libgst/input.c: Initialize fileOffset to -1 for a new stream,
and with lseek for a new file stream. Update it when reading
from a file into the buffer. Use it to avoid lseeking during the
parsing, so that _gst_get_location can quickly compute the file offset
and store it into the YYLTYPE. Make _gst_get_location return the
YYLTYPE. Remove _gst_get_cur_file_pos, _gst_get_method_start_pos and
_gst_clear_method_start_pos, and the field they used in struct stream.
* libgst/input.h: Remove _gst_get_cur_file_pos,
_gst_get_method_start_pos and _gst_clear_method_start_pos, update the
prototype of _gst_get_location and make it pure.
* libgst/lex.c: Adjust calls to _gst_get_location.
* libgst/prims.def: Adjust call to _gst_make_new_method.
* libgst/tree.c: Accept ending location in _gst_make_method.
* libgst/tree.h: Add new field to struct method_node and prototype of
_gst_make_method.
2007-02-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Remove KernelFileLocalPath. Don't touch
KernelFilePath on reload. Export KernelFileUserPath.
* libgst/lib.c: Add --image-directory and --kernel-directory.
Add a struct loaded_file used to store files given on
the command line. Find path of user init/user pre/site
pre files in init_paths, delete load_user_init_file and
load_user_pre_image_file. Call init_paths after parse_args.
Rewrite find_kernel_file, place kernel override files
in ~/.st too (if one needs per-image overrides they can
use --kernel-directory). Remove some variables that are
now unused. Simplify ok_to_load_binary as the new semantics
remove the need for some checks. Export the path to ~/.st in
_gst_user_file_base_path.
* libgst/lib.h: Export _gst_user_file_base_path.
* libgst/sysdep.c: Canonicalize path in _gst_get_full_file_name.
2007-02-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add variables and declarations for weak objects.
* libgst/dict.h: Add variables for weak objects.
* libgst/lib.c: Load WeakObjects.st as part of the kernel classes.
2007-01-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Rename ipowl to mul_powl, support gradual underflow.
2007-01-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Use truncl and lrint to implement
conversion from float to integer.
2007-01-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Fix right shift bug.
2007-01-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Clear obstack after parsing radix.
2007-01-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix error checking in previous check in.
2007-01-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: When changing an object's class, allow the
new class to not be a kind of Behavior, as long as the superclass
flagged in it is.
2007-01-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Avoid infinite loop.
2006-12-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Change _gst_init_dictionary_on_image_load to be
whether the primitive table's checksum is ok. If it is, just copy
the default primitive table just like in _gst_init_dictionary.
* libgst/dict.h: Adjust for above change.
* libgst/genpr-parse.y: Compute MD5 of DEF_FIL as checksum and
print it.
* libgst/interp.h: Declare _gst_primitives_md5.
* libgst/save.c: Save its contents, and compare it to pass the new flag
to _gst_init_dictionary_on_image_load. Move checks from load_snapshot
to load_file_version.
2006-12-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Remove F_FREE.
* libgst/oop.c: Remove loops setting flags to F_FREE. Set flags to 0
instead of F_FREE elsewhere.
* libgst/oop.h: Fix wrong comment.
* libgst/oop.inl: Adjust IS_OOP_FREE.
* libgst/print.c: Use IS_OOP_FREE.
* libgst/save.c: Set flags to 0 instead of F_FREE. Use IS_OOP_FREE.
Remove wrong comment.
2006-12-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/builtins.gperf: Remove _COLON from the enum for special
bytecodes.
* libgst/byte.def: Likewise.
* libgst/vm.def: Likewise.
* libgst/xlat.c: Likewise.
* libgst/comp.c: Remove the possibility to inline #perform:.
* libgst/byte.c: Turn _gst_builtin_selectors into an array of
structs (instead of pointers).
* libgst/opt.c: Likewise.
* libgst/sym.c: Likewise.
* libgst/vm.def: Use _gst_builtin_selectors instead of symbols
defined in sym.c (not slower with the change above).
* libgst/xlat.c: Only store the opcode in special_send_bytecodes and
use _gst_builtin_selectors for the other pieces of information.
* libgst/dict.c: Don't reload the _gst_*_class variables unless
necessary. Pass the class to identity_dictionary_new and adjust the
sole caller, _gst_valid_class_method_dictionary. Split the
creation of symbols in two parts (creating symbols, and populating
the symbol table with SymLink objects); call _gst_restore_symbols
when loading the image. Remove _gst_directed_message_new_args.
* libgst/interp.c: Remove commented out code to start call-ins through
Process>>#startExecution:.
* libgst/sym.c: Remove symbols for the special selectors. New
functions alloc_symbol_oop and alloc_symlink to support two-phase
creation of symbols in the image. Add _gst_smalltalk_namespace_symbol.
New functions intern_string_fast and _gst_restore_symbols to support
fast reloading of symbols when loading the image.
* libgst/sym.h: Adjust for changes to sym.c.
* libgst/genvm-parse.y: Add const qualifier to yyprint.
2006-12-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Fix warnings in _gst_mpz_divexact.
2006-12-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Reserve three less bits to runtime flags, add
F_LOADED.
* libgst/oop.c: The address of loaded objects never changes, and
they're always old. Never compact loaded objects. Never free them too.
* libgst/print.c: Print loaded OOPs correctly.
* libgst/save.c: Define and use buffer_advance. Try reusing the
mmap-ed area in load_normal_oops; free buffer in load_normal_oops
only if copy-on-write is not used. Mmap all the file in a
single step, and using MAP_PRIVATE, and only do the "read" method
in buffer_fill. Rename use_mmap to buf_used_mmap. Save objects with
the old bit set and without the F_RUNTIME flags.
2006-12-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Fix a bug in _gst_mpz_divexact, causing memory
corruption sometimes.
2006-12-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Previous change not 64-bit clean,
obstack_chunk_size returns unsigned rather than int or size_t.
2006-12-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Build strings on obstack instead of the
str.c buffer. Otherwise the buffer could be cleared out
by oop.c when it uses it to store the live ephemeron OOPs.
* libgst/str.c: Remove dead functions.
* libgst/str.h: Likewise.
2006-12-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Remove arithmetic on void *.
* libgst/sym.c: Remove unused symbols.
* libgst/sym.h: Remove unused symbols.
* libgst/vm.def: Use _gst_must_be_boolean_symbol.
* libgst/vm.inl: Regenerate.
2006-12-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Don't uselessly mark unused OOPs as free.
2006-12-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Miscellaneous speed-ups, including caching the
number of free OOPs in the saved file.
2006-12-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Adjust calls to _gst_heap_create.
* libgst/lib.c: Likewise.
* libgst/oop.c: Likewise.
* libgst/save.c: Likewise.
* libgst/heap.c: Add address parameter to _gst_heap_create.
* libgst/heap.h: Likewise for declaration.
* libgst/oop.h: Likewise for _gst_init_oop_table declaration.
* libgst/sysdep.c: Add address parameter to _gst_osmem_reserve and
to the implementations of the function. Support MAP_AUTORESRV
as a synonym of MAP_NORESERVE.
* libgst/sysdep.h: Likewise for declaration.
2006-12-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Remove assertions if !OPTIMIZE. Increase default
allocation granularity.
2006-12-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Store object table base in the image, adjust based
on the delta upon loading. Inline functions that are not used
anymore upon saving due to the previous change. Reset nativeIP
upon saving rather than upon loading.
2006-12-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Move gst_cfunc_descriptor to cint.h. Accept a nil
cFunction inside a descriptor (now happens upon image load),
remove _gst_restore_cfunc_descriptor.
* libgst/cint.h: Adjust for cint.c changes.
* libgst/comp.c: Remove _gst_restore_primitive_number.
* libgst/comp.h: Remove _gst_restore_primitive_number.
* libgst/dict.c: Initialize primitive table from default in
_gst_init_dictionary, and from the image in prepare_primitives_table
(which replaces prepare_primitive_numbers_map). Don't reset
the VMPrimitives dictionary upon image load, and don't walk the
OOP table.
* libgst/genpr-parse.y: Initialize _gst_default_primitive_table
instead of _gst_primitive_table.
* libgst/interp.c: Use _gst_default_primitive_table in
_gst_get_primitive_attributes, add _gst_set_primitive_attributes.
Make the primitive tables public.
* libgst/interp.h: Adjust for the above.
* libgst/save.c: Allocate temporary storage for the object that
are about to be saved. Massage the CallinProcess, Process,
Semaphore and CFunctionDescriptor instances in that temporary
storage rather than at load time.
2006-12-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Initialize completions only when a readline stream
is pushed.
2006-12-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Proceed recursively if marking the ephemerons'
slots finds more ephemerons. Add more debugging functions.
Rename GC_DEBUGGING and MMAN_DEBUGGING to GC_DEBUG_OUTPUT and
MMAN_DEBUG_OUTPUT. Preprocessor symbol GC_DEBUGGING now enables
sanity checks.
2006-12-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Use mpn_cmp, mpn_scan1, mpn_bdivmod.
* libgst/mpz.h: Export _gst_mpz_divexact.
* libgst/prims.def: Add primitive for _gst_mpz_divexact.
2006-12-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Don't push self for anything but CDATA_SELF and
CDATA_SELF_OOP.
2006-12-05 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.3 released.
2006-12-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Reject character literals above 128.
2006-12-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Make 64-bit clean.
2006-12-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/re.c: Remove ISO C99-ism.
2006-11-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Remove misleading comment.
* libgst/xlat.c: Export SP in gen_dirty_block around the function call,
as it may cause a GC.
2006-11-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Use _p variants appropriately.
2006-11-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/re.c: Add make_re_results. Remove _gst_re_free_registers.
* libgst/re.h: Remove _gst_re_free_registers.
* libgst/cint.c: Remove _gst_re_free_registers.
* libgst/callin.c (_gst_class_name_to_oop): Support namespaces.
(_gst_oop_at_put): Fix off-by-one bug.
2006-11-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Add GPL exception.
* libgst/alloc.h: Add GPL exception.
* libgst/byte.c: Add GPL exception.
* libgst/byte.def: Add GPL exception.
* libgst/byte.h: Add GPL exception.
* libgst/callin.c: Add GPL exception.
* libgst/callin.h: Add GPL exception.
* libgst/cint.c: Add GPL exception.
* libgst/cint.h: Add GPL exception.
* libgst/comp.c: Add GPL exception.
* libgst/comp.h: Add GPL exception.
* libgst/comp.inl: Add GPL exception.
* libgst/dict.c: Add GPL exception.
* libgst/dict.h: Add GPL exception.
* libgst/dict.inl: Add GPL exception.
* libgst/events.c: Add GPL exception.
* libgst/events.h: Add GPL exception.
* libgst/genbc-decl.y: Add GPL exception.
* libgst/genbc-impl.y: Add GPL exception.
* libgst/genbc-scan.c: Add GPL exception.
* libgst/genbc-scan.l: Add GPL exception.
* libgst/genbc.c: Add GPL exception.
* libgst/genbc.h: Add GPL exception.
* libgst/genpr-parse.y: Add GPL exception.
* libgst/genpr-scan.c: Add GPL exception.
* libgst/genpr-scan.l: Add GPL exception.
* libgst/genprims.h: Add GPL exception.
* libgst/genvm-parse.y: Add GPL exception.
* libgst/genvm-scan.c: Add GPL exception.
* libgst/genvm-scan.l: Add GPL exception.
* libgst/genvm.h: Add GPL exception.
* libgst/gst-parse.c: Add GPL exception.
* libgst/gst-parse.h: Add GPL exception.
* libgst/gst.h: Add GPL exception.
* libgst/gstpriv.h: Add GPL exception.
* libgst/gstpub.h: Add GPL exception.
* libgst/heap.c: Add GPL exception.
* libgst/heap.h: Add GPL exception.
* libgst/input.c: Add GPL exception.
* libgst/input.h: Add GPL exception.
* libgst/interp-bc.inl: Add GPL exception.
* libgst/interp-jit.inl: Add GPL exception.
* libgst/interp.c: Add GPL exception.
* libgst/interp.h: Add GPL exception.
* libgst/interp.inl: Add GPL exception.
* libgst/jitpriv.h: Add GPL exception.
* libgst/lex.c: Add GPL exception.
* libgst/lex.h: Add GPL exception.
* libgst/lib.c: Add GPL exception.
* libgst/lib.h: Add GPL exception.
* libgst/md-config.h: Add GPL exception.
* libgst/memzero.h: Add GPL exception.
* libgst/oop.c: Add GPL exception.
* libgst/oop.h: Add GPL exception.
* libgst/oop.inl: Add GPL exception.
* libgst/opt.c: Add GPL exception.
* libgst/opt.h: Add GPL exception.
* libgst/prims.def: Add GPL exception.
* libgst/print.c: Add GPL exception.
* libgst/print.h: Add GPL exception.
* libgst/re.c: Add GPL exception.
* libgst/re.h: Add GPL exception.
* libgst/save.c: Add GPL exception.
* libgst/save.h: Add GPL exception.
* libgst/security.c: Add GPL exception.
* libgst/security.h: Add GPL exception.
* libgst/str.c: Add GPL exception.
* libgst/str.h: Add GPL exception.
* libgst/sym.c: Add GPL exception.
* libgst/sym.h: Add GPL exception.
* libgst/sysdep.c: Add GPL exception.
* libgst/sysdep.h: Add GPL exception.
* libgst/tree.c: Add GPL exception.
* libgst/tree.h: Add GPL exception.
* libgst/vm.def: Add GPL exception.
* libgst/xlat.c: Add GPL exception.
* libgst/xlat.h: Add GPL exception.
* main.c: Add GPL exception.
2006-11-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fetch receiver from _gst_self when passing
_gst_this_context_oop to the C call-out primitives. Suspend current
process before quitting.
2006-11-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/builtins.gperf: Rename #callFrom:into: into #callInto:.
* libgst/builtins.inl: Regenerate.
* libgst/prims.def: Support not passing the context to C call-out
primitives, and a "nil" paramter to #callInto:.
2006-11-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.h: Compile on C++. Rename mst_Object to gst_object.
* libgst/gstpub.h: Likewise.
* libgst/comp.c: Rename mst_Object to gst_object.
* libgst/interp.c: Likewise.
* libgst/lex.c: Likewise.
* libgst/oop.c: Likewise.
* libgst/oop.h: Likewise.
* libgst/print.c: Likewise.
* libgst/print.h: Likewise.
* libgst/dict.c: Likewise.
* libgst/save.c: Likewise.
* libgst/security.c: Likewise.
* libgst/sym.c: Likewise.
* libgst/dict.h: Likewise.
* libgst/tree.c: Likewise.
* libgst/xlat.c: Likewise.
* libgst/comp.inl: Likewise.
* libgst/dict.inl: Likewise.
* libgst/oop.inl: Likewise.
* libgst/prims.def: Likewise.
2006-11-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Check if we hit the bottom of the stack in
disable_non_unwind_contexts, and percolate a return value of true
through unwind_to up to unwind_method. Otherwise return false from
both disable_non_unwind_contexts and unwind_to.
2006-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Fix verification of {{}}.
2006-10-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Look for events (especially POLLHUP) even
if poll returns 0.
2006-10-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Make CObject primitives more resilient to
bad contents of the CType.
2006-10-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Extract parse_variable_primary_1
out of parse_variable_primary.
2006-10-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Update gen_send for new super-send implementation.
Disallow deferred super sends. Fix bug in String>>#at: inlining
and in compiling a gen_push_self+gen_alt_self sequence. Remove
C99-ism in emit_method_prolog.
* libgst/xlat.h: Fix IS_VALID_IP for methodStart == 0.
2006-10-16 Roman Zippel <zippel@linux-m68k.org>
* libgst/alloc.h: Add padding to the bitfields.
2006-10-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Avoid buffer overflow on empty variadic argument.
2006-10-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Improve help message to document -f.
2006-10-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Make less verbose on backtraces.
* libgst/oop.c: Make less verbose on scavenging.
2006-09-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Use _gst_get_method_start_pos to find if we can
use _gst_get_cur_file_pos.
* libgst/input.c: Track file offset of FileStream objects. Extend
buffers when a new hunk is needed, shrink it on _gst_get_cur_string.
Use buffer and file offset tracking it to support _gst_get_cur_file_pos
and _gst_get_cur_string for STREAM_OOP streams. Delete
_gst_get_cur_readline as it is the same as _gst_get_cur_string
* libgst/input.h: Delete _gst_get_cur_readline.
2006-09-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Fix checking builds.
2006-09-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Shut up compiler warnings.
* libgst/cint.c: Declare regex functions.
* libgst/re.c, libgst/re.h: Move from examples. Adapt since it
` is not anymore a module.
* libgst/lib.c: Add Regex.st.
2006-09-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Include match.h.
* libgst/opt.c: Include match.h.
* libgst/xlat.c: Include match.h.
* libgst/gstpriv.h: Don't.
* libgst/cint.c: Avoid stupid warning.
* libgst/dict.inl: Make IS_A_CLASS/IS_A_METACLASS more robust.
* libgst/opt.c: Detect invalid sends to super.
* libgst/comp.c: Push class, not superclass for send to super.
* libgst/vm.def: Adapt.
2006-09-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c (compile_send): Compile receiver superclass for
sends to super.
* libgst/opt.c: Add receiver class to balance for send to super.
Replace "+= -x" with "-= x" throughout.
* libgst/tree.h: Adjust _gst_make_oop_constant comment.
* libgst/vm.def (SEND_SUPER, SEND_SUPER_IMMEDIATE): Pop class OOP.
(SEND_TO_SUPER): Get methodClass argument.
2006-09-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Wrap utime.
2006-09-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c, libgst/dict.inl, libgst/gstpriv.h,
libgst/gst-parse.c: Adjust macro names for upgrade to Autoconf 2.60.
2006-07-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Load Getopt.st.
2006-07-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Merge my_close into _gst_pop_stream. Always
free memory. Initialize fileNameOOP for FileDescriptors in
_gst_push_stream_oop. Clear the fileName field in push_new_stream.
Fix STREAM_OOP case in my_getc. Use fileNameOOP to print error
messages.
* libgst/prims.def: New primitives VMpr_Stream_fileIn and
VMpr_Stream_fileInLine, extracted from the fileOp primitive.
2006-07-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add 'peek' variable to FileDescriptor.
* libgst/dict.h: Add 'peek' variable to struct gst_file_stream.
* libgst/input.c: Leave poll_and_read upon POLLHUP.
* libgst/interp.h: Add PRIM_GET_CHARS_AT and PRIM_PUT_CHARS_AT.
* libgst/prims.def: Remove useless fstat call, accept any byte
or character class in read/write primitives, implement pread
and pwrite primitives.
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Support wchars and wstrings.
* libgst/callin.h: Likewise.
* libgst/cint.c: Likewise.
* libgst/gstpub.h: Likewise.
* libgst/sym.c: Add new symbols.
* libgst/sym.h: Likewise.
* libgst/comp.c: Support CONST_CHAR in equal_constant and
make_constant_oop.
* libgst/dict.c: Add UnicodeCharacter and UnicodeString. Change
instance and class variable names for Character. Add #utf32 shape
element size in _gst_log2_sizes. Add helper functions for callin.c
and cint.c changes above.
* libgst/dict.h: Add gst_char and gst_unicode_string, and declare
the helper functions.
* libgst/dict.inl: Move here CHAR_OOP_AT from oop.inl; provide
CHAR_OOP_VALUE here with a new definition. Add char_new. Support
#utf32 shape.
* libgst/gst-parse.c: Drop BYTE_LITERAL tokens. Check range of
integers instead. Support $< INTEGER_LITERAL > tokens.
* libgst/gst-parse.h: Remove cval from YYSTYPE.
* libgst/gstpriv.h: Add ISP_UTF32; include wchar.h.
* libgst/lex.c: Match the gst-parse.c changes. Use ival instead of
cval. Support printing non-ASCII CHAR_LITERALs with their code points.
* libgst/lib.c: Load UniChar.st and UniString.st.
* libgst/oop.c: Fix a comment's spacing.
* libgst/oop.inl: Remove CHAR_OOP_AT and CHAR_OOP_VALUE.
* libgst/prims.def: Define VMpr_CharacterArray_valueAt,
VMpr_CharacterArray_valueAtPut, VMpr_UnicodeCharacter_create,
VMpr_Character_equal. Accept some UnicodeCharacters in
VMpr_Memory_atPut and VMpr_CObject_atPut.
* libgst/print.c: Print non-ASCII Characters and UnicodeCharacters
with their code points.
* libgst/tree.c: Make a CONST_CHAR in _gst_make_char_constant, not
a CONST_OOP (partly undoing 2000-09-09 change), and accept an int.
* libgst/tree.h: Add back CONST_CHAR.
2006-07-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c (_gst_sync_file_polling): Prepare pfd.revents by
zeroing it.
2006-04-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c (parse_doit): Do not read other tokens
after an EOF.
2006-04-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c (parse_array_constructor): Do not crash on {}
or on an invalid attribute like in 'a <3 4>'.
2006-02-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c (equal_constant): Compare floating point constants
with memcmp.
2005-11-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Refine previous change using OOP_CLASS instead of
IS_CLASS.
2005-11-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Shortcut FloatD/Integer mixed math, and
FloatD division.
2005-11-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fix ISP_CHARACTER typo.
2005-11-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Make the #at: and #at:put: cache store the spec,
and only work on primitives 60/61.
* libgst/interp.c: Adjust. New functions cached_index_oop_primitive
and cached_index_oop_put_primitive.
2005-11-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c (class_info): Use ISP_CHARACTER shape for
String and Symbol.
(_gst_log2_sizes): Adjust for ISP_CHARACTER.
* libgst/dict.inl (index_oop_put_spec, index_oop_spec): New,
from index_oop_put and index_oop. Fix typos in handling of
ISP_FLOAT and ISP_DOUBLE. Handle ISP_CHARACTER.
(index_oop_put, index_oop): Use them.
(index_string_oop_put, index_string_oop): Delete.
* libgst/gstpriv.h: Define ISP_CHARACTER.
* libgst/prims.def (VMpr_String_basicAt,
VMpr_String_basicAtPut): Delete.
(VMpr_String_similarityTo): Accept ISP_CHARACTER shaped classes.
(VMpr_ByteArray_replaceFromToWithStartingAt): Accept ISP_SCHAR and
ISP_CHARACTER shaped classes as well.
* libgst/xlat.c (emit_basic_size_in_r0): Accept ISP_SCHAR and
ISP_CHARACTER shaped classes as well.
(emit_inlined_primitive): Accept ISP_SCHAR and ISP_CHARACTER
shaped classes as well.
2005-11-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.h (execute_primitive_operation): Do not declare.
* libgst/interp.c (execute_primitive_operation): New name
of _gst_execute_primitive_operation. Make static and inline.
* libgst/interp-bc.inl: Adjust.
* libgst/interp-jit.inl: Adjust.
* libgst/vm.def: Adjust.
2005-11-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c (_gst_string_new, _gst_counted_string_new): Handle
zero-length strings.
* libgst/interp.c (_gst_init_signals): Handle SIGTERM.
(interrupt_handler): Exit on SIGINT or SIGTERM.
2005-09-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.h: New methods for the interpreter proxy.
* libgst/callin.c: New methods for the interpreter proxy.
* libgst/gstpub.h: New methods for the interpreter proxy.
* libgst/interp.h: New function _gst_find_method, moved from
interp.c. Declare method_cache_entry.
* libgst/interp.c: Rename find_method to _gst_find_method,
remove declarations of find_method and method_cache_entry.
2005-09-12 Mike Anderson <msasjf@yahoo.co.uk>
* libgst/events.c: Fix bug with pollfds being lost if a previous
one has an error.
2005-09-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Do not crash on #[].
2005-09-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Use a better #! sequence.
2005-08-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Fix pasto (SIZEOF_LONG instead of SIZEOF_OOP).
* libgst/comp.c: Do not emit PUSH_INTEGER for integers equal or
bigger than 2^31.
* libgst/byte.h: Change final argument of compile_byte to int.
* libgst/byte.c: Likewise.
2005-08-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Fix 64-bit cleanliness problem.
2005-08-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Remove last parameter to parse_cascaded_messages.
2005-08-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Define ENABLE_SECURITY.
* libgst/gst-parse.c: Fix warnings.
* libgst/opt.c: Reenable verifier.
2005-08-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Add to input_stream a method_start_pos
member. Clear it in push_new_stream and _gst_set_stream_info.
Set it in _gst_get_location. Move _gst_get_method_start_pos
and _gst_clear_method_start_pos here from lex.c.
* libgst/lex.c: Remove the aforementioned two functions and
the code mentioning the local variable method_start_pos.
* libgst/lex.h: Move the functions from here...
* libgst/input.h: ... to here and make _gst_get_method_start_pos
and _gst_get_cur_file_pos return off_t.
* libgst/comp.c: Make usage of these two functions 64-bit safe.
2005-08-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add lstat.
2005-08-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Do my math correctly.
2005-06-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Do not use ffi_type_slong, it is a 64-bit type!
* libgst/gst-parse.c: Fix more bugs in creation of FileSegments.
2005-06-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Fix bugs in creation of FileSegments.
* libgst/gst-parse.c: Fix bugs in creation of FileSegments.
* libgst/gstpriv.h: Fixes for GCC 4.0.0.
2005-04-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c (expected): Fix spacing.
(parse_block): Fix "expected" error message.
(parse_block_variables): Remove useless check for EOF.
2005-04-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c (_gst_eval_code, _gst_eval_expr): Do not use
_gst_compile_code for communication to _gst_parse_stream, use a
parameter to it instead.
* libgst/comp.c (_gst_set_compilation_class): Extract out of
_gst_set_compilation_category.
(_gst_install_initial_methods, _gst_execute_statements): Adjust.
(_gst_make_attribute): Execute statements for the arguments here.
* comp.h (_gst_set_compilation_class): New prototype.
(_gst_set_compilation_category): Adjust prototype.
* libgst/gst-parse.c: Rewritten.
* libgst/gst-parse.h: Rewritten based on Bison output.
* libgst/gstpriv.h: Include gst-parse.h.
* libgst/interp.c (parse_stream_with_protection): Add new parameter
of _gst_parse_stream and forward it.
* libgst/lex.c (parse_*): Rename to scan_*.
(_gst_compile_code): Remove.
(_gst_parse_stream): Add parameter to pick top production.
(_gst_yylex): Remove INTERNAL_TOKEN hacks. Do not compute last_line
and last_column.
(print_token): Remove INTERNAL_TOKEN.
* libgst/lex.h (_gst_compile_code, _gst_yydebug): Remove.
(_gst_parse_stream): Adjust prototype.
* libgst/lib.c (help_text, parse_args, long_options): Remove -y.
(process_stdin, process_file): Adjust call to _gst_parse_stream.
* libgst/prims.def: Adjust for changes to _gst_set_compilation_category
and parse_stream_with_protection. Do not use _gst_compile_code,
refer to _gst_current_parser->state instead and fail if methodsFor
is used while not parsing.
* libgst/tree.c (_gst_add_node): Support case where N1 is NULL.
* libgst/tree.h (_gst_add_node): Return a tree_node.
* libgst/gst-parse.y: Remove.
* libgst/Makefile.am: Replace it with gst-parse.c.
2005-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c (_gst_make_attribute): Use make_constant_oop.
* libgst/gst-parse.y (attribute_body): Do not include keyword.
(attribute_argument): Add it here. Do not go through
_gst_execute_statements for TREE_CONST_EXPRs (greatly speeds up
C call-outs).
2005-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c (install_method): Evaluate pragma handlers.
Make CompiledMethod read-only.
(method_new): Do not make CompiledMethod read-only here.
* libgst/dict.c (class_info): Include pragmaHandlers instance
variable for Class.
(init_class): Initialize it here.
* libgst/dict.h (gst_class): Include pragmaHandlers instance variable.
* libgst/sym.c (_gst_find_pragma_handler): New.
* libgst/sym.h (_gst_find_pragma_handler): Declare it.
2005-03-24 Paolo Bonzini <bonzini@gnu.org>
Fix bug when an ephemeron was tenured directly from eden to
oldspace.
* libgst/oop.c (add_to_grey_list): Remove last parameter.
(add_grey_object): New function, for when the OOP parameter
of add_to_grey_list was non-nil. Call scanned_fields_in from
here.
(_gst_copy_an_oop, tenure_one_object): Use add_grey_object.
2005-03-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Remove out-of-date comment.
2005-03-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Load Transcript.st earlier.
2005-02-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c (NO_MALLOC_OVERRIDE): New define.
(malloc, realloc, free, calloc): Define only if NO_MALLOC_OVERRIDE
is not defined.
(morecore): Do not use the system heap (sbrk) if NO_MALLOC_OVERRIDE
is defined.
2004-12-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h (O_NONBLOCK): Unused, remove.
2004-11-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c (gen_dirty_block): Return value is not in JIT_R0
except on x86.
2004-11-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Catch more errors out of mprotect.
2004-11-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.h: Use char for the type of large.data
in struct heap_block.
2004-11-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Always print "file not found" error.
* libgst/gstpriv.h: Use autoconf test to look for
availability of __attribute__ ((visibility ("hidden"))).
2004-09-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Remove code left by mistake.
2004-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Scan initial shebang as comment.
* libgst/gst-parse.y: Parse initial shebang as comment.
* libgst/lib.c: Add -f option.
2004-08-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.h: SIZEOF_INTPTR_T => SIZEOF_OOP.
* libgst/dict.inl: SIZEOF_INTPTR_T => SIZEOF_OOP.
* libgst/gstpriv.h: SIZEOF_INTPTR_T => SIZEOF_OOP.
* libgst/save.c: SIZEOF_INTPTR_T => SIZEOF_OOP.
* libgst/xlat.c: SIZEOF_INTPTR_T => SIZEOF_OOP.
2004-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Enforce long double alignment for obstacks.
* libgst/alloc.c: Support 16k pages and long double alignment of
malloc-ed blocks.
* libgst/alloc.h: Likewise.
2004-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix C99-ism.
* libgst/lib.c: Simplify handling of -a.
2004-01-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Do not compile body of method if
primitive cannot fail. Reserve space for emitting
#valueWithReceiver:withArguments:.
2004-01-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Discard the translations of objects that
#become: swaps.
* libgst/opt.c: Rewritten compute_stack_positions, factor
code that is common with the verifier.
* libgst/xlat.c: Reset sp before translating user-defined
method callers (subclasses of CompiledMethod with flags=6).
Emit extras in emit_code_tree, not in gen_nothing. Add
objectReg parameter to emit_basic_size_in_r0, use it to
speed up #javaAsInt and #javaAsLong.
2004-01-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Set class of created CompiledMethod
and CompiledBlock objects.
* libgst/comp.c: Incubate attributes properly.
* libgst/dict.c: Return nil if searching a pool variable
in a non-Dictionary class.
* libgst/xlat.c: Translate #javaAsInt and #javaAsLong.
2004-01-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Do not scavenge before the interpreter
is activated.
* libgst/interp.c: Check for IS_NIL (_gst_this_context_oop),
not for ip != NULL, to see if a process is active.
* libgst/interp-jit.inl: Refresh native IP of processes if the
method they are executing is not translated anymore.
* libgst/xlat.c: Fix bit-rot. Basically removed all places in
which the code generators were decoding the bytecodes, and
fixed some places that did not account for superoperators.
2003-12-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Add experimental code to inline #perform:
and friends.
* libgst/genbc-decl.y: Initialize all generated variables.
* libgst/genbc-scan.l: Update for flex 2.5.31.
* libgst/genpr-scan.l: Update for flex 2.5.31.
* libgst/genvm-scan.l: Update for flex 2.5.31.
* libgst/comp.c: Remove _colon_ from variable names where
not ambiguous.
* libgst/interp.c: Likewise.
* libgst/lex.c: Likewise.
* libgst/security.c: Likewise.
* libgst/sym.c: Likewise.
* libgst/sym.h: Likewise.
* libgst/vm.def: Likewise.
* libgst/xlat.c: Likewise.
2003-12-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Check _gst_verbosity
* libgst/dict.c: Publish _gst_verbosity as OutputVerbosity
* libgst/lib.c: Replace no_errors with _gst_verbosity == 0,
_gst_quiet_execution with _gst_verbosity == 1, _gst_verbose
with _gst_verbosity == 3, don't set _gst_gc_message on -Q.
* libgst/oop.c: Don't print gc messages if _gst_quiet_execution == 0.
2003-11-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.def: New bytecodes 25 and 26
(#javaAsInt, #javaAsLong).
* libgst/byte.h: New bytecodes 25 and 26
* libgst/vm.def: Likewise
* libgst/builtins.gperf: Likewise
* libgst/sym.c: Declare _gst_java_as_int_symbol
and _gst_java_as_long_symbol.
* libgst/sym.h: Declare _gst_java_as_int_symbol
and _gst_java_as_long_symbol.
2003-11-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: New function poll_and_read.
2003-11-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.def: Suppress uninitialized variable
warning on arg_lsb.
* libgst/dict.c: Support multiple class shapes
* libgst/dict.inl: Likewise
* libgst/gstpriv.h: Likewise
* libgst/prims.def: Likewise
* libgst/xlat.c: Put an abort on blatantly broken code.
2003-11-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Be more precise in detecting jumps over
a push that land on a pop.
2003-11-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add break statements to
_gst_set_file_stream_file (ouch!).
* libgst/prims.def: Allow ByteArrays in get/put primitives,
and integers as opening modes.
2003-11-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Raise errors on duplicate arguments or temporaries.
* libgst/sym.c: Add third parameter to _gst_declare_name,
use it in _gst_declare_arguments or _gst_declare_temporaries
* libgst/sym.h: Adjust declaration of _gst_declare_name.
2003-11-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.h: Hide all internal symbols.
* libgst/byte.h: Hide all internal symbols.
* libgst/callin.h: Hide all internal symbols.
* libgst/cint.h: Hide all internal symbols.
* libgst/comp.h: Hide all internal symbols.
* libgst/dict.h: Hide all internal symbols.
* libgst/events.h: Hide all internal symbols.
* libgst/gstpriv.h: Hide all internal symbols.
* libgst/heap.h: Hide all internal symbols.
* libgst/input.h: Hide all internal symbols.
* libgst/interp.h: Hide all internal symbols.
* libgst/jitpriv.h: Hide all internal symbols.
* libgst/lex.h: Hide all internal symbols.
* libgst/lib.h: Hide all internal symbols.
* libgst/match.h: Hide all internal symbols.
* libgst/md-config.h: Hide all internal symbols.
* libgst/memzero.h: Hide all internal symbols.
* libgst/mpz.h: Hide all internal symbols.
* libgst/oop.h: Hide all internal symbols.
* libgst/opt.h: Hide all internal symbols.
* libgst/print.h: Hide all internal symbols.
* libgst/save.h: Hide all internal symbols.
* libgst/security.h: Hide all internal symbols.
* libgst/str.h: Hide all internal symbols.
* libgst/sym.h: Hide all internal symbols.
* libgst/sysdep.h: Hide all internal symbols.
* libgst/tree.h: Hide all internal symbols.
* libgst/xlat.h: Hide all internal symbols.
* libgst/interp.h: Declare _gst_abort_execution here.
* libgst/xlat.c: Don't declare it as extern here.
* libgst/oop.c: Make grow_memory_no_capact and oop_heap static.
* libgst/sym.c: Make check_symbol_chain static.
* libgst/sym.c: Initialize global variables so as to make them uncommon.
* libgst/comp.c: Likewise.
* libgst/lib.c: Likewise.
* libgst/save.c: Likewise.
* libgst/oop.c: Likewise.
* libgst/dict.c: Likewise.
* libgst/interp.c: Likewise.
* libgst/cint.c: Likewise.
* libgst/lex.c: Likewise.
2003-11-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Avoid SIGSEGV if character in range
128..255 is pushed back by the lexer.
* libgst/lex.c: Tweak output of invalid characters.
* libgst/alloc.c: Tweak pool sizes to obtain cacheline alignment.
* libgst/lib.c: Tweak for more shared library friendliness.
* libgst/tree.c: Tweak for more shared library friendliness.
* libgst/builtins.inl: Rebuild for shared library friendliness.
* libgst/sym.c: Adapt.
2003-11-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Allow dollars (!) in the middle of
identifiers.
* libgst/dict.inl: Require that the second argument
of is_a_kind_of is not nil, avoid a test if we
are testing for the exact class.
* libgst/prims.def: Allow #perform: of a subclass
of CompiledMethod.
2003-11-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Define prefetching macros.
* libgst/oop.c: Use prefetches.
* libgst/oop.inl: Use prefetches.
* libgst/prims.def: Use nanosleep instead of usleep.
Use prefetches.
* libgst/save.c: Use prefetches.
2003-11-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Handle 1+-2 as "1 + -2"
rather than as "1 +- 2".
2003-10-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Publish HOST_SYSTEM into
CSymbols.hostSystem.
2003-10-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: New function parse_sharp; extract
SYMBOL_KEYWORDs (now called SYMBOL_LITERAL) into
it instead of lexing them in parse_ident. Simplify
parse_ident.
* libgst/gst-parse.y: Use new lexer symbol SYMBOL_LITERAL
which sums up every symbol constant.
2003-10-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Rename untrusted_methods to
_gst_untrusted_methods, don't declare it here...
* libgst/comp.h: ...and do it here instead
* libgst/sym.c: Use it.
* libgst/dict.c: Define _gst_identity_dictionary_at
* libgst/dict.h: Declare it
* libgst/comp.c: Don't accept to override an
trusted method with an untrusted one.
2003-09-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: New function find_method. Use it
within check_send_correctness. When #perform: is used
with an absent method, send #doesNotUnderstand: even
if the number of arguments is wrong -- this is needed
so that non-standard selector names can be used.
2003-09-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Define _gst_process_attributes_array,
split process_attribute out of process_attributes,
rename this one to process_attributes_tree.
* libgst/comp.h: Declare process_attributes
* libgst/prims.def: Use _gst_process_attributes_array,
accepting an array of Messages instead of a primitive
number in VMpr_CompiledMethod_create.
2003-09-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Exit with status 1 if a wrong option is
specified.
2003-09-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Only set last_primitive for succeeded
primitives.
2003-09-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Search #doesNotUnderstand: in
superclass if searching for a message fails during a send
to super.
* libgst/comp.c: Sending to super from a root class is
now an error.
* libgst/byte.h: Retouch the encoding of PUSH_SPECIAL in order
to simplify the implementation
* libgst/vm.def: Fix it
* libgst/byte.c: Fix the MATCH_BYTECODES occurrences
* libgst/opt.c: Fix the MATCH_BYTECODES occurrences
* libgst/xlat.c: Fix the MATCH_BYTECODES occurrences
* libgst/interp-bc.inl: Simplify most of the macro cruft.
* libgst/vm.def: Move the rest here.
2003-09-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Reimplement jump lookahead
* libgst/interp-bc.inl: With some code here too.
2003-09-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.def: Add superoperators
* libgst/vm.def: Add superoperators
* libgst/opt.c: Fix latent bugs exposed by superoperators
* libgst/interp.c: Get rid of the useless third
parameter to SEND_MESSAGE
* libgst/interp-bc.inl: Likewise
* libgst/interp-jit.inl: Likewise
* libgst/prims.def: Likewise
* libgst/vm.def: Likewise
2003-09-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Compile #and:/#or: to a shorter
sequence
* libgst/genvm-parse.y: One more little language, ...
* libgst/genvm-scan.l: ... with its scanner, ...
* libgst/genvm.h: ... its header file, ...
* libgst/vm.def: ... its source code, ...
* libgst/vm.inl: ... and its output, ...
* libgst/interp-bc.inl: ... which is included here.
2003-09-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Support superoperator synthesis.
* libgst/superop1.inl: New automatically generated file.
* libgst/superop2.inl: New automatically generated file.
2003-09-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/genbc-decl.y: Support multiple dispatch statements.
2003-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Create CSymbols as an instance of Namespace.
2003-09-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Fix peephole optimizer's jump fixup
pass for new bytecode set. Verify jumping in range
and jumping past an extension bytecode.
2003-09-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.def: Modify for new syntax and bytecode set
* libgst/genbc-scan.l: Modify for new syntax
* libgst/genbc-decl.y: Modify for new syntax
* libgst/byte.c: Accept two parameters in _gst_compile_byte
* libgst/byte.h: Modify for new bytecode set
* libgst/comp.c: Modify for new bytecode set, death to many
functions
* libgst/interp-bc.inl: Modify for new bytecode set
* libgst/opt.c: Modify for new bytecode set, momentary death
to peephole optimizer (will come back new and improved...)
* libgst/builtins.gperf: New file.
* libgst/builtins.inl: New automatically generated file.
* libgst/sym.c: Include builtins.gperf's hash function
* libgst/sym.h: Declare it
2003-09-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Don't rely on _gst_is_kernel_file
* libgst/input.c: Death to _gst_store_no_source and _gst_is_kernel_file
* libgst/input.h: Death to _gst_store_no_source and _gst_is_kernel_file
* libgst/lib.c: Death to _gst_store_no_source and -s.
* libgst/interp.c: Don't let the current process die on image
reload.
2003-08-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Fix variadic functions.
* libgst/opt.c: Fix verification of nested array constructors.
2003-08-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/security.c: New file
* libgst/security.h: New file
* libgst/lib.c: Load Security.st
* libgst/dict.inl: Provide OrderedCollection accessors
2003-07-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Allow to pass integers as float or doubles
(but not vice versa).
2003-07-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Make Character not indexed.
* libgst/oop.c: Make Character's asciiValue an OOP.
* libgst/oop.h: Make Character's asciiValue an OOP.
* libgst/prims.def: Remove Character>>#asciiValue primitive.
2003-07-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Recalculate number of temporaries used
by a block after it is compiled.
2003-07-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Don't scavenge before allocating big
objects.
* libgst/prims.def: Use _gst_init_mem to set GC
parameters.
2003-07-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Initialize Processor's gcSemaphore
* libgst/interp.h: Define gcSemaphore and gcArray
* libgst/dict.c: Likewise
* libgst/oop.c: Use it to mourn objects
* libgst/sym.h: No mourn symbol anymore
* libgst/sym.c: No mourn symbol anymore
* libgst/dict.c: Use IS_OOP_VALID_GC during image load
* libgst/oop.c: Use IS_OOP_VALID_GC during the GC
* libgst/oop.inl: Complicate validity test to take
into account incremental GC-ing of old objects.
* libgst/save.c: Use IS_OOP_VALID_GC since we finish
the incremental GC before saving.
2003-07-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: *_si routines accept a signed integer,
not an unsigned.
* libgst/xlat.c: Inline the class primitive, don't inline
#class
* libgst/interp-bc.inl: Don't inline #class but cache it.
* libgst/interp.c: Cache primitives for #class.
2003-07-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/genbc-impl.y: Output a small comment with the
file and line where each MATCH_BYTECODES block was defined.
* libgst/xlat.c: Use genbc here too... -500 lines, gotta
like this :-)
2003-07-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.h: Define MTH_USER_DEFINED
* libgst/comp.inl: Define GET_METHOD_NUM_ARGS
* libgst/interp-bc.inl: Support user-defined methods
* libgst/opt.c: Fix fall-out in the JIT from the
introduction of genbc, support subclasses of CompiledMethod
* libgst/str.c: Fix fall-out from the size_t-ification
of max_buf_len
* libgst/sym.c: Define a new symbol for
#valueWithReceiver:withArguments:
* libgst/sym.h: Likewise
* libgst/xlat.c: Fix fall-out in the JIT from the new
meaning of bytecode 200, and support user-defined methods
2003-06-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Verify sends to super
2003-06-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Remove values instance variable,
store key/value pairs in adjacent slots.
* libgst/dict.h: Ditto
* libgst/dict.inl: Ditto
* libgst/opt.c: Check for Array bounds in verifier
* libgst/lib.c: Initialize compiler after interpreter
* libgst/comp.c: Store attributes in MethodInfo objects
* libgst/comp.h: Add attributes field to gst_method_info
* libgst/dict.c: Make MethodInfo indexable
2003-06-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Death to _gst_get_method_descriptor and
_gst_set_method_descriptor.
* libgst/alloc.h: Remove last occurrences of the register keyword
* libgst/byte.h: Remove last occurrences of the register keyword
* libgst/oop.h: Remove last occurrences of the register keyword
* libgst/comp.c: Apply untrusted attribute to CompiledMethods
and CompiledBlocks as well.
* libgst/opt.c: Check untrusted attribute for CompiledMethods.
* libgst/prims.def: New primitive VMpr_CompiledCode_verificationResult
2003-06-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Constify _gst_display_compilation_trace and
_gst_invoke_hook
* libgst/comp.h: Constify _gst_display_compilation_trace and
_gst_invoke_hook
* libgst/dict.c: Constify class_definition and several functions
* libgst/interp.h: Constify prim_table_entry
* libgst/interp.c: Constify stop_executing
* libgst/lib.c: Constify several variables
* libgst/lib.h: Constify several variables
* libgst/gst-parse.y: Constify several variables
* libgst/sym.c: Constify several variables and functions
* libgst/sym.h: Constify several variables and functions
* libgst/tree.c: Constify several variables and functions
* libgst/tree.h: Constify several variables and functions
* libgst/sysdep.c: Use #elif
* libgst/sym.c: Trusted instance variables of an untrusted
class are read-only. Same goes for class variables. The
instance variables array is scanned backwards (faster and
more correct).
2003-06-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Death to stack_balance_table and
jump_offsets
2003-06-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/genbc-decl.y, libgst/genbc-impl.y, libgst/genbc-scan.l
libgst/genbc.c, libgst/genbc.h, libgst/byte.def: new files
* libgst/byte.c: Use genbc's facilities
* libgst/opt.c: Use genbc's facilities
* libgst/gstpriv.h: Include match.h
2003-06-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.inl: Define NUM_METHOD_LITERALS
* libgst/gstpriv.h: Define F_VERIFIED and IS_OOP_VERIFIED
* libgst/interp-bc.inl: Invoke bytecode verifier
* libgst/xlat.c: Ditto
* libgst/opt.c: Include bytecode verifier. Set stack
balance for return opcodes to -1. Be less forgiving in
_gst_compute_stack_position (abort instead of giving errors)
since the bytecode verifier should have tested the assertions.
2003-06-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: New function _gst_reset_inline_caches;
prefix _gst_ to global functions
* libgst/xlat.h: Ditto
* libgst/interp.c: Invoke _gst_reset_inline_caches
* libgst/comp.c: Callers adjusted.
* libgst/oop.c: Callers adjusted.
* libgst/oop.inl: Callers adjusted.
* libgst/prims.def: Callers adjusted.
2003-06-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Check for SmallIntegers in
read-only accessors.
* libgst/prims.def: Use the above to simplify
some checks.
* libgst/interp.c: Implement trustedness of contexts.
* libgst/prims.def: Implement trustedness primitives.
* libgst/gstpriv.h: Implement trustedness accessors.
* libgst/comp.c: Don't allow primitives in untrusted
classes.
2003-06-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Allow creating multiple subclasses of nil
at bootstrap. Store bits of the instance specification
directly in the class_definition structures.
* libgst/oop.c: Death to _gst_fixup_metaclass_objects.
* libgst/oop.h: Ditto.
2003-06-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: REGISTER with structs is not good.
* libgst/interp-jit.inl: REGISTER with structs is not good.
* libgst/xlat.c: Now that thisContext is no more, represent
storing into thisContext as TREE_STORE | TREE_POP_INTO_ARRAY,
not TREE_SEND | TREE_POP_INTO_ARRAY.
2003-06-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Push thisContext as "ContextPart thisContext"
* libgst/byte.h: Death to the push thisContext bytecode
* libgst/interp-bc.inl: Ditto
* libgst/opt.c: Ditto
* libgst/xlat.c: Ditto
* libgst/byte.h: BLOCK_COPY_SPECIAL --> MAKE_DIRTY_BLOCK
* libgst/comp.c: Adjust. Don't push nil or thisContext
before making a dirty block. Don't treat #blockCopy:
as a special selector.
* libgst/opt.c: Blocks accessing thisContext are
dirty
* libgst/interp.c: New function _gst_make_dirty_block.
* libgst/interp.h: Declare it
* libgst/interp-bc.inl: Call it from bytecode 200
* libgst/xlat.c: Don't treat bytecode 200 as a special
send, but as an all-of-its-own operation, call this
function from the code generated in gen_dirty_block.
* libgst/prims.def: Remove VMpr_CompiledBlock_blockCopy
* libgst/jitpriv.h: Remove it from the internal functions
* libgst/interp-jit.inl: Ditto
* libgst/sym.c: Remove _gst_block_copy_symbol
* libgst/sym.h: Ditto
2003-06-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: For non-clean blocks, store CompiledBlocks
directly in the method.
* libgst/prims.def: Implement #blockCopy: for CompiledBlocks.
* libgst/interp-bc.inl: Open code #blockCopy: for CompiledBlocks.
* libgst/xlat.c: Inline #blockCopy: for CompiledBlocks.
* libgst/oop.c: Check for out of range _gst_mem.scan.queue_at
while scanning, not in QUEUE_NEXT.
* libgst/comp.h: Define constants for the possible value of
CompiledMethod flags.
* libgst/comp.c: Use them
* libgst/opt.c: Use them
* libgst/interp-bc.inl: Ditto
* libgst/xlat.c: Ditto; rewrite the handling of shortcut
CompiledMethods to use a switch statement.
2003-06-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Flag duplicate primitives or bad primitive
numbers as errors.
* libgst/genpr-parse.y: Start primitive numbers
from 1.
2003-05-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Remove logging mechanism
* libgst/input.c: Ditto
* libgst/input.h: Ditto
2003-05-30 Paolo Bonzini <bonzini@gnu.org>
Replace primitives with generic attributes.
* libgst/comp.c: Walk through the attribute list in compile_method.
Added _gst_make_attribute. Return NULL from _gst_execute_statements
if there was a compilation error. Define the termination method
before #methodsFor:.
* libgst/comp.h: Declare this function
* libgst/tree.c: Added _gst_make_attribute_list, and pretty printing
of attributes
* libgst/tree.h: Declare this function
* libgst/dict.c: Moved _gst_resolve_primitive_name to inside
prepare_primitive_numbers_map. Added VMPrimitives as a
pool dictionary of Object, so make it a Dictionary and initialize
it in init_smalltalk_dictionary.
* libgst/dict.h: Removed _gst_resolve_primitive_name
* libgst/gst-parse.y: Modified the grammar. Adjust for the change
to _gst_execute_statements, above.
* libgst/lex.c: Removed PRIMITIVE_START, added '<' and '>' as
separate tokens.
* libgst/sym.c: Added _gst_primitive_symbol and its initializer
* libgst/sym.h: Added _gst_primitive_symbol
2003-05-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Add VMpr_Object_allOwners
* libgst/dict.inl: Implement is_owner
* libgst/dict.c: Terminate CallinProcesses when resuming
from a snapshot.
* libgst/interp.c: Made terminate_process extern, renamed
to _gst_terminate_process.
2003-05-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Add more C->String primitives
* libgst/cint.c: Support long doubles and #cObjectPtr.
* libgst/sym.h: Add _gst_long_double_symbol
* libgst/sym.c: Add _gst_long_double_symbol
* libgst/prims.def: Add long double access
* libgst/callin.c: Add long double accessors
* libgst/callin.h: Add long double accessors
* libgst/gstpriv.h: Add long double accessors
2003-05-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Switch to libffi. General reorganization.
* libgst/cint.h: Remove _gst_lookup_function.
* libgst/interp.c: Fix some printf formats
* libgst/print.c: Fix some printf formats
2003-05-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Remove _gst_compiled_method_at
and _gst_compiled_method_at_put (unused).
* libgst/comp.h: Ditto.
* libgst/dict.inl: Merge find_key and
dictionary_association_at.
2003-05-10 Paolo Bonzini <bonzini@gnu.org>
* libgst all files: Use intptr_t, size_t, ptrdiff_t,
time_t, int32_t, uint32_t more widely
* libgst/gstpriv.h: Include stdintx.h
2003-05-09 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.1.2 released.
* libgst/alloc.c: Rationalize inclusions
* libgst/byte.c: Rationalize inclusions
* libgst/callin.c: Rationalize inclusions
* libgst/cint.c: Rationalize inclusions
* libgst/comp.c: Rationalize inclusions
* libgst/dict.c: Rationalize inclusions
* libgst/dict.inl: Rationalize inclusions
* libgst/events.c: Rationalize inclusions
* libgst/gstpriv.h: Add more inclusions
* libgst/heap.c: Rationalize inclusions
* libgst/input.c: Rationalize inclusions
* libgst/interp-bc.inl: Rationalize inclusions
* libgst/interp.c: Rationalize inclusions
* libgst/interp.inl: Rationalize inclusions
* libgst/lex.c: Rationalize inclusions
* libgst/lib.c: Rationalize inclusions
* libgst/mpz.c: Rationalize inclusions
* libgst/oop.c: Rationalize inclusions
* libgst/opt.c: Rationalize inclusions
* libgst/print.c: Rationalize inclusions
* libgst/save.c: Rationalize inclusions
* libgst/str.c: Rationalize inclusions
* libgst/sym.c: Rationalize inclusions
* libgst/sysdep.c: Rationalize inclusions
* libgst/tree.c: Rationalize inclusions
* libgst/xlat.c: Rationalize inclusions
* libgst/comp.h: Rationalize inclusions
* libgst/opt.h: Rationalize inclusions
* libgst/interp.h: Rationalize inclusions
2003-05-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Define PROTECT_CURRENT_PROCESS_WITH
and PROTECT_FROM_INTERRUPT_WITH. Use them in
parse_stream_with_protection
* libgst/prims.def: Use them.
* libgst/cint.h: Declare _gst_errno and _gst_set_errno
* libgst/cint.c: Saved_errno -> _gst_errno, implement
_gst_set_errno
* libgst/prims.def: The VMpr_ObjectMemory_snapshot
primitive can fail; use _gst_set_errno
* libgst/save.c: Invoke hook after opening the file.
2003-04-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Don't advance the pointer in a
STREAM_STRING after EOF; don't unread an EOF as
_gst_next_char will return an EOF again.
* libgst/lex.c: Change the lexing functions to
accept an int so that EOF and 255 are not confused.
2003-04-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Return ENOMEM properly under Win32.
Separate detection of availability of a particular technique
and reservation of memory. find_heap_base renamed to
anon_mmap_check.
2003-04-17 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.1.1 (stable) released.
* libgst/sysdep.c: Allow MAP_NORESERVE even if MAP_ANON
is not available. Encapsulate opening /dev/zero into
a macro which is used the same way when MAP_ANON is used
and when it is not.
2003-04-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/genpr-parse.y: Add ATTRIBUTE_UNUSED attributes to
the primitives' arguments.
* libgst/input.c: Use newer function rl_completion_matches
instead of completion_matches.
* libgst/alloc.c: Fix for Cygwin, always #undef small
* libgst/sysdep.c: Fix for Cygwin, include process.h
and don't do setsid if HAVE_SPAWNL
* libgst/lib.c: Don't load .stinit in regression
testing mode, disable regression testing mode when
loading .stpre.
2003-04-12 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.1 (stable) released.
2003-04-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: EndExecution must FLUSH,
not END (this broke the IA64).
2003-04-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.inl: Add definitions to support
broken inttypes.h like FreeBSD's.
* libgst/sysdep.c: Move the declaration of the FD
static variable before _gst_osmem_alloc.
2003-04-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Fix mismatch between sizeof argument
and actual type.
2003-03-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Strdup -> xstrdup
* libgst/alloc.c: Define xstrdup
* libgst/alloc.h: Define xstrdup
* libgst/input.c: Strdup -> xstrdup
* libgst/lex.c: Strdup -> xstrdup
* libgst/lib.c: Strdup -> xstrdup
* libgst/sysdep.c: Strdup -> xstrdup
2003-03-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Remove checks on availability of bytecode array.
Make explicit calls to allocate bytecode array.
* libgst/comp.c: Make explicit calls to allocate bytecode array.
* libgst/opt.c: Likewise.
* libgst/comp.c: Associate stack depth to each bytecode array.
Fix bugs along the way.
* libgst/byte.c: Add support for saving and restoring stack
depth.
* libgst/byte.h: Fix declarations. Move stack depth modification
macros here from comp.c.
* libgst/comp.c: Count depth from 0, not from argCount+tempCount,
and sum the number of arguments only at the end (because
the tempCount might change if there are #to:do: loops!)
* libgst/save.c: Check for file version <= VERSION_REQUIRED,
not ==.
2003-03-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Extract a loop invariant from
VMpr_Behavior_someInstance
2003-03-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Added _gst_full_write
* libgst/input.c: Use it instead of _gst_write
* libgst/save.c: Use it instead of _gst_write
2003-03-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Always provide _gst_recv & _gst_send
* libgst/sysdep.h: Always declare them
* libgst/save.c: Include socketx.h
2003-03-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Fix initialization of word
subclasses.
2003-03-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Make _gst_read and _gst_write
abort on EFAULT
* libgst/prims.def: Use them
* libgst/input.c: Use them
2003-03-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Load exception handling before VFS.
* libgst/sysdep.c: Redisorganize _gst_open_pipe into
separate functions. Use spawnl and Win32 pipes if
available.
2003-03-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Don't reset the heap_limit if the
heap was grown.
2003-03-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Move system dependent stuff...
* libgst/sysdep.c: ...here
* libgst/sysdep.h: Make it public.
* libgst/prims.def: Move enum with file operations...
* libgst/interp.h: ...here.
* libgst/prims.def: Define primitive for sockets.
* libgst/sysdep.c: Define _gst_full_send.
* libgst/sysdep.h: Declare _gst_full_send.
* libgst/heap.c: Define routines for mmap/munmap.
* libgst/heap.h: Declare them.
* libgst/alloc.c: Use them.
2003-02-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Include signalx.h.
* libgst/heap.c: Include signalx.h.
* libgst/interp.c: Include signalx.h.
* libgst/sysdep.c: Include signalx.h.
2003-02-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Cook up a simple mechanism to disable
and enable signals where the OS does not provide that (again,
MinGW32). Fix semicolons in DISABLE and ENABLE. Don't block
fatal errors.
2003-02-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Turn malloc to xmalloc
* libgst/save.c: Turn malloc to xmalloc
* libgst/sym.c: Turn free to xfree
* libgst/alloc.c: Disable usage as system malloc under MinGW32.
* libgst/sysdep.c: Include process.h if we have it (MinGW32)
* libgst/events.c: Likewise
* libgst/sysdep.c: Implement _gst_mem_protect
* libgst/sysdep.h: Declare it and PROT_*
* libgst/oop.c: Use it
2003-02-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Avoid out-of-memory while compacting
* libgst/print.c: Tweak the precision for FloatE's,
FloatD's and FloatQ's depending on float.h, except
in regression testing mode.
2003-02-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Support !HAVE_SBRK
* libgst/prims.def: Support !HAVE_USLEEP
* libgst/sysdep.c: Use _beginthread under MinGW32 instead of
CreateThread
* libgst/interp.c: Use raise instead of kill
* libgst/sysdep.c: Ditto
* libgst/events.c: Ditto
2003-02-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.h: Tweak a little the definition of alloca
* libgst/heap.c: Fix typos, add WIN32_LEAN_AND_MEAN
* libgst/oop.c: Add cast to fix gcc 2.95 warning
* libgst/prims.def: Use POP_N_OOPS to fix gcc 2.95 warning
* libgst/save.c: Disable mmap-ing under WIN32
* libgst/sysdep.c: Add WIN32_LEAN_AND_MEAN
2003-03-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Don't print C backtrace during
compilation if SIGINT is received.
2003-02-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Fix brokenness of Win32 implementation.
* libgst/alloc.c: Add a very basic logging mechanism.
* libgst/interp.c: Add a very basic backtracing mechanism
to the signal handlers. Trap SIGILL when JIT-compiling.
Fix mismatch between process operation of JIT compiler
and bytecode interpreter.
* libgst/print.c: Print FloatD and FloatQ objects with
the correct letter for the exponent
2003-02-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Abort on an evident double free (two
frees of the same object without any free on the same
page in the middle).
* libgst/oop.c: Add notice about bad interaction between
SIGSEGV trapping and valgrind.
* libgst/events.c: Use pointer to tail's next pointer
instead of pointer to tail. Suggested by Carlos Moran.
2003-02-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Allow one to free the NULL pointer
liberally.
* libgst/opt.c: Drop broken code.
* libgst/opt.h: Adjust prototypes
* libgst/xlat.c: Adjust users
2003-01-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Keep the returned value of a doit in
the incubator until after the #afterEvaluation hook is
completed.
2003-01-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-jit.inl: Check for code not having been
compiled yet moved before check for native_ip == 0
2003-01-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: While loading standard files disable
_gst_regression_testing.
* libgst/input.c: Define _gst_warningf and _gst_warningf_at
* libgst/input.h: Declare them
* libgst/gst-parse.y: Use them; don't trigger a warning
when *defining* a method named #true, #false and the like
* libgst/save.c: Never read past the end of the file
2003-01-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Make child process a session group
leader
2003-01-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Fix bug in _gst_execute_statements
* libgst/sym.c: Define _gst_pop_all_scopes
* libgst/sym.h: Declare it
* libgst/comp.c: Use it
2003-01-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.y: Get rid of right recursion and
shift/reduce conflicts.
* libgst/tree.c: TREE_STATEMENT_LIST now a list node
* libgst/tree.h: Adjust documentation
* libgst/comp.c: Adjust functions that compile
statement lists.
* libgst/lib.c: Bump copyright year
* libgst/interp-jit.inl: Cleanup #if 0 sections
* libgst/prims.def: ValueAndResumeOnUnwind loses the
cache_new_ip attribute.
2002-12-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Always use PUSH_OOP to push the
result in VMpr_CObject_at. Thanks to David Forster.
2002-12-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Strdup the name of the function in
_gst_define_cunc (it is freed when the call happens
from Smalltalk). Thanks to David Forster.
2002-12-27 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0g released
* libgst/prims.def: Fix ISO C99-ism
* libgst/input.c: Fix compilation error when readline
is not there
2002-12-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Don't print negative percentages
* libgst/prims.def: Add ObjectMemory>>#abort primitive
* libgst/interp-bc.inl: Fix single step mode
* libgst/interp-jit.inl: Fix single step mode
2002-12-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Incubate everything sent through
_gst_msg_sendf.
2002-12-12 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.10 released
* libgst/input.c: Register the file name object in
_gst_get_cur_file_name, unregister it in my_close
* libgst/oop.c: Add more assertions
* libgst/save.c: Add more assertions
2002-12-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.y: New name of gst.y
* libgst/tree.h: Adjust
* libgst/genpr-scan.l: New file
* libgst/genpr-parse.y: New file
* libgst/genprims.h: New file
* libgst/prims.def: Merge with prims.inl again, but with
genprims' syntax
* libgst/interp.c: Remove cruft for multiple inclusions
of prims.def, we only include the generated prims.inl
2002-12-05 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.9 (stable) and 2.0f (development) released
* libgst/interp.c: Add _gst_check_process_state
* libgst/interp.h: Add _gst_check_process_state
* libgst/interp.c: Do suspend_process correctly when
the process is in the middle of the process list.
2002-12-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Abort instead of asserting
* libgst/save.c: Likewise
* libgst/dict.c: Abort instead of calling _gst_debug
* libgst/dict.inl: Likewise
* libgst/gstpriv.h: Likewise
* libgst/oop.c: Likewise
* libgst/sym.c: Likewise
* libgst/interp.c: Likewise
* libgst/xlat.c: Likewise
* libgst/prims.inl: Abort on a bootstrapping error
* libgst/interp.c: Catch SIGABRT instead of SIGSEGV
2002-12-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Provide a fallback whenever
MAP_NORESERVE is used.
2002-11-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.y: Fix a couple of shift/reduce conflicts
* libgst/gstpriv.h: Min->MIN, max->MAX, abs->ABS
* libgst/mpz.c: Adjusted
* libgst/opt.c: Adjusted
* libgst/oop.c: Adjusted
* libgst/save.c: Adjusted
* libgst/oop.c: Remove warning
* libgst/prims.inl: Implement asynchronous call-out.
* libgst/prims.def: Implement asynchronous call-out.
2002-11-19 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0e released
* libgst/oop.c: Add _gst_grey_oop_range
* libgst/oop.h: Declare it
* libgst/prims.inl: Check for EFAULT and abort if so.
2002-11-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Always do the F_SETOWN fcntl after F_SETFL
for the benefit of FreeBSD (thanks to Danilo Fiorenzano).
And always do the F_SETFL fcntl before FIOASYNC for the
benefit of Cygwin.
2002-11-15 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.8 (stable) released
* libgst/comp.c: Optionally make the method return the last value
in _gst_compile_method, use that in _gst_execute_statements,
don't free the trees in _gst_compile_method
* libgst/gst.y: Adjust callers of _gst_compile_method and
_gst_execute_statements, support ##(...) for compile-time-constants,
free the trees here
* libgst/tree.c: Remove parameter from _gst_free_tree
* libgst/tree.h: Adjust _gst_free_tree
* libgst/dict.c: Get rid of CFunctionDescs
2002-11-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: New C callout primitive, removed
methodOOP parameter from primitives
* libgst/interp.c: Adjusted
* libgst/interp.h: Adjusted
* libgst/interp-bc.inl: Adjusted
* libgst/interp-jit.inl: Adjusted
* libgst/cint.c: Adjusted
* libgst/cint.h: Adjusted
* libgst/lib.c: Load additional core classes *before* the C interface
since it now uses ValueHolder.
2002-11-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Define identity_dictionary_find_key
* libgst/dict.c: Use it
* libgst/prims.inl: Moved parts to interp.c and prims.def
* libgst/prims.def: Created from prims.inl
* libgst/interp.c: Added parts of prims.inl
2002-11-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: Add VMpr_Semaphore_lock
2002-11-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Start a new process in
_gst_prepare_execution_environment,
implement _gst_nvmsg_send here, added suspend_process
and terminate_process, refine detection of "No runnable
process" condition
* libgst/prims.inl: Handle the call-in chain
* libgst/interp-bc.inl: New argument and return value for _gst_interpret
* libgst/interp-jit.inl: New argument and return value for _gst_interpret
* libgst/interp.h: Added _gst_nvmsg_send
* libgst/comp.c: Use _gst_nvmsg_send to call #executeStatements
* libgst/callin.c: Base everything on _gst_nvmsg_send
* libgst/dict.c: Add DirectedMessage-related stuff and
_gst_callin_process_class
* libgst/dict.h: Likewise
* libgst/lib.c: Load DirMessage.st early, and CallinProcess.st
* libgst/alloc.c: Don't move reallocated objects that
get smaller (code produced by the JIT is not position
independent!)
* libgst/xlat.c: Fix some bit-rot
* libgst/opt.c: Fix off-by-one error in _gst_compute_stack_positions
2002-11-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Use MAP_NORESERVE if available.
* libgst/alloc.c: Resort to mmap-ed areas once we cannot
use sbrk anymore.
2002-11-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Unprotect freed pages, fix bug in removing
pages from remembered table upon freeing. Blox up and running
with generational and incremental GC.
* libgst/save.c: Use buffered I/O.
2002-11-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Strdup in _gst_push_string_stream
* libgst/callin.c: So we have to close the streams
* libgst/comp.c: Here as well
* libgst/alloc.c: Ensure a block has already been touched
(written to) before doing free-list operations. Otherwise,
the SIGSEGV handler might allocate memory while the free-lists
are not consistent.
* libgst/oop.c: For #become:, ensure the two swapped objects are
in the same generation. Otherwise, references to the new-space
object that used to point to the old-space object are not recorded
in the remembered set.
2002-11-04 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0e (development) released
2002-10-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: More hooks
* libgst/oop.c: Use them
2002-10-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Fix an obscure re-entrancy bug
in _gst_send_message_internal, which was commonly
triggered by the new garbage collector in the ANSI test
suite.
2002-10-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Put back support for growing the OOP table.
2002-10-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/sym.c: Add more consts
* libgst/sym.h: Likewise
* libgst/cint.c: Likewise
* libgst/cint.h: Likewise
* libgst/callin.c: Likewise
* libgst/callin.h: Likewise
* libgst/gstpub.h: Likewise
2002-10-22 Mike Castle <dalgoda@ix.netcom.com>
* libgst/callin.c: Fixes for Tcl 8.4.0 (add some consts)
* libgst/callin.h: Fixes for Tcl 8.4.0 (add some consts)
* libgst/dict.c: Fixes for Tcl 8.4.0 (add some consts)
* libgst/dict.h: Fixes for Tcl 8.4.0 (add some consts)
* libgst/gstpub.h: Fixes for Tcl 8.4.0 (add some consts)
2002-10-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Collect statistics
* libgst/dict.c: Add instance variables to ObjectMemory
* libgst/oop.c: Collect statistics
* libgst/oop.h: Declare functions to export statistics
* libgst/prims.inl: Adjust for statistic collection
2002-10-17 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.7 (stable) released
* libgst/alloc.c: Add some hooking abilities
* libgst/oop.c: Big rewrite for switch to generational GC
* libgst/oop.h: Likewise
* libgst/oop.inl: Likewise
* libgst/save.c: Likewise
* libgst/print.c: Likewise (debugging functions)
* libgst/gstpriv.h: Moved parts to oop.inl or oop.h, changed
many flags for the new generational collector.
* libgst/dict.c: Adjust for changes in variable names
* libgst/prims.inl: Adjust for changes in variable names
* libgst/gstpriv.h: define checks for !OPTIMIZE.
* libgst/input.c: define readline_getc only if readline
is used.
* libgst/interp-bc.inl: fix syntax error for !OPTIMIZE.
* libgst/lib.c: load FileDescr.st before ObjectMemory.
2002-10-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Print "GNU Smalltalk ready" only before
reading from stdin. `verbose' --> _gst_verbose.
* libgst/lib.h: Declare _gst_verbose.
* libgst/comp.c: Conditionalize printing of stats and
explanations on _gst_verbose and _gst_regression_testing.
* libgst/comp.h: Remove `quiet' parameter to
_gst_execute_statements.
* libgst/gst.y: Caller adjusted.
2002-10-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Include strspell.h.
* libgst/prims.inl: Define VMpr_String_similarityTo.
2002-10-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/print.c: Don't segfault when printing a Metaclass
that has no class yet.
2002-10-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Add the period to the word-termination
characters.
* libgst/dict.c: Declare AbstractNamespace and
BindingDictionary; support arbitrary number of instance
variables in dictionaries
* libgst/dict.h: Likewise
* libgst/dict.inl: Likewise
* libgst/lib.c: Load AbstNamespace.st and BindingDict.st
* libgst/byte.h: Add LINE_NUMBER_BYTECODE; declared
_gst_line_number
* libgst/byte.c: Print it; added _gst_line_number
* libgst/comp.c: Use _gst_line_number
* libgst/gst.y: Track locations
* libgst/lex.c: Track locations
* libgst/input.h: Added _gst_get_location
* libgst/input.c: Implemented it
* libgst/tree.h: Added location field to trees
* libgst/tree.c: Store locations in trees
* libgst/interp-bc.c: Treat LINE_NUMBER_BYTECODE as nop
* libgst/xlat.c: Treat LINE_NUMBER_BYTECODE as nop
2002-10-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Set F_XLAT_REACHABLE in the method
and block prolog.
* libgst/oop.c: GC unused JITted code.
2002-10-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Use EFAULT as an addition to SIGSEGV instead
of an alternative method to detect unmapped memory areas.
* libgst/interp-bc.inl: Don't use [ a ... b ] initializers
because Apple's gcc is actually an Objective C compiler.
2002-09-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: New file, from lib-src.
* libgst/alloc.h: New file, from lib-src.
2002-09-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Added HomedAssociation and associated
declarations
* libgst/dict.h: Added _gst_homed_association_class
* libgst/lib.c: Load it
* libgst/gstpriv.h: Remove finalization and add ephemerons
* libgst/oop.c: Likewise
* libgst/prims.inl: Likewise
* libgst/sym.c: Remove #finalize symbol and add #mourn
* libgst/sym.h: Likewise
* libgst/lib.c: Set line-based buffering for stdout in
regression testing mode.
2002-09-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Simplify inst_var_at and inst_var_at_put
* libgst/prims.inl: Inst_var_at_put now void, adjust caller.
2002-09-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.y: Better error recovery
2002-09-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Do memcpy to char * instead of to
double * (because that does not solve double unalignment
problems).
* libgst/input.c: My_getc reads unsigned chars.
2002-09-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Added interruptLock variable to Process
* libgst/interp.h: Added interruptLock field to gst_process
* libgst/interp.c: Semaphore_new() accepts a parameter
for the initial number of signals. Create the interruptLock
when a new Process is created.
2002-09-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: The highest priority process was being
put in the process list for priority 4 even if it did
not belong there.
2002-09-13 Paolo Bonzini <bonzini@gnu.org>
*** Versions 2.0c (development) and 2.0.6 (stable) released
* libgst/prims.inl: Allow specifying a class as the
current namespace
2002-09-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: support :: As well as . to separate
namespaces
* libgst/gst.y: Do corresponding changes in the grammar
as well as changes to support compile-time namespace
resolution
* libgst/dict.c: Allow specifying a class as a pool
dictionary and create namespaces at bootstrap
* libgst/sym.c: Extend VARIABLE_NODE treatment in
_gst_find_variable to support compile-time namespace
resolution
* libgst/sym.h: _gst_find_variable accepts a tree_node
* libgst/comp.c: Callers adjusted
* libgst/tree.h: Split tree node type TREE_VARIABLE_LIST
into TREE_VAR_DECL_LIST and TREE_VAR_ASSIGN_LIST
* libgst/tree.c: Likewise
* libgst/dict.c: Give interrupt state to Processes
* libgst/interp.h: Likewise
* libgst/interp.c: Use it
* libgst/prims.inl: Implement interrupt-handling
primitives
* libgst/lib.c: Load RecursionLock.st, drop short names
* libgst/dict.c: Give a name to Semaphores
* libgst/interp.h: Likewise
* libgst/sysdep.h: _gst_disable_interrupts and
_gst_enable_interrupts hold their state internally
* libgst/sysdep.c: Implement this
* libgst/events.c: Callers adjusted
* libgst/interp-bc.inl: Callers adjusted
* libgst/interp-jit.inl: Callers adjusted
* libgst/prims.inl: Callers adjusted
* libgst/interp.c: Callers adjusted
2002-09-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Compute stack depth correctly in the
presence of cascades.
* libgst/oop.c: Add valgrind hooks after OOPs are swept,
fix _gst_alloc_words (was not always converting size
from words to bytes)
2002-09-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Pass flags to alloc_oop
* libgst/interp.c: Pass flags to alloc_oop
* libgst/oop.c: Pass flags to alloc_oop, check
for opportunities to grow the OOP table in sweep_oop
* libgst/oop.inl: Receive flags in alloc_oop, force a
GC as soon as possible (instead of triggering it)
in low-water conditions
* libgst/print.c: Print subclasses of Association as
Associations.
* libgst/dict.h: Declared _gst_variable_binding_class
* libgst/dict.c: Declared _gst_variable_binding_class,
use NAMESPACE_AT_PUT
* libgst/dict.inl: New function variable_binding_new
and macro NAMESPACE_AT_PUT
* libgst/sym.c: Use NAMESPACE_AT_PUT
* libgst/lib.c: Load VarBinding.st
2002-09-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Support push 8-bit value bytecodes
* libgst/opt.c: Support push 8-bit value bytecodes
* libgst/interp-bc.inl: Support push 8-bit value bytecodes
* libgst/byte.c: Support push 8-bit value bytecodes
* libgst/byte.h: Support push 8-bit value bytecodes
* libgst/comp.c: Support push 8-bit value bytecodes
* libgst/interp.c: Add the alwaysPreempt parameter
to resume_process. Callers and documentation adjusted.
* libgst/interp-bc.inl: Support single step mode.
* libgst/interp-jit.inl: Support single step mode.
* libgst/prims.inl: Add single stepping primitive.
2002-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Walk the OOP table forwards in
sweep_pooled_contexts. Correct off-by-one error
in _gst_oop_index_valid.
* libgst/prims.inl: Added branch hits. Fix bug
where a too short replacement collection caused
the String>>#replaceFrom:to:with:startingAt: primitive
to succeed without making changes to the receiver.
2002-08-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Pass SIGCHLD to the signal handler
for asynchronous file polling, as it might reveal a
POLLHUP event.
2002-08-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Accept -1 for isPipe in
_gst_set_file_stream_file
* libgst/prims.inl: Try to lseek to the end of the
file descriptor to check if it behaves like a pipe,
and consider EINVAL the same as ESPIPE. This hack
makes FileDescriptor and FileStream consider /proc
entries as pipes.
2002-08-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.y: Give an error message if a binding
to an undeclared class is used.
2002-08-14 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.5 (stable) released
* libgst/lib.c: Return `int' from _gst_init_smalltalk
instead of exiting; give an error message if a
non-existent file is given for -I.
* libgst/gstpub.h: Adjust documentation and prototype
* main.c: Adjust caller
2002-08-12 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0b (development) released
2002-08-07 Paolo Bonzini <bonzini@gnu.org>
*** Versions 2.0a (development) and 2.0.4 (stable) released
2002-07-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: Added missing `break' statement
2002-07-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Don't load Browser.st
2002-07-17 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.3 released
2002-07-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Don't do class checks on global variables
(they refer to the associations!)
2002-07-11 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.2 released
2002-07-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Define _gst_object_copy instead of
_gst_dictionary_copy
* libgst/prims.inl: Define a fast VMpr_Object_shallowCopy
2002-07-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.h: Define MCF_ flags
* libgst/prims.inl: Define VMpr_BlockClosure_valueAndResumeOnUnwind
and VMpr_ContextPart_continue
* libgst/interp.c: Complicate unwind_context, unwind_method,
and define unwind_to to implement #ensure: correctly in the
presence of non-local returns.
* libgst/interp-bc.inl: Use MCF_ flags
* libgst/xlat.c: Use MCF_ flags
2002-07-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Parse negative scaled decimal constants
as negative; in general, parse them exactly without
floating point errors.
* libgst/prims.inl: Large-integer primitives pass when
they receive LargeIntegerZero
* libgst/mpz.c: Ensure the most significant limb of the
gst_mpz objects is not zero
* libgst/dict.c: Fix GC bug in _gst_grow_identity_dictionary
2002-06-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Load FloatD.st/FloatE.st/FloatQ.st
* libgst/lex.c: Parse floats as long doubles, distinguish
FloatD/FloatE/FloatQ literals.
* libgst/comp.c: Distinguish FloatD/FloatE/FloatQ trees
* libgst/tree.c: Add TYPE parameter to _gst_make_float_constant
* libgst/tree.h: Adjust prototype, define CONST_FLOATD/CONST_FLOATE
CONST_FLOATQ
* libgst/gst.y: Pass TYPE parameter to _gst_make_float_constant
* libgst/cint.c: Use FloatD/FloatE/FloatQ
* libgst/callin.c: Use FloatD/FloatE/FloatQ
* libgst/dict.c: Declared FloatD/FloatE/FloatQ
* libgst/dict.h: Declared FloatD/FloatE/FloatQ
* libgst/dict.inl: Declared functions to box and unbox FloatE's
and FloatQ's
* libgst/mpz.c: Defined _gst_mpz_get_ld
* libgst/mpz.h: Declared _gst_mpz_get_ld
* libgst/prims.inl: Define primitives on FloatE/FloatQ
* libgst/interp-bc.inl: Change open-coded math operations to use
FloatD
2002-06-28 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0.1 released
2002-06-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Don't require the image directory to be world-writable.
* libgst/xlat.c: Fixed embarrassing syntax error.
* libgst/tree.c: Use %O.
* libgst/sym.c: Likewise.
* libgst/prims.inl: Likewise.
* libgst/byte.c: Likewise.
* libgst/comp.c: Likewise.
* libgst/dict.c: Likewise.
* libgst/dict.h: Likewise.
* libgst/interp-bc.inl: Likewise.
* libgst/interp.c: Likewise.
* libgst/xlat.c: Likewise.
2002-06-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Remove printing functions.
* libgst/oop.h: Likewise.
* libgst/dict.c: Likewise.
* libgst/dict.h: Likewise.
* libgst/sym.c: Likewise.
* libgst/sym.h: Likewise.
* libgst/print.c: Move them here...
* libgst/print.h: ... and here.
* libgst/lib.c: Call _gst_init_snprintfv.
2002-06-25 Paolo Bonzini <bonzini@gnu.org>
*** Version 2.0 released
2002-06-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Removed exceptionHandlers variable from
the Process class.
* libgst/lib.c: Search in the class namespace before
looking in the class pools
2002-06-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: reformat help message
2002-06-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Always define 32-bit and 64-bit
int<->OOP conversion functions
* libgst/cint.c: Caller fixed
* libgst/prims.inl: Support 64-bit file offsets
* libgst/interp-bc.inl: Added more branch prediction hints
2002-06-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Define _gst_set_c_object
* libgst/callin.h: Declare _gst_set_c_object
* libgst/gstpub.h: Define setCObject in the VMProxy struct
2002-05-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Made some functions inline; remove amount
of checks on wrong_endianness; store number of pointer
instance variables in advance in the OOP if < 127. A small
improvement in image loading time, and an example of using
F_COUNT (which will be used by GC in 2.1 to drop the
recursive calls in the mark phase).
2002-05-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Loop in the used part of the OOP table only
(+15% average speedup on image loading time).
* libgst/dict.c: Likewise
* libgst/dict.h: Adapted prototype of
_gst_init_dictionary_on_image_load
* libgst/lex.c: Use character literals for 1-char tokens
* libgst/gst.y: Likewise
* libgst/jitpriv.h: New name of internal.h
* libgst/xlat.c: Include jitpriv.h
* libgst/interp-jit.inl: Include jitpriv.h instead of internal.h
* libgst/gstpriv.h: Don't include internal.h
2002-05-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Don't cache the VMPrimitives dictionary, it
causes bugs.
2002-05-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.h: Changed _gst_invoke_init_block to
_gst_invoke_hook.
* libgst/comp.c: Trace exection of the hooks only if -E is
specified; changed _gst_invoke_init_block to _gst_invoke_hook.
* libgst/lib.c: Use _gst_invoke_hook
* libgst/oop.c: Ditto
* libgst/prims.inl: Ditto
* libgst/save.c: Ditto
* libgst/dict.c: Keep dictionary sizes a power of two
and scramble the bits
* libgst/dict.inl: Keep dictionary sizes a power of two
and scramble the bits
* libgst/prims.inl: Declare a primitive to scramble the bits
of a SmallInteger
* libgst/sym.h: Keep symbol table size a power of two
* libgst/sym.c: Use a simpler hash and scramble its bits
2002-05-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Fix multiple evaluation of arguments
of BYTE_INVERT; work around misinterpretation of
mpn_?shift documentation
* libgst/oop.c: Hardcode printing of infinite and nan
values in _gst_print_object, to avoid false regressions
due to libc differences
2002-05-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Fire ObjectMemory events before
and after evaluation in _gst_execute_statements
* libgst/lib.h: Declared _gst_kernel_initialized
* libgst/lib.c: Set _gst_kernel_initialized before
invoking the #returnFromSnapshot event.
2002-05-11 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.96.6 released
2002-05-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Fix spurious error from my_close
when stdin is passed on the command line (via -)
2002-05-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/internal.h: _gst_internal_funcs now const
* libgst/interp.c: Always mark thisContext (at worst,
it is nil)
* libgst/xlat.c: Include lightning.h, removed by
mistake when switching to gstpriv.h; add const in
dcd_send_special
2002-05-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.h: ObjSize now an OOP
* libgst/dict.inl: Likewise
* libgst/xlat.c: Likewise
* libgst/save.c: Likewise
* libgst/oop.c: Likewise
* libgst/mpz.c: Likewise
* libgst/interp.c: Likewise
* libgst/dict.c: Likewise
* libgst/comp.c: Likewise
2002-05-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Declare macros for branch prediction hints
* libgst/interp-bc.inl: Use them
* libgst/interp-jit.inl: Use them
* libgst/interp.c: Use them
* libgst/interp.inl: Use them
* libgst/md-config.h: Use them
* libgst/oop.c: Use them
* libgst/oop.inl: Use them
* libgst/oop.c: Allocate objects outside the main heap
in _gst_alloc_obj
* libgst/oop.h: Declare _gst_big_objects_threshold
* libgst/prims.inl: Added primitives to tune threshold
for in-heap allocation
* libgst/oop.c: Modify calling convention for _gst_alloc_obj,
in preparation for allocating outside the main heap
* libgst/oop.h: Declaration adjusted.
* libgst/dict.c: Callers adjusted.
* libgst/oop.c: Callers adjusted.
* libgst/dict.inl: Modify calling convention for
instantiation functions, to account for the change to
_gst_alloc_obj and in preparation for allocating outside
the main heap.
* libgst/interp.c: Callers adjusted.
* libgst/comp.c: Callers adjusted.
* libgst/callin.c: Callers adjusted.
* libgst/sym.c: Callers adjusted.
* libgst/dict.c: Callers adjusted.
* libgst/prims.inl: Callers adjusted.
2002-05-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Move C...Size et al. into CSymbols,
refer to CSymbols as to a pool dictionary of ByteArray,
CObject, Float, Integer. Drop class comments, they are
not needed here. Create a RegressionTesting global
variable that suppresses more sources of variance.
2002-04-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Don't set writePtr and writeEnd
for FileDescriptors in _gst_set_stream_file
2002-04-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: Return NaN when transcendental
functions fail. Removed VMpr_LargeInteger_divide.
2002-04-14 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.96.5 released
2002-04-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Print a backtrace on SIGUSR1
* libgst/oop.c: Gc_running -> _gst_gc_running
* libgst/oop.h: Declare _gst_gc_running
2002-04-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Properly check for overflows on
bitshifts (used to return 0 instead of 16r-80000000)
* libgst/prims.inl: Likewise
2002-03-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: New file
* libgst/mpz.h: New file
* libgst/prims.inl: Implemented primitives for large integers
2002-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Added cacheline definitions
* libgst/interp.c: Added cacheline definitions
* libgst/oop.c: Added cacheline definitions
* libgst/xlat.c: Added cacheline definitions
* libgst/interp.inl: Use inttypes.h rather than stdint.h
2002-03-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Don't include sys/select.h, we don't need it
* libgst/gstpub.h: Don't include sys/select.h, we don't need it
* libgst/sysdep.c: Support HP/UX's FIOSSAIOSTAT and
FIOSSAIOOWN ioctls to setup asynchronous I/O
* libgst/input.c: Check for EINTR when reading from a file
* libgst/prims.inl: Check for EINTR when reading from a file
* libgst/lex.c: Skip _ inside numeric literals
2002-03-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Updated list of files for virtual filesystem layer
* libgst/prims.inl: Implement the PRIM_MK_TEMP file operation.
2002-03-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.h: Added _gst_push_stream_oop
* libgst/input.c: Implement stream operations for
arbitrary OOP's.
* libgst/prims.inl: Remove checks for String-ness
in compilation primitives.
2002-03-12 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.96.4 released
2002-03-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.h: _gst_gc_flip -> _gst_scavenge,
_gst_minor_gcflip -> _gst_minor_scavenge
* libgst/oop.c: Likewise
* libgst/oop.inl: Likewise
* libgst/save.c: Likewise
* libgst/prims.inl: Likewise
* libgst/interp.c: Likewise
* libgst/oop.c: GC flip -> scavenging
2002-02-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.h: Removed private stuff
* libgst/gstpriv.h: Private stuff from gst.h + inclusion
of all the other headers
* byte.c: Include gstpriv.h
* callin.c: Include gstpriv.h
* cint.c: Include gstpriv.h
* comp.c: Include gstpriv.h
* dict.c: Include gstpriv.h
* events.c: Include gstpriv.h
* gst.tab.c: Include gstpriv.h
* heap.c: Include gstpriv.h
* input.c: Include gstpriv.h
* interp.c: Include gstpriv.h
* lex.c: Include gstpriv.h
* lib.c: Include gstpriv.h
* oop.c: Include gstpriv.h
* opt.c: Include gstpriv.h
* save.c: Include gstpriv.h
* str.c: Include gstpriv.h
* sym.c: Include gstpriv.h
* sysdep.c: Include gstpriv.h
* tree.c: Include gstpriv.h
* xlat.c: Include gstpriv.h
2002-02-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fixed a code generation bug for {} array
constructors (two consecutive updates of the stack pointer).
2002-02-26 Paolo Bonzini <bonzini@gnu.org>
Named primitives: interpreter changes
-------------------------------------
* libgst/prims.inl: Implement named primitives (vs. numbered)
* libgst/interp.h: Reflect changes in the interface for named
primitives
* libgst/interp-bc.inl: Call the appropriate named primitive
in MAYBE_PRIMITIVE
* libgst/interp.c: Include prims.inl before interp-bc.inl or
interp-jit.inl
* libgst/internal.h: Include VMpr_BlockClosure_blockCopy
in the internal functions
* libgst/interp-jit.inl: Include VMpr_BlockClosure_blockCopy
in the internal functions
* libgst/xlat.c: Adapt to changes in the interface for named
primitives
Named primitives: compiler changes
----------------------------------
* libgst/gst.y: Declare primitive as type <sval>
* libgst/tree.h: PrimitiveIndex -> primitiveName
* libgst/tree.c: Likewise
* libgst/dict.h: Declared _gst_resolve_primitive_name
* libgst/dict.c: Added _gst_resolve_primitive_name and
init_primitives_dictionary
* libgst/comp.c: Use _gst_resolve_primitive_name
Named primitives: image loading
-------------------------------
* libgst/dict.c: Added prepare_primitive_number_map, removed
bit of init_runtime_objects to initialize the symbols and
calling _gst_init_symbols instead.
* libgst/sym.c: Added _gst_init_symbols, symbol_list not
extern anymore
* libgst/sym.h: Added _gst_init_symbols, symbol_list not
extern anymore
* libgst/comp.c: Added _gst_restore_primitive_number
* libgst/comp.h: Declared _gst_restore_primitive_number
2002-02-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Implemented _gst_register_oop_array & co
* libgst/callin.h: Declared _gst_register_oop_array & co
* libgst/gstpub.h: Added registerOOPArray to the VMProxy
* libgst/comp.c: Use pointers rather than indices to implement
the literal vector, to be compatible with _gst_register_oop_array's
conventions. Use _gst_register_oop_array to register the
literal vector, in init_compiler.
* libgst/oop.c: Replaced mark_incubator_oops with a call to
_gst_register_oop_array.
* libgst/dict.c: Removed CFunctionDescs from the list of pool
dictionaries for Object.
* libgst/interp-bc.inl: Fixed a rare bug by invalidating
last_primitive before exiting the interpreter.
2002-02-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Use AVL trees for the C function registry;
get rid of _gst_init_cfunc_vec.
* libgst/callin.c: Use red-black trees for the OOP registry;
get rid of _gst_init_oopregistry.
* libgst/lib.c: Get rid of _gst_init_oopregistry
* libgst/callin.h: Get rid of _gst_init_oopregistry
* libgst/dict.c: Register the Smalltalk dictionary in
init_runtime_objects
* libgst/comp.c: Keep _gst_this_class & co. into the registry.
Got rid of _gst_mark_compile_context.
* libgst/comp.h: Removed _gst_mark_compile_context.
* libgst/events.c: Removed _gst_mark_events_semaphores, use
the registry instead.
* libgst/events.h: Removed _gst_mark_events_semaphores
* libgst/interp.c: Don't call _gst_mark_events_semaphores
* libgst/oop.c: Remove the hooks in mark_oops that have been
replaced by the registry (now that it is a tree it is also
faster)
* libgst/interp.h: Declared _gst_async_signal_and_unregister
* libgst/gstpub.h: Declared asyncSignalAndUnregister in
the VMProxy
* libgst/interp.c: Implemented _gst_async_signal_and_unregister
* libgst/interp-bc.inl: Added glue for _gst_async_signal_and_unregister
* libgst/interp-jit.inl: Added glue for _gst_async_signal_and_unregister
2002-02-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Document the functions and variables
* libgst/lex.h: Likewise
* libgst/input.c: Likewise
* libgst/input.h: Likewise
* libgst/sym.c: Likewise
* libgst/sym.h: Likewise
* libgst/sysdep.c: Likewise
* libgst/sysdep.h: Likewise
* libgst/sym.c: Allow _ for variable names in the bootstrapping
declarations.
2002-02-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Remove the routines to disable the GC
* libgst/oop.h: Remove the routines to disable the GC
* libgst/save.c: Remove the calls to disable the GC since
the variable was never checked
* libgst/oop.c: Document the functions and variables
* libgst/oop.h: Likewise
* libgst/oop.inl: Likewise
2002-02-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Document the functions and variables
* libgst/comp.inl: Likewise
* libgst/byte.c: Likewise
* libgst/byte.h: Likewise
* libgst/dict.inl: Likewise
* libgst/dict.c: Likewise
* libgst/dict.h: Likewise
2002-02-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Document the functions and variables
* libgst/comp.h: Likewise
* libgst/input.c: Flush stdout after printing the prompt,
if readline is not used.
2002-02-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Remove conditional on PICKY_VA_ARG,
ANSI says it should really be picky (i.e. not accept
a char type)
* libgst/interp.inl: Try to use long long or intmax_t
to check overflow on multiplication
* libgst/interp-jit.inl: When refreshing the native IPs,
special case the termination method so that its native
instruction pointer is the special code to yield control
back to _gst_interpret.
* libgst/interp.h: Document the functions and variables
* libgst/interp-bc.inl: Likewise
* libgst/interp-jit.inl: Likewise
* libgst/prims.inl: Likewise
* libgst/opt.c: Likewise
* libgst/opt.h: Likewise
* libgst/callin.c: Likewise
* libgst/callin.h: Likewise
* libgst/cint.c: Likewise
* libgst/cint.h: Likewise
2002-02-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Document the functions and variables
2002-02-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Document the functions and variables
* libgst/save.h: Likewise
* libgst/str.c: Likewise
* libgst/str.h: Likewise
* libgst/events.c: Likewise
* libgst/events.h: Likewise
* libgst/tree.c: Likewise
* libgst/tree.h: Likewise
* libgst/heap.c: Likewise
* libgst/heap.h: Likewise
* libgst/lib.c: Likewise
* libgst/lib.h: Likewise
* libgst/gst.h: Likewise
* libgst/gstpub.h: Likewise
* libgst/byte.h: Remove leading double underscores from the guard
* libgst/callin.h: Likewise
* libgst/cint.h: Likewise
* libgst/comp.h: Likewise
* libgst/dict.h: Likewise
* libgst/events.h: Likewise
* libgst/gst.h: Likewise
* libgst/gst.tab.h: Likewise
* libgst/gstpub.h: Likewise
* libgst/heap.h: Likewise
* libgst/input.h: Likewise
* libgst/internal.h: Likewise
* libgst/interp.h: Likewise
* libgst/lex.h: Likewise
* libgst/lib.h: Likewise
* libgst/md-config.h: Likewise
* libgst/memzero.h: Likewise
* libgst/oop.h: Likewise
* libgst/opt.h: Likewise
* libgst/save.h: Likewise
* libgst/str.h: Likewise
* libgst/sym.h: Likewise
* libgst/sysdep.h: Likewise
* libgst/tree.h: Likewise
* libgst/xlat.h: Likewise
* libgst/comp.inl: Remove the useless guard
* libgst/dict.inl: Likewise
* libgst/interp.inl: Likewise
* libgst/oop.inl: Likewise
2002-02-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Show only the last copyright year.
* libgst/events.c: Major reengineering to avoid race
conditions and dangling pointers... gee, how bad the
code was before this! :-(
* libgst/sysdep.c: To avoid cluttering the straces,
don't set the same signal handlers as the last time
in _gst_set_file_interrupt
* libgst/interp-bc.inl: Protect interrupts while
accessing async_queue_index (even though it is volatile)
* libgst/interp-jit.inl: Likewise
2002-01-29 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.96.3 released.
* libgst/opt.c: Convert arguments to qsort and bsearch
to accept two void *'s.
* libgst/input.c: Likewise
2002-01-23 Paolo Bonzini <bonzini@gnu.org>
* main.c: Converted to ANSI C and to the GNU
coding standards
* libgst/byte.c: Likewise
* libgst/callin.c: Likewise
* libgst/cint.c: Likewise
* libgst/comp.c: Likewise
* libgst/dict.c: Likewise
* libgst/events.c: Likewise
* libgst/gst.tab.c: Likewise
* libgst/heap.c: Likewise
* libgst/input.c: Likewise
* libgst/interp.c: Likewise
* libgst/lex.c: Likewise
* libgst/lib.c: Likewise
* libgst/oop.c: Likewise
* libgst/opt.c: Likewise
* libgst/save.c: Likewise
* libgst/str.c: Likewise
* libgst/sym.c: Likewise
* libgst/sysdep.c: Likewise
* libgst/tree.c: Likewise
* libgst/xlat.c: Likewise
* libgst/byte.h: Likewise
* libgst/callin.h: Likewise
* libgst/cint.h: Likewise
* libgst/comp.h: Likewise
* libgst/dict.h: Likewise
* libgst/events.h: Likewise
* libgst/gst.h: Likewise
* libgst/gst.tab.h: Likewise
* libgst/gstpub.h: Likewise
* libgst/heap.h: Likewise
* libgst/input.h: Likewise
* libgst/internal.h: Likewise
* libgst/interp.h: Likewise
* libgst/lex.h: Likewise
* libgst/lib.h: Likewise
* libgst/md-config.h: Likewise
* libgst/memzero.h: Likewise
* libgst/oop.h: Likewise
* libgst/opt.h: Likewise
* libgst/save.h: Likewise
* libgst/str.h: Likewise
* libgst/sym.h: Likewise
* libgst/sysdep.h: Likewise
* libgst/tree.h: Likewise
* libgst/xlat.h: Likewise
* libgst/comp.inl: Likewise
* libgst/dict.inl: Likewise
* libgst/interp-bc.inl: Likewise
* libgst/interp-jit.inl: Likewise
* libgst/interp.inl: Likewise
* libgst/oop.inl: Likewise
* libgst/prims.inl: Likewise
2002-01-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.y: Signal a warning if self, super, true, false,
nil, or thisContext are sent. General reformatting of the
source code.
2002-01-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Removed initialization blocks
2002-01-17 Nigel Williams <nigelw@wizardis.com.au>
* libgst/dict.c: Added atEnd variable to FileDescriptor
* libgst/prims.inl: Provide a primitive to check if a
descriptor is a pipe or a file.
* libgst/dict.c: Added timeSlice variable to ProcessorScheduler
* libgst/events.c: Pass a third parameter to signalAfter
* libgst/interp-bc.inl: Call setPreemptionTimer once the timer
has been fired and acknowledged
* libgst/interp-jit.inl: Call setPreemptionTimer once the timer
has been fired and acknowledged
* libgst/interp.c: New functions related to preemptive
multitasking
* libgst/interp.h: Added timeSlice variable to ProcessorScheduler
* libgst/sysdep.h: Added support for process-time timers (like
ITIMER_VIRTUAL)
* libgst/sysdep.c: Added support for process-time timers (like
ITIMER_VIRTUAL)
2002-01-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Ensure that the image path is the directory
from which we loaded the image, rather than the default image
path.
2002-01-04 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.96.2 released
2002-01-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add the Source class variable to the Random
class.
* libgst/input.c: Don't use readline unless stdin is a TTY.
* libgst/lib.c: Changed banner to "GNU Smalltalk ready"
(lowercase r)
2001-12-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Poll until there are no pending events
2001-11-20 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.96.1 released
2001-11-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.y: Implement #(true false nil) as per the ANSI
standard.
2001-10-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Define O_ASYNC as FASYNC if not found.
2001-10-17 David Forster <dforste@qwest.net>
* libgst/cint.c: Add uInt and uLong support for C interface.
Change longType return to use fromCLong.
* libgst/sym.c: Add uIntSymbol and uLongSymbol.
2001-10-16 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.95.5 released.
* libgst/lib.c: Observe quietExecution when loading
.stinit and .stpre.
2001-10-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Fixed bugs after applying the two
patches below.
2001-10-06 Nigel Williams <nigelw@elder-gods.net>
* libgst/lib.c: Show error message if file not found
2001-08-28 Carlo Dapor <catull_us@yahoo.com>
* libgst/lex.c: Reset floating point exception mask under FreeBSD.
* libgst/lib.c: Switch to getopt_long for parsing long command line
options.
2001-07-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.h: Gee, what a hiatus! Fixed for C++.
* libgst/gstpub.h: Likewise
2001-06-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.h: Defined PRIM_CHECK_INTERRUPT
* libgst/prims.inl: Added PRIM_CHECK_INTERRUPT
where required
* libgst/xlat.c: EmitInterruptCheck called from
emitPrimitive only if PRIM_CHECK_INTERRUPT
2001-06-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Create the IPMap when translating.
Defined mapVirtualIP. Store the IP at every possible
synchronization point (emitInterruptCheck).
* libgst/xlat.h: Declared mapVirtualIP.
* libgst/str.c: Declared addBufData
* libgst/str.h: Defined addBufData
* libgst/xlat.c: Generate an interrupt check as part of
the prolog rather than of the return bytecodes.
2001-06-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-jit.inl: Defined refreshNativeIPs.
* libgst/interp.c: ReturnIP --> nativeIP
* libgst/interp.h: ReturnIP --> nativeIP
* libgst/dict.c: ReturnIP --> nativeIP
* libgst/save.c: Reset a context's nativeIP upon image load.
2001-06-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Open the slave pty before forking
2001-06-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Define BRANCH_REGISTER for every
architecture
* libgst/interp-bc.inl: Put the prefetched address into
a branch register.
* libgst/dict.c: Include sysdep.h
* libgst/input.c: Removed unused variable in pushUNIXFile
* libgst/prims.inl: Removed unused variable in primitive 254
* libgst/sysdep.h: Declared fullWrite
2001-06-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: GetMethodBase became initTranslator
* libgst/xlat.h: Likewise
* libgst/interp.c: Got rid of the nativeBase
* libgst/interp-jit.inl: Got rid of the nativeBase
* libgst/sysdep.c: Set the CLOEXEC flag in openFile
2001-06-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Use poll(2) instead of select(2),
I am told it is more scalable.
* libgst/input.c: Likewise, for coherency.
2001-05-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Use ptys to create a pipe; when
setting file interrupt with SIOCSGRP and FIOASYNC,
check that both ioctls succeed.
2001-05-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Make unwindMethod return whether
the return was successful
* libgst/interp-bc.inl: Send #badReturnError if
return from method was unsuccessful
* libgst/xlat.c: Likewise
* libgst/interp-jit.inl: Added a comment re. the only
serious bug remaining.
2001-05-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: _WIN32 --> WIN32
* libgst/gst.h: Define WIN32 if __CYGWIN__ or __CYGWIN32__
* libgst/sysdep.c: _WIN32 --> WIN32
2001-05-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Added support for inlined primitives
* libgst/prims.inl: Marked a few primitives as inlined
* libgst/dict.inl: Added accessors for the ISP_ISWORDS
bit.
2001-05-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Remove calls to moncontrol; will be
replaced by new profiling stuff.
* libgst/prims.inl: Temporarily embed the moncontrol
primitive into #if 0.
2001-05-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Recycle existing std{in,out,err}.
* libgst/input.c: Wait for a character to be available
before returning to Readline.
* libgst/prims.inl: Reset errno to 0 after calling
lseek.
2001-05-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-jit.inl: In sendMessageInternal force
a call to getNativeCode upon a cache miss
2001-05-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fixes for PowerPC (sizeof(jit_insn) > 1)
2001-05-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Support selfSmalltalk and variadicSmalltalk
as additional parameter types
* libgst/sym.c: Defined selfSmalltalkSymbol and
variadicSmalltalkSymbol
* libgst/sym.h: Declared selfSmalltalkSymbol and
variadicSmalltalkSymbol
2001-04-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: Fixed buffer overflows involving
oopVec.
2001-04-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Fixed isFinite, it reported -2.0 as
infinite!
* libgst/callin.h: Declared basicSize
* libgst/callin.c: Defined basicSize
* libgst/gstpub.h: Added basicSize to the InterpreterProxy
2001-04-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Extrapolated a part of it into events.c,
include events.h
* libgst/prims.inl: Turn some primitives into calls to
functions in events.c
* libgst/events.c: New file
* libgst/events.h: New file
* libgst/interp.h: Declared syncWait
* libgst/interp.c: Defined syncWait from primitive 86's code
* libgst/prims.inl: Primitive 86 now calls syncWait
* libgst/gstpub.h: Declared syncWait in the interpreterProxy
* libgst/callin.c: Likewise
* libgst/sysdep.c: Use socketpair to create a pipe
2001-04-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.h: Declared fileDescriptorClass
* libgst/dict.c: Declared fileDescriptorClass
* libgst/lib.c: Load FileDescr.st
* libgst/opt.c: fix incorrect peephole optimization: Of
two equal `pop/store into instance variable of new stack top'
bytecodes, the second became a `duplicate stack top' bytecode
2001-04-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Use incAddOOP everywhere instead of
registerOOP. Added objectAlloc to the interpreterProxy
* libgst/callin.h: Declared objectAlloc in the interpreterProxy
* libgst/cint.c: InvokeCFunction now includes an incSavePointer
and incRestorePointer pair.
* libgst/gst.h: Make incAddOOP a single statement instead
of a C block.
* libgst/cint.c: In pushSmalltalkObj, use the incubator rather
than the registry.
* libgst/cint.h: Removed declaration of enableGC, since the above
change left it unused.
* libgst/prims.inl: Removed primitive 264 (#enableGC:)
2001-04-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Declared objectMemoryClass
* libgst/dict.h: Declared objectMemoryClass
* libgst/lib.c: Load ObjMemory.st, not initialize.st
* libgst/save.c: Raise ObjectMemory events
* libgst/comp.c: Raise ObjectMemory events
* libgst/oop.c: Raise ObjectMemory events
* libgst/prims.inl: Raise ObjectMemory events
2001-03-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Implemented byteArrayToOOP and OOPToByteArray
* libgst/gstpub.h: Declared byteArrayToOOP and OOPToByteArray in
the VMProxy.
* libgst/sysdep.c: Removed code to set the LANG environment
variable on Win32 systems.
2001-03-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Added an `access' parameter to setFileStreamFile
* libgst/prims.inl: Pass the `access' parameter to setFileStreamFile
from primitive 254
2001-03-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Set up FileStream for new buffering scheme,
and updated setFileStreamFile.
* libgst/prims.inl: Implemented primitive 254 for new buffering
scheme. Incorporated primitives 247/248 (file-in) into 254.
2001-03-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Implemented pushUNIXFile & co. in terms
of file descriptors.
* libgst/prims.inl: Implement FileStream in terms of file
descriptors.
* libgst/save.c: Use file descriptors.
* libgst/sysdep.c: Modified openFile/openPipe to use
file descriptors.
2001-03-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Bindings are simple oopConsts now.
* libgst/tree.c: Resolve bindings as oopConsts.
* libgst/tree.h: Removed bindingConst.
* libgst/gst.y: Raise an error on an invalid binding.
* libgst/comp.c: initCompiler is now public.
* libgst/comp.h: initCompiler is now public.
* libgst/lib.c: Call initCompiler.
2001-03-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Fixed typo in register allocation
for the SPARC.
2001-03-01 Dirk Sondermann <d.sondermann@freenet.de>
* libgst/md-config.h: Disable register allocation on the
SPARC (possibly temporary change).
2001-02-23 Paolo Bonzini <bonzini@gnu.org>
*** Released version 1.95.3
2001-02-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.h: Declare sendMethod.
* libgst/interp.c: Added sendMethod to list of routines
implemented by plug-ins.
* libgst/interp-bc.inl: Added sendMethod.
* libgst/interp-jit.inl: Added sendMethod.
* libgst/prims.inl: Support sending methods in the
#perform: and #perform:withArguments: primitive.
* libgst/comp.c: Add `install' parameter to compileMethod;
set latestCompiledMethod in compileMethod; use sendMethod
in executeStatements.
* libgst/gst.y: Pass `install' parameter to compileMethod
2001-02-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Made from complete.c and part of lex.c
* libgst/input.h: Made from complete.h and part of lex.h
* libgst/gst.y: Include input.h
* libgst/byte.c: Include input.h instead of lex.h
* libgst/cint.c: Ditto
* libgst/comp.c: Ditto
* libgst/dict.c: Ditto
* libgst/heap.c: Ditto
* libgst/input.c: Ditto
* libgst/interp.c: Ditto
* libgst/lex.c: Ditto
* libgst/lib.c: Ditto
* libgst/oop.c: Ditto
* libgst/opt.c: Ditto
* libgst/sym.c: Ditto
* libgst/tree.c: Ditto
* libgst/comp.c: Removed emacsProcess from here
* libgst/tree.c: Removed hadError from here
* libgst/input.c: Moved emacsProcess and hadError here
* libgst/comp.h: Removed emacsProcess from here
* libgst/tree.h: Removed hadError from here
* libgst/input.h: Moved emacsProcess and hadError here
2001-02-17 Dirk Sondermann <d.sondermann@freenet.de>
* libgst/heap.c: Fixed for Solaris
2001-02-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/complete.c: New file
* libgst/complete.h: New file
* libgst/lex.c: Moved initializeReadline to readline.c
* libgst/lib.c: Call initializeReadline after we loaded the
image, because addAllSymbolCompletions needs the full symbol table.
* libgst/sym.c: Call addSymbolCompletion in internCountedString,
added addAllSymbolCompletions.
* libgst/sym.h: Declared addAllSymbolCompletions
2001-02-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Made invokeCRoutine return whether the
call-out was successful.
* libgst/cint.h: Made invokeCRoutine return a boolean.
* libgst/prims.inl: On invalid C call-outs, primitive 255 fails.
2001-02-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: In primitive 255 (C call-out) check
that we were not called from the at-cache.
2001-02-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Keep dictionaries no more than 75% full,
* libgst/dict.h: Ditto
* libgst/dict.c: Keep dictionary sizes prime (new function
newNumFields).
2001-02-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.h: Moved F_FINALIZE into the runtime flags
(not preserved between the time an image is saved and
the time it is loaded)
2001-02-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: PushReadlineString became pushStdinString,
and calls pushUNIXFile if emacsProcess is true or readline
is not available
* libgst/lex.h: Declare pushStdinString
* libgst/lib.c: Instead of using #ifdef to decide between
pushReadlineString or pushUNIXFile, use pushStdinString.
2001-02-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Added idToOOP/OOPToId, declaration of
interpreterProxy
* libgst/gstpub.h: Declared idToOOP/OOPToId, VMProxyStruct
* libgst/callin.h: Moved old contents of gstpub.h here
* libgst/lib.c: Don't call gst_dld_init
* libgst/cint.c: Don't call initUserCFuncs; merged with
dld_gst.c. In gst_dld_open automatically call gst_initModule
for the shared library; and always use libltdl.
* libgst/cfuncs.c: Removed.
* libgst/dld*: Removed.
* libgst/cint.c: Search the cFuncInfo array backwards,
so that new definitions override the old ones.
2001-01-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Declared a wrapper around opendir, which
returns ENOSYS under Linux! Also declared isExecutable
* libgst/lib.c: Load OtherArrays.st
* libgst/sysdep.h: Declared fileIsExecutable
* libgst/sysdep.c: Defined fileIsExecutable
2001-01-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Compile bindingConsts.
* libgst/gst.y: Added #{...} literals
* libgst/sym.c: Defined findVariableBinding
* libgst/sym.h: Declared findVariableBinding
* libgst/tree.c: Defined makeBindingConstant
* libgst/tree.h: Declared makeBindingConstant and bindingConst
2001-01-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Define KernelFileSystemPath in
initDictionaryOnImageLoad, and KernelFilePath in
initDictionary
2001-01-30 Paolo Bonzini <bonzini@gnu.org>
*** Released version 1.95.1
2001-01-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Define different optimization levels
depending on REG_AVAILABILITY.
* libgst/dict.inl: Include md-config.h instead of register.h
* libgst/interp.c: Include md-config.h instead of register.h
* libgst/md-config.h: New name of register.h
2001-01-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Use incubator in makeBlockClosure.
* libgst/oop.inl: IsObjAddr returns false if the address lies beyond
the allocPtr (used to be beyond the maxPtr)
2001-01-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Fixed pipelining bugs; added more caching
opportunities
2001-01-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-bc.inl: Implementation of pipelining
* libgst/interp.c: Defined and explained PIPELINING
2001-01-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Added cast to arrayNew to work on 64-bit machines.
* libgst/gst.h: Removed warning for 64-bit machines.
* libgst/interp.c: Fixed prepareContext to work on 64-bit machines
(num is now a long).
* libgst/oop.c: Make data spaces twice as big on 64-bit machines.
* libgst/oop.h: Make data spaces twice as big on 64-bit machines.
* libgst/register.h: Removed warning for unsupported architectures,
was much more a burden than I had expected.
2000-12-16 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Finished first draft of type inferencing.
* libgst/xlat.c: Adapted to use opt.c; nothing was broken for
disabled type inferencing.
2000-12-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Moved the process of guessing the heap base from
configure.in to here.
* libgst/sysdep.h: Declared SigHandler
* libgst/sysdep.c: Made setSignalHandler return the previous signal
handler.
2000-11-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Changed bug reporting address
2000-10-14 GertJan Kersten (GertJan.Kersten@bolesian.nl)
* libgst/cint.c: Fix brokenness in Cygwin's stat and chdir
(which set errno even if the function succeeds).
2000-09-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Started implementation of type inferencing
(have basic block detection now). Finally succeded in
passing Physics yesterday.
2000-09-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.h: Added declarations for primitive attributes.
* libgst/prims.inl: Added primitive attributes.
* libgst/xlat.c: Use primitive attributes in emitPrimitive.
2000-09-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Added discardNativeCode and modified other
function to use the `discarded' list.
* libgst/xlat.h: Added declaration for discardNativeCode.
* libgst/dict.c: In identityDictionaryAtPut, return the
old value associated to the key.
* libgst/comp.c: Include xlat.h; call discardNativeCode on
the old method if a method is replacing another.
* libgst/prims.inl: Primitive 90, instead of returning the
native code for a method, discards the method (completely
different semantics -- but the old one had no use since
the Smalltalk program had no interesting use of the result).
2000-09-09 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Modified bytecode 134 for pop-into-array
* libgst/byte.h: Modified bytecode 134 for pop-into-array
* libgst/interp-bc.inl: Modified bytecode 134 for pop-into-array
* libgst/opt.c: Modified computeStackPositions for pop-into-array
* libgst/xlat.c: Modified bytecode 134 for pop-into-array,
added gen_popIntoArray
* libgst/comp.c: Added compileArrayConstructor and modified
according to the changes to tree.c below
* libgst/lex.c: Recognize { and }
* libgst/gst.y: Recognize { ... } syntax
* libgst/tree.c: Removed charConst, symbolConst -> oopConst,
implemented makeArrayConstructor
* libgst/tree.h: Declared makeArrayConstructor, added
arrayConstructorType, removed charConst, symbolConst -> oopConst
2000-09-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Method cache is no longer static; moved
MethodCacheEntry declaration to interp.h. Also found bug
in lookupMethod which prevented the method cache from being
fully exploited (startingClassOOP was set to the methodClass).
* libgst/interp.h: Declared MethodCacheEntry
* libgst/interp.inl: Defined checkSendCorrectness
* libgst/prims.inl: Used checkSendCorrectness
* libgst/xlat.c: Included compilation of == into gen_intComparison
(now called gen_binaryBool); renamed gen_intOperation to
gen_binaryInt and TREE_ARIT_* to TREE_BINARY_*
2000-09-07 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.8.3 released
* libgst/dict.c: Removed ByteMemory and WordMemory declarations.
* libgst/dict.h: Removed ByteMemory and WordMemory declarations.
* libgst/lib.c: Don't load ByteMemory and WordMemory definitions.
* libgst/prims.inl: Removed ByteMemory primitives.
2000-09-07 Nigel Williams <nigelw@wizardis.com.au>
* libgst/cint.c: Allow to pass nil for stringOut, byteArray and
byteArrayOut too.
2000-09-01 Nigel Williams <nigelw@wizardis.com.au>
* libgst/prims.inl: Corrected class check for primitive 203/204.
2000-08-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Added stub implementation of inferSmallIntegerOps.
* libgst/opt.h: Declare inferSmallIntegerOps and the constants it uses.
* libgst/xlat.c: Added support for inferSmallIntegerOps and ability
to omit overflow checks if the result of an inlined operation is
known to be a SmallInteger.
2000-08-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Renamed compileSubexpressionWithGoto to
compileSubexpressionAndJump
* libgst/dict.inl: Only have 8 case's (instead of 9) in nilFill
* libgst/interp.c: Only have 8 case's (instead of 9) in prepareContext
* libgst/save.c: Moved most of loadFromFile to loadSnapshot; removed
goto statements (my life is passing through a phase of structured
programming mania).
2000-08-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Moved part to opt.c
* libgst/byte.h: Moved part to opt.h
* libgst/opt.c: Created from byte.c. As the JIT compiler will
get more sophisticated this part is going to get bigger.
* libgst/opt.h: Created from byte.h
* libgst/comp.c: Include opt.h. Also, don't generate unreachable
jumps in `... ifTrue: [ ^true ]' (or an analogous pattern with
#ifTrue:ifFalse:). This pleases computeStackPositions enough
to run the Prolog and Lisp interpreters.
* libgst/xlat.c: Include opt.h
* libgst/gst.h: Added F_FIXED.
* libgst/oop.h: Declared makeFixedOOP.
* libgst/oop.c: Added makeFixedOOP, deal with fixed objects
in prepareForSweep.
* libgst/prims.inl: Added primitive 170-172 to deal with fixed
objects.
* libgst/save.c: Always clear F_RUNTIME flags, not only when
the endianness is wrong!!! This caused the GC to try to release
the native code version of methods that had indeed been compiled
when the image was saved, but were not compiled when GC was
invoked. Also implemented saving F_FIXED objects.
2000-07-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/lib.c: Allow usage of Undeclared in the kernel's source
2000-07-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Support MAP_ANON and MAP_ANONYMOUS (thanks to
John David Anglin)
* libgst/oop.c: In gcFlip, modify numFreeOOPs so that allocOOPs
allocates its OOPs merrily, even if we're below the low-water
threshold.
* libgst/oop.h: Defined LOW_WATER_OOP_THRESHOLD
* libgst/oop.inl: In allocOOP, check low-water condition by
looking at numFreeOOPs, not firstFreeOOP.
2000-07-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst.y: Add `oval' to the union, and define (and parse)
SCALED_DECIMAL_LITERAL
* libgst/lex.c: Parse ScaledDecimal literals
* libgst/sym.c: Declared asScaledDecimalSymbol
* libgst/sym.h: Defined asScaledDecimalSymbol
* libgst/tree.c: Defined makeOOPConstant
* libgst/tree.h: Declared makeOOPConstant
2000-07-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Don't overwrite the method cache until we
are sure that the receiver understands the message (lookupMethod)
* libgst/lib.c: Load AnsiDates.st and ScaledDec.st too
* libgst/prims.inl: Handle case where the receiver is a `Float'
but the argument is a `SmallInteger' directly in the 41-to-50
primitives.
* libgst/xlat.c: Another fix to the strength-reduced division
algorithm. If adjust is true, fixing the dividend if the signs
mismatch produces an incorrect result.
2000-06-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: Restored divide-by-zero check in //, \\ and
/ (removed by mistake June 21st)
* libgst/xlat.c: Removed interrupt check from the method prolog,
moved it to the `return' bytecodes and to after a primitive;
this fixed processes.
Also INLINED_CONDITIONAL now adjusts the stack top in V2 and then
resets spDelta instead of simply decrementing spDelta: this
caused incorrect compilation of #ifTrue:ifFalse: if the receiver
was inlined and the returned value was used as a parameter to a
message. There are no regressions with respect to the bytecode
interpreter now.
2000-06-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: When compiling a #repeat loop, add a dummy
`push nil' bytecode at the end to please the JIT compiler
(which said its stack had underflowed -- it was right, but it
was compiling unreachable code...).
* libgst/interp.h: Made the primitiveTable `const'
* libgst/interp-bc.inl: Use primitives for //, \\ and / if both
arguments are integers
* libgst/interp-jit.inl: First fixes to add processes to the JIT
compiler
* libgst/prims.inl: Fixed meaning of // and \\ for negative divisors;
in primitive 90, use getReturnIP (defined in interp-jit.inl).
* libgst/xlat.c: Fixed meaning of // and \\ for negative divisors;
fixed overflow detection in multiplication; align interrupt checks
to 4 bytes.
2000-06-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Added to SortedCollection two instance variables
needed to be able to amortize sorting cost (through heaps & merging).
2000-06-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fixed doesNotUnderstand
2000-06-17 Paolo Bonzini <bonzini@gnu.org>
*** Released versions 1.95 (development) and 1.7.5 (stable)
2000-06-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Fixed bug in optimizeByteCodes (|| was there
instead of &&) which upset the JIT compiler
* libgst/comp.c: If a method is a primitive return of a
BlockClosure, initialize the BlockClosure in methodNew.
* libgst/oop.c: Call releaseNativeCode instead of
freeNativeCode in prepareForSweep, at the end call
freeNativeCode
* libgst/xlat.c: Removed definition of MethodEntry, renamed
freeNativeCode to releaseNativeCode, added freeNativeCode
* libgst/xlat.h: Added definition of MethodEntry, declared
releaseNativeCode
* libgst/interp.h: Declare validateMethodCacheEntries
* libgst/interp-bc.inl: Added validateMethodCacheEntries (no-op)
* libgst/interp-jit.inl: Added validateMethodCacheEntries
2000-06-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Fixed behavior of emptyContextStack with
regard to the returnIP field.
* libgst/interp-jit.inl: Don't look at the header flag in
sendMessageInternal.
* libgst/xlat.c: Added inlining of arithmetic operations.
declared TREE_ALT_PUSH and implemented the gen_alt* functions.
Still missing: processes, doesNotUnderstand:
2000-06-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.inl: Use a huge table of functions instead of
a huge switch statement
* libgst/interp.h: Declare table of functions for
the primitives
* libgst/internal.h: Removed PTR_EXEC_PRIM_OP
* libgst/interp-jit.inl: Same as above.
* libgst/interp-bc.inl: Use primitiveTable instead of
executePrimitiveOperation
* libgst/xlat.c: Same as above.
2000-06-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: New function computeStackPositions.
* libgst/byte.h: Declared computeStackPositions.
* libgst/xlat.c: Don't call prepareContext in the prologs
if the method has no arguments and no temporaries. Plus,
use computeStackPositions.
2000-06-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Support #valueWithArguments: and other
primitives (other than 81) which use sendBlockValue. Wrote
the code for compiling deferred sends. Working inlined
comparisons.
* libgst/prims.inl: Added primitive 90 to retrieve the
native code for a method.
2000-06-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: If USE_JIT_TRANSLATION is defined,
executeStatements skips some values which aren't mantained in
that case.
* libgst/xlat.c: Fixed error in pushing thisContext (wrong
register used, R1 instead of V1). Fixed problems when the
stack was empty in setTopNodeExtra. The method hash table
was broken -- did not initialize current->receiverClass.
Also check in the block's prolog, if code for the right
CompiledBlock is being executed.
* libgst/interp-jit.inl: Reset the exceptFlag after execution
of JIT-compiled native code is interrupted. The interpreter
is now able to create an image and then restore it.
2000-06-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Support losing systems which don't allow
va_arg(..., char)
* libgst/dld_beos.c: New file.
2000-05-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Added some inlining (==, isNil, notNil,
blockCopy:); modified suboperation codes so that `2' is reserved
to literals (which aids a lot when inlining). Blocks done, they
were easy.
2000-05-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Moved here a ChangeLog comment that actually
described the code; gave a category to Behavior>>#methodsFor:
* libgst/xlat.c: Usual tons of fixes. Crashes at initialize.st.
Among others:
- save the returnIP in the parent context, not in the newly created
context (that is before activateNewContext rather than afterwards).
- fixed the method prolog to update the `self' variable, which I had
forgotten
- labels did not work (had missed a *)
- do EXPORT_SP_CODE in crucial points, including basic block boundaries
* libgst/interp.c: New procedure showStackContents
* libgst/interp.h: Declared showStackContents
* libgst/prims.inl: Use showStackContents in the temporary definition
of #error: and #doesNotUnderstand: (useful for debugging)
2000-05-24 Paolo Bonzini <bonzini@gnu.org>
* lib/xlat.c: More tons of fixes. Crashes at Character.st
* lib/xlat.h: Export returnFromNativeCode
* lib/heap.c: Switched to Doug Lea's malloc (only an hour's effort!)
* lib/interp.c: Fixed behavior of `execution environment' contexts
with the JIT compiler.
2000-05-24 Paolo Bonzini <bonzini@gnu.org>
* lib/xlat.c: Tons of fixes; renamed from lib/dynamic.c
2000-05-17 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Added a couple of flags (F_XLAT_2NDCHANCE and
F_XLAT_REACHABLE) for dealing with the changes to lib/oop.c.
* lib/interp-jit.inl: Removed unwindContext and changeProcessContext,
added getContextIP & setThisMethod
* lib/interp-bc.inl: Moved unwindContext and changeProcessContext
back to interp.c, added getContextIP
* lib/interp.c: Restored unwindContext and changeProcessContext from
interp-bc.inl, used getContextIP instead of toInt(...->ipOffset)
* lib/oop.c: Implemented a `second chance' algorithm for disposing
of methods whose native code translations are not referenced by any
context.
2000-05-13 Paolo Bonzini <bonzini@gnu.org>
* lib/alloc.c: Moved to lib-src
* lib/alloc.h: Moved to lib-src
* lib/alloca.c: Moved to lib-src
* lib/getdtablesize.c: Moved to lib-src
* lib/getpagesize.c: Moved to lib-src
* lib/memmove.c: Moved to lib-src
* lib/obstack.c: Moved to lib-src
* lib/obstack.h: Moved to lib-src
* lib/putenv.c: Moved to lib-src
* lib/qsort.c: Moved to lib-src
* lib/strdup.c: Moved to lib-src
* lib/strerror.c: Moved to lib-src
* lib/strtoul: Moved to lib-src
* lib/usleep.c: Moved to lib-src
* lib/waitpid.c: Moved to lib-src
2000-05-12 Paolo Bonzini <bonzini@gnu.org>
* lib/heap.c: Derive baseaddr by trying to mmap a page, rather than
blindly getting sbrk(0)
2000-05-09 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Abort compilation if a method turns out to be too
complex for the bytecode set (i.e. if it jumps too far).
* lib/putenv.c: Strdup the added string
2000-05-04 *X*X* (aldomel@ix.netcom.com)
* lib/sym.h: Added #include gst.h
* lib/lib.c: Better error message when the Kernel files can't be
found (image bootstrap failed).
2000-05-04 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.94.90 released
2000-05-02 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.y: Fixed errors in parsing #( () ) and #[]; the
former was parsed to (Array with: nil), the last crashed (!)
* lib/getpagesize.c: Created from part of sysdep.c
* lib/getdtablesize.c: Created from part of sysdep.c
* lib/usleep.c: Created from part of sysdep.c
* lib/sysdep.c: Added code to set the `LANG' environment
variable under Win32.
2000-04-27 Paolo Bonzini <bonzini@gnu.org>
* lib/register.h: Issue the #warning only if using GCC
Wed Apr 26 14:42.52 2000 Paolo Bonzini <bonzini@gnu.org>
* lib/sysdep.h: Relinquish -> usleep, added getpagesize
* lib/sysdep.c: Same as above
* lib/prims.inl: Relinquish -> usleep
2000-04-23 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Changed `length' variable to `size' in FileSegment
2000-04-12 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.7.4 released
2000-04-01 Paolo Bonzini <bonzini@gnu.org>
* lib/oop.c: Completed switch to heaps, using heap_sbrk instead of
heap_malloc and heap_realloc. Removed maxSpaceSize variable.
* lib/save.c: Use memSpace.totalSize instead of maxSpaceSize.
2000-03-31 Hideoki Saito (saito@densan.co.jp)
* lib/comp.h: Fixed bogus error on big-endian machines
2000-03-25 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Added bytecode 134 (for lots of instance variables).
* lib/byte.h: Added bytecode 134.
* lib/comp.c: Added bytecode 134.
* lib/dynamic.c: Added bytecode 134.
* lib/interp-bc.inl: Added bytecode 134.
2000-03-24 Paolo Bonzini <bonzini@gnu.org>
* lib/alloc.c: Removed code for the BSD memory allocator.
* lib/heap.c: Added.
* lib/heap.h: Added.
* lib/oop.c: Use heaps to allow the OOP table to grow.
2000-03-23 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.7.3 released
2000-03-22 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Added F_XLAT and F_RUNTIME
* lib/save.c: Remove F_RUNTIME flags upon image load
2000-03-21 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.h: Include comp.inl
* lib/comp.inl: Created
* lib/dict.c: Added returnIP to ContextParts
* lib/dynamic.c: All but blocks is in place...
* lib/interp.c: Moved a few functions to interp-bc.inl
* lib/interp.h: Added returnIP to ContextPart structs
* lib/interp-bc.inl: (new name of bytecode.inl) moved here a few
functions that are different for the bytecode and JIT interpreter
(sendMessageInternal, unwindContext, changeProcessContext, ...)
* lib/interp-jit.inl: Created
* lib/sym.c: Added mustBeBooleanSymbol and badReturnErrorSymbol
* lib/sym.h: Added mustBeBooleanSymbol and badReturnErrorSymbol
2000-03-16 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.h: Since I added atSignSymbol, I put atSignSpecial here.
* lib/bytecode.inl: Since I added atSignSymbol, I use it instead of
internString("@").
* lib/comp.c: Since I added atSignSymbol, I generate bytecode 187
even if it has little use...
* lib/dynamic.c: Shape is getting clearer and clearer...
* lib/sym.c: Added atSignSymbol (for JIT).
* lib/sym.h: Added atSignSymbol (for JIT).
2000-03-11 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.7.2 released
* lib/byte.c: IsPush -> isPushTable; added isSendTable
* lib/byte.h: Added isPushByteCode & isSendByteCode
* lib/dynamic.c: Began implementing new version
* lib/dynamic.h: New version
2000-02-25 Paolo Bonzini <bonzini@gnu.org>
* lib/lib.c: Use the Undeclared dictionary for files loaded
from the command line too.
2000-02-24 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Better output from badType. Plus, ByteArrays
passed as Strings are considered null-terminated, and Strings
passed as ByteArrays are not.
* lib/interp.c: ShowBacktrace not static anymore. Fixed crash
on sends to super from a block.
* lib/interp.h: Declare showBacktrace.
2000-02-22 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.7.1 released
2000-02-22 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Added defineCFuncs to test file accessing modes.
2000-02-21 Paolo Bonzini <bonzini@gnu.org>
* lib/prims.inl: Added time-zone primitives for Time
* lib/sysdep.c: Added currentTimeZoneName
* lib/sysdep.h: Added currentTimeZoneName
2000-02-17 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: Fixed crash on blocks returning from non-existent
method contexts; fixed bug in detecting overflows on bit shifts.
* lib/prims.inl: Fixed bug in detecting overflows on bit shifts.
2000-02-15 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.7 released
2000-02-06 Thorsten Klein <TK@Thorsten-Klein.de>
* lib/dld_gst.c: Missing asterisk in `i' for loop (second
expression was `i', now is `*i'). Caused SIGSEGV when a missing
library name was passed.
2000-02-01 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.h: Subsumed bytecodes 132 and 134 (a whole byte for
the argument count is way too much, and it does not matter if
it's a bit slower because these bytecodes are rare indeed).
* lib/byte.c: Print bytecode 132 according to the new coding
* lib/bytecode.inl: Interpret new coding for bytecode 132
* lib/comp.c: Emit new coding for bytecode 132
2000-01-31 Paolo Bonzini <bonzini@gnu.org>
*** Sixth beta of 1.7 (labeled 1.6.85) released
2000-01-31 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Worked out bugs in call-ins that were added
after the introduction of the `terminate interpreter' bytecode
(Jan 8th) and which prevented Blox from working.
prepareExecutionEnvironment was stacking a context with an OOP
from the main OOP table over some lifoContexts.
* lib/oop.c: Moved debug() to sysdep.c
* lib/oop.h: Moved debug() to sysdep.h
* lib/sysdep.c: Moved debug() here from oop.c
* lib/sysdep.h: Moved debug() here from oop.h
2000-01-28 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Fixed bug with double-freeing of block bytecodes
(this is also due to a very permissive allocator)
* lib/lex.c: Fixed bug in parsePrimitive (xfree without matching
xmalloc) -- strangely enough, it didn't show up on all systems!
* lib/prims.inl: Fixed Memory primitives to return and accept
LargeIntegers for addresses when needed.
2000-01-24 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Changed the clean block detection machinery to work
with CompiledBlocks. Previously, we emitted a fixed sequence of
bytecodes for blocks, then we made a pass on the bytecodes before
optimization patching already generated code in case we found the
block to be clean. Now, instead, we compute information on the
block's cleanness before we create the CompiledBlock object, we
embed the information in the CompiledBlock's header, and then use
that information to directly emit optimized bytecodes in case the
block is clean (instead of applying patches later).
* lib/comp.c: Moved `class' and `selector' fields to MethodInfo.
Blocks are compiled to CompiledBlocks.
* lib/comp.h: Removed `class' and `selector' fields from [Compiled]Method
* lib/dict.c: New definitions of MethodInfo, CompiledCode, CompiledMethod,
CompiledBlock; declaration of compiledCodeClass and compiledBlockClass.
* lib/dict.h: Declaration of compiledCodeClass and compiledBlockClass
* lib/interp.c: Execute blocks from CompiledBlocks.
* lib/lib.c: Load CompildCode.st and CompiledBlk.st
* lib/prims.inl: Added primitive 68 to create CompiledBlocks.
2000-01-20 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Fixed crash on methods whose last act was
returning a clean block. It turned out that evaluating those
blocks was GST's last act, either...
* lib/cint.c: Enable passing 32-bit LargeIntegers in C call-
outs. Looks like I had forgotten about it on Sep 10 1999.
Also, introduced a `pVoidFunc' typedef to avoid Lisp-like
abundance of parentheses when passing C function addresses.
2000-01-20 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: IntegerClass -> smallIntegerClass
* lib/dict.c: IntegerClass -> smallIntegerClass, plus
added definition of SmallInteger
* lib/dict.h: Added declaration of SmallInteger
* lib/gst.h: IntegerClass -> smallIntegerClass
* lib/interp.c: IntegerClass -> smallIntegerClass
* lib/interp.inl: IntegerClass -> smallIntegerClass
* lib/lib.c: Load SmallInt.st too.
* lib/prims.inl: IntegerClass -> smallIntegerClass
2000-01-15 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Adapted large integer compilation stuff in
makeConstantOOP to compile ByteArrays too.
* lib/gst.y: Added rules for ByteArray literals and arrays
like #(1 2 3 #(4 5 6)) -- i.e. with the sharp inside the
parentheses
* lib/lex.c: Make parseNumber return BYTE_LITERAL for
integers between 0 and 255
* lib/tree.c: Added makeByteArrayConstant
2000-01-09 Paolo Bonzini <bonzini@gnu.org>
* lib/lex.c: CurStrBuf -> obstack_curStrBuf; plus, added
the compilationObstack variable which is initialized in
parseStream.
* lib/lex.h: Added declaration of compilationObstack
* lib/str.c: Added obstack_curStrBuf
* lib/str.h: Declared obstack_curStrBuf
* lib/tree.c: Heavily simplified destruction code by using
obstacks
* lib/lib.c: Solved SIGSEGV when gst.im was not in the
current directory and SMALLTALK_IMAGE was not set.
2000-01-09 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Added code to create Smalltalk LargeInteger
objects from large integer ConstNodes in makeConstantOOP.
* lib/gst.y: Handle large integer literals in the grammar
* lib/lex.c: Added code to parse large integer literals
* lib/tree.c: Added code to create large integer ConstNodes
* lib/tree.h: Added declaration of the LargeInteger struct
and of large integer ConstNodes
2000-01-08 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.h: Added `exitInterpreter' bytecode.
* lib/comp.h: Declared `getTerminationMethod'.
* lib/comp.c: Implemented `getTerminationMethod', and added code
to installInitialMethods which installs a termination method
which executes the new bytecode above.
* lib/bytecode.inl: Implemented `exitInterpreter' bytecode.
* lib/interp.c: Contexts created by prepareExecutionEnvironment
no longer have to be special cased in unwindLastContext.
* lib/sym.c: Added terminateSymbol.
* lib/sym.h: Added terminateSymbol.
2000-01-02 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Gst enters the new millennium!!! (yeah, I know it
actually starts in 2001 but I don't want to wait another year... ;-)
and it does by getting rid of the free lists for contexts -- it is
faster to use the memory chunks like a stack.
Also, I replaced tests for `isNil(thisContextOOP)' with tests for
`!ip'.
* lib/strerror.c: Added.
* lib/sysdep.c: Win32 implementation of getMilliTime now more precise
* lib/sysdep.h: Added macros for frexp and ldexp where they aren't
available
1999-12-28 Paolo Bonzini <bonzini@gnu.org>
*** Fifth beta of 1.7 (labeled 1.6.84) released
* lib/byte.c: New functions checkKindOfBlock and patchCleanBlocks.
* lib/byte.h: Declaration of patchCleanBlocks.
1999-12-27 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: New function fixupBlockClosures.
* lib/comp.c: New way of compiling blocks.
* lib/bytecode.inl: Bytecode 200 is now #blockCopy: (same as the Blue
Book, but the primitive is implemented differently of course).
* lib/prims.inl: New implementation of primitive 80 (blockCopy)
* lib/sym.c: Removed #blockCopy:temporaries: (replaced with #blockCopy:),
added machinery to reveal `clean' blocks
* lib/sym.h: Removed #blockCopy:temporaries: (replaced with #blockCopy:)
1999-12-27 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added method to BlockClosure, changed to new
context structure (methodClass/selector retrieved from the
compiledMethod, method only there for MethodContexts)
* lib/interp.c: Changed to new context and BlockClosure structure
* lib/prims.inl: Changed to new BlockClosure structure
1999-12-26 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Store the class and selector in the created
CompiledMethods. A first step towards leaner context objects
(i.e. more speed when sending messages!) and more powerful
constructs such as `clean' block closures (which do not need
to be created at run-time because are isolated from the outer
contexts).
* lib/comp.h: Added `class' and `selector' to struct Method.
* lib/dict.c: Added `class' and `selector' to CompiledMethod.
* lib/prims.inl: Pass class and selector to makeNewMethod.
1999-12-19 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: Removed hasBlock (can be replaced with a
test on whether the context lies in the main OOP table); this
simplified both sends and returns. I also made the structure
of method and block context objects more similar, resulting
in simpler and faster code (except for block returns), and
opening doors to optimizations such as delayed filling of the
`method' and `receiver' slots of context objects. The overall
improvement obtained since the Dec 17 change amounts to 9-10%.
* lib/dict.c: Same as above
* lib/interp.c: Same as above
* lib/interp.h: Same as above
* lib/prims.inl: Same as above
1999-12-17 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Various changes, notably to getMethodContext and
its users, to avoid using oopToObj more than once on the same
object.
1999-12-17 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Nil is now 0L (used to be 0), which is better when
used as a pointer.
* lib/interp.c: As long as we're sure that the execution order is
LIFO (i.e. as long as no blocks are involved), allocate OOPs for
the contexts outside of the main OOP table; this is because
allocOOP is slower than picking a pre-built OOP out of a stack.
This partly resembles the design of 1.1.5 (introduced Jan 1, 1991
and modified Oct 18, 1998), but has the advantage that when a
BlockClosure is created we only have to allocate the OOPs that we
tried to avoid -- 1.1.5 copied the whole objects to the main heap,
causing way too many GCs.
1999-12-16 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: F_FAKE --> F_POOLED, isFake --> isPooled
* lib/interp.h: ResetFakeContexts --> emptyContextsPool
* lib/interp.c: (de)allocFakeContext --> (de)allocPoolContext,
fakeList --> contextPool, plus changes above
* lib/oop.c: RealizeOOPs --> sweepPooledObjects, plus changes above
1999-12-15 Paolo Bonzini <bonzini@gnu.org>
* lib/sym.c: Modified hashString to reduce likeliness that
hash be zero.
1999-12-14 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: Use the new procedures below
* lib/comp.c: Allocated one more bit for the method flags. If
there is a primitive index, the flags are now 4 (used to be 0).
* lib/interp.c: The old `returnWithValue' procedure was split in
two, unwindToContext and unwindLastContext -- one is used upon an
explicit `return from method', the other does less job and returns
to the parent context upon a `return from context'
1999-12-11 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Moved findClassMethod here from lib/dict.inl
* lib/dict.h: Restored declaration of findClassMethod
* lib/dict.inl: Moved findClassMethod here to lib/dict.c -- it is
used rarely (only for method cache misses) and was bloating
sendMessageInternal's code.
* lib/bytecode.inl: Simple one-byte bytecodes prefetch the next
address to jump to (hoping to save address generation interlocks)
* lib/interp.c: Support for prefetching
1999-12-06 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: Hard-code register allocation of ivar2
and tempOOP only where they are actually used
* lib/dict.inl: Hard-coded register allocation in nilFill
* lib/interp.c: Hard-coded register allocation now relies on
register.h and is used in sendMessageInternal/sendBlockValue.
* lib/register.h: Created
1999-12-05 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: ReturnMethodStackTop became returnContextStackTop
in isSimpleReturn.
* lib/cint.c: Declare the strerror C function.
* lib/gst.h: ANSI asks for 65535 instance variables, so I shifted
the instance specification's `number of instance vars' field
right by three bits (now 262143 variables are possible).
* lib/lex.c: Parse stuff like 1.0d53 and 1.0q212 correctly even
though FloatD/FloatE/FloatQ is not supported yet.
* lib/memzero.h: Removed a conditional by using LONG_SHIFT in the
generic version of memzero.
1999-12-05 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: The `hasBlock' instance variable in a context
is now an integer (0 or 1). This eliminated several lookups for
the `trueOOP' and `falseOOP' globals.
* lib/interp.c: Same as above
* lib/prims.inl: Same as above
1999-11-26 Paolo Bonzini <bonzini@gnu.org>
*** Fourth beta of 1.7 (labeled 1.6.83) released
* lib/bytecode.inl: Added caching of primitive numbers for sends of
#at:, #at:put: and #size
* lib/interp.c: Same as above
* lib/prims.inl: Same as above
1999-11-22 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Fixed floating-point exception on operations
with infinity and NaN, under FreeBSD.
1999-11-21 Paolo Bonzini <bonzini@gnu.org>
* lib/alloc.c: Use memzero instead of memset; also, xmalloc
doesn't zero memory
* lib/byte.c: Use memzero instead of memset
* lib/dict.inl: Use memzero instead of memset
* lib/dynamic.c: Use memzero instead of memset
* lib/gst.h: Include memzero.h
* lib/memzero.h: Added
* lib/oop.c: Don't update numFreeOOPs on allocate/free oop.
It is only used after a GC (to check whether the OOP table
must be resized), so it is sufficient that it be correct
after a GC.
1999-11-20 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: RestoreCFuncDescriptor was called at the wrong
time in save.c -- before the xxxClass variables were loaded
(Oct 20 change). So now it is called here.
* lib/save.c: See above for lib/dict.c
1999-11-20 P. Lecoanet
* lib/bytecode.inl: Special case #blockCopy:temporaries: for
context objects and #value/#value: for BlockClosure objects.
Also, no need to push and pop the object for the `return
self/true/false/nil' bytecodes -- a simple assignment will do.
1999-11-19 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Removed initNilVec and nilVec
* lib/dict.inl: Implemented nilFill as an unrolled loop (memcpy
is sloooow)
* lib/interp.c: Arguments are moved between contexts with an
unrolled loop (memcpy is sloooow); pushNNils now sets up the
whole context stack (arguments+temporaries) and is called
prepareContext. Another +10% for this on send-heavy benchmark!!!
1999-11-18 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.h: ReturnBlockStackTop became returnContextStackTop
* lib/comp.c: Compile returns from methods as returnContextStackTop
(should be a bit faster)
* lib/bytecode.inl: `return self' and other similar bytecodes
fall into returnContextStackTop, not returnMethodStackTop.
1999-11-18 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Changed to account for removal of cacheHits and
messagesSent.
* lib/comp.h: Removed messagesSent.
* lib/interp.c: Removed cacheHits and messagesSent, which
can be deducted from other statistics.
* lib/interp.h: Removed cacheHits.
* lib/prims.inl: New implementation of mutation does not need
primitive 263 (#specialBasicAt:).
1999-11-17 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.inl: Access functions test subscript bounds -- this
eliminates an instanceSpec lookup.
* lib/prims.inl: No need to call checkIndexableBoundsOf on
access primitives (#at:*, #basicAt:*)
* lib/gst.y: Support for the #(1 2 3 #a #b #'cdef' 45) syntax
^^ ^^ ^^^^^^^
1999-11-14 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: `return instance variable' stores index in the
`primitive' field of the method header (allows more optimizations
and better register allocation in sendMessageInternal)
* lib/comp.h: Move flag bits to high end of the methodHeader, so
that there is place for two additional bits if needed
* lib/dict.c: BlockContexts now hold the receiver and the
BlockClosure instead of the number of arguments and temporaries.
* lib/interp.c: Same as comp.c and dict.c above; plus, removed
code for ACCESSOR_DEBUGGING.
* lib/interp.h: Same as dict.c above
1999-11-13 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: NilVec contains now 128 OOPs
* lib/dict.inl: NilVec contains now 128 OOPs
* lib/interp.c: Doc fixes; cleaned up unused variables in the code
handling fake contexts; finally, the method cache now includes
the method header (+5/10% performance).
1999-11-11 Paolo Bonzini <bonzini@gnu.org>
* lib/dynamic.c: Move method whose threaded code representation
is requested to the head of the methodsTable.
* lib/lex.c: USE_MONCONTROL only affects the interpreter, not the
lexer.
* lib/lib.c: Disable execution tracing options when the dynamic
translator is being used.
* lib/oop.c: Removed code for ACCESSOR_DEBUGGING, which I found
more bug-prone than useful in more than a year; added lines
explaining GC_TORTURE.
* lib/oop.inl: Removed the few lines that implemented the
ACCESSOR_DEBUGGING preprocessor symbol and explained what it was
for.
1999-11-10 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: In most bytecodes that are implemented with a
switch statement, the switch statement is resolved at translation
time. Also, added `default' clauses to such switch statements so
that the compiler can produce better code.
* lib/dynamic.c: Same as above
* lib/dynamic.h: Same as above
* lib/interp.c: Same as above
* lib/gst.h: Removed declarations of TreeNode, thisClass and
regressionTesting, which are already declared elsewhere
(respectively in tree.h, comp.h and lib.h). Also removed
declaration of Stream which is needed only in lex.c and is
therefore moved there.
* lib/lex.c: Moved declaration of Stream from gst.h
1999-11-09 Paolo Bonzini <bonzini@gnu.org>
* lib/dynamic.c: Invalidating the macro opcode cache is now
separated from invalidating the threaded code cache. Also,
convert from threaded code ip to bytecode ip before
invalidating the threaded code cache; reload the methodBase
and the threaded ip after having invalidated it (in
invalidateMethodCache). Everything works if no optimization
options are set when compiling.
1999-11-09 Paolo Bonzini <bonzini@gnu.org>
* lib/callin.c: SelectorNumArgs used; in addition, the result
is checked to be the `nil' object in msgSendf is checked and,
if so, 0 (or some variation of it, like 0.0 and NULL) is
returned.
* lib/interp.c: Added DEBUG_CODE_FLOW preprocessor symbol that
prints every message that is sent in the same form used by
backtraces (e.g. `Integer(Object)>>#retry:coercing:').
* lib/prims.inl: SelectorNumArgs used in implementation
of #perform:...
* lib/sym.c: Added selectorNumArgs
* lib/sym.h: Added selectorNumArgs
1999-11-08 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Fixed bug in makeDestinationTable that caused
macro-opcode inlining to lose as soon as a jump was found.
* lib/dynamic.c: Had mistyped an = for an == grrr... 2 days to
find it! Now runs up to WeakObjects.st both with and without
macro-opcode inlining, so macro opcodes should be reasonably
bug-free (except for problems arising from inlining code
optimized by GCC, which I have not tackled yet).
1999-11-06 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: Jump bytecodes must be `PROTECT' bytecodes,
isNil and notNil sends need not. Found two unused variables.
* lib/cint.c: Moved `extern' declaration of enableGC into cint.h,
the actual declaration of the variable came here from interp.c
* lib/cint.h: Moved `extern' declaration of enableGC from cint.c
* lib/interp.c: Moved getMethodLiterals to interp.inl and
enableGC to cint.c
* lib/interp.inl: Moved getMethodLiterals from interp.c
1999-11-05 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Can print bytecodes without a vector of literals
* lib/dynamic.c: Added debugging support; offsetToFill was not reset
when a non-inlinable opcode was found (fixed by setting it in
newOpcodeEntry) -- now runs up to the first jump bytecode
(#initialize in Character.st), or up to MethodDict.st
with macro-opcode inlining disabled.
1999-11-02 Paolo Bonzini <bonzini@gnu.org>
* lib/dynamic.c: Work on the dynamic translator restarted. The first
correct dynamically code was generated today: a small step for
humanity, a big step for me (hmmm... maybe it was the other way
round...) -- runs up to the first `inlined opcode-non inlined opcode-
inlined opcode' pattern (line 1358 of Builtins.st)
* lib/interp.c: Work on the dynamic translator restarted
1999-10-31 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Fixed bug when compiling an integer constant
that did not fit in the first 31 literals (`push instance
variable[x]' was emitted instead of `push literal[x]')
1999-10-31 Paolo Bonzini <bonzini@gnu.org>
*** Third beta of 1.7 (labeled 1.6.82) released
1999-10-30 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: A few bytecodes were still sending #booleanRequired
instead of #mustBeBoolean (see May 3rd change).
1999-10-22 Paolo Bonzini <bonzini@gnu.org>
* lib/save.c: Ensure that upon load the heap is at least 50% free.
1999-10-21 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added characterArrayClass
* lib/dict.h: Added characterArrayClass
* lib/lib.c: Added CharArray.st
1999-10-20 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: The new startup sequence (Oct 9) allowed to
make the dictInit function (now called initNilVec) static.
So that has been done since dictInit was just a hack:
it initialized variables in dict.c like initDictionary,
but while the latter is called from lib.c, dictInit had to
be called from initOOPTable and loadFromFile).
* lib/dict.h: Removed declaration of dictInit.
* lib/oop.c: Removed call to dictInit.
1999-10-12 Paolo Bonzini <bonzini@gnu.org>
* lib/dld_hpux.c: `return 0' was missing in gst_dld_init
* lib/lib.c: Put the image in the local directory if the
image directory is missing or not writeable.
* lib/sysdep.c: Added fileIsWriteable, plus usage of time_t;
strdup was erroneously declared in getFullFileName.
1999-10-11 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Removed addForcedSelector (a copy of addForcedObject).
Open coding of #whileTrue, #whileFalse, #repeat; removed open
coding of #yourself.
* lib/dict.c: Restored lookupKeyClass and its definition as I
finally understood what it was meant to do; modified Association's
definition (doesn't include key instance variable anymore).
* lib/dict.h: Same as above
1999-10-10 Paolo Bonzini <bonzini@gnu.org>
* lib/oop.c: Added reallocOOPTable.
* lib/oop.inl: Call reallocOOPTable instead of exiting when
ran out of OOP table slots.
* lib/save.c: FixupObject, restoreObject, restoreInstanceVars accept
an gst_object instead of an OOP; more coherent with their names and
a bit more efficient too. Also moved updating of CFunctionDescriptors
from restoreInstanceVars to fixupOOPInstanceVars (it is not needed
when saving, only when loading, and was the only part of the code
that required the parameters to be OOPs).
* lib/save.h: FixupObject and restoreObject are now public.
1999-10-10 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Define the `min' and `max' macros.
* lib/lib.c: Used oopTableSize instead of OOP_TABLE_SIZE;
use additional parameter to initOOPTable.
* lib/oop.c: Added to initOOPTable a parameter to specify the
table size; defined oopTableSize and used instead of
OOP_TABLE_SIZE.
* lib/oop.h: OOP_TABLE_SIZE became INITIAL_OOP_TABLE_SIZE;
declared oopTableSize.
* lib/oop.inl: Used oopTableSize instead of OOP_TABLE_SIZE
* lib/prims.inl: Used oopTableSize instead of OOP_TABLE_SIZE
* lib/save.c: Used oopTableSize instead of OOP_TABLE_SIZE;
use additional parameter to initOOPTable.
1999-10-10 Paolo Bonzini <bonzini@gnu.org>
* lib/oop.c: Moved builtin objects at the front of the oop table;
this is a first step towards a variable-sized oop table
(believe it or not, I did it in less than half an hour!!).
* lib/oop.h: Same as above.
* lib/oop.inl: Same as above.
* lib/prims.inl: Same as above.
* lib/save.c: Same as above.
* lib/sym.c: Same as above.
1999-10-09 Paolo Bonzini <bonzini@gnu.org>
*** Second beta of 1.7 (labeled 1.6.81) released
* lib/bytecode.inl: Added a few experimental branch labels
for the dynamic translator.
* lib/prims.inl: Added primitive 90 to flush the dynamic
translator's code cache.
* lib/dict.c: Added code to reinitialize the global OOPs (which
are not saved anymore so that the image is more compatible). Also,
the OOP indices associated to Smalltalk, Processor and the
SymbolTable are fixed so that we know them without storing them
in the image file. Finally, declare the `Undeclared' dictionary in
initSmalltalkDictionary().
* lib/oop.c: Removed markGlobalOOPs (instead, just mark the
`Smalltalk' dictionary).
* lib/save.c: Removed the global OOPs; they are reinitialized
every time in dict.c.
* lib/save.h: Removed the global OOPs
* lib/sym.c: Added undeclaredSymbol, and used in findClassVariable.
* lib/sym.h: Added undeclaredSymbol.
1999-10-07 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Restored old MethodDictionary class (see
March 29th, 1989 entry!) It was needed after all.
* lib/dict.h: Same as above
* lib/lib.c: Same as above
* lib/save.c: Same as above
* lib/sysdep.c: Fixed faked closePipe to return status of child
process.
1999-10-02 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Was trimming the last character of the method's
source code in FileSegments.
* lib/lex.c: Was trimming the last character of the method's
source code when creating Strings from source code read from
a file.
* lib/lib.c: Added -K option, don't crash on -I/-L/-K without
mandatory argument.
1999-09-26 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: InitProcessSystem removed the initial process from
its own process list -- result: as soon as `Processor yield' was
called, highestPriorityProcess did not know that the active process
was active!
* lib/prims.inl: Relinquish control to other processes on #yield.
* lib/lib.c: `gst -a' caused a segmentation violation
* lib/sysdep.h: Declaration of `relinquish'.
* lib/sysdep.c: Implemented `relinquish'.
1999-09-25 Paolo Bonzini <bonzini@gnu.org>
*** First beta of 1.7 (labeled 1.6.80) released
* lib/bytecode.inl: Use areInts in open-coded operators.
* lib/gst.h: Added areInts, removed F_FINALIZING.
* lib/oop.c: Store objects to be finalized in a buffer, to avoid
an OOP table scan.
* lib/str.h: Added declaration of generic buffer functions
* lib/str.c: Added generic buffer functions (not limited to chars)
* lib/dld_aix.c: Added
* lib/waitpid.c: Added
* lib/strtoul.c: Added
1999-09-23 Paolo Bonzini <bonzini@gnu.org>
* lib/dynamic.c: Created.
* lib/dynamic.h: Created.
* lib/obstack.c: Added, fixed to use _obstack_memcpy.
* lib/obstack.h: Added.
* lib/sysdep.h: Added flushCode.
* lib/sysdep.c: Added flushCode & signalAfter implementation using
fork()+getMilliTime().
1999-09-19 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Declare lookupTableClass
* lib/dict.h: Declare lookupTableClass
* lib/lib.c: Load LookupTbl.st and WeakObjects.st
1999-09-18 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.y: Include "lib.h", define YYPRINT
* lib/lex.c: Define yyprint
* lib/lex.h: Declare yyprint
* lib/lib.h: Added declaration of "quietExecution", previously only
in lib.c
1999-09-15 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Added mkdir declaration.
1999-09-14 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added DefaultSortBlock to SortedCollection.
* lib/lex.c: Fixed bug; 8-bit characters *outside* string literals
crashed the lexer.
* lib/sysdep.c: Use getcwd if HAVE_GETCWD (new symbol) is set and
getwd otherwise. Old behavior was to use getcwd if HAVE_UNISTD_H
was set and getwd if HAVE_GETWD was set
1999-09-13 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Compile doits in UndefinedObject.
1999-09-12 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Moved variables from ClassDescription; instanceVariables to
Behavior; name/comment/category/environment to Class (they make no sense
in Metaclass!).
* lib/dict.h: Same as above.
1999-09-11 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Changes for namespaces (execute doits in the current namespace).
* lib/dict.c: Same as above (shared pool variable search algorithm,
new `environment' variable, declaration of currentNamespace).
* lib/dict.h: Same as above (added `environment' variable to ClassDescription,
declaration of currentNamespace).
* lib/dict.inl: Same as above (setClassEnvironment).
* lib/prims.c: Same as above (primitive 250 to tell the compiler about the
current namespace).
* lib/save.c: Same as above (added uppercaseSuperSymbol, currentNamespace).
* lib/sym.c: Same as above (shared pool variable search algorithm).
* lib/sym.h: Same as above (added uppercaseSuperSymbol).
1999-09-10 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: VariableWordSubclasses use accessors for 32-bit integers.
BlockClosures are now variableWordSubclasses since the previous encoding
was incompatible with the code to switch the endianness in a saved image.
* lib/dict.inl: Added accessors for 32-bit integers (64-bit on Alphas).
* lib/gst.h: Added warning that says Alphas are not ok yet.
* lib/gst.y: Shell was unusable after a parse error -- solved.
* lib/interp.h: New encoding of BlockClosures (see above).
* lib/prims.inl: C object and memory address primitives use the above
accessors.
1999-09-08 Paolo Bonzini <bonzini@gnu.org>
* lib/prims.inl: Flush the FileStream before reading its size.
1999-09-06 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added idleTasks variable to ProcessorScheduler.
* lib/interp.h: Added idleTasks variable to ProcessorScheduler.
* lib/lib.c: Allowed -- to stop option parsing, to comply with getopt.
* lib/sysdep.c: Added POSIX interrupt handling (sigprocmask); Win32
code for alarms now uses kill(2) instead of manually calling the
handler.
1999-09-02 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.y: Added support for [ :a :b || temp1 temp2 | ].
* lib/lex.c: UnreadChar not static anymore. Also removed scanStringoid
and moved its code to stringLiteral. Parsing a comment does not
actually require to store the whole comment in memory, so it is a
conceptually different operation. Fixed for the change to str.c below.
Removed memory leak in printToken (not so important since it's just
debugging code, but it's a bug).
* lib/lex.h: UnreadChar is now extern.
* lib/lib.c: Removed references to resizeString.
* lib/str.c: Removed resizeString, curStrBuf now returns a copy of the
string (previously it was a chore left to its caller through strdup).
1999-08-31 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Registers where the interpreter's ip and sp stay are
hard-coded for most architectures. Added definitions for the high
speed interpreter with dynamic translation.
* lib/interp.inl: Moved internal accessors to interp.c; moved object
equality and hashing functions to dict.inl (the only places where they
were actually used).
1999-08-30 Paolo Bonzini <bonzini@gnu.org>
* lib/bytecode.inl: Created from part of interp.c
* lib/gst.h: Removed `extern' definition of the instruction pointer.
* lib/interp.c: Made the instruction pointer static; prepared for the
new bytecode.inl file; relativeByteIndex is replaced by
currentBytecodeIndex; added definitions of the latter macro.
* lib/interp.inl: Removed relativeByteIndex.
* lib/prims.inl: RelativeByteIndex is replaced by currentBytecodeIndex.
1999-08-29 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.6.2 released.
1999-08-27 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Always define DLD functions (at worst they're stubs)
* lib/dld_none.c: Created.
* lib/lib.c: Always load DLD.st (at worst it refers to C stubs)
1999-08-26 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Put CDoubleMin and CDoubleMax in the Smalltalk dictionary.
* lib/interp.c: NEXT_BYTECODE was not defined for old (switch statement)
dispatching.
1999-08-08 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: In initRuntimeObjects, define the ImageFileName global
as equal to binaryImageName.
* lib/lib.c: Load .stpre only when creating local image files. Removed
findImageFile. Option -v shows the hard-coded kernel and image paths.
binaryImageName is not static anymore, defaultImageName is.
* lib/lib.h: Removed findImageFile. binaryImageName is now declared
here as an extern symbol, and defaultImageName is not.
* lib/prims.inl: `Smalltalk snapshot' primitive (250) removed -- the
new ImageFileName global makes it redundant.
* lib/save.c: LoadFromFile now expects a full path to the image just like
saveToFile, does not call findImageFile.
1999-08-07 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Declare `unlink' (valid only for files) instead of `remove'
(which nukes whole directories too) to be used to implement
File class>>#primRemove:
* lib/sysdep.c: Added simulation of popen and pclose in openPipe
and closePipe.
1999-08-07 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.h: InitSTDIOObjects became initRuntimeObjects
* lib/dict.c: InitSTDIOObjects became initRuntimeObjects, and various
initializations (Features, KernelPath, ImagePath) were moved here from
initSmalltalkDictionary. This completes the change made on July 14th.
* lib/lib.c: InitSTDIOObjects became initRuntimeObjects
1999-08-06 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.inl: RelativeByteIndex now explicitly casts to int for
Alpha compatibility.
* lib/sym.c: Switched from int to long when dealing with differences
between addresses, for Alpha compatibility.
* lib/dict.c: Switched from int to long when dealing with differences
between addresses, for Alpha compatibility.
1999-07-15 Paolo Bonzini <bonzini@gnu.org>
* lib/dld_gnu.c: Added gst_dld_exts (.o, .a)
* lib/dld_gst.h: Added gst_dld_exts
* lib/dld_gst.c: Added gst_dld_openext
* lib/dld_hpux.c: Added gst_dld_exts (.sl)
* lib/dld_ltdl.c: Added gst_dld_exts (dummy)
* lib/dld_libdl.c: Added gst_dld_exts (.so, .a)
* lib/dld_win32.c: Added gst_dld_exts (.dll, .exe)
1999-07-14 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Added F_BYTE, used while saving to ease reloading
if the endianness changes.
* lib/save.c: Added ability to load images from machines with
different endianness and to recognize (and reject) images from
machines with different sizeof(long). This change unveiled a bug
in GNU C 2.7.2!!!
* lib/dld_ltdl.c: Created (thanks to Alexander Shinn for pointing
me to libtool!)
1999-07-10 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: InterruptHandler should set again the handler
for SIGINT
* lib/sysdep.c: Fixed syntax error. Also, sigaction should use
SA_RESETHAND if available because signal is supposed to work
that way.
* lib/sysdep.c: #define SIGALRM if not provided by C headers.
1999-07-05 Paolo Bonzini <bonzini@gnu.org>
* gstconf.h.in: Changed USE_READLINE to HAVE_READLINE (more coherent)
* gstconf.h: Same as above
* lib/comp.c: Same as above
* lib/lex.c: Same as above
* lib/lex.h: Same as above
* lib/lib.c: Same as above
1999-07-04 Paolo Bonzini <bonzini@gnu.org>
* lib/sysdep.c: Renamed dprintf to debugf. glibc 2.0 defines
a different prototype for a function with the same name (glibc 2.1
only defines it if __USE_GNU is defined and does not break gst).
1999-06-28 Paolo Bonzini <bonzini@gnu.org>
* lib/qsort.c: Added standard stuff to make alloca work.
* lib/gstpub.h: Moved inclusion of gst.h *inside* `extern "C"'
1999-06-25 Paolo Bonzini <bonzini@gnu.org>
*** Bug-fixing version 1.6.1 released.
1999-06-21 Paolo Bonzini <bonzini@gnu.org>
* lib/alloc.c: In xrealloc, we must call malloc explicitly when
the first argument is 0, since some reallocs don't do this.
* lib/cint.c: Fix for Solaris' brokenness (in their stat.h, they use
`#define st_atime st_atim.tv_sec')
* lib/qsort.c: Added (from GCC).
1999-06-17 Mark Elbrecht <snowball@bigfoot.com>
*** Version 1.6 released.
* lib/lex.c: Fix crash when using drive letters in isKernelFile.
* lib/lib.c: For DOS, use '_stinit' and '_stpre' as init files since
DOS doesn't allow a period to start a filename.
1999-06-09 Pahi Andras <pahi@mozart.eet.bme.hu>
* lib/cint.c: DefineCFunc makes a private copy with strdup of the
C function's name. The problem is likely to root to the pre-DLD days
(1989-1990) when only string constants were passed to defineCFunc, so
strdup was unnecessary.
1999-06-03 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Added displayCompilationTrace
* lib/comp.h: Added declaration of displayCompilationTrace
* lib/prims.inl: If declaration tracing is on, shows new
categories as encountered.
1999-05-30 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Added default values for the definitions that used to
be in gstpaths.h
* lib/gstpaths.h: Removed since configure did not create it properly
after the installer was fixed
* lib/Makefile.in: Added definitions to be used in place of gstpaths.h
* lib/lib.c: If the the paths cannot be located, try using the local
directory
* lib/lib.h: DefaultImageName is now a variable
* lib/str.c: Added resizeString
1999-05-28 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Object passed as `unknown' or `self', whose class is not
recognized, are now passed as an OOP (they used to be skipped).
* lib/interp.c: the open-coded // was rounding like quo: Does.
* lib/prims.inl: The base date for secondClock was 2 Jan 2000 instead
of 1 Jan 2000. This was apparent after the fix above.
1999-05-20 Paolo Bonzini <bonzini@gnu.org>
* lib/alloc.c: Moved platform-dependent definitions here. Modified
so that, if we replace libc's allocator, we define calloc too (see
glibc's manual). Also modified so that xmalloc exits if it fails.
* lib/alloc.h: Removed platform-dependent definitions. Now this
file only contains extern declarations (correctly).
1999-05-15 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Added code to #define `volatile' to nothing if it is
not supported.
* lib/interp.c: Modified to pass through -Wall when optimization
is on. This highlighted a possible (although never observed) bug in
sendMessageInternal: the setjmp/longjmps in executePrimitiveOperation
could have clobbered methodOOP, which is now declared volatile.
1999-05-14 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Modified to (almost) pass through -Wall.
* lib/cint.c: Modified to pass through -Wall.
* lib/comp.c: Modified to pass through -Wall.
* lib/dict.c: Modified to pass through -Wall.
* lib/dict.inl: Modified to pass through -Wall.
* lib/gstpub.h: Added C++ `extern "C"' guard.
* lib/interp.c: Modified to pass through -Wall.
* lib/interp.inl: Modified to pass through -Wall.
* lib/lex.c: Modified to pass through -Wall.
* lib/oop.c: Modified to pass through -Wall.
* lib/save.c: Modified to pass through -Wall.
* lib/sym.c: Modified to pass through -Wall.
1999-05-13 Paolo Bonzini <bonzini@gnu.org>
* lib/callin.c: Added objectAlloc.
* lib/gst.h: Added guards to avoid including heavily implementation
dependent stuff when gst.h is included by gstpub.h
* lib/gstpub.h: Changed to use those guards.
* lib/dld_hpux.c: Created.
* lib/dld_libdl.c: New name of dld_sun.c
* lib/lex.c: Stream description for readline streams is not
`a Readline string' anymore, but `stdin' (since that's where we
actually get the string). Also, when readline is used I also
include <readline/history.h> now; and I disable readline's auto-
completion feature, not supported by gst (initializeReadline).
1999-05-11 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Various performance counters are now unsigned longs.
* lib/comp.h: Various performance counters are now unsigned longs.
* lib/interp.c: #mustBeBoolean is now sent to the object that should
have been a Boolean, as the Blue Book says. Plus, same as above.
* lib/interp.h: Various performance counters are now unsigned longs.
1999-05-09 Paolo Bonzini <bonzini@gnu.org>
* lib/id.c: Removed -- I'm very sorry to do it, since it was created
10 1/2 years ago, but it was a copy of str.c
* lib/id.h: Removed -- I'm very sorry to do it, since it was created
10 1/2 years ago, but it was a copy of str.h
* lib/lex.c: Removed references to function that used to be in poor id.c;
changed references to copyStr to use strdup.
* lib/prims.inl: Added code to test for infinity, NaNs and other failures
in mathematical functions (exp/ln/sqrt/trigonometry).
* lib/str.c: Removed copyStr.
* lib/sysdep.h: Added portable macros to test for nan and infinity.
Not all libc's have isnan, isinfinity and the like.
1999-05-08 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: fixed bug when compiling to:do:/to:by:do: And the loop
index temporary was in position 15 (a 2-byte push was erroneously
compiled, since a 1-byte push can be used).
* lib/interp.c: Did not trap divides by zero on open-coded // messages.
* lib/lib.c: Added Transcript.st to the list of kernel files.
* lib/oop.c: Character objects' objSize field was uninitialized. Fixed.
* lib/prims.inl: fixed SIGSEGV on (IndexableClass new: ANegativeNumber).
1999-05-06 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added exceptionHandlers variable to Process.
* lib/gst.y: Fixed bug with conditional compilation -- conditional
exclusion was not disabled by the double bang sequence.
* lib/interp.h: Added exceptionHandlers variable to Process.
1999-05-03 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Changed the system message #booleanRequired to
#mustBeBoolean for coherence with the Blue Book (I had not noted
that passage). Fixed async signals (actually, I just removed
the error messages -- they seem to work as they are and their
implementation is exactly the same as in the book...) and
changed the signal handling routines to use them instead of
separate variables. Added asyncSignal().
* lib/interp.h: Added declarations for asyncSignal().
* lib/interp.inl: Fixed unparenthesized arguments in the `equal' macro.
* lib/gstpub.h: Added declarations for asyncSignal().
* lib/lib.c: Search for a local copy of the kernel files in the
`kernel' subdirectory of the local directory; always save the
kernel sources as FileSegments. This way, GNU Smalltalk works
both if a) it is installed and the kernel lies in /usr/local/share
b) it is not installed and everything is done inside the
user's home directory c) it is not installed, we are under Windows
and everything is done inside the current directory (maybe I'll
switch to the executable directory in the future...)
1999-04-29 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Now does compile correctly optimized selectors whose
block arguments have arguments or temporaries. In fact I simply
don't optimize them -- but maybe I will sooner or later. Also,
#timesRepeat:, #to:do: and #to:by:do: are now open-coded.
Finally, I fixed the fact that the bytecodes for an erroneous method
were put at the beginning of the next syntactically valid method.
* lib/lib.c: The `Smalltalk Ready' banner is now `GNU Smalltalk Ready'.
* lib/save.c: Added timesRepeatColonSymbol, toColonDoColonSymbol and
toColonByColonDoColonSymbol.
* lib/sym.c: Same as above.
* lib/sym.h: Same as above.
1999-04-27 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.5.beta3 released.
* lib/alloc.c: Added inclusion of stdlib.h (or malloc.h for old C's)
when the custom allocator is not used.
* lib/byte.c: Fixed optimization of pushIndexed.
* lib/dld_sun.c: Added missing semicolon.
* lib/interp.c: Finished new GCC implementation at last -- now we
only have to do a single goto for EVERY bytecode. Maybe something
better could be done by caching dispatchVec in a register... Auto-
matic #undef-ining of USE_OLD_DISPATCH is now based on the new
gstconf.h definition HAVE_GOTO_VOID_P (used to simply check __GNUC__).
1999-04-25 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Added optimization of nopBytecode. Added `replace
stack top' bytecodes 140-142 in optimizeBasicBlock.
* lib/byte.h: Added `replace stack top' bytecodes.
* lib/comp.c: Added yourselfSymbol in whichBuiltinSelector (yourself
is now open-coded).
* lib/interp.c: Added `replace stack top' bytecodes.
* lib/prims.inl: Changed GC-tuning primitives (spaceGrowRate
and growThreshold) to accept integers too.
* lib/sym.h: Added yourselfSymbol.
* lib/sym.c: Added yourselfSymbol.
* lib/save.c: Added yourselfSymbol.
1999-04-23 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Cleaned up some definitions for ANSI features which
can be checked by autoconf -- the old #ifdef method only makes things
cumbersome. Also renamed config.h to gstconf.h, so that it can be
installed without filename clashes.
* lib/interp.c: Changed verbose execution tracing to print the stack
top *BEFORE* the bytecode -- the output is easier to follow. Added
jump lookahead (see definition of JUMP_LOOKAHEAD).
* lib/oop.c: Began switching to something resembling a generational
collector. Changed GC-tuning variables (spaceGrowRate/growThreshold)
to be integers -- because they are now checked in allocObj and doubles
are more expensive in busy code, I think.
1999-04-22 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.h: Merged bytecodes 138-139 (push/store outer temp) into a
single bytecode 138, which can also do a `pop and store outer temp'.
* lib/byte.c: Same as above. The new bytecode behaves much like bytecode
126, so the code for that bytecode in the optimizer can be used by the
new bytecode too. Added more cases in the peephole optimizer.
* lib/comp.c: Same as above.
* lib/interp.c: Same as above. Moved various optimization #define's at
the top of the file.
1999-04-20 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Optimizer in and working. Fixed challenging cases in
the flow analyzer which were apparent now because the peephole
optimizer does some `interesting' changes to the bytecode -- previously
the changes were not `interesting' enough for these bugs to show up.
Performance +5-10%, but some interesting optimizations are not there
yet (e.g. pop-store/push --> store, and push/push --> dup).
1999-04-19 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Added to the flow analysis some support for optimizing
#ifTrue: and #ifFalse: in the common case where their result is
discarded. Added a first peephole optimizer in optimizeBasicBlock.
* lib/byte.h: Added nop bytecode 139
* lib/comp.c: Changed the compilatation of #ifTrue:/#ifFalse: to one
which is more optimizable if the result is discarded. #and:/#or: are
left as they were because their result is usually kept. Also ALWAYS
put a pop bytecode at the end of a statement -- it makes flow analysis
simpler and is removed by the peephole optimizer if unnecessary.
* lib/interp.c: Added nop bytecode 139
1999-04-18 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: The new optimization scheme proved to be easily
extendable (which is what I wanted). I added jump optimization
(10 lines of code) and unreachable code elimination (5 lines) -- no
big speed improvements, but now I have moer experience with
optimization and will approach peepholing.
* lib/byte.c: Modified various internal functions to avoid continuous
reallocation of bytecodes. For instance, reallocByteCodes uses
xrealloc() -- it was always malloc-ing everything from scratch --
and allocByteCodes and reallocByteCodes have a parameter with the
amount of memory to be allocated.
* lib/cint.c: Call initDldLib if HAVE_DLD is defined.
1999-04-16 Paolo Bonzini <bonzini@gnu.org>
* lib/dld_gst.c: Created from old cxtnsn/dld.c
* lib/dld_gst.h: Created
* lib/dld_gnu.c: Created
* lib/dld_sun.c: Created
* lib/dld_win32.c: Created
* lib/byte.c: Changed the algorithm for optimizeByteCodes. Instead of
doing a single scan on the bytecodes and fixing up jumps the hard way,
I'm now dividing the bytecodes into basic blocks, optimizing each of
them one at a time in optimizeBasicBlock.
* lib/dict.c: Moved hasBlock to ContextPart, yanked it out from
BlockContext and MethodContext.
* lib/interp.c: Moved hasBlock to the fourth position (inside
MethodContexts and BlockContexts) so that we can put it in ContextPart.
* lib/lib.c: Load DLD.st from kernel if HAVE_DLD is defined.
1999-04-12 Paolo Bonzini <bonzini@gnu.org>
* lib/sysdep.c: Functions handling time_t's now use signed longs.
* lib/sysdep.c: Stole more portable implementations of adjustTimeZone
and currentTimeZoneBias from GNU Emacs. Added support for broken
versions of localTime(3) that cache the time zone.
* lib/sysdep.h: Functions handling time_t's now use signed longs.
1999-04-10 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.5.beta2 released.
* lib/cint.c: My_stat now adjusts file times to local times.
* lib/sysdep.c: Added adjustTimeZone and currentTimeZoneBias.
* lib/sysdep.h: Added adjustTimeZone and currentTimeZoneBias.
1999-04-09 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Fixed my_stat to return times relative to 1/1/2000
to avoid possible overflows (which would have happened around 2004
on 32-bit machine, and around 8.000.000.000 AD on 64-bit ones...).
1999-04-08 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Fixed bug in sendMessageInternal and sendBlockValue.
Basically, we now make sure that sp and thisContext->spOffset are
consistent whenever a GC could happen; otherwise, fixupObjectPointers
recomputes thisContext->spOffset from sp, storing an erroneous value
into the former.
1999-03-29 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Added definition of WIN32 because Cygwin only defines
_WIN32, but many programs rely on WIN32 instead.
1999-03-22 Paolo Bonzini <bonzini@gnu.org>
* lib/sysdep.c: Fixed Win32 version of Delays, which was buggy if a
delay had to cancel the previous one. The new version is also much
more precise.
1999-03-21 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Changed Integer relational operators to not do a
toInt() (instead we use a simple typecast).
1999-03-15 Paolo Bonzini <bonzini@gnu.org>
*** Version 1.5.beta1 released.
* lib/dict.c: Changed to use setCObjectValueObj and cObjectValueObj.
* lib/dict.h: Doc fixes for CObject.
* lib/dict.inl: Added setCObjectValueObj and cObjectValueObj. Now, the
address pointed by the CObject is the LAST instance variable (including
indexed ones), not always the SECOND (which could still be a fixed
one). For currently defined CObject subclasses this was not a problem,
but it could have been a serious one if a CObject subclass declared
additional instance variables.
* lib/prims.inl: Changed to use setCObjectValueObj and cObjectValueObj.
1999-03-13 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Was crashing if a call-out to a non-existent function
was attempted.
* lib/comp.c: Fixed a strange bug I'm not sure I understood well. It
seems that, if an error occurred in a method with literals, and if an
immediately following method had literals, the literal array
contained bogus data and GST would lose. I don't think it was there
before my March 3rd change...
1999-03-11 Paolo Bonzini <bonzini@gnu.org>
* lib/lib.c: Added --silent as a synonim of --quiet and -q.
1999-03-03 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Added stack depth tracing (variables and macros
containing stackDepth). Made makeNewMethod public, to avoid lots of
duplicate code for the C and Smalltalk compiler.
* lib/prims.inl: Added primitive 79, which maps to makeNewMethod.
* lib/interp.c: Added support for mixed size contexts. Added
resetFakeContexts.
* lib/interp.c: The change above unveiled lots of bugs - especially
uninitialized pointers here and there. In particular: a) GST would
core dump when you did a send to super from a class without a
superclass; b) prepareExecutionEnvironment set the stack pointer of
the context to 0 instead of -1 so markAnOOPInternal would try to
mark an additional stack slot.
* lib/oop.c: In minorGCFlip, call resetFakeContexts at the end instead
of using deallocFakeContext for every context.
1999-02-28 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Modified compileAssignments to use preferrably the
`storeIndexed' bytecode. This is faster and also makes the task
of an eventual bytecode optimizer a bit simpler.
* lib/byte.c: Added truncateByteCodes. Moved optimizeByteCodes
here and made it extern (it was a static in lib/comp.c), and added
it some (working but currently not used) code.
* lib/byte.h: Added optimizeByteCodes and truncateByteCodes
1999-02-27 Paolo Bonzini <bonzini@gnu.org>
* lib/prims.inl: Added primitive 101 (ProcessorScheduler>>
isTimeoutProgrammed).
* lib/dict.c: Added DelayProcess and IdleProcess as
Delay's class variables
* lib/interp.c: In initProcessSystem, leave the processes the way
they were unless we get here after a deadlock.
1999-02-26 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Changes to have an error-free compile with
-pedantic. Also fixed highestPriorityProcess to return the
active process if it is not waiting on a semaphore (because
`Processor yield' must not stop execution if the only
runnable process is the active one).
* lib/lex.c: Added support for -s command line option in
isKernelFile.
* lib/lib.c: Added -s command line option.
* lib/oop.c: Removed arithmetics on void * in realizeOOPs.
1999-02-23 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.y: Added #'abcd' symbols (not in Smalltalk-80,
but ANSI and common in many commercial Smalltalk
implementations).
1999-02-22 Paolo Bonzini <bonzini@gnu.org>
* lib/lib.c: Moved some initializations *after* parsing the
command line (obviously *before* loading user files),
so that parameters on the cmdline can influence the
initialization process.
1999-02-21 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Added printing of what is the erroneous method in
sendMessageInternal. Also renamed global SP/IP to outerSP and
outerIP (which are then #defined to ip and sp in gst.h), so that
there is no name collision between the local IP/SP and the global
ones; and eliminating ipAddr/spAddr we get some more speed. But
remember this when using GDB!!
1999-02-18 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Struggled to make the process system work as
intended; it still has a few bugs but it mostly works (for
example, philosophers now work).
1999-02-16 Paolo Bonzini <bonzini@gnu.org>
* lib/oop.c: Started switching to generational GC!! In short,
minor GCs only take care of fake contexts and are faster
because no sweeping happens; major GCs don't bother of
fake contexts (they assume there are none) and deal with
removing real unused objects.
1999-02-15 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.h: Added bigLiteral bytecode.
* lib/comp.c: Changed so that methods are normal objects - no
more variable classes and variable byte classes at
the same time. Now, the header does not include the
number of literals, so I also added code to use the
new 126 bytecode.
* lib/interp.c: Changed so that methods are normal objects - no more
variable classes and variable byte classes at the
same time.
* lib/interp.inl: Changed so that methods are normal objects - no more
variable classes and variable byte classes at the
same time.
* lib/prims.inl: Now methods are normal objects - no more variable
classes and variable byte classes at the same time.
So I removed primitives 68/69/79.
* lib/save.c: Changed so that methods are normal objects - no more
variable classes and variable byte classes at the
same time.
1999-02-14 Paolo Bonzini <bonzini@gnu.org>
* lib/oop.c: Experimentally moved markGlobalOOPs at the START
of the marking phase, so that by the time the other
objects in the root set are dealt with, many objects
will have been marked. This might improve a bit GC
locality of reference.
* lib/save.c: Experimentally reorganized the global OOPs.
smalltalkDictionary and the symbols at the END of
the global OOP table, so that by the time they are
marked other objects will have been dealt with and
recursion will be more shallow; this might improve
a bit GC locality of reference.
1999-02-13 Paolo Bonzini <bonzini@gnu.org>
* lib/sysdep.c: Using setSignalHandler() inside signalAfter().
1999-02-12 Paolo Bonzini <bonzini@gnu.org>
* lib/sysdep.c: GetCurDirName, now performs special error handling
when getcwd is used (code stolen from the gettext
library's source code, by David MacKenzie).
1999-02-09 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Moved incubator here from oop.h so that it is public
* lib/oop.h: Moved incubator to gst.h so that it is public (see
comment in GST 1.1.5 - "it is likely that this
interface will be moved..."
1999-02-08 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Print new bytecode 126 for many literals, > 64.
* lib/cint.c: Removed code to print "function not registered"
message - Smalltalk code handles that now.
* lib/lib.c: CFuncs.st is now loaded *after* CObject and CType -
a logical choice since C function declarations could
use CTypes. Added PkgLoader.
1999-02-06 Paolo Bonzini <bonzini@gnu.org>
* lib/prims.inl: Sped up nextInstance by avoiding to search in the
unused OOPs.
1999-02-05 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Added callbacks #booleanRequired and #interrupt.
Implemented bytecode 126 for many literals, > 64.
* lib/prims.inl: Primitive 255 now does not blindly set inCCode to
false if a C callout made a callin which in turn made
a callout.
1999-02-04 Paolo Bonzini <bonzini@gnu.org>
* lib/lex.c: Modified so that a bang is not part of a binary op.
It's just a one-char token like [ and #. Needs
fixing, though.
1999-02-03 Paolo Bonzini <bonzini@gnu.org>
* lib/callin.c: Changed calls to yyparse() to parseStream().
* lib/comp.c: Changed calls to yyparse() to parseStream().
* lib/interp.c: Changed calls to yyparse() to parseStream().
* lib/gst.y: More attempts at simplifying things around:
now an expression invoking methodsFor: can be
as complex as desired. In addition I changed
temporaries and primitive to have a default value,
so that almost-duplicated rules (e.g. `statements',
`temporaries primitive statements', `temporaries
statements', `temporaries primitive') can be put
into a single one. Alas this causes 4 shift/reduce
conflicts (2 in state 0, 2 in state 6) but Bison
gracefully handles them and it makes the grammar more
readable IMO.
* lib/lex.c: Moved lex debugging here. In addition, now
you can compile this with NO_PARSE so that no parsing
occurs - only lexical analysis. To accomplish this, the
callers need to call a function in lib/lex.c (parseStream)
instead of yyparse().
* lib/lib.c: Updated lex debugging and moved it to lex.c
1999-02-02 Paolo Bonzini <bonzini@gnu.org>
* lib/alloc.c: Added custom allocator, currently used only under
Win32. See comment in the file.
* lib/alloc.h: Added custom allocator, currently used only under
Win32. See comment in the file.
* lib/sym.c: internCountedString: The symbol OOP is now read only.
1999-02-01 Paolo Bonzini <bonzini@gnu.org>
* lib/oop.c: Fix in growMemory. Now it seems to work right -
previously, it failed if thisContext was not a fake
and the heap moved.
1999-01-29 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Modified isSimpleReturn so that a "return literal[0]"
method is optimized.
* lib/comp.c: Modified isSimpleReturn (in byte.c) so that a "return
literal[0]" method is optimized. The "primitive must
be executed" case, which was previously identified by
flags == 3, is now identified by primitiveIndex != 0.
1999-01-28 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Moved regressionTesting to lib.c; it seems more
logical to me.
* lib/gst.h: fix in incrInt/decrInt: It was not converting the
OOP to a long before adding 2 - so it was actually
adding sizeof(OOP)*2 = 16!
* lib/lib.c: To make -S work when -i was specified too.
* lib/oop.c: NilOOP, trueOOP and falseOOP are now initialized in
allocOOPTable(), not initOOPTable(). Actually I can't
guess why they weren't there in the first place.
* lib/prims.inl: Added check for already closed file in fileOp: (if
fileStream->file = nilOOP, fail). Added flushPrim
and getBytePrim.
* lib/save.c: Removed experimentally the code that saves and
restores nil, true, false and the characters:
why can't we initialize them just like if we were
initializing the system from scratch, without
an image?
* lib/sysdep.c: OpenFile, removed references to BINARY_MODE_NEEDED
(I had to remove it from the configure script because
it did not work correctly, at least under Cygnus'
Win32 port.
1999-01-27 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Smalltalk dictionary is now created with a larger
size than it used to be (see the definition of INITIAL_SMALLTALK_SIZE).
* lib/interp.c: Made the method cache an array of a struct instead of
five different arrays. A "return literal" method is
optimized like "return self" and "return inst. var".
1999-01-26 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: Removed code for evaluating (parse last statement as
return) - not needed since Smalltalk code implements
evaluate: Also changed references to findVariable to
prevent assignments into arguments.
* lib/gst.y: Removed code to parse last statement as return -
not needed since Smalltalk code implements evaluate:
* lib/lex.c: Modified to have a variable indicating the name of
the log file.
* lib/lib.c: Changed -v to exit after the output, like
--version. Added -l and -L to log to a file. Added
long options.
* lib/sym.c: Modified findVariable and localVarIndex so that
assignments to arguments are detected.
1999-01-25 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.inl: Spiffed it up with a few register clauses.
Also removed modulus operator (%) when possible.
This increased performance (especially in message
sends) only by 5%, but it was so easy I could not
but do it!
1999-01-24 Paolo Bonzini <bonzini@gnu.org>
* lib/alloc.c: Added this banner.
* lib/alloc.h: Created.
* lib/lex.c: Fixed lineStamp() so that the format is consistent
with GCC and other GNU programs: for example,
"Integer.st:115: parse error")
1999-01-22 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Moved SIG_ARG_TYPE from sysdep.c here. Added paranoic
checking of memset arguments when bzero is used.
* lib/interp.c: Moved SIG_ARG_TYPE to gst.h
* lib/sysdep.c: Moved SIG_ARG_TYPE to gst.h
1999-01-18 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.inl: Fixed bug in large integers. I was not considering
that the product of the low-order 15 bits could exceed 15 bits!
1999-01-16 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.h: Added byteStreamClass.
* lib/interp.c: Yesterday I removed maxSize instance variable from
WriteStream, so I had to remove it from the FileStream
struct, either.
* lib/lib.c: Added ByteStream.st.
* lib/save.c: Added byteStreamClass.
1999-01-15 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Removed maxSize instance variable from WriteStream.
Fixed missing isPipe parameter in addSTDIOObject.
Added ByteStream. Added CShortSize global.
1999-01-13 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Added getArgc and getArgv
* lib/lib.c: Added ability to get argc/argv from Smalltalk code.
* lib/sysdep.c: Fixed a small & invisible error, a 'start of comment'
misplaced for a 'end of comment' (note by Paolo Bonzini <bonzini@gnu.org>:
congratulations for your sharp eye!!)
1999-01-11 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Yeah! Removed bitfields from InstanceSpec!!
* lib/dict.h: Yeah! Removed bitfields from InstanceSpec!!
* lib/dict.inl: Yeah! Removed bitfields from InstanceSpec!!
* lib/gst.h: Yeah! Removed bitfields from InstanceSpec!!
* lib/prims.inl: Yeah! Removed bitfields from InstanceSpec!!
1999-01-10 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Good!! First change in 1999!! Optimized out send to
super. I renamed sendMessage to sendMessageInternal
and created two macros (sendMessage and sendToSuper)
in interp.inl
* lib/interp.h: Good!! First change in 1999!! Optimized out send to
super. I renamed sendMessage to sendMessageInternal
and created two macros (sendMessage and sendToSuper)
in interp.inl
* lib/interp.inl: Good!! First change in 1999!! Optimized out send to
super. I renamed sendMessage to sendMessageInternal
in interp.c and created two macros (sendMessage and
sendToSuper) here.
1998-12-09 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Added my_stat for portability
* lib/oop.c: Moved the code to nil out weak references *before*
sweeping is done. This is needed so that finalize
methods which refer to weak objects already see nils.
1998-12-03 Paolo Bonzini <bonzini@gnu.org>
* lib/prims.inl: Added ability to create subclasses of CompiledMethod
(for now, cannot add instance variables)
1998-11-28 Paolo Bonzini <bonzini@gnu.org>
* lib/comp.c: The method cache was not properly updated: test is
1 to: 5 do: [ :i | Object compile: 'foo ^',
i printString. (nil foo) printNl]
Now I'm using invalidateMethodCache instead of updateMethodCache
(see interp.c).
* lib/interp.c: fix: Since updateMethodCache did not always work
I replaced it with invalidateMethodCache, which is not as gentle but
works (anyway compiles are not so frequent and it takes nothing to
rebuild a good cache). Also, thisContext's ip and sp (in sendMessage
and sendBlockValue) are now updated *after* thisContextOOP is set to
the newly created context. The previous implementation caused mess if
allocFakeContext() triggered a GC.
1998-11-27 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added the Table class variable to Character.
* lib/gst.h: Added finalization.
* lib/oop.c: Added finalization. Also added lastUsedOOP which
is used to shorten the loops on the OOP table at GC
time It was needed because the OOP table was scanned
three times: once to mark dependents of finalizable
objects, once to reverse pointers (prepareForSweep),
once to scan for objects to be finalized. Now the
whole GC is on average 50% faster than it used to be
BEFORE having to add all these cycles.
* lib/oop.inl: Created
* lib/prims.inl: Added finalization primitives 256-257
* lib/sym.c: Added finalizeSymbol.
* lib/sym.h: Added finalizeSymbol
1998-11-26 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.inl: Created
1998-11-25 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Moved many routines to dict.inl for speed. Changed
BlockClosure to a byte-subclass to save eight bytes.
* lib/dict.h: Moved most things to gst.h, added dict.inl
* lib/dict.inl: Created
* lib/interp.c: Added primitive 104 (String hash function), inlined
many things around.
* lib/oop.c: Changed the way the marking system works. Instead of
two entry points (markAnOOP and markOOPRange) both
relying on markAnOOPInternal and passing parameters
to it through the copy stack, I have two macros
(maybeMarkOOP and markOOPRange) which pass parameters
to markAnOOPInternal through function arguments.
markAnOOPInternal does its job calling itself
recursively, doing everything on the stack without
expensive mallocs. This makes the code neater, since
the whole marking system resides in a single function.
* lib/prims.inl: Created from interp.c
* lib/sym.c: Modified hashString to be more effective.
1998-11-24 Paolo Bonzini <bonzini@gnu.org>
* lib/lib.c: Added ContextPart.st, changed to try loading .stinit
and .stpre from the current directory if the HOME
environment variable is not found (fix for Win32).
1998-11-11 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Fixed bug in asObject primitive. Was erroneously
using oopAt(arg1-1) instead of oopAt(arg1).
1998-11-10 Paolo Bonzini <bonzini@gnu.org>
* lib/lex.c: Fixed so that _ *inside* an identifier is OK.
1998-11-08 Paolo Bonzini <bonzini@gnu.org>
* lib/byte.c: Added notNilSymbol and isNilSymbol.
* lib/byte.h: Added notNilSymbol and isNilSymbol
* lib/interp.c: Fixed bugs in returnWithValue (they had been there
since 18 Oct...): contexts were returned to the free
fake list even if they were not fake anymore (which
happened if you did a snapshot). Sooner or later, a
normal object contended the same heap space with these
contexts, wreaking havoc on the image. Also turned
noParentContext to a macro and added notNil/isNil as
bytecodes 206 and 207; these are optimized out to gain
speed in some operations (e.g. Sets and Dictionaries).
* lib/save.c: Added notNilSymbol and isNilSymbol
* lib/sym.c: Added notNilSymbol and isNilSymbol.
* lib/sym.h: Added notNilSymbol and isNilSymbol
1998-11-01 Paolo Bonzini <bonzini@gnu.org>
* lib/callin.c: Added vmsgSend. Moved mstMalloc and mstGetCData here.
1998-10-26 Paolo Bonzini <bonzini@gnu.org>
* lib/gstpub.h: Added vmsgSend.
1998-10-18 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Changed fake OOPs so that they have entries in the
real OOP table. This allows me to never realize
the fake contexts unless a snapshot is being done.
Less GC = more speed!!
* lib/oop.c: Fake OOPs are now in the main OOP table. Changed
setOOPObject to a macro for SPEED!!
* lib/oop.h: Added freeOOP(), realizeAllOOPs()
1998-10-16 Paolo Bonzini <bonzini@gnu.org>
* lib/cint.c: Added stringOut return type (frees string)
1998-10-15 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Added type 9 for CObjects and Memory (smalltalk OOP)
1998-10-12 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added BlockClosure. Changed BlockContext to reflect
new architecture. Changed Float to a variable
byte class.
* lib/interp.c: Added support for blocks as closures (partly I wrote
it, part I stole it from Steve Byrne <sbb@gnu.org>'s never made public
1.1.6 version). Started adding support for fake
block contexts (see 1 Jan 91)
1998-10-10 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Added support for read-only objects (prims 233-234)
1998-09-26 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Fixed allocCObject. Added IdentitySet.
1998-09-25 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Added a few register clauses. Also changed
implementation of "send ==" so it doesn't actually do
the message sends, since == should not be overridden.
* lib/lib.c: Added ValueAdapt.st, File.st, Directory.st,
IdentitySet.st
* lib/oop.c: Added a free list to OOP table. This yielded, in
general, good performance boosts, up to ten-fold for
snippets that heavily allocate objects!! (on average,
the number of bytecodes per second doubled)
* lib/oop.h: Added refreshOOPFreeList(), to be used by save.c
1998-09-18 Paolo Bonzini <bonzini@gnu.org>
* lib/gst.h: Started adding support for read-only objects.
* lib/interp.c: Removed last vestiges of previous garbage
collectors. Removing loops that were not optimized
out by compilers caused a 30% performance increase
(not joking!). Y2K change... Time>>secondClock was
about to overflow. Also fixed sendBlockValue to
check argument count.
* lib/oop.c: Removed all vestiges of previous GC algorithms.
This was a pity because it was really instructive
but I was not able to read anything before ;-).
* lib/oop.h: Fixed incubator bug (incAddOOP not in braces),
removed maybeMoveOOP and localMaybeMoveOOP.
1998-09-10 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added LargeIntegers and Fractions. Tried to make
nilFill faster.
* lib/lib.c: Added LargeInteger.st, removed changes.st since its
changes are incorporated in Fraction.st
1998-09-09 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Started adding support for LargeIntegers!!!
1998-09-07 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: Added Behavior>>#flushCache (primitive 89,
as in the Blue Book). Added bounds checking to spaceGrowRate:
(between 0 and 500)
1998-09-06 Paolo Bonzini <bonzini@gnu.org>
* lib/interp.c: FileStream>>nextPutAll: Primitive was giving access
violations (!) if Integers were passed... definitely
too greedy! I've updated the Smalltalk code too, so
that it handles the case, but anyway now the primitive
fails. On 3 Sep 98 I had broken Floats; fixed.
1998-09-03 Paolo Bonzini <bonzini@gnu.org>
* lib/dict.c: Added extensions to Date, modified Collection and
SequenceableCollection so they are not indexable.
Removed LookupKey.
* lib/interp.c: Switched to openFile; corrected bug in floating point
arithmetic primitives which never failed. basicPrint
doesn't output new-line. Also corrected so that,
when aborting execution, dead contexts are ignored
and don't cause "Block returning to non-existent
method context" errors.
* lib/lib.c: Modified to use openFile, added a few loaded modules.
1998-09-02 Paolo Bonzini <bonzini@gnu.org>
*** Began development of version 1.6
* lib/save.c: Switched to using openFile to open files
* lib/sysdep.c: Added openFile, support for Cygnus Win32 added. A
note on this is important. Reluctantly I used Win32
functions here and there. I was not happy about that,
but since it's the only way to do some things in
an environment that does not fully comply to POSIX,
I had to.
1995-12-16 Steve Byrne <sbb@gnu.org>
* lib/comp.c: Changed name to blockCopyColonTemporariesColonSymbol.
* lib/sym.c: Changed name to blockCopyColonTemporariesColonSymbol.
* lib/sym.h: Changed name to blockCopyColonTemporariesColonSymbol.
1995-11-04 Steve Byrne <sbb@gnu.org>
* lib/oop.c: Fixed allocObj to have what I think is the *right*
algorithm -- simple, grows when needed.
1995-11-02 Steve Byrne <sbb@gnu.org>
* lib/oop.c: Fixed allocObj to properly grow when not enough
space is required, and to terminate if the allocation
cannot succeed.
1995-10-15 Steve Byrne <sbb@gnu.org>
* lib/byte.h: Added pushOuterTempVariable and storeOuterTempVariable
byte codes.
* lib/sym.c: Converted to the new architecture; introduced the
notion of scopes.
* lib/sym.h: Converted to new architecture; introduced the notion
of scopes.
1995-10-14 Steve Byrne <sbb@gnu.org>
* lib/gst.y: Began adding block temporary syntax.
* lib/tree.c: Added support for block node type for new
architecture.
* lib/tree.h: Added block node type for new architecture support.
1995-09-30 Steve Byrne <sbb@gnu.org>
*** Version 1.1.5 released.
1995-09-16 Steve Byrne <sbb@gnu.org>
* lib/interp.c: Moved lots of system dependent functions out to
sysdep.
* lib/sysdep.h: Added openPipe, closePipe, getOpenFileSize.
1995-09-10 Steve Byrne <sbb@gnu.org>
* lib/interp.c: Switched to fileIsReadable sysdep routine.
* lib/lib.c: Added -g command line flag to suppress printing of
GC messages.
* lib/oop.c: Added GC torture test. Heh heh heh!
* lib/sym.c: Added incubator usage.
* lib/sysdep.c: Added fileIsReadable, also setSignalHandler, and
initSysdep.
1995-09-09 Steve Byrne <sbb@gnu.org>
* lib/callin.c: Added incubator usage.
* lib/cint.c: Added incubator support for created objects.
* lib/cint.c: Removed Sun Windows hacks from the file.
* lib/interp.c: Added code to use the object incubator support.
* lib/interp.c: Experimentally tried to next jmp_bufs so enable proper
handling of reentering the interpreter from C callout
code and then calling out to more C code.
1995-09-08 Steve Byrne <sbb@gnu.org>
* lib/dict.c: Added incubator support for newly created objects.
1995-09-07 Steve Byrne <sbb@gnu.org>
* lib/comp.c: Added usage of OOP incubator.
* lib/oop.c: Added incubator support.
* lib/oop.h: Added incubator support.
1995-08-30 Steve Byrne <sbb@gnu.org>
* lib/gst.h: Merged in Visual C++ changes.
* lib/oop.c: Merged NT changes back in. Code now contains some
unnecessary casting and unrolled expressions (*=
becomes = *) to shut the Visual C++ compiler's
warnings off.
1995-08-26 Steve Byrne <sbb@gnu.org>
* lib/comp.c: Merged Brad Diller's changes for dealing with parsing
specially in the browser.
* lib/dict.c: Added kernel and image file paths as Smalltalk
accessible variables.
* lib/lib.h: Added kernelFileDefaultPath and imageFileDefaultPath
as exported symbols.
* lib/sysdep.c: Fixed to have the __cursigmask definition be
conditional on HAVE_SIGHOLD.
1995-08-20 Steve Byrne <sbb@gnu.org>
* lib/oop.c: Added growMemoryTo(); it's a variant of growTo which
does not involve the garbage collector.
* lib/oop.c: Fixed alignSize to not double align (we don't
preserve that property during GC anymore anyway,
and the floating point accessing functions in dict.c
which were the initial reason for having it are now
sensitive to whether aligned access to doubles is
required by the hardware or not.
* lib/oop.h: Added growMemoryTo().
* lib/save.c: Switched to using growMemoryTo in loadFromFile so
that if the saved image space is larger than the
normal memory space, the space is grown to fit.
1995-07-26 Steve Byrne <sbb@gnu.org>
* lib/cint.c: Fixed the makeDescriptor function to issue an error if
it cannot find a named C function. Already located
some bugs in UnixStream.st which have been there
since it's inception.
1995-07-23 Steve Byrne <sbb@gnu.org>
* lib/comp.c: Removed apostrophes in comments -- OS/2 doesnt
like them (incredible!).
* lib/dict.c: Added CIntSize so that C struct can understand
int size.
* lib/gst.h: Removed mstconfig.h!!! Code is now not conditional
on the presence of config.h.
* lib/interp.c: Merged in OS/2 diffs, and removed apostrophes from
preprocessed-out code (OS/2's preprocessor doesn't
understand backslash quoting.
* lib/oop.c: Fixed #ifdefed out code to not have apostrophes
(OS/2 doesn't understand).
* lib/save.c: Removed extra stdio.h include
1995-07-13 Steve Byrne <sbb@gnu.org>
* lib/comp.c: Removed HAVE_ALLOCA_H.
* lib/save.c: Removed HAVE_ALLOCA_H include of alloca.h (done in
gst.h now).
* lib/sym.c: Removed HAVE_ALLOCA_H.
1995-07-11 Steve Byrne <sbb@gnu.org>
* lib/cint.c: Added John Stanhope (jehu@vt.edu)'s changes for
Objective-C calling (Thanks John!!!)
* lib/gstpub.h: Added defineCFunc.
* lib/save.c: Added John Stanhope (jehu@vt.edu)'s changes for
Objective-C calling (Thanks John!!!)
* lib/sym.c: Added John Stanhope (jehu@vt.edu)'s changes for
Objective-C calling (Thanks John!!!)
* lib/sym.h: Added John Stanhope (jehu@vt.edu)'s changes for
Objective-C calling (Thanks John!!!)
1995-07-09 Steve Byrne <sbb@gnu.org>
* lib/byte.c: Fixed to include proper headers.
* lib/callin.c: Fixed to include correct header files.
* lib/comp.c: Fixed to include proper headers and have explicit
declarations.
* lib/dict.c: Fixed to explictly declare functions and include
proper files.
* lib/interp.c: Fixed to have explicit function declarations and
correct include files.
* lib/lex.c: Fixed to include proper headers and have functions
declared explictly.
* lib/oop.h: Added lots of new externs.
* lib/save.c: Fixed to have proper inclues and explicit function
declarations.
* lib/tree.c: Fixed to include correct files.
1995-07-08 Steve Byrne <sbb@gnu.org>
* lib/lib.c: Fixed a bunch of declarations and includes so that
functions are now explictly declared always.
1995-06-29 Steve Byrne <sbb@gnu.org>
* lib/sym.c: Fixed pool dictionary allocation to not allocate a
large number of immediately thrown away arrays.
1995-06-26 Steve Byrne <sbb@gnu.org>
* lib/gst.h: Switched EMPTY_BYTES to be 8 byte into the word
instead of the low bytes to make the low bytes unused
for use with the mark/sweep GC.
1995-06-23 Steve Byrne <sbb@gnu.org>
* lib/cint.h: Switched guard prefix to GST
* lib/comp.h: Switched to GST guard prefix
* lib/dict.h: Switched to GST guard prefix
* lib/gst.h: Switched to GST header guard.
* lib/gstpaths.h: Switched to GST header guard prefix.
* lib/gstpub.h: Switched to GST header guard prefix.
* lib/id.h: Switched to GST header guard prefix.
* lib/interp.h: Switched to GST header guard prefix.
* lib/lex.h: Switched to GST header guard prefix.
* lib/lib.h: Switched to GST header guard prefix.
* lib/oop.h: Switched to GST header guard prefix.
* lib/save.h: Switched to GST header guard prefix.
* lib/str.h: Switched to GST header guard prefix.
* lib/sym.h: Switched to GST header guard prefix.
* lib/sysdep.h: Switched to GST header guard prefix.
* lib/tree.h: Switched to GST header guard prefix.
1995-06-15 Brad Diller <bdiller@docent.com>
* lib/comp.c: Modified executeStatements() to support browser
expression evaluation. Added getByteCodeForSpecialSelector() to
support some browser operations.
* lib/comp.c: Store in memory the source code derived from .st
files loaded outside the kernel directory.
* lib/comp.h: Added getByteCodeForSpecialSelector() to support some
browser operations.
* lib/lex.c: Added isKernelFile() and getMethodSourceFromCurFile().
These routines were provided to solve certain data
integrity problem caused by accessing the source code
indirectly from saved file information.
* lib/lex.h: Added isKernelFile() and getMethodSourceFromCurFile().
1995-06-09 Steve Byrne <sbb@gnu.org>
* lib/oop.c: Began switching to compacting mark & sweep gc.
* lib/oop.h: Began the conversion to single GC space.
1995-06-06 Steve Byrne <sbb@gnu.org>
* lib/byte.c: Switched to new file naming scheme.
* lib/callin.c: Switched to new file naming scheme.
* lib/cfuncs.c: Switched to new file naming scheme.
* lib/cint.c: Switched to new file naming scheme.
* lib/comp.c: Switched to new naming scheme.
* lib/comp.h: Switched to new file naming scheme.
* lib/dict.c: Switched to new file naming scheme.
* lib/gstpub.h: Switched to new file naming scheme.
* lib/id.c: Switched to new file naming scheme.
* lib/interp.c: Switched to new file naming scheme.
* lib/lex.c: Switched to new file naming scheme.
* lib/lib.c: Switched to new naming scheme.
* lib/lib.h: Switched to new file naming scheme.
* lib/oop.c: Switched to new file naming scheme.
* lib/save.c: Switched to new file naming scheme.
* lib/str.c: Switched to new file naming scheme.
* lib/sym.c: Switched to new file naming scheme.
* lib/sysdep.c: Switched to new file naming scheme.
* lib/tree.c: Switched to new file naming scheme.
1995-06-05 Steve Byrne <sbb@gnu.org>
* lib/mstpub.h: Merged in Brad Diller's changes.
1995-05-31 Steve Byrne <sbb@gnu.org>
* lib/mstcint.c: Fixed cFuncInfo to grow dynamically.
* lib/mst.h: Boolean replaced with mst_Boolean, objectClass =>
mst_objectClass, Object => gst_object. This thanks
to the foresightful guys at the X consortium.
Thanks guys for wantonly chewing up name space.
* lib/mst.h: Removed the old sysVersionMajor etc definitions --
they are now defined in configure.in.
1995-05-30 Steve Byrne <sbb@gnu.org>
* lib/mstcomp.c: Replaced objectClass with mst_objectClass. Boolean =>
mst_Boolean.
* lib/mstcomp.h: Boolean switched to mst_Boolean.
* lib/mstdict.c: Replaced objectClass with mst_objectClass to avoid
conflicts with X (grrr!). Boolean replaced with
mst_Boolean. Object replaced with gst_object.
* lib/mstdict.h: Replaced objectClass with mst_objectClass to avoid
conflicts with X. Boolean => mst_Boolean. Object =>
gst_object.
* lib/mstinterp.c: Replaced objectClass with mst_objectClass. Boolean =>
mst_Boolean.
* lib/mstinterp.h: Boolean => mst_Boolean.
* lib/mstlex.c: Boolean => mst_Boolean.
* lib/mstlex.h: Boolean => mst_Boolean (darn X!).
* lib/mstlib.c: Boolean => mst_Boolean.
* lib/mstlib.h: Boolean renamed to mst_Boolean.
* lib/mstoop.c: Boolean => mst_Boolean.
* lib/mstoop.h: Boolean => mst_Boolean. Object => gst_object.
* lib/mstsave.c: Boolean => mst_Boolean. Object => gst_object.
* lib/mstsave.h: Boolean => mst_Boolean.
* lib/mstsym.c: Boolean => mst_Boolean.
* lib/msttree.h: Boolean => mst_Boolean.
1995-05-28 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Finally hacked floatNew to deal properly on
architectures where double alignment requirements
are different from those of long.
* lib/mstsysdep.c: Added getdtablesize for those systems such as HP
which do not have this useful function.
* lib/mstsysdep.c: Fixed getCurDirName to selectively use getwd or getcwd
depending on what is supported.
1995-05-15 Brad Diller <bdiller@docent.com>
* lib/mstinterp.c: Added primitives 256-264 to support expression
evaluation and other functions for the class browser.
1995-05-07 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Added more machine specific datatype constants (size
and alignment).
* lib/msttree.h: Removed trailing comma from NodeType enum literals
list -- some compilers are picky.
1995-04-29 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Added CDoubleAlignment as a 'global' value for the
required alignment of C type 'double'.
* lib/mstlib.c: Moved CType to after CObject in the load order to
better reflect the type (and symbol definition)
dependencies.
1995-03-31 Steve Byrne <sbb@gnu.org>
* lib/mstcomp.c: Compiler now uses the initEmptyBytes macro to set
the empty bytes of the byte code length of a method.
* lib/mst.h: Adjusted EMPTY_BYTES related constants to vary with
hardware architecture.
* lib/mstinterp.c: Fixed branching backward to use signed arithmetic it
was doing the computation as unsigned ints without
sign extension when it was added ot a 64 bit pointer.
* lib/mstoop.c: Added fflush(stdout) to some debugging funcs
* lib/mstsym.c: Adjusted a reference to the empty bytes to use the
new, architecture independent macro definitions.
1995-03-19 Brad Diller <bdiller@docent.com>
* lib/mstcint.c: Conditionally enable GC of Smalltalk objects
referenced in callouts.
1995-03-15 Brad Diller <bdiller@docent.com>
* lib/mstdict.c: Added mstMalloc mstGetCData.
1995-03-01 Steve Byrne <sbb@gnu.org>
* lib/mstcomp.c: Fixed makeConstantOOP to handle NIL which is passed
in from empty array literals.
1995-01-21 Steve Byrne <sbb@gnu.org>
* lib/mstlex.c: Some changes for architectural independence (64 bit).
1995-01-20 Steve Byrne <sbb@gnu.org>
* lib/mstdict.h: Added 64 bit support.
* lib/mst.h: More changes for DEC Alpha 64bit architecture.
* lib/mstinterp.c: Adjusted for DEC Alpha 64bit architecture.
* lib/mstinterp.h: Added padding for 64bit architectures.
1995-01-14 Steve Byrne <sbb@gnu.org>
* cxtnsn/dld.c: Changed the name from DLD to USE_DLD to avoid
conflicts with symbols defined by the DLD package in the future.
1995-01-05 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.c: Fixed a bug when copying a fake method context
(ip wasn't being updated, and so was pointing to
dead storage).
1995-01-02 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Fixed CType to use the new type model.
* lib/mstdict.h: Switched to the new CType model.
* lib/mstinterp.c: Removed primitives 147 & 148 -- they were obsolete
anyway, and now with the new CType model they no
longer function.
1994-12-03 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.c: Added code stubs for asCData: Primitives.
1994-11-16 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.c: Finally tracked down some problems with prims 183-185
-- they were using the wrong variable to access the
contents of the cobject, and it was just luck that
it worked on Linux.
1994-10-08 Steve Byrne <sbb@gnu.org>
* lib/mstcomp.c: Fixed some bugs related to getting a GC during
compilation (literals during compilation are part of
the root set, etc.).
* lib/mstinterp.c: Added SystemDictionary>>growTo: And moved a few
builtins around.
* lib/mstsym.c: Fixed the internCountedString bug by deferring OOP
allocation until all instances have ben allocated.
1994-10-02 Steve Byrne <sbb@gnu.org>
* lib/mstoop.c: Made sure to turn off the free bit in moveOOP (no
sense in moving an object that's freed, and moveOOP
will not be called on a truly freed object; this
change "repairs the damage" in cases where there is
an accidental freeing occurring.
* lib/mstsym.c: Fixed a bug in internCountedString that occurs other
places where there is the possibility of doing a
garbage collection just after a newly allocated object
which has not been added to a root-set-reachable
object. The GC sees that there are no references
to the new object, and marks its oop free and does
not copy the just allocated object into the new
current semispace. This problem can occur anywhere
these conditions occur. Given that allocOOP moves the
object to the current space if it's not already there,
for this case to really occur, you have to have done
the allocOOP before you call the second instantiate
or other allocation primitive.
1994-09-20 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.c: Added empty statement to the tail of a case statement.
1994-09-15 Steve Byrne <sbb@gnu.org>
*** Version 1.2.alpha1 released.
1994-09-04 Steve Byrne <sbb@gnu.org>
* lib/mstcomp.c: Fixed some of the printing at the end of
executeStatements to avoid dividing by zero.
* lib/mstdict.c: Switched out last bzero call.
* lib/mst.h: More changes -- removed some old bcopy macro
definitions, and switched more towards the autoconf
based implementation.
1994-09-03 Steve Byrne <sbb@gnu.org>
* lib/cfuncs.c: Created.
* lib/cfuncs.c: This is the first file in the distribution to not
start with "mst". This is the precursor to having
short file names so that primitive operating systems
can deal with an advanced system like Smalltalk :-) :-) :-).
* lib/mstcint.c: Factored out initUserCFuncs to enable easier extension
by developers.
* lib/mstcint.c: Yanked out DLD -- it's now in the parent directory.
* lib/mst.h: Switched double size out, switched to use RETSIGTYPE,
and WORDS_BIGENDIAN.
* lib/mst.h: Switched to having version defines coming from the
config.h file, and added the edit prefix string.
1994-08-31 Steve Byrne <sbb@gnu.org>
* lib/mst.h: Began switching to autoconf based approach.
1994-08-24 Steve Byrne <sbb@gnu.org>
* lib/mst.h: Added symbolic constants for max and min integer
values representable in a Smalltalk Integer object.
* lib/mstinterp.c: Fixed Float>>truncated to do range checking and fail
if converting a number that is outside the range
of integers.
1994-08-21 Steve Byrne <sbb@gnu.org>
* lib/mstcomp.h: Switched to using low bit int marking.
* lib/mstdict.h: Switched to low order bit for int flagging.
* lib/mst.h: Switched to low order bit for int flagging.
1994-07-10 Steve Byrne <sbb@gnu.org>
* lib/mstlex.c: Reinstated the use of changes (it was dyked out)
as an optional mechanism.
1994-07-09 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Fixed findKey to check all elements even when the
dictionary is full. Previously it would check all but
the last one, which caused some bizarre compilation
behavior (the last class declared didn't seem to be
there as far as the compiler was concerned).
1994-06-22 Steve Byrne <sbb@gnu.org>
* lib/mstcint.c: Added support for cObjectPtr type, to allow for
passing CObject parameters by reference. It is up
to the client to ensure that the passed CObject type
corresponds to the desired C datatype.
1994-06-20 Steve Byrne <sbb@gnu.org>
* lib/mstcint.c: Fixed stringInfo to be local to the call stack,
instead of using a static, to allow recursive
invocations.
1994-06-11 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.c: Added new-style CObject accessors functions, currently
in the range 182 -- 189.
* lib/mstsym.c: Added cObjectPtrSymbol for new call by value parameter
passing mode.
* lib/mstsym.h: Added cObjectPtrSymbol.
1994-04-30 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.c: Added CPtr incrBy:
1994-03-19 Steve Byrne <sbb@gnu.org>
* lib/mstcallin.c: Added %t and %T for more direct control over
types. Also, added typeNameToOOP for mapping string
type names to actual CType subclass instances.
1993-10-16 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.h: Changed to have 9 priority levels, as part of the
fix for ProcessorScheduler>>yield.
1993-10-10 Steve Byrne <sbb@gnu.org>
* lib/mstinterp.c: Doing some experimental hacks on the process system
to try to recover from the case where there are no
runnable processes.
* lib/mstinterp.h: Fixed definition of initProcessSystem.
1993-04-04 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Made printAssociationKey more bullet-proof when passed
a non-association.
1992-11-22 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Added isPipe member to FileStream.
* lib/mstinterp.c: Fixed FileStream to have a buffer instance variable,
and added knowledge of whether the file stream was
a regular file or a pipe, so FileStream>>close could
do the right thing.
1992-07-18 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Added byteArrayNew.
* lib/mstdict.c: Added countedStringNew.
1992-07-16 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Added freeCObject.
1992-05-25 Steve Byrne <sbb@gnu.org>
* lib/mstdict.c: Added support for Emacs caching class names.
* lib/mstinterp.c: Made system interruptable when non-interactive
(interrupts work, that is).
1992-02-23 Steve Byrne <sbb@gnu.org>
* lib/mstcint.c: Added support for reading and writing scalar types.
1992-01-01 Steve Byrne <sbb@gnu.org>
* lib/mstcallin.c: Fixed to auto-initialize Smalltalk when the public
routines are invoked.
* lib/mstpub.h: Created.
* lib/mstlib.c: Converted to be callable as a library.
* lib/mstlib.h: Renamed from mstmain.h
* main.c: Created from old mstmain.c (now mstlib.c)
1991-12-31 Steve Byrne <sbb@gnu.org>
* mstcallin.c: Created.
* mstcallin.h: Created.
* mstlex.c: Began adding support for having a changes file and
pointing methods to that instead of the actual source
file (which can get out of sync, and cause recompiles
to lose).
* mstoop.c: Added registered oops to root set.
* mstoop.c: OopTable now allocated from memory instead of being
stored as part of the executable.
1991-12-29 Steve Byrne <sbb@gnu.org>
* mstlex.c: Added support for readline's conditional .inputrc
definitions, keyed off of "Smalltalk".
1991-12-22 P. Lecoanet
* mstbyte.c: Fixed byteCodeLength failing to return 0
1991-12-08 Steve Byrne <sbb@gnu.org>
* mstoop.c: Changed oopValid to only check the FREE bit, instead
of worrying about the even odd flags, which may not
be valid.
1991-11-29 Steve Byrne <sbb@gnu.org>
* mstlex.c: Added fileNameOOP to hold full path name for files,
so that all methods share the same file name string.
Also, adjusted getCurFileName to return the full
path name.
1991-11-28 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added SystemDictionary byteCodeCounter primitive.
* mstsysdep.c: Added getCurDirName() for allowing compiler to record
the full file name that is used.
1991-11-24 Steve Byrne <sbb@gnu.org>
* mstinterp.h: Context size increased to 64 (still not enough),
to prevent inadvertent stomping of memory past the
end of the stack.
1991-11-09 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Fixed new: To indicate failure when failure occurs.
1991-11-02 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Altered the logic in the primitive replace from code
-- I don't think it was really wrong, but it wasn't
as clear as it might have been.
* mstinterp.c: Fixed instVarAt: To obey real stack conventions
(was pushing instead of setting the stack top).
1991-10-20 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added support for user level control of memory space
growth rate parameters.
* mstoop.c: Support for growing now fully operational (and no,
it hasn't taken me over a month to track down the
problems; free time has been nil). Also removed more
vestiges of the incremental GC.
1991-09-15 Steve Byrne <sbb@gnu.org>
* mstdict.c: Fixed dictionaryAssociationAt: To not loop when the
dictionary is full. Thanks to Michael Richardson
for the fix!
* mstinterp.c: Added quitPrimitive: To allow for non-zero exit
statuses.
* mstoop.c: Added support for loading larger semispaces from
saved images.
1991-09-14 Steve Byrne <sbb@gnu.org>
* mstdict.c: Switched to global version string.
* mst.h: Added edit version support.
* mstinterp.h: Increased number of literals to 256, number of
temporaries to 64, and number of allowable primitives
to 1024 (overkill?)
* mstmain.c: Added edit version support.
* mstmain.h: Added edit version support.
* mstsave.c: Added support for edit version.
1991-09-12 Steve Byrne <sbb@gnu.org>
* mstmain.c: Fixed -I argument parsing code to properly gobble up
the file name.
1991-08-04 Steve Byrne <sbb@gnu.org>
* mstoop.c: Removed more vestiges of the incremental GC, began
switchover to automatically growing semi-spaces.
1991-07-19 Steve Byrne <sbb@gnu.org>
* mstcint.c: Started adding support for the DLD package.
* mstmain.c: Started adding conditional support for the DLD
package.
1991-07-06 Steve Byrne <sbb@gnu.org>
* mstdict.c: Added newString (create uninitialized string of a
given length).
1991-07-05 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added primitive 248: `FileStream fileInLine: LineNum
fileName: aString at: charPosInt'; this helps improve
things for the emacs interface by making recorded
information accurate, and making error locations also
be accurate.
* mstinterp.c: Added support for primitive 105, which is the basic
fast support for doing replacement within strings.
* mstlex.c: Added setStreamInfo so that stuff filed in from Emacs
can have more accurate information such as the line
number in the buffer instead of the line number in
the temporary file.
1991-07-02 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Fixed handling of jump true and jump false opcodes:
they now issue an error if invoked with non trueOOP
or falseOOP.
1991-04-19 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Added skipCompilation boolean, for conditional
compilation.
* mstinterp.c: Added primitive to support conditional compilation.
1991-04-13 Steve Byrne <sbb@gnu.org>
* mstdict.c: Added Features global variable. This allows for
conditional execution based on operating system or
machine architecture, and at some point, conditional
compilation.
1991-03-25 Steve Byrne <sbb@gnu.org>
* mstlex.c: Added -> operator.
1991-03-24 Steve Byrne <sbb@gnu.org>
* mstdict.c: Float's class definition said that it was not
pointers, not words, and not indexable. When new
instances were created, they were 2 BYTES large,
instead of 2 words. Changed to have the words flag
* mstlex.c: Fixed lexing of foo:= to be seen as foo :=.
* mstmain.c: Added loading of changes.st
1991-03-23 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Fixed a bug with process switching: You can't depend
on objects gotten with oopToObj after a prepareToStore
into the parent object: it may have moved, and you're
storing into dead storage.
* mstinterp.c: Improved speed another 50% by "inlining" many of the
special selectors that the compiler uses.
1991-03-17 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added support for C-style interrupts (signals) and
timed interrupts to help with time slicing.
1991-02-16 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Recursive calls to equalConstant had the arguments
reversed.
1991-01-27 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Modified the definition of the inline-controlling
macro so that inlining is always selected when compiling for
debugging.
* mstoop.h: Force ACCESSOR_DEBUGGING off when optimizing.
1991-01-22 Steve Byrne <sbb@gnu.org>
* mstcint.c: Added putenv().
1991-01-05 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Converted executePrimitiveOperation to do returns as
soon as possible, to not use the failed variable,
and to not do double switching on int and float
operations. This simple change increased performance
from ~130K bytecodes/sec (SS1+ optim) to > 200k
bytecodes/sec (simple code, builtins and primitives
only, no real method invocation).
* mstsysdep.c: Added getMilliTime().
1991-01-01 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Switched to not creating MethodContexts always...just
use a cache of pre-made fake method contexts and only
create real method contexts when someone will get a
reference to one of the method contexts.
1990-11-26 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Fixed whileTrue: and whileFalse: To loop only if the
value returned by the receiver is the expected one,
instead of if it's the boolean not of the expected
value.
1990-11-24 Steve Byrne <sbb@gnu.org>
* mstmain.c: Fixed to set quietExecution using || instead of |
(HP doesn't like it otherwise).
1990-11-17 Steve Byrne <sbb@gnu.org>
* mstcint.c: Added support for UnixStream primitives.
* mstmain.c: Added UnixStream and IOCtl to kernel files.
1990-11-10 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Added support for retaining the latest compiled method
so the interpreter can return it from the compile:
primitive.
* mstcomp.h: Added latestCompiledMethod, so that some of the
compile methods can get the method that they just
compiled and set its category.
1990-11-06 Steve Byrne <sbb@gnu.org>
* mstmain.c: Added the per-user pre-image file...this may turn
into a kind of site defaults thing, but this is what
I've wanted for a while.
1990-10-13 Steve Byrne <sbb@gnu.org>
* mstoop.c: Converted to use bit masks instead of bit fields,
hoping to improve performance somewhat.
1990-10-02 Steve Byrne <sbb@gnu.org>
* mstmain.c: Fixed okToLoadBinary so that it returns false if
there is a Smalltalk file found locally, but there
is no image file locally (the stix problem).
* mstmain.h: FindImageFile was changed to return Boolean.
1990-09-21 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Fixed so that a block that contains no statements
properly returns nil.
1990-08-21 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added support for subtypes of CObject to provide
direct access to C data.
1990-08-11 Steve Byrne <sbb@gnu.org>
* mstcint.c: Added knowledge of byteArrayOut type.
1990-08-03 Steve Byrne <sbb@gnu.org>
* mstdict.c: Added allocCObject.
* mstinterp.c: Added support for primitive C object allocation
routine.
1990-05-22 Steve Byrne <sbb@gnu.org>
*** Version 1.1.1 released (I think. I added this on May 10th, 1999... --- pb)
* mstmain.c: Improved on Doug's mapping with macro to improve
readability.
* mstmain.c: Short name stuff added, thanks to Doug McCallum.
1990-05-20 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Improved error handling...compiler errors set a flag,
and execution does not occur if the expression to be
executed has compilation errors.
* mstinterp.c: Improved error handling when error: Or
doesNotUnderstand: occurs. Also, added ^C handling
to abort execution.
1990-05-17 Steve Byrne <sbb@gnu.org>
* mstsysdep.c: Added enableInterrupts and disableInterrupts.
System V.3 code signal support from Doug McCallum
(thanks, Doug!).
1990-05-16 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Added usage of emacsProcess.
* mstsym.c: Changed usages of "entry" to "ent" to prevent
collisions with C compilers which have this identifier
as a reserved word.
* mstsysdep.c: Created.
* mstsysdep.h: Created.
1990-04-24 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Improved error handling for fopen/popen primitives.
* mstlex.c: Error checking for integers too large.
1990-04-21 Steve Byrne <sbb@gnu.org>
* mstdict.c: Added toByteArray.
* mstsym.c: Addded byteArraySymbol.
1990-04-20 Steve Byrne <sbb@gnu.org>
* mstbyte.c: Added initByteCodes to fix a robustness issue with
the compiler.
* mstcomp.c: Fixed compiler to reset the byte code system before
using it. The problem was if an error occurred, the
old byte code stream was still in use, and further
compilations were losing in a big way.
* mstinterp.c: Make fileIn not close the stream that it's reading
from; this is taken care of by the caller, and causes
very strange behavior if we try to close it twice!
* mstlex.c: Added the closeIt argument to popStream so that the
closing behavior could be separated from the popping
behavior (in particular, for fileIn).
1990-04-17 Steve Byrne <sbb@gnu.org>
* mstsave.c: Fixing binary save to save only to the maximum used
OOP slot, instead of saving the entire OOP table. This
should improve load time and decrease disk storage
requirements.
1990-04-08 Steve Byrne <sbb@gnu.org>
* mstoop.c: Changed oopFree to oopValid to fix the bug with
someInstance losing after GC's due to objects that
have non-free OOP table entries, but point to freed
objects.
* mstoop.h: Changed oopFree to oopValid to better reflect the
semantics.
1990-04-07 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added declaration tracing primitive.
* mstinterp.c: Fixed fileIn: To check for existence of the file
before trying to open it. Returns failure if the
file cannot be accessed.
* mstlex.c: Character lexing routines (such as nextChar) now
return ints to get around problems on implementations
that don't sign extend characters by default.
* mstoop.c: Increased mem space size to 4M. This can be decreased
as necessary.
1990-03-25 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Changed cache hit ratio reporting to check for divide
by zero, and to cast the byte counter to double
(it was casting to float and relying on promotion).
* mstinterp.c: Minor change for AtariSt: Decrease size of ASYNC
queue size.
* mstmain.c: ProcessorScheduler is too long of a name for the
Atari; there are uniqueness problems. Shortened to
ProcScheduler. Also, fixed quietExecution; wasn't
set when reading from the terminal; should have been
set to false (since the loading of the quiet things
is over).
1990-02-24 Steve Byrne <sbb@gnu.org>
* mstoop.c: Update to change log: There are no longer any
explicitly allocated OOPs due to the new symbol table
structure; the September 20th, 1989 comment below is now a noop.
1990-02-15 Steve Byrne <sbb@gnu.org>
* mstlex.c: Added support for := as alternative assignment
operator.
1990-02-11 Steve Byrne <sbb@gnu.org>
* mstsave.c: Changed the header to record the size of the oop
table, since trying to load back into a system with
a different sized oop table loses bigtime.
1990-01-13 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Added support for "thisContext" as a compiler built-in
variable.
* mstsym.c: Added thisContextSymbol.
* mstsym.h: Added thisContextSymbol.
1990-01-07 Steve Byrne <sbb@gnu.org>
* mstdict.c: Added more commentary to classes, added new global
Smalltalk variable: Bigendian, which allows code to
be conditional based on the architecture type.
1989-12-28 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Compiled methods now record their exact number of
byte codes. Previously, if the byte codes didn't
exactly fill to a word-boundary, there was no way
to distinguish that case. Now, with the advent of
dumping byte codes from within Smalltalk, this has
become a necessity.
1989-12-27 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Realloc literal vec wasn't reallocing in units of
sizeof(OOP), so after a while, the literal vector
wasn't big enough. Typically most methods don't have
a lot of literals, so this was not a problem.
1989-12-19 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added suport for primitive filein (for use with
autoload -- "12 gauge autoloader", A. Swartzenegger,
The Terminator)
* mstsym.c: Rebuilt symbol table. Used to use the main OOP table
as a symbol table, due to issues involving initial
bootstrapping of the system. Now using open hash
table built of arrays and linked lists, so that no
special precautions need be taken by the GC system
or the image save/restore facility.
1989-10-15 Steve Byrne <sbb@gnu.org>
* mstpaths.h: Created.
* mstmain.c: Added support for creating an "installed" version
of Smalltalk. There is now an include file that the
installer can customize for his site that provides
default locations to be checked for the kernel .st
files and the binary image file, but these can be
overidden in two ways: a) by a file of the same name
in the user's current directory, or b) environment
variables SMALLTALK_KERNEL and SMALLTALK_IMAGE.
1989-10-02 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Fixed a bug with compilation of cascaded messages. see
HACK ALERT in the file.
1989-09-23 Steve Byrne <sbb@gnu.org>
* mst.h: Modifications to support operation on a DECstation 3100.
1989-09-21 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Made compilation of methods from strings record the
source string.
1989-09-20 Steve Byrne <sbb@gnu.org>
* mstoop.c: Added oop table slot GC'ing. I'm not dealing with oop
table slots that are explictly allocated; I believe
that most OOP slots are not explicitly chosen and so
not running the incremental reclaimer for that case
shouldn't hurt us.
1989-09-13 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Various changes for garbage collector.
* mst.h: Sigh!!! modified pushOOP and setStackTop to move
the objects that they refer to to toSpace...good
bye performance!
1989-09-12 Steve Byrne <sbb@gnu.org>
* mstoop.c: Much of the garbage collector's operation depends on
the fact that only 1 flip will occur between any two
operations (such as a compilation, or a byte-code).
The code would be much more complex if this were not
the case, and I'm not sure that things would even be
possible if this were not the case. Anyway, there
is code in this routine to check for that eventuality
and to halt the system if it occurs.
1989-09-07 Steve Byrne <sbb@gnu.org>
* mstdict.c: Started adding garbage collection support.
1989-09-06 Steve Byrne <sbb@gnu.org>
* mstoop.c: Started implementing the garbage collector (YAY!!!)
1989-09-03 Steve Byrne <sbb@gnu.org>
* mstlex.c: Added getCurFileName
* mstlex.h: Added getCurFileName
1989-09-02 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Began adding support for the method descriptor
instance variable.
* mstcomp.h: Moved common compiled method structure definition
here, so that the interpeter could share.
* mstcomp.h: Added descriptor support
* mstinterp.c: Process primitives in and working...starting to switch
to compiled methods with descriptor instance variable
in addition to header.
1989-08-30 Steve Byrne <sbb@gnu.org>
* mstlex.c: Fixed a bug in parseIdent which was parsing foo:2 note
no space) not as foo: and 2, but as a mixed up token.
1989-08-09 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Conversion completed. Performance now 40k
bytecodes/sec; was 43k bytecodes/sec.
1989-07-25 Steve Byrne <sbb@gnu.org>
* mstsym.c: Changed undeclareName to take a parameter that
controls whether the frame index is decremented
or not. It appears that each block gets its own,
non-shared temporaries/arguments, so that if the
block is used in a process, other blocks won't have
strange things happening to their arguments.
1989-07-18 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Began conversion from stack based method contexts and
blocks to more traditional method contexts and blocks.
This change was done 1) to make call in from C easier,
2) to make processs possible (they could have been
implemented using stack based contexts, but somewhat
space-wastefully), and 3) to conform with the more
traditional definition of method contexts and block
contexts.
1989-07-08 Steve Byrne <sbb@gnu.org>
* mstlex.c: Added prompt when input is a terminal. This should
help Emacs's shell mode determine what has been typed
as input to the system.
1989-07-04 Steve Byrne <sbb@gnu.org>
* mstmain.c: Added support for user init files (in ~/.stinit),
which are invoked on every startup. Also, added
support for initBlocks, which are blocks that are
stored in the system and invoked on each startup
(these could be used, for example, as an interim
measure for declaring C callouts until the callout
descriptor is converted to a Smalltalk object).
1989-06-04 Steve Byrne <sbb@gnu.org>
* mstcint.c: Added Smalltalk data conversion type.
1989-05-29 Steve Byrne <sbb@gnu.org>
* mstcint.c: Created.
* mstcint.h: Created.
* mstdict.c: Added the memory classes. Added the FileStream about
a week ago.
1989-05-26 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Added method cache! Why didn't I spend the 1/2
hour sooner?
1989-05-14 Steve Byrne <sbb@gnu.org>
* mstlex.h: Created.
1989-04-29 Steve Byrne <sbb@gnu.org>
* mstdict.c: Author changed from single to married.
1989-04-05 Steve Byrne <sbb@gnu.org>
* mstdict.c: Restructured Class and Metaclass creation. Is now
table driven, and metaclasses are created containing
the proper information.
* mstsave.c: Modified to reflect change in classes: Now their name
is a Smalltalk string; before, it was a C string that
had to be saved specially.
1989-03-29 Steve Byrne <sbb@gnu.org>
* mstdict.c: Removed MethodDictionary as a separate type; it is
an IdentityDictionary.
1989-03-11 Steve Byrne <sbb@gnu.org>
* mstdict.c: Smalltalk is now an instance of SystemDictionary.
1989-03-10 Steve Byrne <sbb@gnu.org>
* mstmain.c: Added support for automatically loading image file
if it's newer than and of the system source files.
1989-03-04 Steve Byrne <sbb@gnu.org>
* mstmain.h: Created.
* mstsave.c: Created.
* mstsave.h: Created.
1989-01-24 Steve Byrne <sbb@gnu.org>
* mstlex.c: Added 2 chars of push back, because 3. needs to look
ahead one more character to see if its 3.DIGIT or
3. next statement.
1989-01-13 Steve Byrne <sbb@gnu.org>
* mstdict.c: Created.
* mstdict.h: Created.
* mstoop.c: Created.
* mstoop.h: Created.
1989-01-07 Steve Byrne <sbb@gnu.org>
* mstinterp.c: Created.
* mstinterp.h: Created.
1989-01-05 Steve Byrne <sbb@gnu.org>
* mstsym.c: Created.
1989-01-02 Steve Byrne <sbb@gnu.org>
* mstbyte.h: Created.
1989-01-01 Steve Byrne <sbb@gnu.org>
* mstcomp.c: Created.
* mstcomp.h: Created.
* mstsym.h: Created.
1988-12-30 Steve Byrne <sbb@gnu.org>
* msttree.c: Created.
* msttree.h: Created.
1988-12-29 Steve Byrne <sbb@gnu.org>
* mst.h: Created.
1988-12-27 Steve Byrne <sbb@gnu.org>
* mstbyte.c: Created.
* mstid.c: Created.
* mstid.h: Created.
* mstlex.c: Created.
* mstmain.c: Created.
* mststr.c: Created.
* mststr.h: Created.
|