Commit Graph

11026 Commits

Author SHA1 Message Date
Joel Dice
5a92852f74 stack mapping progress 2007-10-12 08:26:36 -06:00
Joel Dice
3e1dbab0f0 move bitmap helper functions to common.h; preserve callee-saved registers in vmInvoke() 2007-10-11 20:52:16 -06:00
Joel Dice
201a658941 stack mapping bugfixes 2007-10-11 18:30:46 -06:00
Eric Scharff
79ad3bdb76 Exception thrown by ByteBuffer 2007-10-11 17:04:45 -06:00
Eric Scharff
15d1fe8b75 Fix hashmap insertion bug (entire bucket was getting erased in some put() operations) 2007-10-11 17:03:51 -06:00
Eric Scharff
b95a573b7f Merge branch 'master' of dice.ecovate.com:/home/dicej/git/vm 2007-10-11 16:42:41 -06:00
Joel Dice
ebbb45ad98 Merge branch 'master' of dice:git/vm 2007-10-11 16:43:11 -06:00
Joel Dice
d5a8193614 lots of work on stack mapping, plus a couple of bugfixes 2007-10-11 16:43:03 -06:00
Eric Scharff
32946417b7 Fixed subtle bug in getLong() 2007-10-11 16:42:33 -06:00
Eric Scharff
3fbe5b9a01 Add Math.pow() and Math.sqrt() native peers 2007-10-11 16:41:52 -06:00
Eric Scharff
9d3027540b Add meaningful toString() methods 2007-10-11 16:41:07 -06:00
Eric Scharff
00cfa587bc Various bug fixes and optimizations 2007-10-11 15:41:23 -06:00
Eric Scharff
75c51bb5ec Added user.home system property 2007-10-11 15:39:21 -06:00
Eric Scharff
db2b7e8fa7 Semantics of getChars was incorrect. It should specify a begin
and end index, not a bunch of lengths
2007-10-11 10:00:35 -06:00
Eric Scharff
e831a41e90 Implemented ByteBuffer.clear() 2007-10-11 09:59:52 -06:00
Eric Scharff
b59d234b16 Math.floor() is used by SWT. Defers to the libm (or GCC builtin)
for floor
2007-10-11 09:59:22 -06:00
Joel Dice
69389ea8be more progress towards stack mapping 2007-10-10 16:39:40 -06:00
Joel Dice
808b4780b1 progress towards stack mapping 2007-10-10 15:34:04 -06:00
Joel Dice
1406d6bc24 refactor parts of compile.cpp to improve time efficiency of java IP -> machine IP translation and to prepare for stack object reference tracking 2007-10-10 11:26:28 -06:00
Joel Dice
915ade9ccc various JIT bugfixes 2007-10-09 13:30:01 -06:00
Joel Dice
defa8c62ac 64-bit arithmetic bugfixes 2007-10-09 11:15:40 -06:00
Joel Dice
8c2437abb0 Merge branch 'master' of dice:git/vm 2007-10-09 08:14:58 -06:00
Joel Dice
7e0731ebdd various bugfixes involving longs 2007-10-08 17:13:55 -06:00
Eric Scharff
bd8b7ddfb0 Merge branch 'master' of dice.ecovate.com:/home/dicej/git/vm 2007-10-08 15:46:20 -06:00
Eric Scharff
d171c03857 Oops, I shouldn't have commented out the MAKEFLAGS 2007-10-08 15:46:09 -06:00
Joel Dice
abc46c3d30 Merge branch 'master' of dice:git/vm 2007-10-08 15:41:49 -06:00
Joel Dice
c7d7c4ca0a implement additional instructions for JIT; fix bug in dispose(Thread*,Reference*) 2007-10-08 15:41:41 -06:00
Eric Scharff
673aec28fb The warning -Wold-style-cast turns out to be more trouble than its worth
when dealing with old-style casts that are in header files.  Removing.
2007-10-08 13:29:40 -06:00
Eric Scharff
782081d1ff Use custom initialization scheme to allow the java-nio library to be linked without
the stdc++ library, using a custom operator new
2007-10-08 13:05:56 -06:00
Eric Scharff
71e7a6d796 Simple non-blocking client and server example programs. The client
actually simulates blocking IO by implementing a Socket OutputStream, and
sends a file to a port.  The server listens on a port and dumps the output
to test files.  Together, these classes can be used to send a file from
a client to a server machine over a socket.
2007-10-07 17:15:29 -06:00
Eric Scharff
9368dd2acc Fix another off-by-one error when EOS is hit on the socket 2007-10-07 11:35:48 -06:00
Eric Scharff
35a96a0d36 Fix an off-by-one error when EOS is hit on the socket 2007-10-07 09:53:07 -06:00
Eric Scharff
19b6e11cbc Make sure to report EOF when reading from a socket channel 2007-10-05 15:51:06 -06:00
Eric Scharff
98269286e5 Implemented a basic NIO socket channel interface. Non-blocking socket channels
and server socket channels are implemented.  This version works but only when
libnative is linked with g++ (because of C++ object creation code that fails
without this linking)
2007-10-05 15:32:56 -06:00
Joel Dice
e32a335079 Merge branch 'master' of dice:git/vm
Conflicts:

	src/cdecl.S
2007-10-04 17:17:57 -06:00
Joel Dice
feeaecbfd8 more work on JIT unwinding 2007-10-04 16:41:19 -06:00
Eric Scharff
8b607d4aa4 FileInputStream read() should return an unsigned byte 2007-10-04 13:57:39 -06:00
Eric Scharff
a9fcb59e6c Fix a floating point comparison bug - Gets simple SWT examples to work on
Mac OS X
2007-10-04 10:21:14 -06:00
Eric Scharff
ace36f1b15 Simplify code for Mac stack alignment conventions 2007-10-04 07:30:39 -06:00
Joel Dice
2135f62584 progress towards JIT stack unwinding 2007-10-03 21:19:39 -06:00
Joel Dice
404d996c1e snapshot 2007-10-03 18:41:54 -06:00
Joel Dice
ba03aa88df snapshot 2007-10-02 19:54:21 -06:00
Joel Dice
f7058f8fd6 snapshot 2007-10-02 18:22:48 -06:00
Eric Scharff
d2053d51d2 Floats are always passed as doubles in varargs calls. Properly pop them
off the stack and cast them
2007-10-02 09:50:08 -06:00
Eric Scharff
7bc85a1247 Implemented printing of doubles using snprintf 2007-10-02 09:23:49 -06:00
Eric Scharff
243d62a952 non-working implementation of float and double.toString() 2007-10-02 08:58:35 -06:00
Joel Dice
68e382ca8d snapshot 2007-10-01 18:08:17 -06:00
Joel Dice
45dc118ab9 invoke native methods using a common routine, instead of compiling code specific to each method 2007-10-01 09:19:15 -06:00
Joel Dice
7ecb5b9c30 fixes for various recent regressions 2007-09-30 10:32:17 -06:00
Joel Dice
7caedba26f hello, world! 2007-09-30 09:52:21 -06:00