cacao.git
19 years ago- added monitor for patcher functions
twisti [Fri, 13 May 2005 09:06:36 +0000 (09:06 +0000)]
- added monitor for patcher functions
- renamed asm_builtin_checkarraycast to asm_builtin_arraycheckcast

19 years agoAdded monitor for patcher functions.
twisti [Fri, 13 May 2005 09:06:03 +0000 (09:06 +0000)]
Added monitor for patcher functions.

19 years ago- renamed some I386_* to more common REG_* or ALU_*
twisti [Fri, 13 May 2005 09:05:00 +0000 (09:05 +0000)]
- renamed some I386_* to more common REG_* or ALU_*
- added some alpha like macros (i think they can make the code generator
  more readable)

19 years agoRenamed I386_* to more common REG_* or ALU_*.
twisti [Fri, 13 May 2005 09:04:04 +0000 (09:04 +0000)]
Renamed I386_* to more common REG_* or ALU_*.

19 years ago- forgot to include generated header files for dummynativetable
twisti [Fri, 13 May 2005 00:02:01 +0000 (00:02 +0000)]
- forgot to include generated header files for dummynativetable
- killed panic's

19 years agoAdded exceptions (again) since the exceptions.[ch] stuff does not work as
twisti [Thu, 12 May 2005 23:55:10 +0000 (23:55 +0000)]
Added exceptions (again) since the exceptions.[ch] stuff does not work as
it should for cacaoh.

19 years ago#include "vm/stringlocal.h"
twisti [Thu, 12 May 2005 23:54:07 +0000 (23:54 +0000)]
#include "vm/stringlocal.h"

19 years agoMoved dummynativetable into native.c, for a static cacao the
twisti [Thu, 12 May 2005 23:45:03 +0000 (23:45 +0000)]
Moved dummynativetable into native.c, for a static cacao the
nativetable.inc file is generated.

19 years agoAdded `if STATIC_CLASSPATH' for nativetable.inc generation.
twisti [Thu, 12 May 2005 23:44:01 +0000 (23:44 +0000)]
Added `if STATIC_CLASSPATH' for nativetable.inc generation.

19 years agoReactivate gennativetable, it's required for a static cacao.
twisti [Thu, 12 May 2005 23:38:46 +0000 (23:38 +0000)]
Reactivate gennativetable, it's required for a static cacao.

19 years agoMoved global string definitions to string.c for 2 reasons: it seems to be
twisti [Thu, 12 May 2005 23:21:10 +0000 (23:21 +0000)]
Moved global string definitions to string.c for 2 reasons: it seems to be
more logical and exceptions.[ch] is no longer in libvmcore.

19 years agoMoved global string definitions to string.c for 2 reasons: it seems to be
twisti [Thu, 12 May 2005 23:02:07 +0000 (23:02 +0000)]
Moved global string definitions to string.c for 2 reasons: it seems to be
more logical and exceptions.[ch] is no longer in libvmcore.

19 years agoDon't include exceptions.[ch] in libvmcore, since cacaoh and gennativetable
twisti [Thu, 12 May 2005 23:00:43 +0000 (23:00 +0000)]
Don't include exceptions.[ch] in libvmcore, since cacaoh and gennativetable
cannot create runtime exceptions.

19 years agoRenamed create_all_classes to loader_load_all_classes.
twisti [Thu, 12 May 2005 22:59:04 +0000 (22:59 +0000)]
Renamed create_all_classes to loader_load_all_classes.

19 years agoRestored deleted file.
twisti [Wed, 11 May 2005 21:35:46 +0000 (21:35 +0000)]
Restored deleted file.

19 years agoHandle compiler exceptions.
twisti [Wed, 11 May 2005 19:52:59 +0000 (19:52 +0000)]
Handle compiler exceptions.

19 years ago- glibj.zip location bugfix
twisti [Wed, 11 May 2005 15:37:35 +0000 (15:37 +0000)]
- glibj.zip location bugfix
- updated to classpath-0.15

