cacao.git
19 years ago4 Byte Stackslots for i386 (native Calling Convention)
christian [Fri, 22 Apr 2005 17:33:35 +0000 (17:33 +0000)]
4 Byte Stackslots for i386 (native Calling Convention)
16 Byte Stack alignment for PowerPC in createnativestub
no copy of spilled arguments to spilled locals on x86_64
new define HAS_4BYTE_STACKSLOT in arch.h
SUPPORT_COMBINE_INTEGER_REGISTERS instead of USE_TWOREGS

19 years agoasmhelper.h to helper.h changes.
twisti [Fri, 22 Apr 2005 14:57:47 +0000 (14:57 +0000)]
asmhelper.h to helper.h changes.

19 years agoRenamed asmhelper.[ch] to helper.[ch]
christian [Fri, 22 Apr 2005 14:50:12 +0000 (14:50 +0000)]
Renamed asmhelper.[ch] to helper.[ch]

19 years agoAdded: patcher.c
twisti [Fri, 22 Apr 2005 13:55:56 +0000 (13:55 +0000)]
Added: patcher.c

19 years agoChanges the patchref stuff.
twisti [Fri, 22 Apr 2005 13:55:26 +0000 (13:55 +0000)]
Changes the patchref stuff.

19 years agoWe only need 3 patcher wrapper functions.
twisti [Fri, 22 Apr 2005 13:55:09 +0000 (13:55 +0000)]
We only need 3 patcher wrapper functions.

19 years agoTemporary disable SUPPORT_CONST_STORE.
twisti [Fri, 22 Apr 2005 13:54:34 +0000 (13:54 +0000)]
Temporary disable SUPPORT_CONST_STORE.

19 years agoCall it patcher_builtin_newarray instead of patcher_builtin_anewarray.
twisti [Fri, 22 Apr 2005 13:54:18 +0000 (13:54 +0000)]
Call it patcher_builtin_newarray instead of patcher_builtin_anewarray.

19 years agoUse some global variables (class_, utf_).
twisti [Fri, 22 Apr 2005 13:52:35 +0000 (13:52 +0000)]
Use some global variables (class_, utf_).

19 years agoUse global class_java_lang_ThreadGroup variable.
twisti [Fri, 22 Apr 2005 13:51:36 +0000 (13:51 +0000)]
Use global class_java_lang_ThreadGroup variable.

19 years agoUse builtin_anewarray instead of builtin_newarray.
twisti [Fri, 22 Apr 2005 13:51:12 +0000 (13:51 +0000)]
Use builtin_anewarray instead of builtin_newarray.

19 years ago- use global class_ variables
twisti [Fri, 22 Apr 2005 13:50:44 +0000 (13:50 +0000)]
- use global class_ variables
- use builtin_anewarray instead of builtin_newarray

19 years agoImplemented NewObjectArray correctly.
twisti [Fri, 22 Apr 2005 13:50:02 +0000 (13:50 +0000)]
Implemented NewObjectArray correctly.

19 years agoLazy loading changes.
twisti [Fri, 22 Apr 2005 13:34:20 +0000 (13:34 +0000)]
Lazy loading changes.

19 years agoImplemented patcher wrapper.
twisti [Fri, 22 Apr 2005 13:34:00 +0000 (13:34 +0000)]
Implemented patcher wrapper.

19 years agoAdded: patcher.c
twisti [Fri, 22 Apr 2005 13:33:39 +0000 (13:33 +0000)]
Added: patcher.c

19 years agoTemporary disabled SUPPORT_CONST_STORE.
twisti [Fri, 22 Apr 2005 13:33:21 +0000 (13:33 +0000)]
Temporary disabled SUPPORT_CONST_STORE.

19 years agoAdded: i386_emit_membase32
twisti [Fri, 22 Apr 2005 13:31:01 +0000 (13:31 +0000)]
Added: i386_emit_membase32

19 years agoAdded: i386_alu_imm32_reg
twisti [Fri, 22 Apr 2005 13:30:40 +0000 (13:30 +0000)]
Added: i386_alu_imm32_reg

