cacao.git
18 years agoRegister Packing macros moved to md-abi.h
christian [Thu, 23 Jun 2005 14:19:18 +0000 (14:19 +0000)]
Register Packing macros moved to md-abi.h
No more *_SECOND_* and *_FIRST_*, all this macros operate now only on high
and low part, according to the machine architecture.

18 years agoexception handling in typeinfo.c and typecheck.c
edwin [Thu, 23 Jun 2005 14:03:24 +0000 (14:03 +0000)]
exception handling in typeinfo.c and typecheck.c
possible bugfix in typestate_merge
cleaned up typecheck.c, use verifier_state where possible
set leafmethod=false if patcher needed for field access
lots of comments added

18 years ago* Removed darwin stuff for old hardware nullpointer handling (this are the
twisti [Thu, 23 Jun 2005 14:00:27 +0000 (14:00 +0000)]
* Removed darwin stuff for old hardware nullpointer handling (this are the
  original boehm-gc6.3 files)

18 years ago* Use sigaction for sigsegv handler
twisti [Thu, 23 Jun 2005 13:53:13 +0000 (13:53 +0000)]
* Use sigaction for sigsegv handler
* Removed machine independent stuff
* Renamed handler

18 years ago* generic_print_address: fixed typo which generated a wrong address
twisti [Thu, 23 Jun 2005 13:51:33 +0000 (13:51 +0000)]
* generic_print_address: fixed typo which generated a wrong address

18 years ago* asm_handle_nullptr_exception: removed
twisti [Thu, 23 Jun 2005 13:51:06 +0000 (13:51 +0000)]
* asm_handle_nullptr_exception: removed
* asm_call_jit_compiler: use some defines to calculate the stack offsets

18 years ago* JAVA_{GET,PUT}{STATIC,FIELD}: check for initialized in !opt_verify
twisti [Thu, 23 Jun 2005 13:50:00 +0000 (13:50 +0000)]
* JAVA_{GET,PUT}{STATIC,FIELD}: check for initialized in !opt_verify

18 years ago* Removed machine independent stuff
twisti [Thu, 23 Jun 2005 13:40:41 +0000 (13:40 +0000)]
* Removed machine independent stuff
* Renamed handler

18 years ago* Time for -Werror
twisti [Thu, 23 Jun 2005 13:19:41 +0000 (13:19 +0000)]
* Time for -Werror

18 years ago* Include global.h before java_lang_String.h
twisti [Thu, 23 Jun 2005 11:12:28 +0000 (11:12 +0000)]
* Include global.h before java_lang_String.h

18 years ago* Removed machine independent stuff
twisti [Thu, 23 Jun 2005 10:14:39 +0000 (10:14 +0000)]
* Removed machine independent stuff
* Renamed handlers

18 years ago* thread_dump: send SIGUSR1 to all threads, this maybe has to be changed
twisti [Thu, 23 Jun 2005 10:09:50 +0000 (10:09 +0000)]
* thread_dump: send SIGUSR1 to all threads, this maybe has to be changed
  since boehm uses USR1 on some archs for suspend

18 years ago* Added: stacktrace_dump_trace
twisti [Thu, 23 Jun 2005 09:54:26 +0000 (09:54 +0000)]
* Added: stacktrace_dump_trace

18 years ago* Renamed init_exceptions to signal_init
twisti [Thu, 23 Jun 2005 09:52:06 +0000 (09:52 +0000)]
* Renamed init_exceptions to signal_init

18 years ago* Removed machine independent stuff
twisti [Thu, 23 Jun 2005 09:51:32 +0000 (09:51 +0000)]
* Removed machine independent stuff
* Renamed handlers

18 years ago* Moved md_param_alloc prototype to decriptor.h
twisti [Thu, 23 Jun 2005 09:42:34 +0000 (09:42 +0000)]
* Moved md_param_alloc prototype to decriptor.h

18 years ago* Added: signal.c, signallocal.h
twisti [Thu, 23 Jun 2005 09:34:51 +0000 (09:34 +0000)]
* Added: signal.c, signallocal.h

18 years ago* Machine independent signal handler stuff.
twisti [Thu, 23 Jun 2005 09:34:21 +0000 (09:34 +0000)]
* Machine independent signal handler stuff.

18 years ago* Include stdlib.h again to prevent a compiler warning, till i can fix the
twisti [Thu, 23 Jun 2005 09:30:04 +0000 (09:30 +0000)]
* Include stdlib.h again to prevent a compiler warning, till i can fix the
  code and use cacao memory macros

18 years agoadded comments and assertions, minor cleanup
edwin [Wed, 22 Jun 2005 22:07:33 +0000 (22:07 +0000)]
added comments and assertions, minor cleanup

18 years agoadded comments (and some assertions)
edwin [Wed, 22 Jun 2005 20:28:31 +0000 (20:28 +0000)]
added comments (and some assertions)

18 years agofix error message code: utf_sprint declarer->name, not declarer
edwin [Wed, 22 Jun 2005 16:27:21 +0000 (16:27 +0000)]
fix error message code: utf_sprint declarer->name, not declarer

18 years agoadded checkaccess parameter to resolve_class_from_typedesc
edwin [Wed, 22 Jun 2005 16:16:41 +0000 (16:16 +0000)]
added checkaccess parameter to resolve_class_from_typedesc

18 years agoadded checkaccess parameter to resolve_class* functions
edwin [Wed, 22 Jun 2005 16:08:51 +0000 (16:08 +0000)]
added checkaccess parameter to resolve_class* functions
improved exception handling in typeinfo.c
do not check access rights to classes for subtype checks

18 years agofixed undefined return value of verify_init_locals
edwin [Wed, 22 Jun 2005 13:24:19 +0000 (13:24 +0000)]
fixed undefined return value of verify_init_locals

18 years agomade verify_ functions static
edwin [Wed, 22 Jun 2005 12:38:20 +0000 (12:38 +0000)]
made verify_ functions static

18 years agointroducted verifier_state structure
edwin [Wed, 22 Jun 2005 12:32:04 +0000 (12:32 +0000)]
introducted verifier_state structure
started to split monster function typecheck() into several functions
move towards verifiying lazy loading
some comments

18 years agofix subtype checking for merged array types
edwin [Wed, 22 Jun 2005 12:09:11 +0000 (12:09 +0000)]
fix subtype checking for merged array types
better error message if subtype test fails
added some RESOLVE_VERBOSE message (maybe remove later)

18 years agoif (opt_verify) set iptr->val.a to NULL to indicate unresolved reference
edwin [Wed, 22 Jun 2005 12:05:49 +0000 (12:05 +0000)]
if (opt_verify) set iptr->val.a to NULL to indicate unresolved reference

18 years agoadded stubs for typeinfo functions
edwin [Wed, 22 Jun 2005 12:03:36 +0000 (12:03 +0000)]
added stubs for typeinfo functions

18 years ago* Added opt_shownativestub to show disassembled native stubs
twisti [Wed, 22 Jun 2005 10:51:53 +0000 (10:51 +0000)]
* Added opt_shownativestub to show disassembled native stubs
* Bugfix: dump_release was a bit too early (we need cd for debugging)

18 years ago* Added opt_shownativestub to show disassembled native stubs
twisti [Wed, 22 Jun 2005 10:51:03 +0000 (10:51 +0000)]
* Added opt_shownativestub to show disassembled native stubs

18 years ago* patcher_get_putfield: only patch back 5-bytes, since the instruction is
twisti [Wed, 22 Jun 2005 10:28:54 +0000 (10:28 +0000)]
* patcher_get_putfield: only patch back 5-bytes, since the instruction is
  smaller than 8-bytes
* Added machine code comments to function headers

18 years agoVariables for later to be corrected argument register use commented out correctly
christian [Wed, 22 Jun 2005 10:02:54 +0000 (10:02 +0000)]
Variables for later to be corrected argument register use commented out correctly

18 years agoAdded/Corrected [INT|ADR|FLT]_[REG|TMP|SAV|ARG|RES]_CNT defines
christian [Wed, 22 Jun 2005 09:51:11 +0000 (09:51 +0000)]
Added/Corrected [INT|ADR|FLT]_[REG|TMP|SAV|ARG|RES]_CNT defines

18 years agoAdopted to compile with the registerdata changes. Not to be used for now.
christian [Wed, 22 Jun 2005 09:49:20 +0000 (09:49 +0000)]
Adopted to compile with the registerdata changes. Not to be used for now.

18 years agoCorrect entries in Authors/Changes
christian [Wed, 22 Jun 2005 09:48:28 +0000 (09:48 +0000)]
Correct entries in Authors/Changes

18 years agoChanges in the registerdata structure:
christian [Wed, 22 Jun 2005 09:47:44 +0000 (09:47 +0000)]
Changes in the registerdata structure:
all max*, if* are put together with the corresponding member
all members for the number of registers are replaced by #defines in the appropriate md-abi.h (
[INT|ADR|FLT]_[REG|TMP|SAV|ARG|RES]_CNT )