19 years agoPatcher stub bugfix: don't increment mcodeptr with ++.
twisti [Wed, 11 May 2005 15:34:37 +0000 (15:34 +0000)]
Patcher stub bugfix: don't increment mcodeptr with ++.

19 years ago- use MCOPY macros
twisti [Wed, 11 May 2005 15:31:42 +0000 (15:31 +0000)]
- use MCOPY macros
- use ptrint instead of long

19 years agoRenamed java_net_InetAddress to java_net_VMInetAddress.
twisti [Wed, 11 May 2005 13:47:15 +0000 (13:47 +0000)]
Renamed java_net_InetAddress to java_net_VMInetAddress.

19 years agoRenamed *_checkarraycast to *_arraycheckcast.
twisti [Wed, 11 May 2005 13:34:47 +0000 (13:34 +0000)]
Renamed *_checkarraycast to *_arraycheckcast.

19 years agoRenamed *_checkarraycast to *_arraycheckcast.
twisti [Wed, 11 May 2005 13:03:20 +0000 (13:03 +0000)]
Renamed *_checkarraycast to *_arraycheckcast.

19 years agoRenamed *_checkarraycast to *_arraycheckcast.
twisti [Wed, 11 May 2005 12:55:06 +0000 (12:55 +0000)]
Renamed *_checkarraycast to *_arraycheckcast.

19 years ago__MIPS__ defines for lazy loading.
twisti [Wed, 11 May 2005 12:54:04 +0000 (12:54 +0000)]
__MIPS__ defines for lazy loading.

19 years agoAdded comment to gen_resolvebranch.
twisti [Wed, 11 May 2005 12:52:36 +0000 (12:52 +0000)]
Added comment to gen_resolvebranch.

19 years agoLazy loading.
twisti [Wed, 11 May 2005 12:51:53 +0000 (12:51 +0000)]
Lazy loading.

19 years ago- renamed *_checkarraycast to *_arraycheckcast
twisti [Wed, 11 May 2005 12:50:26 +0000 (12:50 +0000)]
- renamed *_checkarraycast to *_arraycheckcast
- added __MIPS__ define

19 years agoPatcher stub bugfix: don't increment mcodeptr with ++.
twisti [Wed, 11 May 2005 12:05:08 +0000 (12:05 +0000)]
Patcher stub bugfix: don't increment mcodeptr with ++.

19 years agoPrint catch type for try-catch blocks.
twisti [Mon, 9 May 2005 15:30:19 +0000 (15:30 +0000)]
Print catch type for try-catch blocks.

19 years ago- added Java_java_lang_VMObject_getClass
twisti [Wed, 4 May 2005 15:28:00 +0000 (15:28 +0000)]
- added Java_java_lang_VMObject_getClass
- other static classpath changes (i have to reactivate the gen tool)

19 years agoISO C compile fix, arghhh!
twisti [Wed, 4 May 2005 15:23:13 +0000 (15:23 +0000)]
ISO C compile fix, arghhh!

19 years agoAdded Java_java_lang_VMClassLoader_nativeGetResources again, since the GNU
twisti [Wed, 4 May 2005 15:07:45 +0000 (15:07 +0000)]
Added Java_java_lang_VMClassLoader_nativeGetResources again, since the GNU
classpath java-only implementation has some bootstrap problems (strange
problems with flat bootclasspathes).

19 years ago- added java_lang_Class.h
twisti [Wed, 4 May 2005 15:06:30 +0000 (15:06 +0000)]
- added java_lang_Class.h
- added Java_java_lang_VMClassLoader_nativeGetResources

19 years agopanic() elimiated
christian [Wed, 4 May 2005 12:39:53 +0000 (12:39 +0000)]
panic() elimiated

19 years agoRemoved sleep, it's now implemented completely in java.
twisti [Wed, 4 May 2005 10:26:11 +0000 (10:26 +0000)]
Removed sleep, it's now implemented completely in java.

