Commit Graph

436 Commits (fd1db437a5a587295fdd3a7eb6ea6c08fb7c1108)

Author SHA1 Message Date
slava 9873d6285c Update x86 and AMD64 backends for assembler changes 2006-02-24 01:29:53 +00:00
slava 3c2d412dac Experimental x86 assembler refactoring 2006-02-24 00:01:12 +00:00
slava 9e7af4d8b4 Clean up exception handling in callbacks 2006-02-23 07:09:34 +00:00
slava 5e41efe8e2 Fix callframe loss 2006-02-23 06:33:15 +00:00
erg a452f95788 windows ffi test fix 2006-02-21 23:55:42 +00:00
slava 3a3a1e602d Completed support for UTF16 string inputs/outputs in alien interface 2006-02-21 21:42:56 +00:00
slava 09ca1c3642 Fix callbacks with lots of parameters 2006-02-20 22:49:44 +00:00
erg 579d8d2c5a DLLEXPORT unbox_value_struct 2006-02-20 19:27:45 +00:00
erg 7fa831d2c4 ffi fix for windowsand dealloc_bounded_block for windows 2006-02-20 07:13:02 +00:00
slava 75d3509c09 maybe_gc() takes an argument; compile-gc didn't take this into account 2006-02-20 05:27:22 +00:00
slava 3b2b86e1a2 Don't run out of memory from boxing objects in FFI 2006-02-20 04:08:00 +00:00
slava c2140920bd renumber types, Objective-C exception handling 2006-02-20 03:08:08 +00:00
slava 4990bade15 Merge alien and displaced-alien types, assorted cleanups 2006-02-20 01:53:18 +00:00
erg a82c9f2d09 safe_malloc
added-safe malloc to misc.c
added return check of VirtualAlloc()
2006-02-19 21:27:53 +00:00
slava 30ec4e75a9 Fix typo in ffi tests 2006-02-19 06:46:11 +00:00
slava 6189450318 More callback tests 2006-02-19 06:33:34 +00:00
slava 531dab7806 Implemented returning values from callbacks 2006-02-15 04:23:08 +00:00
slava 827df2d5d2 Added (presently failing) test for spilled arg callback 2006-02-14 22:27:28 +00:00
slava d584e8c0bb Basic callback unit tests pass 2006-02-14 03:47:42 +00:00
slava 90b10f1cfd (Temporarily) add unnest_stacks() call 2006-02-14 03:31:50 +00:00
slava 2d1ef84911 Further work on callbacks 2006-02-14 03:20:39 +00:00
slava 1b5b692220 Fix FFI register clobberage and broken call stack semantics from recent runtime change 2006-02-13 22:57:20 +00:00
slava 8b74f721b5 Nullary callbacks are working 2006-02-13 22:16:34 +00:00
slava 3173747fb5 Various fixes for recent callback-related runtime changes 2006-02-13 21:00:21 +00:00
slava 84d24c4440 Runtime changes to support callbacks, and other cleanups 2006-02-13 07:46:07 +00:00
slava 1f153c24b2 Starting work on callbacks 2006-02-11 07:30:18 +00:00
slava dc3f4b2efb Cocoa binding improvements 2006-02-10 03:11:22 +00:00
slava 44f2cc04ef Fix compile error 2006-02-09 03:15:23 +00:00
slava 3d5e96172f Clean up out of memory handler 2006-02-09 03:12:20 +00:00
slava b861c09e9f Clean up AGL's patch 2006-02-08 00:09:46 +00:00
agl d088a97f82 Add data/return stack under/over flow checks for POSIX
This adds extra errors:
#define ERROR_STACK_UNDERFLOW (12<<3)
#define ERROR_STACK_OVERFLOW (13<<3)
#define ERROR_RETSTACK_UNDERFLOW (14<<3)
#define ERROR_RETSTACK_OVERFLOW (15<<3)

On unix the data and return stacks have poison pages above and below them in
memory. This patch adds checks to the sigv signal handler which checks to see
if the faulting address is in one of these pages and, if so, triggers the
correct error.

To see:
: data-overflow 1 2 3 data-overflow ;
: ret-underflow V{ } set-callstack r> ;
: ret-overflow 1 >r ret-overflow ;

(to test data-underflow just call + with an empty stack)


AGL
2006-02-07 22:29:36 +00:00
slava f353ea347b Minor Windows build fixes 2006-02-07 19:37:32 +00:00
slava ac68a16492 FFI now supports passing structs by value
So far, this is only supported on PowerPC.
2006-02-06 06:43:59 +00:00
slava 9e5b6424a1 Initial revision 2006-02-01 02:31:53 +00:00
Slava Pestov 2acb28ae0c Solaris/x86 support 2006-01-31 19:31:31 +00:00
Doug Coleman ace98260e3 Added a fix for sigaction(): now retries on recoverable error EINTR 2006-01-31 01:11:22 +00:00
Slava Pestov fd59c87eae AMD64 FFI fixes; httpd load fix; minor opengl optimization 2006-01-30 07:03:34 +00:00
Slava Pestov 13ef8f9412 cell fix; experimental preferred size cache; floor/ceiling/truncate/mod for floats; fix mod for ratios; fix float equality test 2006-01-27 04:01:14 +00:00
Slava Pestov 64e50829b7 double default heap sizes on amd64 2006-01-25 06:26:31 +00:00
Slava Pestov 2ee22aad49 float parameters work 2006-01-25 06:18:12 +00:00
Slava Pestov 1177038cec stub out AMD64 float parameter code 2006-01-25 01:20:20 +00:00
Slava Pestov 9ea2332a2b FFI work 2006-01-25 00:56:08 +00:00
Slava Pestov df4c2fc067 fix fixnum-shift overflow check 2006-01-21 08:23:14 +00:00
Slava Pestov f9db19f917 fixes 2006-01-21 02:37:38 +00:00
Slava Pestov b67c8ceb16 boxing a null pointer pushes f 2006-01-10 02:17:58 +00:00
Slava Pestov 53c6cb2179 make class< a bit faster, mutable strings 2005-12-26 02:05:31 +00:00
Slava Pestov 346cb9cb7d C type cleanup 2005-12-25 22:46:21 +00:00
Slava Pestov 2f73851117 fix typo 2005-12-25 06:00:10 +00:00
Slava Pestov a5e14acaa3 fix a crash 2005-12-25 04:01:49 +00:00
Slava Pestov dec98203d3 remove repetitions 2005-12-24 23:29:31 +00:00