19 years agoFixed 2 nasty bugs in ICMD_INSTANCEOF.
twisti [Fri, 22 Apr 2005 13:30:22 +0000 (13:30 +0000)]
Fixed 2 nasty bugs in ICMD_INSTANCEOF.

19 years agoAdded patcher.h
twisti [Fri, 22 Apr 2005 13:29:51 +0000 (13:29 +0000)]
Added patcher.h

19 years agoImplemented remaining patcher functions.
twisti [Fri, 22 Apr 2005 13:28:28 +0000 (13:28 +0000)]
Implemented remaining patcher functions.

19 years agopatcher_builtin_new gets a contant_classref.
twisti [Fri, 22 Apr 2005 13:28:10 +0000 (13:28 +0000)]
patcher_builtin_new gets a contant_classref.

19 years agoEnable lazy loading for i386.
twisti [Fri, 22 Apr 2005 13:26:36 +0000 (13:26 +0000)]
Enable lazy loading for i386.

19 years agoRemoved unused functions.
twisti [Fri, 22 Apr 2005 13:21:02 +0000 (13:21 +0000)]
Removed unused functions.

19 years agoTemporary asm_builtin_multianewarray for i386 (till 4-byte stack slots).
twisti [Fri, 22 Apr 2005 13:18:19 +0000 (13:18 +0000)]
Temporary asm_builtin_multianewarray for i386 (till 4-byte stack slots).

19 years ago- renamed patcher wrapper entries in builtin table
twisti [Thu, 21 Apr 2005 22:41:57 +0000 (22:41 +0000)]
- renamed patcher wrapper entries in builtin table
- renamed builtin_nmultianewarray to builtin_multianewarray
- some cleanup

19 years agoRenamed builtin_nmultianewarray to builtin_multianewarray.
twisti [Thu, 21 Apr 2005 22:41:19 +0000 (22:41 +0000)]
Renamed builtin_nmultianewarray to builtin_multianewarray.

19 years agoRenamed patcher wrapper function dummies.
twisti [Thu, 21 Apr 2005 22:38:17 +0000 (22:38 +0000)]
Renamed patcher wrapper function dummies.

19 years agoRenamed patcher wrapper functions.
twisti [Thu, 21 Apr 2005 22:36:46 +0000 (22:36 +0000)]
Renamed patcher wrapper functions.

19 years agoAdded more functions.
twisti [Thu, 21 Apr 2005 22:36:28 +0000 (22:36 +0000)]
Added more functions.

19 years agoUse builtin_anewarray instead of builtin_newarray.
twisti [Thu, 21 Apr 2005 22:35:54 +0000 (22:35 +0000)]
Use builtin_anewarray instead of builtin_newarray.

19 years agoRenamed patcher wrapper function names and some builtins.
twisti [Thu, 21 Apr 2005 22:35:27 +0000 (22:35 +0000)]
Renamed patcher wrapper function names and some builtins.

19 years agoAdded: class_java_lang_ThreadGroup
twisti [Thu, 21 Apr 2005 22:18:38 +0000 (22:18 +0000)]
Added: class_java_lang_ThreadGroup

19 years agoAdded: utf_java_lang_ThreadGroup
twisti [Thu, 21 Apr 2005 22:17:46 +0000 (22:17 +0000)]
Added: utf_java_lang_ThreadGroup

19 years agoAdded asm_patcher_wrapper
twisti [Thu, 21 Apr 2005 20:25:34 +0000 (20:25 +0000)]
Added asm_patcher_wrapper

19 years agoAdded more functions.
twisti [Thu, 21 Apr 2005 20:19:06 +0000 (20:19 +0000)]
Added more functions.

19 years ago- renamed patchref.asmwrapper to patcher
twisti [Thu, 21 Apr 2005 19:44:32 +0000 (19:44 +0000)]
- renamed patchref.asmwrapper to patcher
- warning fix

19 years agoRenamed patchref.asmwrapper to patcher
twisti [Thu, 21 Apr 2005 19:44:18 +0000 (19:44 +0000)]
Renamed patchref.asmwrapper to patcher