18 years ago* Only patch back 5 bytes code (call size) since 8 bytes may overwrite a
twisti [Wed, 22 Jun 2005 09:26:04 +0000 (09:26 +0000)]
* Only patch back 5 bytes code (call size) since 8 bytes may overwrite a
  instruction of the next basic block

18 years ago* Added a filler entry to builtintable_automatic to prevent a compiler
twisti [Wed, 22 Jun 2005 09:24:37 +0000 (09:24 +0000)]
* Added a filler entry to builtintable_automatic to prevent a compiler
  warning where all ICMDs are supported (e.g. i386)

18 years ago* builtintable_sort_internal: removed, we don't need it
twisti [Wed, 22 Jun 2005 09:23:53 +0000 (09:23 +0000)]
* builtintable_sort_internal: removed, we don't need it
* subtract 1 from automatic table size (compiler warning filler)

18 years ago* Added M_ALD, M_AST macros
twisti [Tue, 21 Jun 2005 15:53:07 +0000 (15:53 +0000)]
* Added M_ALD, M_AST macros

18 years ago* Fixed nasty eclipse show-stopper: x86_64_mov_imm_membase moves 32-bit
twisti [Tue, 21 Jun 2005 15:52:44 +0000 (15:52 +0000)]
* Fixed nasty eclipse show-stopper: x86_64_mov_imm_membase moves 32-bit
  sign-extended to a 64-bit location