19 years agoAdded getClass.
twisti [Wed, 4 May 2005 10:25:47 +0000 (10:25 +0000)]
Added getClass.

19 years agoRemoved nativeGetResources, it's now completely implemented in GNU
twisti [Wed, 4 May 2005 10:25:21 +0000 (10:25 +0000)]
Removed nativeGetResources, it's now completely implemented in GNU
classpath, with zip handling.

19 years agoRegenerated for classpath-0.15.
twisti [Wed, 4 May 2005 10:19:10 +0000 (10:19 +0000)]
Regenerated for classpath-0.15.

19 years agoPatcher synchronization.
twisti [Tue, 3 May 2005 19:27:11 +0000 (19:27 +0000)]
Patcher synchronization.

19 years agogcc-2.x compile fix.
twisti [Tue, 3 May 2005 19:25:52 +0000 (19:25 +0000)]
gcc-2.x compile fix.

19 years agoPrint `(NOT RESOLVED)' for unresolved get/put{static,field} instructions.
twisti [Tue, 3 May 2005 19:25:36 +0000 (19:25 +0000)]
Print `(NOT RESOLVED)' for unresolved get/put{static,field} instructions.

19 years ago- added asmpart.h include
twisti [Tue, 3 May 2005 19:24:00 +0000 (19:24 +0000)]
- added asmpart.h include
- removed codegen.h include

19 years agoFromReflectedMethod can be called for methods and constructors
jowenn [Sun, 1 May 2005 12:27:54 +0000 (12:27 +0000)]
FromReflectedMethod can be called for methods and constructors

19 years agoBugfix for the _great_ x86_64 isa. Since %r12 is handled like %rsp, moves
twisti [Sat, 30 Apr 2005 20:12:59 +0000 (20:12 +0000)]
Bugfix for the _great_ x86_64 isa. Since %r12 is handled like %rsp, moves
with %r12 as base register are 1-byte longer. Arghh, i hate cisc...

19 years agoFromRef*
jowenn [Sat, 30 Apr 2005 16:29:15 +0000 (16:29 +0000)]
FromRef*

19 years agomore statistics, less crashing
jowenn [Sat, 30 Apr 2005 13:45:06 +0000 (13:45 +0000)]
more statistics, less crashing

19 years agoWe need an extra patcher_putfieldconst fro x86_64.
twisti [Sat, 30 Apr 2005 13:29:57 +0000 (13:29 +0000)]
We need an extra patcher_putfieldconst fro x86_64.

19 years ago- use new patcher for putfieldconst
twisti [Sat, 30 Apr 2005 13:29:34 +0000 (13:29 +0000)]
- use new patcher for putfieldconst
- warning fixes

19 years ago- sync stuff must be done before builtin_monitorexit
twisti [Sat, 30 Apr 2005 13:28:35 +0000 (13:28 +0000)]
- sync stuff must be done before builtin_monitorexit
- implemented patcher_putfieldconst

19 years agoEnabled SUPPORT_CONST_STORE again.
twisti [Sat, 30 Apr 2005 13:27:50 +0000 (13:27 +0000)]
Enabled SUPPORT_CONST_STORE again.

19 years agoincrease the MAXLIGTEXT constant. Perhaps it's a littlebit too generous now,
jowenn [Sat, 30 Apr 2005 11:51:55 +0000 (11:51 +0000)]
increase the MAXLIGTEXT constant. Perhaps it's a littlebit too generous now,
but at least verbosecall doesn't crash anymore during eclipse startup.
It should be considered, if using a constant smaller length should be used and if necessary dynamically increased

19 years agoRemoved debug output, sync code works, checked on c4.
twisti [Fri, 29 Apr 2005 19:29:17 +0000 (19:29 +0000)]
Removed debug output, sync code works, checked on c4.