19 years agoMore stuff...
twisti [Thu, 21 Apr 2005 16:55:40 +0000 (16:55 +0000)]
More stuff...

19 years ago- bugfix in i386_mov_membase32_reg
twisti [Thu, 21 Apr 2005 16:40:28 +0000 (16:40 +0000)]
- bugfix in i386_mov_membase32_reg
- added some membase32 functions

19 years agoCode patching functions rewritten in C.
twisti [Thu, 21 Apr 2005 11:22:45 +0000 (11:22 +0000)]
Code patching functions rewritten in C.

19 years agognu header added
christian [Thu, 21 Apr 2005 07:57:02 +0000 (07:57 +0000)]
gnu header added

19 years agoSave.
twisti [Wed, 20 Apr 2005 22:58:07 +0000 (22:58 +0000)]
Save.

19 years agoStarting to write code patching functions is C.
twisti [Wed, 20 Apr 2005 16:01:00 +0000 (16:01 +0000)]
Starting to write code patching functions is C.

19 years agoMore tests.
twisti [Tue, 19 Apr 2005 20:31:28 +0000 (20:31 +0000)]
More tests.

19 years agoMerged 3 patcher functions:
twisti [Tue, 19 Apr 2005 13:51:30 +0000 (13:51 +0000)]
Merged 3 patcher functions:
 - asm_patcher_builtin_newarray
 - asm_patcher_builtin_checkarraycast
 - asm_patcher_builtin_arrayinstanceof

19 years agoadded annotation for splint checking
edwin [Fri, 15 Apr 2005 14:29:04 +0000 (14:29 +0000)]
added annotation for splint checking
ran indent over the code

19 years agopreserve indentation of log text
edwin [Fri, 15 Apr 2005 09:33:34 +0000 (09:33 +0000)]
preserve indentation of log text

19 years agooutput more valid xml
edwin [Fri, 15 Apr 2005 09:06:54 +0000 (09:06 +0000)]
output more valid xml

19 years agotypo
edwin [Thu, 14 Apr 2005 20:11:04 +0000 (20:11 +0000)]
typo

19 years agodisabled debug print, added vim boilerplate
edwin [Thu, 14 Apr 2005 20:10:20 +0000 (20:10 +0000)]
disabled debug print, added vim boilerplate

19 years agoadded log2xml.pl and log2xml.vim
edwin [Thu, 14 Apr 2005 19:44:00 +0000 (19:44 +0000)]
added log2xml.pl and log2xml.vim

19 years agosynchronize VMClassLoader.defineClass and load_class_bootstrap
edwin [Thu, 14 Apr 2005 12:04:42 +0000 (12:04 +0000)]
synchronize VMClassLoader.defineClass and load_class_bootstrap

19 years agofor using reserved registers on i386
christian [Thu, 14 Apr 2005 08:13:36 +0000 (08:13 +0000)]
for using reserved registers on i386

19 years agodo not panic if the stacktrace is empty
edwin [Thu, 14 Apr 2005 07:23:12 +0000 (07:23 +0000)]
do not panic if the stacktrace is empty

19 years agouse log_text for logging
edwin [Thu, 14 Apr 2005 06:07:11 +0000 (06:07 +0000)]
use log_text for logging

19 years agoimplemented defineClass with name == NULL
edwin [Thu, 14 Apr 2005 05:17:27 +0000 (05:17 +0000)]
implemented defineClass with name == NULL
call ClassLoader.loadClass with dotted name instead of slashed name
prefix log messages with thread id (preparation for log2xml.pl)

19 years agoredo of changes overwritten by last commit
christian [Wed, 13 Apr 2005 15:32:01 +0000 (15:32 +0000)]
redo of changes overwritten by last commit

19 years agoregister allocator uses unused argument registers in non leaf methods as temp
christian [Wed, 13 Apr 2005 12:50:07 +0000 (12:50 +0000)]
register allocator uses unused argument registers in non leaf methods as temp
ICMD_xRETURN changed, so that REG_RESULTs are saved in case of monitorexit (MIPS, POWERPC)
new lsra version (i386 uses now reserved registers as temp)
spilled local vars use now the memory location of corresponding spilled arguments (MIPS, ALPHA, x86_64)