18 years ago* Some code cleanup, so maybe one day i can understand the code
twisti [Tue, 21 Jun 2005 15:51:39 +0000 (15:51 +0000)]
* Some code cleanup, so maybe one day i can understand the code

18 years ago* createnativestub: removed machine independent code
twisti [Tue, 21 Jun 2005 11:47:05 +0000 (11:47 +0000)]
* createnativestub: removed machine independent code
* started to use macros like on Alpha

18 years ago* Added M_LADD, M_AADD macros
twisti [Tue, 21 Jun 2005 11:46:06 +0000 (11:46 +0000)]
* Added M_LADD, M_AADD macros

18 years ago* Bugfix: membase %rsp/%r12 special case
twisti [Tue, 21 Jun 2005 10:40:28 +0000 (10:40 +0000)]
* Bugfix: membase %rsp/%r12 special case

18 years ago* createnativestub: removed machine independent code
twisti [Tue, 21 Jun 2005 10:18:15 +0000 (10:18 +0000)]
* createnativestub: removed machine independent code

18 years ago* createnativestub: removed machine independent code
twisti [Tue, 21 Jun 2005 09:19:14 +0000 (09:19 +0000)]
* createnativestub: removed machine independent code

18 years agofixed a deadlock introduced by previous patch
stefan [Mon, 20 Jun 2005 23:09:59 +0000 (23:09 +0000)]
fixed a deadlock introduced by previous patch

19 years agolet's clear this up a bit
stefan [Mon, 20 Jun 2005 22:46:55 +0000 (22:46 +0000)]
let's clear this up a bit

19 years agolet's clear this up a bit
stefan [Mon, 20 Jun 2005 22:36:55 +0000 (22:36 +0000)]
let's clear this up a bit

19 years agoreplaced one hack by another
stefan [Mon, 20 Jun 2005 22:14:59 +0000 (22:14 +0000)]
replaced one hack by another

19 years ago* Set java.version to 1.4.1 for eclipse-3.1
twisti [Mon, 20 Jun 2005 21:56:37 +0000 (21:56 +0000)]
* Set java.version to 1.4.1 for eclipse-3.1

19 years agodo not check protected access for methods of arrays (problem with clone method)
edwin [Mon, 20 Jun 2005 21:14:33 +0000 (21:14 +0000)]
do not check protected access for methods of arrays (problem with clone method)
work on lazy loading verification

19 years ago* createnativestub: removed machine independent code
twisti [Mon, 20 Jun 2005 20:53:09 +0000 (20:53 +0000)]
* createnativestub: removed machine independent code

19 years ago* Moved machine independent code from createnativestub to
twisti [Mon, 20 Jun 2005 18:26:03 +0000 (18:26 +0000)]
* Moved machine independent code from createnativestub to
  codegen_createnativestub

