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
Joel Dice
ea47976aad
implement array load instructions
2007-09-29 22:07:22 -06:00
Joel Dice
a73f474f34
implement Processor::makeLocalReference()/disposeLocalReference()
2007-09-29 21:33:38 -06:00
Joel Dice
8ae36c05b7
lots of new instructions and bugfixes
2007-09-29 20:48:27 -06:00
Joel Dice
b0500a881c
implement checkcast and instanceof
2007-09-29 15:08:29 -06:00
Joel Dice
569cfa9e07
implement more instructions; various bugfixes
2007-09-29 14:24:14 -06:00
Joel Dice
f2ec75e202
handle 32-bit immediate values in Assembler.push()
2007-09-29 12:34:56 -06:00
Joel Dice
ccd7118bed
Merge branch 'master' of dice:git/vm
2007-09-28 17:41:08 -06:00
Joel Dice
79603e284d
sketch of Compiler.compileNative() and ifnull instruction implementation
2007-09-28 17:41:03 -06:00
Eric Scharff
da6dd8fba3
Fix ByteBuffer bugs
2007-09-28 13:18:28 -06:00
Eric Scharff
bcd5f5b94b
Fixed bulk put offset for sliced arrays
2007-09-28 12:19:13 -06:00