19 years agopatchref patch.
twisti [Tue, 12 Apr 2005 22:57:45 +0000 (22:57 +0000)]
patchref patch.

19 years agoDefine CONDITIONAL_LOADCONST with 1.
twisti [Tue, 12 Apr 2005 22:57:26 +0000 (22:57 +0000)]
Define CONDITIONAL_LOADCONST with 1.

19 years agoi386 defines in builtin table.
twisti [Tue, 12 Apr 2005 22:01:12 +0000 (22:01 +0000)]
i386 defines in builtin table.

19 years agoComment asm_builtin_new for now (code patching related).
twisti [Tue, 12 Apr 2005 22:00:37 +0000 (22:00 +0000)]
Comment asm_builtin_new for now (code patching related).

19 years agoDisable lazy loading now for i386.
twisti [Tue, 12 Apr 2005 21:59:47 +0000 (21:59 +0000)]
Disable lazy loading now for i386.

19 years agoSome lazy loading stuff.
twisti [Tue, 12 Apr 2005 21:59:24 +0000 (21:59 +0000)]
Some lazy loading stuff.

19 years agoFirst code patching functions.
twisti [Tue, 12 Apr 2005 21:57:56 +0000 (21:57 +0000)]
First code patching functions.

19 years agoDefine CONDITIONAL_LOADCONST with 1.
twisti [Tue, 12 Apr 2005 21:57:30 +0000 (21:57 +0000)]
Define CONDITIONAL_LOADCONST with 1.

19 years agoAdded asm_builtin_newarray for i386 (will be removed).
twisti [Tue, 12 Apr 2005 21:54:40 +0000 (21:54 +0000)]
Added asm_builtin_newarray for i386 (will be removed).

19 years agoRenamed code patching functions.
twisti [Tue, 12 Apr 2005 20:43:41 +0000 (20:43 +0000)]
Renamed code patching functions.

19 years agoRenamed code patching functions.
twisti [Tue, 12 Apr 2005 20:32:53 +0000 (20:32 +0000)]
Renamed code patching functions.

19 years ago- renamed code patching functions
twisti [Tue, 12 Apr 2005 20:32:34 +0000 (20:32 +0000)]
- renamed code patching functions
- added array checkcast and instanceof code patcher

19 years agoConvert ClassNotFoundException's to NoClassDefFoundError's.
twisti [Tue, 12 Apr 2005 20:31:38 +0000 (20:31 +0000)]
Convert ClassNotFoundException's to NoClassDefFoundError's.

19 years agoRenamed code patching functions.
twisti [Tue, 12 Apr 2005 19:53:05 +0000 (19:53 +0000)]
Renamed code patching functions.

19 years agodseg_display warning fix.
twisti [Tue, 12 Apr 2005 19:52:39 +0000 (19:52 +0000)]
dseg_display warning fix.

19 years agoLazy array checkcast and instanceof.
twisti [Tue, 12 Apr 2005 19:52:06 +0000 (19:52 +0000)]
Lazy array checkcast and instanceof.

19 years agoAdded asm_patcher_* functions.
twisti [Tue, 12 Apr 2005 19:50:26 +0000 (19:50 +0000)]
Added asm_patcher_* functions.

19 years agoLink important system classes.
twisti [Tue, 12 Apr 2005 19:50:04 +0000 (19:50 +0000)]
Link important system classes.

19 years agoMoved exception loading to exceptions.c
twisti [Tue, 12 Apr 2005 19:49:45 +0000 (19:49 +0000)]
Moved exception loading to exceptions.c

19 years agoAdded: utf_java_lang_ClassNotFoundException
twisti [Tue, 12 Apr 2005 19:48:03 +0000 (19:48 +0000)]
Added: utf_java_lang_ClassNotFoundException