19 years agofix merging error
edwin [Mon, 20 Jun 2005 15:23:48 +0000 (15:23 +0000)]
fix merging error

19 years agosome fixes
edwin [Mon, 20 Jun 2005 15:19:46 +0000 (15:19 +0000)]
some fixes

19 years agoadded stub for typeinfo_init_class
edwin [Mon, 20 Jun 2005 15:18:41 +0000 (15:18 +0000)]
added stub for typeinfo_init_class

19 years agoadded two macros for PUT{FIELD,STATIC}CONST
edwin [Mon, 20 Jun 2005 15:13:08 +0000 (15:13 +0000)]
added two macros for PUT{FIELD,STATIC}CONST

19 years agomove the verifier towards lazy loading
edwin [Mon, 20 Jun 2005 15:11:47 +0000 (15:11 +0000)]
move the verifier towards lazy loading

19 years agoturn on TYPECHECK_DEBUG, turn off TYPECHECK_VERBOSE
edwin [Mon, 20 Jun 2005 15:04:31 +0000 (15:04 +0000)]
turn on TYPECHECK_DEBUG, turn off TYPECHECK_VERBOSE

19 years ago* Come on... it's not that hard!
twisti [Mon, 20 Jun 2005 15:01:24 +0000 (15:01 +0000)]
* Come on... it's not that hard!

19 years agoshorter debug dump for parsed descriptors
edwin [Mon, 20 Jun 2005 15:00:55 +0000 (15:00 +0000)]
shorter debug dump for parsed descriptors

19 years agoadded builtintable_entry_debug_dump
edwin [Mon, 20 Jun 2005 13:06:15 +0000 (13:06 +0000)]
added builtintable_entry_debug_dump

19 years agosome work on the resolve functions for verification
edwin [Mon, 20 Jun 2005 12:01:34 +0000 (12:01 +0000)]
some work on the resolve functions for verification

19 years agofixed classref field for 'this' parameter in methoddescs
edwin [Mon, 20 Jun 2005 11:59:14 +0000 (11:59 +0000)]
fixed classref field for 'this' parameter in methoddescs

19 years agoadded class_get_self_classref, should be made faster, however
edwin [Mon, 20 Jun 2005 11:54:06 +0000 (11:54 +0000)]
added class_get_self_classref, should be made faster, however

19 years ago* handler_signal_quit: added, this handler calls the thread_dump function
twisti [Mon, 20 Jun 2005 09:58:48 +0000 (09:58 +0000)]
* handler_signal_quit: added, this handler calls the thread_dump function
  when SIGQUIT is received

19 years ago* Added utf_run
twisti [Mon, 20 Jun 2005 09:57:14 +0000 (09:57 +0000)]
* Added utf_run

19 years ago* Started to implement thread_dump
twisti [Mon, 20 Jun 2005 09:56:49 +0000 (09:56 +0000)]
* Started to implement thread_dump
* threadstartup: use global utf variables

19 years ago* Added thread_dump
twisti [Mon, 20 Jun 2005 09:53:53 +0000 (09:53 +0000)]
* Added thread_dump

19 years agosplit create_unresolved_* functions in create_* and constrain_* parts
edwin [Sat, 18 Jun 2005 16:37:34 +0000 (16:37 +0000)]
split create_unresolved_* functions in create_* and constrain_* parts
create_ functions are called in parse.c
constrain_ functions will be called by typecheck.c

19 years agoadded comments and a little fix to parameter allocation
edwin [Sat, 18 Jun 2005 14:55:20 +0000 (14:55 +0000)]
added comments and a little fix to parameter allocation
use METHODDESC_NOPARAMS to indicate number of allocated params == 0
moved descriptor parsing macros to descriptor.c

19 years ago* Use code/data segment in native stub
twisti [Sat, 18 Jun 2005 09:20:34 +0000 (09:20 +0000)]
* Use code/data segment in native stub

19 years ago* Alpha signal stuff
twisti [Fri, 17 Jun 2005 13:38:35 +0000 (13:38 +0000)]
* Alpha signal stuff

19 years ago* codegen_createnativestub: passed wrong length to
twisti [Fri, 17 Jun 2005 13:01:06 +0000 (13:01 +0000)]
* codegen_createnativestub: passed wrong length to
  codegen_disassemble_nativestub, added show data segment code

19 years ago* asm_calljavafunction2: keep stack 16-byte aligned
twisti [Fri, 17 Jun 2005 12:18:29 +0000 (12:18 +0000)]
* asm_calljavafunction2: keep stack 16-byte aligned

