Commit Graph

1555 Commits (c4114f44190aab92a7e3d0304fbe04589270bea9)

Author SHA1 Message Date
Slava e2c65cbc2d FreeBSD/x86 support 2007-09-21 23:44:13 -04:00
Slava Pestov 7ff85dd33e Clean up x86 support code 2007-09-21 22:56:01 -04:00
Slava Pestov 1ba96d255b Tweak asm.h for Mac Intel 2007-09-21 16:55:55 -04:00
Slava d1b70d8b13 Mac OS X/x86 fixes 2007-09-21 16:43:55 -04:00
Slava 8c022cced5 Updates for Intel Mac 2007-09-20 19:17:17 -04:00
Slava Pestov a96457cecc Initial import 2007-09-20 18:09:08 -04:00
Doug Coleman ea94662abd NetBSD x86/64 fixes 2007-04-14 05:49:09 -05:00
Slava Pestov e1ad21a439 Working on shapes 2008-03-26 03:57:48 -05:00
Doug Coleman 9c745c44d3 add set-priority and get-priority
add clear_err_no and check-errno for dealing with get-priority
2008-03-21 14:53:11 -05:00
sheeple d1e72fd03b make freebsd64 compile 2008-03-20 23:53:05 -05:00
Doug Coleman 67c9e2f631 make openbsd64 bootstrap
fix target for openbsd64
2008-03-16 15:17:11 -05:00
Doug Coleman 2f93c77e7c add -lz 2008-03-20 15:35:35 -05:00
Doug Coleman bdda6fc3cb make openbsd compile with NO_UI=1 2008-03-20 12:10:43 -05:00
Slava Pestov 0c490161b4 Fix exists? 2008-03-20 00:39:32 -05:00
Slava Pestov aec6d6f5c8 Replace (stat) with (exists?) 2008-03-19 23:29:19 -05:00
Slava Pestov f31c521c47 Assorted bug fixes 2008-03-18 17:46:25 -05:00
Slava Pestov 20ed8ab9a2 Fix code heap compaction bug 2008-03-16 00:17:05 -05:00
Slava Pestov 05b02f3c38 Changing launcher to use new_slots 2008-03-06 20:44:52 -06:00
Slava Pestov 549a7538c7 Clean up some of Dan's code after merge 2008-03-06 15:58:05 -06:00
Slava Pestov 9d05d81491 Fix deploy size regression 2008-02-28 01:22:53 -06:00
Slava Pestov fef5ebec01 io.files overhaul 2008-02-27 14:59:15 -06:00
Slava Pestov 4ee8a0cfa6 Better code heap 2008-02-25 20:09:52 -06:00
Eduardo Cavazos 4b92faed90 Change 'os-windows-nt.h' to reflect rename to 'factor.dll' 2008-02-25 13:10:35 -06:00
Eduardo Cavazos b68c60488a Dll on winnt is now 'factor.dll' instead of 'factor-nt.dll' to be
consistent with the binary name.
2008-02-25 13:05:11 -06:00
Eduardo Cavazos 308a5db996 Binary on winnt is now 'factor.exe' instead of 'factor-nt.exe' 2008-02-25 12:42:52 -06:00
Slava Pestov 2535436f19 Friedlier fep sequence printing 2008-02-21 17:07:05 -06:00
Slava Pestov d657821f3e Tested and documented all new concurrency features 2008-02-18 16:20:18 -06:00
Slava Pestov 2c6afdfee6 Working on new threads 2008-02-18 05:07:40 -06:00
Slava Pestov de8b804abe Fix method redefinition bug 2008-02-17 18:38:29 -06:00
Slava Pestov 0b19589630 linkage errors don't thwart compilation anymore 2008-02-16 00:54:54 -06:00
Slava Pestov f944f2b20c Add experimental disassembler 2008-02-14 17:56:47 -06:00
Slava Pestov 98d8621ac1 First class compose, curry is now a tuple class 2008-02-11 13:50:29 -06:00
Slava Pestov 8672ede540 Fix compilation of VM on Mac OS X 2008-02-11 00:41:58 -06:00
Slava Pestov 125e949200 Add new "refs" command to FEP, finds references to an object 2008-02-10 01:40:51 -06:00
Slava Pestov 7fbbe94d80 FEP work in progress 2008-02-09 02:19:26 -06:00
Doug Coleman 8d3ac25553 Merge git://factorcode.org/git/factor
Conflicts:

	Makefile
