cacao.git
18 years agoTyping error from last commit fixed
christian [Mon, 27 Jun 2005 14:21:44 +0000 (14:21 +0000)]
Typing error from last commit fixed

18 years agoReserve stack space for saving return values to survive monitorexit according to...
christian [Mon, 27 Jun 2005 14:19:36 +0000 (14:19 +0000)]
Reserve stack space for saving return values to survive monitorexit according to the type

18 years ago* md_init: added
twisti [Mon, 27 Jun 2005 12:07:54 +0000 (12:07 +0000)]
* md_init: added

18 years agoCorrect saving of integer return register for [AIL]RETURN for monitorexit
christian [Mon, 27 Jun 2005 10:55:38 +0000 (10:55 +0000)]
Correct saving of integer return register for [AIL]RETURN for monitorexit

18 years ago* Ignore ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES
twisti [Mon, 27 Jun 2005 08:58:00 +0000 (08:58 +0000)]
* Ignore ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES

18 years ago* Bugfix: check return type for IS_2_WORD_TYPE and save more space on stack for
twisti [Sun, 26 Jun 2005 23:53:54 +0000 (23:53 +0000)]
* Bugfix: check return type for IS_2_WORD_TYPE and save more space on stack for
  monitorexit
* use more risc macros

18 years ago* M_ALD, M_AST: macros added
twisti [Sun, 26 Jun 2005 23:51:36 +0000 (23:51 +0000)]
* M_ALD, M_AST: macros added

18 years agocorrect handling for register usage for return types
christian [Sun, 26 Jun 2005 21:48:50 +0000 (21:48 +0000)]
correct handling for register usage for return types

18 years agoone M_ILD in var_to_reg_int too much
christian [Sun, 26 Jun 2005 21:48:11 +0000 (21:48 +0000)]
one M_ILD in var_to_reg_int too much

18 years agomd_param_alloc has to be called if paramcount==0, too
christian [Sun, 26 Jun 2005 21:47:29 +0000 (21:47 +0000)]
md_param_alloc has to be called if paramcount==0, too

18 years ago* md_init: added
twisti [Sun, 26 Jun 2005 13:06:51 +0000 (13:06 +0000)]
* md_init: added

18 years ago* Added md_init
twisti [Sun, 26 Jun 2005 11:39:18 +0000 (11:39 +0000)]
* Added md_init

18 years ago* Added md_init
twisti [Sat, 25 Jun 2005 15:32:34 +0000 (15:32 +0000)]
* Added md_init

18 years ago* Removed machine independent stuff
twisti [Sat, 25 Jun 2005 15:29:50 +0000 (15:29 +0000)]
* Removed machine independent stuff
* Renamed handlers
* Added md_init

18 years ago* Use strlen("0") instead of 1
twisti [Sat, 25 Jun 2005 14:47:16 +0000 (14:47 +0000)]
* Use strlen("0") instead of 1
* Call md_init, i think after jit_init is a good place

18 years ago* Removed machine independent stuff
twisti [Sat, 25 Jun 2005 13:43:51 +0000 (13:43 +0000)]
* Removed machine independent stuff
* Renamed handler
* Added md_init

18 years ago* Added md_init prototype (i think this is the best place)
twisti [Sat, 25 Jun 2005 13:42:38 +0000 (13:42 +0000)]
* Added md_init prototype (i think this is the best place)

18 years ago* builtin_displaymethodstop: print hex values of integer/float return
twisti [Sat, 25 Jun 2005 13:37:35 +0000 (13:37 +0000)]
* builtin_displaymethodstop: print hex values of integer/float return
  values

18 years ago* ICMD_{GET,PUT}STATIC: print (NOT INITIALIZED) for uninitialized classes
twisti [Sat, 25 Jun 2005 13:31:16 +0000 (13:31 +0000)]
* ICMD_{GET,PUT}STATIC: print (NOT INITIALIZED) for uninitialized classes

18 years ago* Print hex value for ICMD_FCONST, ICMD_DCONST
twisti [Sat, 25 Jun 2005 13:29:42 +0000 (13:29 +0000)]
* Print hex value for ICMD_FCONST, ICMD_DCONST
* Use %g instead of %f for ICMD_DCONST

18 years ago* builtin_asm_get_stackframeinfo: don't declare as inline since this
twisti [Sat, 25 Jun 2005 13:25:21 +0000 (13:25 +0000)]
* builtin_asm_get_stackframeinfo: don't declare as inline since this
  results in linking problems (at least on irix)

18 years agoUse of unused argument registers in leaf methods enabled, too
christian [Fri, 24 Jun 2005 19:46:23 +0000 (19:46 +0000)]
Use of unused argument registers in leaf methods enabled, too

18 years agoUse of unused argument registers as temp registers again enabled
christian [Fri, 24 Jun 2005 15:11:59 +0000 (15:11 +0000)]
Use of unused argument registers as temp registers again enabled

18 years agoTyping error corrected (argINTreguse instead of argFLTreguse)
christian [Fri, 24 Jun 2005 15:11:25 +0000 (15:11 +0000)]
Typing error corrected (argINTreguse instead of argFLTreguse)

18 years agocomments
edwin [Thu, 23 Jun 2005 17:49:38 +0000 (17:49 +0000)]
comments
renamed typeinfo_init_from_methoddesc to typeinfos_...

18 years ago* asm_call_jit_compiler: use store macros on linux and in the meantime
twisti [Thu, 23 Jun 2005 15:22:01 +0000 (15:22 +0000)]
* asm_call_jit_compiler: use store macros on linux and in the meantime
  inlined code for darwin (till i find something that works)* asm_call_jit_compiler: use store macros on linux and in the meantime
    inlined code for darwin (till i find something that works)* asm_call_jit_compiler: use store macros on linux and in the meantime
      inlined code for darwin (till i find something that works)* asm_call_jit_compiler: use store macros on linux and in the meantime
        inlined code for darwin (till i find something that works)* asm_call_jit_compiler: use store macros on linux and in the meantime
  inlined code for darwin (till i find something that works)* asm_call_jit_compiler: use store macros on linux and in the meantime
    inlined code for darwin (till i find something that works)* asm_call_jit_compiler: use store macros on linux and in the meantime
      inlined code for darwin (till i find something that works)* asm_call_jit_compiler: use store macros on linux and in the meantime
        inlined code for darwin (till i find something that works)

18 years ago* Removed machine independent stuff
twisti [Thu, 23 Jun 2005 15:21:02 +0000 (15:21 +0000)]
* Removed machine independent stuff
* Renamed handler

18 years ago* Removed redundant )'s
twisti [Thu, 23 Jun 2005 15:20:39 +0000 (15:20 +0000)]
* Removed redundant )'s

18 years agoTyping errors corrected
christian [Thu, 23 Jun 2005 14:49:51 +0000 (14:49 +0000)]
Typing errors corrected

18 years agoIndex for intargregs for long Parameters get packed now
christian [Thu, 23 Jun 2005 14:30:44 +0000 (14:30 +0000)]
Index for intargregs for long Parameters get packed now

18 years agoCorrected INT_XXX_CNT
christian [Thu, 23 Jun 2005 14:30:04 +0000 (14:30 +0000)]
Corrected INT_XXX_CNT
Register packing macros added

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

19 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