19 years ago- added: string_java_lang_VMThrowable
twisti [Tue, 12 Apr 2005 19:47:33 +0000 (19:47 +0000)]
- added: string_java_lang_VMThrowable
- load an link all required exceptions

19 years agoAdded: class_java_lang_ClassNotFoundException
twisti [Tue, 12 Apr 2005 19:46:03 +0000 (19:46 +0000)]
Added: class_java_lang_ClassNotFoundException

19 years agoAdded tests: checkcast, instanceof
twisti [Mon, 11 Apr 2005 15:53:27 +0000 (15:53 +0000)]
Added tests: checkcast, instanceof

19 years agoAdded: asm_checkcast_instanceof_flags, asm_checkcast_instanceof_interface,
twisti [Mon, 11 Apr 2005 15:50:49 +0000 (15:50 +0000)]
Added: asm_checkcast_instanceof_flags, asm_checkcast_instanceof_interface,
asm_instanceof_class

19 years agoLazy checkcast and instanceof.
twisti [Mon, 11 Apr 2005 15:49:51 +0000 (15:49 +0000)]
Lazy checkcast and instanceof.

19 years agoLazy instanceof.
twisti [Mon, 11 Apr 2005 15:48:42 +0000 (15:48 +0000)]
Lazy instanceof.

19 years agoCheck all code patching possibilities.
twisti [Mon, 11 Apr 2005 12:50:23 +0000 (12:50 +0000)]
Check all code patching possibilities.

19 years agoifdef assembler functions in builtin table.
twisti [Mon, 11 Apr 2005 10:50:12 +0000 (10:50 +0000)]
ifdef assembler functions in builtin table.

19 years agoOld loading code bug fixing.
twisti [Mon, 11 Apr 2005 10:49:19 +0000 (10:49 +0000)]
Old loading code bug fixing.

19 years agoChanged asm_builtin_newarray signature.
twisti [Mon, 11 Apr 2005 10:02:00 +0000 (10:02 +0000)]
Changed asm_builtin_newarray signature.

19 years agoWarning fixes (arghhh).
twisti [Mon, 11 Apr 2005 10:00:51 +0000 (10:00 +0000)]
Warning fixes (arghhh).

19 years agoLazy loading changes (CHECKCAST and INSTANCEOF are still missing).
twisti [Mon, 11 Apr 2005 09:58:52 +0000 (09:58 +0000)]
Lazy loading changes (CHECKCAST and INSTANCEOF are still missing).

19 years agoGenerate some defines for code patching functions.
twisti [Mon, 11 Apr 2005 09:57:22 +0000 (09:57 +0000)]
Generate some defines for code patching functions.

19 years agoLazy loading changes.
twisti [Mon, 11 Apr 2005 09:56:52 +0000 (09:56 +0000)]
Lazy loading changes.

19 years agoAdded OP2AT which also sets the target.
twisti [Mon, 11 Apr 2005 09:55:44 +0000 (09:55 +0000)]
Added OP2AT which also sets the target.

19 years agoPrint memory address in dseg_display.
twisti [Mon, 11 Apr 2005 09:48:09 +0000 (09:48 +0000)]
Print memory address in dseg_display.

19 years agoAdded code patching functions.
twisti [Mon, 11 Apr 2005 09:46:24 +0000 (09:46 +0000)]
Added code patching functions.

19 years agoMajor changes: added functions, renamed functions, ...
twisti [Mon, 11 Apr 2005 09:45:52 +0000 (09:45 +0000)]
Major changes: added functions, renamed functions, ...

19 years ago- moved class_getconstant, innerclass_getconstant to class.[ch]
twisti [Mon, 11 Apr 2005 09:43:57 +0000 (09:43 +0000)]
- moved class_getconstant, innerclass_getconstant to class.[ch]
- check for load_newly_created_array error in load_class_bootstrap

19 years agoMoved from loader.[ch]: class_getconstant, innerclass_getconstant
twisti [Mon, 11 Apr 2005 09:42:19 +0000 (09:42 +0000)]
Moved from loader.[ch]: class_getconstant, innerclass_getconstant