19 years ago* Added md.c
twisti [Fri, 17 Jun 2005 12:14:57 +0000 (12:14 +0000)]
* Added md.c

19 years ago* Just typos
twisti [Fri, 17 Jun 2005 12:14:45 +0000 (12:14 +0000)]
* Just typos

19 years ago* Added putfieldconst zero for risc architectures
twisti [Fri, 17 Jun 2005 11:24:00 +0000 (11:24 +0000)]
* Added putfieldconst zero for risc architectures

19 years ago* Include correct signal.h
twisti [Fri, 17 Jun 2005 08:12:53 +0000 (08:12 +0000)]
* Include correct signal.h

19 years ago* Don't use native_findfunction with non-static classpath
twisti [Fri, 17 Jun 2005 08:12:26 +0000 (08:12 +0000)]
* Don't use native_findfunction with non-static classpath
* compile warning fix

19 years ago* bug fixing in native library hash code, it should work now completely, at
twisti [Fri, 17 Jun 2005 08:11:34 +0000 (08:11 +0000)]
* bug fixing in native library hash code, it should work now completely, at
  least it does on FreeBSD.

19 years ago* ignore generated header files (static ones are still missing)
twisti [Thu, 16 Jun 2005 22:08:27 +0000 (22:08 +0000)]
* ignore generated header files (static ones are still missing)

19 years agoclass loading synchronization: throw away loaded class if a class with the
edwin [Thu, 16 Jun 2005 19:10:35 +0000 (19:10 +0000)]
class loading synchronization: throw away loaded class if a class with the
same (loader,name) pair has already been defined/loaded.

19 years ago* Insert stackframesize in method header
twisti [Thu, 16 Jun 2005 11:57:46 +0000 (11:57 +0000)]
* Insert stackframesize in method header
* Fixed 16-bit offset overflow in patcher stub, so jalopy works, but this
  should be done for all loads (but how?)

19 years ago* Small fix: let M_ALD use M_ILD
twisti [Thu, 16 Jun 2005 11:56:01 +0000 (11:56 +0000)]
* Small fix: let M_ALD use M_ILD

19 years ago* Bugfix: a double skips 2 integer argument registers
twisti [Thu, 16 Jun 2005 11:55:22 +0000 (11:55 +0000)]
* Bugfix: a double skips 2 integer argument registers

19 years ago* Test with 15 arguments, since powerpc-darwin has 13 float argument
twisti [Thu, 16 Jun 2005 11:49:27 +0000 (11:49 +0000)]
* Test with 15 arguments, since powerpc-darwin has 13 float argument
  registers.

19 years agoRemoved runverbose depended usecount of argintregs for return regs
christian [Thu, 16 Jun 2005 09:09:04 +0000 (09:09 +0000)]
Removed runverbose depended usecount of argintregs for return regs

19 years ago* Forgot native/native.h include
twisti [Wed, 15 Jun 2005 15:59:49 +0000 (15:59 +0000)]
* Forgot native/native.h include

19 years ago* patcher_resolve_native: implemented
twisti [Wed, 15 Jun 2005 15:57:38 +0000 (15:57 +0000)]
* patcher_resolve_native: implemented

19 years ago* Removed STATIC_CLASSPATH from alpha
twisti [Wed, 15 Jun 2005 15:54:29 +0000 (15:54 +0000)]
* Removed STATIC_CLASSPATH from alpha

19 years ago* Moved stuff to md.c
twisti [Wed, 15 Jun 2005 14:14:34 +0000 (14:14 +0000)]
* Moved stuff to md.c
* use machine independent address macros
* native stub changes (code/data segment)
* dynamic library loading

19 years ago* M_ASUB_IMM: added for both archs
twisti [Wed, 15 Jun 2005 14:13:23 +0000 (14:13 +0000)]
* M_ASUB_IMM: added for both archs

19 years ago* changed some long stuff to use machine independent address macros
twisti [Wed, 15 Jun 2005 14:12:59 +0000 (14:12 +0000)]
* changed some long stuff to use machine independent address macros
* removed monitor functions

19 years ago* Defined stuff for MIPS32
twisti [Wed, 15 Jun 2005 14:10:47 +0000 (14:10 +0000)]
* Defined stuff for MIPS32

19 years ago* define some stuff for MIPS32
twisti [Wed, 15 Jun 2005 14:10:07 +0000 (14:10 +0000)]
* define some stuff for MIPS32