Commit Graph

11072 Commits

Author SHA1 Message Date
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
Eric Scharff
cc8dd6d8c0 Implemented ByteBuffer.flip() 2007-09-28 12:18:01 -06:00
Eric Scharff
b4afc538d4 (Hopefully correct) implementation of ByteBuffer 2007-09-28 12:16:25 -06:00
Eric Scharff
43a2cb7cc5 Tie up some loose ends, implementing methods that are useful but not yet implemented. 2007-09-28 11:38:58 -06:00
Eric Scharff
5691ec87f0 Added a proper implementation of TreeSet, based on a Persistent set implementation. 2007-09-28 11:01:57 -06:00
Eric Scharff
8a4d3effe0 Make String.compare() match the Java specification 2007-09-28 11:00:31 -06:00
Joel Dice
60eeb73e0f Merge branch 'master' of dice:git/vm 2007-09-28 08:45:32 -06:00
Joel Dice
ddab82996c implement invokestatic, putstatic, and bipush; respect special handling of rsp and rbp in Assembler 2007-09-28 08:45:26 -06:00
Eric Scharff
07f4a359ad Merge branch 'master' of dice.ecovate.com:/home/dicej/git/vm 2007-09-27 16:23:30 -06:00
Eric Scharff
3fb90d4c3a Added minimalist TreeSet implementation, as well as Test classes for trees
and lists.
2007-09-27 16:23:05 -06:00
Joel Dice
37ccb6cb46 Merge branch 'master' of dice:git/vm 2007-09-27 16:21:00 -06:00
Joel Dice
d1681c0918 add a few more instructions to compile.cpp and fix bugs in others; invokespecial and invokevirtual are working 2007-09-27 16:20:54 -06:00
Joel Dice
bd95ccdbd6 clear object header flags after copying array in Object.clone() 2007-09-27 16:10:29 -06:00
Eric Scharff
0efc498837 Another place where printing null should be permitted 2007-09-27 15:21:39 -06:00
Eric Scharff
2ae6aa7ddf Fix System.arraycopy when the source and dest are the same 2007-09-27 15:06:56 -06:00
Eric Scharff
101b0c3b0e Support printing of null references 2007-09-27 15:05:55 -06:00
Eric Scharff
9621679d2a Cosmetic tweaks to the default logger 2007-09-27 12:43:20 -06:00
Eric Scharff
26de9c334d Add a default logging handler, in case the user doesn't provide any. 2007-09-27 12:42:06 -06:00
Joel Dice
f1bdc4c745 various fixes to get JIT working on x86_64 2007-09-26 18:01:38 -06:00
Joel Dice
554dd76495 Merge branch 'master' of dice:git/vm 2007-09-26 17:23:14 -06:00
Joel Dice
2f3f97d550 clean up compile.cpp and support both x86_64 and i386; further refactoring to support JIT 2007-09-26 17:23:03 -06:00
Eric Scharff
bb4a7c21c7 Implemented a simple but working implementation of the java logging API,
complete with a test class
2007-09-26 14:46:21 -06:00
Joel Dice
749ae86d49 Merge branch 'master' of dice:git/vm 2007-09-26 13:45:58 -06:00
Joel Dice
770e48c197 make Object.clone() work for arrays 2007-09-26 13:45:52 -06:00
Eric Scharff
a88f7c8473 Implemented proper enum toString() behavior and an enum test. it should
work, but it fails with the current build.
2007-09-26 12:59:18 -06:00
Eric Scharff
c7567b4081 Fixed typo 2007-09-26 11:45:44 -06:00
Eric Scharff
ea307cfdf8 Merge branch 'master' of dice.ecovate.com:/home/dicej/git/vm 2007-09-26 11:40:14 -06:00
Eric Scharff
c174ce34b6 Added several useful classes 2007-09-26 11:27:09 -06:00
Eric Scharff
bd6f2913c5 Runtime should implement IOException 2007-09-26 11:22:23 -06:00
Eric Scharff
4d3fd38d54 List now implements various forms of add() 2007-09-26 10:32:39 -06:00
Eric Scharff
219e381def Added Long.valueOf(String) 2007-09-26 10:32:02 -06:00
Eric Scharff
0f926f8f0b Added ArrayList.set 2007-09-26 10:02:58 -06:00
Eric Scharff
7d67d09b1a Added inflate method and stub method for reset() 2007-09-26 09:53:30 -06:00
Eric Scharff
0beba6cafa ArrayList now implements ListIterator (for reverse traversals of lists) 2007-09-26 09:48:59 -06:00
Eric Scharff
09efe501f5 Added TODO 2007-09-26 09:48:36 -06:00
Eric Scharff
8c248e382f Added methods to get and set properties, and stub method to save them 2007-09-26 09:48:21 -06:00
Eric Scharff
cacb5a6f1e Stub method for Math.random() 2007-09-26 09:47:25 -06:00
Eric Scharff
d06d1726c4 Added MAX_VALUE 2007-09-26 09:46:38 -06:00
Eric Scharff
876b02f641 Added method addAll to interface Map 2007-09-26 09:19:21 -06:00
Eric Scharff
b02b98609e Added methods isEmpty(), putAll(), toArray() to interfaces List and Map 2007-09-26 08:57:34 -06:00
Eric Scharff
4ae4221701 Integer should implement Comparable<Integer> 2007-09-26 08:44:56 -06:00
Joel Dice
1207989f72 fix build and runtime bugs introduced in last commit 2007-09-26 08:43:40 -06:00
Eric Scharff
2e813cff18 Added Calendar.setTime(), even though it does not work 2007-09-26 08:43:01 -06:00
Joel Dice
e7c8fb645a JIT works for Instructions.java 2007-09-25 17:53:11 -06:00
Joel Dice
1c90708abf bugfixes for recent refactoring effort 2007-09-24 07:46:48 -06:00