19 years agoAdded get_dummyLR.
twisti [Fri, 29 Apr 2005 19:17:55 +0000 (19:17 +0000)]
Added get_dummyLR.

19 years ago- also save temporary registers in leaf methods for -verbosecall
twisti [Fri, 29 Apr 2005 19:01:51 +0000 (19:01 +0000)]
- also save temporary registers in leaf methods for -verbosecall
- create a virtual java_objectheader in patchref stubs to synchronize
  patcher calls
- use some alpha macros

19 years agoI think we should also use some alpha macros on x86_64.
twisti [Fri, 29 Apr 2005 18:55:49 +0000 (18:55 +0000)]
I think we should also use some alpha macros on x86_64.

19 years agoAgain a libc-movaps bugfix. Arghhh!
twisti [Fri, 29 Apr 2005 18:55:09 +0000 (18:55 +0000)]
Again a libc-movaps bugfix. Arghhh!

19 years agoAdded additional {INT,FLT}_*_CNT defines.
twisti [Fri, 29 Apr 2005 18:54:31 +0000 (18:54 +0000)]
Added additional {INT,FLT}_*_CNT defines.

19 years agoSynchronize patcher functions. Unfortunately it's not possible to write a
twisti [Fri, 29 Apr 2005 15:22:08 +0000 (15:22 +0000)]
Synchronize patcher functions. Unfortunately it's not possible to write a
wrapper for all patcher functions (ra is calculated differently).

19 years agoPass java_objectheader to asm_wrapper_patcher.
twisti [Fri, 29 Apr 2005 15:18:14 +0000 (15:18 +0000)]
Pass java_objectheader to asm_wrapper_patcher.

19 years ago-sa bugfix in patcher_builtin_checkarraycast,
twisti [Thu, 28 Apr 2005 13:31:55 +0000 (13:31 +0000)]
-sa bugfix in patcher_builtin_checkarraycast,
patcher_builtin_arrayinstanceof.

19 years agotestcases for (cond) ? x:y
jowenn [Thu, 28 Apr 2005 12:52:02 +0000 (12:52 +0000)]
testcases for  (cond) ? x:y

19 years agothe real implementation doesn't work yet as I would like, so this is only to make...
jowenn [Thu, 28 Apr 2005 12:38:50 +0000 (12:38 +0000)]
the real implementation doesn't work yet as I would like, so this is only to make eclipse startup that much, that the show assembler runtime option crashes

19 years agoless debug output to make twisti happy
jowenn [Thu, 28 Apr 2005 12:34:39 +0000 (12:34 +0000)]
less debug output to make twisti happy

19 years agoless debug output
jowenn [Thu, 28 Apr 2005 12:19:06 +0000 (12:19 +0000)]
less debug output

19 years agodon't optimize too much
jowenn [Thu, 28 Apr 2005 09:12:23 +0000 (09:12 +0000)]
don't optimize too much

19 years agoForgot code patching nop's in checkcast/instanceof with -sa.
twisti [Wed, 27 Apr 2005 14:29:21 +0000 (14:29 +0000)]
Forgot code patching nop's in checkcast/instanceof with -sa.

19 years agoDo it like on alpha in patcher_get_putstatic.
twisti [Wed, 27 Apr 2005 14:28:15 +0000 (14:28 +0000)]
Do it like on alpha in patcher_get_putstatic.

19 years agogeneral: less warnings in stacktrace.c
jowenn [Wed, 27 Apr 2005 13:17:07 +0000 (13:17 +0000)]
general: less warnings in stacktrace.c

x86_64: fix for clinit within native stub

19 years agoAdded: doit's and try-catch blocks
twisti [Wed, 27 Apr 2005 12:58:29 +0000 (12:58 +0000)]
Added: doit's and try-catch blocks

19 years ago*** empty log message ***
christian [Wed, 27 Apr 2005 12:58:28 +0000 (12:58 +0000)]
*** empty log message ***