2008-02-05 22:48:44 -06:00
Slava Pestov 20e4fcecda Make OS name more consistent for extra/builder 2008-02-05 18:48:38 -06:00
Slava Pestov ba1a958a32 Move cd and cwd primitives to native I/O, fix Windows normalize-pathname 2008-02-05 13:11:36 -06:00
Doug Coleman 480e21bc3c Merge branch 'master' of git://factorcode.org/git/factor 2008-02-04 16:41:17 -06:00
Slava Pestov bc2ce8a77b Space one byte per string 2008-02-04 14:05:31 -06:00
Doug Coleman fcbf7b4c4c Merge git://factorcode.org/git/erg 2008-02-04 13:34:38 -06:00
Slava Pestov 0311c0a842 Remove broken optimization 2008-02-04 13:07:34 -06:00
Slava Pestov 81098989ec Merge branch 'master' of git://factorcode.org/git/factor 2008-02-04 12:59:21 -06:00
Slava Pestov a75afb18d7 Fix GCC error 2008-02-04 12:58:38 -06:00
Doug Coleman bc3bf6b2b4 make factor compile on win64 2008-02-04 11:45:53 -06:00
Slava Pestov e7722c02b7 Add unit test for float alignment 2008-02-03 17:28:57 -06:00
Slava Pestov 62bbb0597e Fix dodgy memory management 2008-02-03 14:51:35 -06:00
sheeple ff46bfaa96 Linux inotify support work in progress 2008-02-02 11:51:16 -06:00
sheeple b22a40f906 inotify bindings 2008-02-02 07:02:32 -06:00
Slava Pestov 9f1bcc5d22 Fix resize-string 2008-02-01 18:36:13 -06:00
Slava Pestov 6c3d2775a9 Merge branch 'master' of git://factorcode.org/git/factor 2008-02-01 17:18:49 -06:00
Slava Pestov 3917a9472a Implement default_vm_path() on netbsd 2008-02-01 17:14:10 -06:00
Slava Pestov cef80543ad Fix set-string-nth GC issue 2008-02-01 16:26:11 -06:00
Slava Pestov d9f7acae0f VM changes for record1 strings 2008-01-31 23:03:10 -06:00
Slava Pestov 6530057512 Starting work on record1 strings 2008-01-31 20:11:46 -06:00
Daniel Neri 118583024e Tweak LIBS and LIBPATH for NetBSD 2008-01-30 12:10:42 +01:00
Daniel Neri ac2fb043cf Add NetBSD support 2008-01-30 10:57:38 +00:00
Slava Pestov fcf5801899 Data type cleanups 2008-01-29 23:13:47 -06:00
Slava Pestov 0cd2f857fe bit-vectors byte-vectors float-vectors 2008-01-29 15:04:26 -06:00
Slava Pestov 03db080df7 Working on new resizables 2008-01-28 18:15:21 -06:00
Slava Pestov 578ee72509 Fix conflict 2008-01-27 23:17:48 -06:00
Slava Pestov a09e216582 Replace memory>string and string>memory with four primitives and update io.windows.nt.monitor 2008-01-26 23:38:30 -04:00
Joe Groff e396023d51 Use [NSString UTF8String] instead of [NSString cString] in os-macosx.m to suppress deprecation warnings 2008-01-26 17:32:12 -08:00
Slava Pestov 309a1c179c Add stderr stream; more Unix I/O work 2008-01-18 19:43:14 -05:00
Slava Pestov c6bc074472 Simplify code heap layout 2008-01-16 15:45:04 -05:00
Slava 6c305c0532 Merge branch 'master' of git://factorcode.org/git/factor 2008-01-16 01:16:57 -05:00
Slava 112c37b990 Fix Linux and FreeBSD signal handling on x86 2008-01-16 01:16:53 -05:00
Slava Pestov 952c559b52 Faster compilation of dispatch primitive 2008-01-13 17:07:59 -05:00
Slava Pestov a2a43e9980 New fixnum-shift primitive 2008-01-12 21:13:40 -05:00
Slava Pestov 028e0075d8 PowerPC support work in progress 2008-01-09 01:33:40 -05:00
Slava Pestov ac5f758bce PowerPC support work in progress 2008-01-08 17:04:45 -04:00
Slava Pestov 928c68b506 JIT improvements; simpler 'current XT' relocation logic 2008-01-07 17:14:09 -04:00
Slava Pestov 96f4f3ff40 Fix profiler 2008-01-02 23:07:25 -04:00
Slava Pestov b7327b6228 Redo the profiler 2008-01-02 20:36:36 -04:00
Slava Pestov 6922bded81 Speed up compile-call 2007-12-30 21:34:44 -05:00
Slava Pestov af41a0efe7 Re-implement callstack>array 2007-12-30 16:54:01 -05:00
Slava Pestov 5378c05508 Fix bootstrap 2007-12-29 22:44:25 -05:00
Slava Pestov 2b37b76d65 Working on profiler 2007-12-29 12:44:01 -05:00
Slava Pestov c5d91d12df Fix implementation of deferred words 2007-12-26 20:40:46 -05:00
Slava Pestov 93e1bdfcd7 Simplify JIT, fix tuples unit tests 2007-12-26 20:02:41 -05:00
Slava Pestov 1b9e04fdc5 Deferred words are now compound words 2007-12-26 17:28:34 -05:00
Slava Pestov f91ec96425 Fix code heap compaction and clean up VM a bit 2007-12-26 17:14:33 -05:00
Slava Pestov 4bb2a43a10 Early binding JIT work in progress 2007-12-26 02:33:49 -05:00
Slava Pestov c09af2f2c6 Improved JIT compiler design; better REGISTER_ROOT/UNREGISTER_ROOT stuff 2007-12-26 01:45:16 -05:00
Slava Pestov 3d784c7927 Simplify quotation calling convention: no need to pass XT 2007-12-25 23:40:36 -05:00
Slava Pestov 423c22e4ef Symbols are compound defs now; SYMBOL: foo == : foo \ foo ; 2007-12-25 22:55:17 -05:00
Slava Pestov 07a4022d62 Parser, definitions, source-files refactoring work in progress 2007-12-21 21:18:24 -05:00
Slava Pestov 308cf5aef7 Listener auto-compiles; more smart recompile work in progress 2007-12-17 16:29:54 -05:00
Slava Pestov 3c5b2073ef Fix save-image-and-exit, clean up compiler a bit 2007-12-16 18:42:56 -05:00
Slava Pestov c9646d20c5 Working on smarter recompilation 2007-12-16 15:17:28 -05:00
slava 1f8fa2c531 Fixes 2006-11-14 21:59:20 +00:00
slava 761dab4188 Fix sig11 when dividing large bignums 2006-11-09 23:10:02 +00:00
slava 7ee2128ff0 numbers-game has MAIN:, image loading cleanup 2006-11-09 03:13:33 +00:00
slava 75ee6ac549 PPC inline allocators almost working 2006-11-08 23:21:58 +00:00
slava d54e3baac8 First cut at bignum inline allocators 2006-11-07 05:22:34 +00:00
slava 7642d69352 Fix typo in fixnum* primitive 2006-11-07 23:04:16 +00:00
slava 4ee7c02798 Typo: box_float instead of box_double in floating point primitives 2006-11-04 22:04:22 +00:00
slava 48b288ceb9 Fix code heap saving if the last block in the heap is allocated 2006-11-04 21:51:18 +00:00
erg 6d3996ccfb fix win32 runtime compile errors 2006-11-04 16:52:57 +00:00
slava 861a6d32cf alien-invoke no longer generates calls to consing unbox_* functions -- instead we just unbox the parameter list first, in factor code 2006-11-03 21:39:37 +00:00
slava ab68570cc1 Fix callstack overflow handling 2006-11-03 21:14:53 +00:00
slava 4a8d65ccce Refactored the C type system in the alien interface and fixed some bugs 2006-11-03 08:54:30 +00:00
slava 726710a949 alien>char/u16-string primitives now work correctly if the input is a byte array 2006-11-03 05:37:51 +00:00
slava fada38fe0a Cleaning up windows code 2006-11-03 02:28:44 +00:00
slava 56f8f84751 More allot_* cleanups 2006-11-02 23:29:11 +00:00
slava 372872e41d Simplify implementation of /f word 2006-11-02 08:12:23 +00:00
slava a712af05a4 Update bignum code for allot_* changes 2006-11-02 08:00:02 +00:00
slava bf453cc1e2 Fix compile error 2006-11-01 19:30:33 +00:00
slava b571e6fb0d Remove unused environment slot and simply room primitive 2006-11-01 19:29:58 +00:00
slava 0e2871679a Don't use retain stack for extra roots 2006-11-01 05:20:49 +00:00
slava 3cdac5982d Big VM type renaming; add secure GC which wipes the heap after every collection (but really this is only for debugging local variable roots) 2006-11-01 04:20:34 +00:00
slava 780dfcc5d5 Fix unit test failures caused by stricter numeric coercion rules 2006-11-01 03:54:35 +00:00
slava 40ff6c6d3b >fixnum >bignum >float primitives split up into smaller sub-primitives and are now generic words in the library 2006-11-01 01:29:11 +00:00
slava 14a605498d More GC work 2006-10-31 21:45:12 +00:00
slava b116ab3c25 More allot_* work 2006-10-31 20:48:34 +00:00
slava 65128e6af3 Remove unused function from runtime 2006-10-31 06:04:02 +00:00
slava f485a7ecd4 Fix two minor issues found during review of allot_* patch 2006-10-31 06:00:43 +00:00
slava 415fe0a4a8 allot_* overhaul 2006-10-31 05:52:02 +00:00
slava 7e094f890c string>float primitive should not throw an error on invalid input (non-ASCII strings) 2006-10-30 02:34:10 +00:00
slava 5bb98d28d9 Add some failing unit tests 2006-10-30 02:21:48 +00:00
slava 5ca46b1a30 Slightly more compact relocation info 2006-10-25 00:26:32 +00:00
slava a74b452994 Config.linux.amd64 fix 2006-10-22 21:45:36 +00:00
slava 97f22b07ea Compile fix for 64-bit distros which put 64-bit libraries in lib64 2006-10-21 20:01:02 +00:00
erg 3b88353ff4 fix win32 directory primitive 2006-10-20 01:18:41 +00:00
erg 72ba2c98c5 better FFI error reporting 2006-10-18 21:16:37 +00:00
slava f7d4815d2e Better word hashing, working on class vtable dispatch 2006-10-17 06:44:05 +00:00
slava b5039442ab Automatically invoke code GC 2006-10-16 21:43:11 +00:00
slava 1398494f1d Remove integer-slot and set-integer-slot primitives, add word-xt primitive 2006-10-15 23:01:07 +00:00
slava 12d596d1e6 Windows SEH fix 2006-10-15 04:10:54 +00:00
slava c55e88356e Officially support running the X11 UI on Mac OS X 2006-10-14 04:48:59 +00:00
slava 341caf245c Interface builder menu bar not works 2006-10-14 02:49:14 +00:00
slava 99e4607178 Intel Mac exception handler fix 2006-10-02 05:11:56 +00:00
slava d505cf6b50 Saving the image performs a code GC 2006-09-29 20:27:03 +00:00
slava af9fd751a9 Debugging the code GC 2006-09-28 04:04:34 +00:00
slava 25e8988b86 Code heap debugging in FEP 2006-09-28 00:53:54 +00:00
slava fc0cea8e42 Replace compiled? primitive with compiled? word slot 2006-09-27 07:11:18 +00:00
slava 155cb7f3be Unmark marked blocks after code GC 2006-09-26 23:04:30 +00:00
slava 97a5436c61 New code-gc primitive 2006-09-26 23:00:41 +00:00
slava 39d363f265 Runtime code cleanups, implemented mark and sweep code GC 2006-09-26 22:44:18 +00:00
slava f55cfd918a Image save doesn't write the large free block at the end 2006-09-26 21:22:04 +00:00
slava 003d7cc91b Fix O(n^2) icache flush 2006-09-26 20:42:29 +00:00
slava 2196f3721b Fix room. 2006-09-26 05:08:05 +00:00
slava 7fbb1ae671 Code heap manager fixes 2006-09-25 06:47:56 +00:00
slava 4ede62e67b Starting mark sweep collector for code 2006-09-25 02:29:52 +00:00
slava 4b0d95d9e6 VM code cleanups 2006-09-24 19:28:44 +00:00
slava 459680c543 Increase default heap size 2006-09-04 01:15:25 +00:00
slava ccc0439b08 Small fixes, including x86 compiler failure 2006-09-02 19:57:29 +00:00
slava 1d7c563676 Fix 'bad XT' error 2006-09-02 05:58:23 +00:00
slava 4ba810d7f7 PowerPC icache bug 2006-09-11 04:12:42 +00:00
slava d48471c4bc alien-indirect now works on PowerPC; changed callback tests to use it and removed some test functions from runtime 2006-09-09 05:04:55 +00:00
slava 5a75f752b5 Non-local exit hook to make the stepper more reliable when continuations are flying around 2006-09-07 21:14:35 +00:00
slava dc8f6d703a Handle code heap exhaustion with a critical error, instead of sig11 + corrupt image 2006-09-05 23:10:42 +00:00
slava 6076d3f0e0 .app doesn't store resources anymore 2006-08-28 08:03:09 +00:00
slava 76e965d493 Move libm primitives to alien calls in library 2006-08-26 07:20:37 +00:00
slava d8567020fb loading the image should not exhaust nursery space 2006-08-24 02:56:39 +00:00
slava df5f7cc4df Small fixes 2006-07-26 04:38:19 +00:00
slava e3da107934 Runtime cleanup 2006-07-24 05:22:11 +00:00
slava 83e07c3093 Slight continuations cleanup 2006-07-24 04:41:27 +00:00
slava 53d61c188d Foo 2006-08-15 08:58:18 +00:00
slava f15e657631 Stack effect declaration fixes 2006-08-15 08:57:12 +00:00
slava fbddcdcca0 Mac OS X Intel compile fixes 2006-08-12 21:34:46 +00:00
slava 61e1dff787 Automatically recompile words when files are loaded 2006-08-11 20:55:43 +00:00
slava 2b2b4a9f22 Fix label handling in compiler 2006-08-10 04:14:43 +00:00
slava 40fdffe7fb Fix another typo 2006-08-09 22:50:36 +00:00
slava ed3424a0a1 Fix os-macosx-x86.h 2006-08-09 22:48:36 +00:00
slava 40e3a2a063 finalize-compile now takes an alist of xts; fix ppc %dispatch 2006-08-09 22:09:10 +00:00
slava 525687bc2b More compiler work; literal table fixes, relocation fix 2006-08-09 21:19:33 +00:00
slava 3b2d14c4c0 GC now scans literal data area 2006-08-09 20:15:27 +00:00
slava 25fc2f8af5 More generator/relocator fixes 2006-08-09 07:25:15 +00:00
slava 00d970cf15 Compiled code labels are now first-class 2006-08-09 06:12:01 +00:00
slava 251f12448f Big redesign of the compiler/runtime interface 2006-08-08 05:38:32 +00:00
slava b0b6da4f86 Minor tweaks 2006-08-07 00:31:52 +00:00
slava e12fba4b0e more relible mach exception code 2006-08-05 22:10:01 +00:00
erg de985de385 win32 seh paranoia unnecessary 2006-08-03 22:34:42 +00:00
erg 0a8ac653de win32 paranoia in seh handling 2006-08-03 22:17:24 +00:00
erg d205fc3808 fix some win32 seh compile warnings 2006-08-03 22:06:43 +00:00
slava 7517e389e0 Removed some code duplication between the Unix and Windows memory protection error handlers 2006-08-03 21:00:33 +00:00
erg 84655013c3 \r\n -> \n 2006-08-03 18:40:13 +00:00
erg 48daad545e win32 seh changes 2006-08-03 18:27:34 +00:00
slava f5450b045b char* types in FFI calls can no longer accept null pointers 2006-07-31 21:39:58 +00:00
slava e5abd93601 Simplify runtime's GC and relocation code 2006-07-31 21:36:15 +00:00
slava 32cc5849ba Foo 2006-07-28 05:17:05 +00:00
slava 15a7fa070a Another makefile fix 2006-07-28 05:16:08 +00:00
slava 995aa94d7c FreeBSD build fix 2006-07-21 22:32:41 +00:00
erg 87cd9febc7 removed windows formatting 2006-07-14 05:42:13 +00:00
erg 3f074308f5 win32 updates 2006-07-14 05:40:13 +00:00
slava d1d2507d31 Build fixes 2006-07-10 05:09:31 +00:00
slava 767c0836d4 Fix typos 2006-07-07 07:46:05 +00:00
slava d2bd5e9912 Remove C++ style commends 2006-07-07 04:19:59 +00:00
slava ca54e6b32b Missing file 2006-07-07 04:18:40 +00:00
slava c5a6f75488 Eliminate another #ifdef 2006-07-07 04:15:31 +00:00
slava 8d60d0f9c9 Build system fixes 2006-07-07 04:03:10 +00:00
slava 6d21c52ac9 Big runtime cleanup 2006-07-07 04:07:18 +00:00
slava c3a891b58c Mac OS X Intel signal handling fixes 2006-07-06 21:45:34 +00:00
slava 6a862a9696 Add support for 8-byte struct returns, Mac OS X Intel style 2006-07-06 07:04:58 +00:00
slava e8f3b4a0ad Fix PowerPC compile error 2006-07-04 21:25:23 +00:00
slava fe48d6452b Intel Mac OS X ABI code progress 2006-07-04 06:04:33 +00:00
slava 52d7f4b32a Get Factor to compile on OS X/Intel 2006-07-03 03:41:13 +00:00
slava f2ddbae4ac Command line handling cleanup 2006-07-02 22:51:57 +00:00
slava 5c8982c50c Tweak error reporting 2006-06-27 07:40:07 +00:00
slava c6718ba8c9 A simple fix for a subtle problem 2006-06-14 04:35:02 +00:00
slava f6b3681078 Remove some obsolete debugging code 2006-06-13 20:05:54 +00:00
slava 0f34d6ecec add-literal fix 2006-06-13 20:02:09 +00:00
slava 27d3728af3 Fix a runtime string hashing bug 2006-06-09 22:22:37 +00:00
slava 8ad4909c7a Since 'native Factor' is no longer a meaningful term like it was back in the JFactor days, rename native/ to vm/ 2006-06-06 23:56:01 +00:00