19 years ago- float register defines (couldn't find a header file at least on osf)
twisti [Wed, 27 Apr 2005 12:53:03 +0000 (12:53 +0000)]
- float register defines (couldn't find a header file at least on osf)
- added float registers to SAVE_*_REGISTERS, RESTORE_*_REGISTERS
- return zero in exception case in asm_calljavafunction2
- fixed gp bug in asm_throw_and_handle_exception: hit with hardware
  null pointer
- changes in asm_wrapper_patcher

19 years ago- use itmp3 for patchref branch and save the return address in the patchref
twisti [Wed, 27 Apr 2005 12:46:40 +0000 (12:46 +0000)]
- use itmp3 for patchref branch and save the return address in the patchref
  stub, since the ra register is not saved in leaf methods
- implemented remaining lazy loading stuff

19 years agoMoved ALIGNCODENOP from codegen.c
twisti [Wed, 27 Apr 2005 12:44:54 +0000 (12:44 +0000)]
Moved ALIGNCODENOP from codegen.c

19 years agoThe return address is now store on the stack in the patchref stub, since
twisti [Wed, 27 Apr 2005 12:44:31 +0000 (12:44 +0000)]
The return address is now store on the stack in the patchref stub, since
the ra register may not be saved in leaf methods.

19 years ago- remaining lazy loading stuff for alpha
twisti [Wed, 27 Apr 2005 12:42:39 +0000 (12:42 +0000)]
- remaining lazy loading stuff for alpha
- print `(NOT RESOLVED)' for invoke instructions

19 years agoRemaining lazy loading stuff for alpha.
twisti [Wed, 27 Apr 2005 12:42:00 +0000 (12:42 +0000)]
Remaining lazy loading stuff for alpha.

19 years agoDefine M_NOP.
twisti [Tue, 26 Apr 2005 19:50:58 +0000 (19:50 +0000)]
Define M_NOP.

19 years ago- handle monitorenter/exit inline
twisti [Tue, 26 Apr 2005 19:50:42 +0000 (19:50 +0000)]
- handle monitorenter/exit inline
- renamed ICMD_NULLCHECKPOP to ICMD_CHECKNULL
- generate 5 nop's with showdisassemble for patchrefs
- all patchrefs use the same patcher wrapper

19 years ago- all patcher use the same wrapper and thus the same passing conventions
twisti [Tue, 26 Apr 2005 19:49:15 +0000 (19:49 +0000)]
- all patcher use the same wrapper and thus the same passing conventions
- skip nop's with showdisassemble

19 years ago- removed: asm_builtin_monitorenter, asm_builtin_monitorexit (these are now
twisti [Tue, 26 Apr 2005 19:48:02 +0000 (19:48 +0000)]
- removed: asm_builtin_monitorenter, asm_builtin_monitorexit (these are now
  handled inline)
- we only need one patcher wrapper

19 years agoLazy loading for alpha and code patching stuff.
twisti [Tue, 26 Apr 2005 16:16:05 +0000 (16:16 +0000)]
Lazy loading for alpha and code patching stuff.

19 years agoLazy loading for alpha (some left).
twisti [Tue, 26 Apr 2005 16:15:17 +0000 (16:15 +0000)]
Lazy loading for alpha (some left).

19 years agoLazy loading for alpha.
twisti [Tue, 26 Apr 2005 16:14:56 +0000 (16:14 +0000)]
Lazy loading for alpha.

19 years agoAdded patcher_checkcast_instanceof_class for other architectures than i386
twisti [Tue, 26 Apr 2005 16:14:39 +0000 (16:14 +0000)]
Added patcher_checkcast_instanceof_class for other architectures than i386
and x86_64.

19 years ago- lazy loading for alpha (some left)
twisti [Tue, 26 Apr 2005 16:14:07 +0000 (16:14 +0000)]
- lazy loading for alpha (some left)
- bugfix: don't pass NULL to builtin functions, since RISC machines
  optimize that to a `clr reg' or similar
- BUILTIN_anewarray replaced with BUILTIN_newarray

19 years agoAdded asm_sync_instruction_cache for alpha.
twisti [Tue, 26 Apr 2005 16:12:27 +0000 (16:12 +0000)]
Added asm_sync_instruction_cache for alpha.

19 years agoSmall bugfix in invokevirtual.
twisti [Tue, 26 Apr 2005 16:11:58 +0000 (16:11 +0000)]
Small bugfix in invokevirtual.

19 years agoCode patching: alpha define in builtin table.
twisti [Tue, 26 Apr 2005 16:11:10 +0000 (16:11 +0000)]
Code patching: alpha define in builtin table.

19 years agoAdded java.runtime.version, java.runtime.name properties for tomcat4.
twisti [Tue, 26 Apr 2005 16:10:30 +0000 (16:10 +0000)]
Added java.runtime.version, java.runtime.name properties for tomcat4.

19 years ago- doit
twisti [Tue, 26 Apr 2005 09:11:21 +0000 (09:11 +0000)]
- doit
- try-catch blocks

19 years agoOops, sorry for that.
twisti [Mon, 25 Apr 2005 23:15:32 +0000 (23:15 +0000)]
Oops, sorry for that.

19 years ago- removed unused i386 stuff (asm_builtin_newarray,
twisti [Mon, 25 Apr 2005 14:19:52 +0000 (14:19 +0000)]
- removed unused i386 stuff (asm_builtin_newarray,
  asm_builtin_arrayinstanceof)
- changed asm_wrapper_patcher_builtin_* to patcher_builtin_*

19 years ago- monitorenter/exit are now handled inline
twisti [Mon, 25 Apr 2005 14:16:45 +0000 (14:16 +0000)]
- monitorenter/exit are now handled inline
- renamed ICMD_NULLCHECKPOP to ICMD_CHECKNULL
- generate nop's for showdisassemble (-sa)
- all lazy instructions use patchref

19 years ago- removed ALIGNCODENOP
twisti [Mon, 25 Apr 2005 14:15:14 +0000 (14:15 +0000)]
- removed ALIGNCODENOP
- added M_NOP

19 years ago- changes signatures (every patcher uses the same assembler wrapper)
twisti [Mon, 25 Apr 2005 14:14:54 +0000 (14:14 +0000)]
- changes signatures (every patcher uses the same assembler wrapper)
- handle showdisassemble (-sa)

19 years agoRemoved (a lot of stuff):
twisti [Mon, 25 Apr 2005 14:13:56 +0000 (14:13 +0000)]
Removed (a lot of stuff):
  - unrequired patcher wrapper
  - asm_builtin_monitorenter, asm_builtin_monitorexit: are now handled
    inline
  - asm_builtin_newarray, asm_builtin_multianewarray,
    asm_builtin_arrayinstanceof: not required anymore since 4-byte stack
    slots (i386 calling convention)

19 years ago- changed signatures
twisti [Mon, 25 Apr 2005 14:10:56 +0000 (14:10 +0000)]
- changed signatures
- added functionptr defines

19 years agoAdded: BUILTIN1T, BUILTIN2T which take a target argument. The normal
twisti [Mon, 25 Apr 2005 14:10:17 +0000 (14:10 +0000)]
Added: BUILTIN1T, BUILTIN2T which take a target argument. The normal
BUILTIN macros set target to NULL.

19 years agonew, newarray, multianewarray, checkarraycast, arrayinstanceof now also use
twisti [Mon, 25 Apr 2005 14:09:30 +0000 (14:09 +0000)]
new, newarray, multianewarray, checkarraycast, arrayinstanceof now also use
the patchref stuff, so we need only 1 wrapper.

19 years agoWe need only on assembler patcher wrapper, removed the others.
twisti [Mon, 25 Apr 2005 14:07:19 +0000 (14:07 +0000)]
We need only on assembler patcher wrapper, removed the others.