cacao.git
18 years agomd_return_alloc added to precolor the stack slots containing the return
christian [Wed, 29 Jun 2005 12:42:19 +0000 (12:42 +0000)]
md_return_alloc added to precolor the stack slots containing the return
values to the return register and regard integer/float argument use.

18 years agomd_return_alloc coded to precolour stack slots holding the return register.
christian [Wed, 29 Jun 2005 12:40:42 +0000 (12:40 +0000)]
md_return_alloc coded to precolour stack slots holding the return register.
rd->arg[int|flt]reguse calculation in md_param_alloc corrected.

18 years agoPrecoloring of stackslot holding the return value to the return register(s) implemented.
christian [Wed, 29 Jun 2005 12:39:31 +0000 (12:39 +0000)]
Precoloring of stackslot holding the return value to the return register(s) implemented.
( md_return_alloc )
----------------------------------------------------------------------

18 years ago* gc_ignore_warnings: removed, it was not used
twisti [Tue, 28 Jun 2005 19:01:39 +0000 (19:01 +0000)]
* gc_ignore_warnings: removed, it was not used

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:53:28 +0000 (18:53 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
* Check for exception in native_findfunction

18 years ago* Put some logging in JWDEBUG
twisti [Tue, 28 Jun 2005 18:52:05 +0000 (18:52 +0000)]
* Put some logging in JWDEBUG

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:50:43 +0000 (18:50 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
* Don't check for libm, we use fdlibm instead
* Build GTK peers by default

18 years ago* Java_java_lang_VMThread_isAlive: removed
twisti [Tue, 28 Jun 2005 18:47:50 +0000 (18:47 +0000)]
* Java_java_lang_VMThread_isAlive: removed
* Java_java_lang_VMThread_nativeInit: removed
* Java_java_lang_VMThread_registerNatives: removed
* Removed some logging

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:45:22 +0000 (18:45 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
* Set java.version to 1.4.2
* Use strlen("0") instead of 1

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:44:10 +0000 (18:44 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:39:35 +0000 (18:39 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
* use_class_as_object: changed return type from void to bool
* native_findfunction: throw an exception if native function is not found

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:38:16 +0000 (18:38 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
* use_class_as_object: changed return type from void to bool

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:37:28 +0000 (18:37 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM

18 years ago* Link against fdlibm instead of libm
twisti [Tue, 28 Jun 2005 18:36:27 +0000 (18:36 +0000)]
* Link against fdlibm instead of libm

18 years ago* new_exception_javastring: added
twisti [Tue, 28 Jun 2005 18:36:08 +0000 (18:36 +0000)]
* new_exception_javastring: added

18 years ago* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
twisti [Tue, 28 Jun 2005 18:35:37 +0000 (18:35 +0000)]
* Renamed STATIC_CLASSPATH to ENABLE_STATICVM
* Link with fdlibm instead of libm

18 years ago* Added SUBDIRS: we have to build fdlibm since this library contains
twisti [Tue, 28 Jun 2005 18:34:46 +0000 (18:34 +0000)]
* Added SUBDIRS: we have to build fdlibm since this library contains
  suitable math functions (e.g. IRIX fmod bug)

18 years ago* Only cosmetic changes
twisti [Tue, 28 Jun 2005 18:32:46 +0000 (18:32 +0000)]
* Only cosmetic changes

18 years ago* Java_java_lang_VMObject_wait: changed signature in comment, renamed
twisti [Tue, 28 Jun 2005 18:24:47 +0000 (18:24 +0000)]
* Java_java_lang_VMObject_wait: changed signature in comment, renamed
  params link in classpath

18 years ago* Ignore classes, vm.zip
twisti [Tue, 28 Jun 2005 18:22:39 +0000 (18:22 +0000)]
* Ignore classes, vm.zip

18 years ago* Ooops, i should use a java string instead of an utf...
twisti [Tue, 28 Jun 2005 16:05:50 +0000 (16:05 +0000)]
* Ooops, i should use a java string instead of an utf...

18 years ago* Ignore kjc, rmic
twisti [Tue, 28 Jun 2005 15:51:25 +0000 (15:51 +0000)]
* Ignore kjc, rmic

18 years ago* Added OPT_SHOWVERSION, OPT_HELP, OPT_X
twisti [Tue, 28 Jun 2005 15:41:30 +0000 (15:41 +0000)]
* Added OPT_SHOWVERSION, OPT_HELP, OPT_X
* Xusage: implemented, print non-standard Java options
* usage: reformatted
* version: added first part of GNU header
* getmainclassnamefromjar: forget JNI and use cacao internal functions,
  better error handling

18 years ago* AttachCurrentThread: added function header comment
twisti [Tue, 28 Jun 2005 12:46:42 +0000 (12:46 +0000)]
* AttachCurrentThread: added function header comment

18 years ago* Set MCODECHECK sizes much higher, so we don't run into trouble. I think
twisti [Mon, 27 Jun 2005 20:59:28 +0000 (20:59 +0000)]
* Set MCODECHECK sizes much higher, so we don't run into trouble. I think
  this does not make any performance breakdown, since code segment increase
  happens first after 32KB.

18 years ago* Ooops, a darwin accident
twisti [Mon, 27 Jun 2005 19:58:48 +0000 (19:58 +0000)]
* Ooops, a darwin accident

18 years ago* Updated to boehm 6.5
twisti [Mon, 27 Jun 2005 19:55:40 +0000 (19:55 +0000)]
* Updated to boehm 6.5
* Use DARWIN_DONT_PARSE_STACK on powerpc-darwin

18 years ago* Added DISABLE_DUMP: use normal malloc in dump functions
twisti [Mon, 27 Jun 2005 15:51:12 +0000 (15:51 +0000)]
* Added DISABLE_DUMP: use normal malloc in dump functions

18 years ago* --disable-dump: added, this disables the use of the dump memory and
twisti [Mon, 27 Jun 2005 15:50:30 +0000 (15:50 +0000)]
* --disable-dump: added, this disables the use of the dump memory and
  should ease debugging for heap corruption

18 years ago* native_make_overloaded_function: heap corruption bugfix, forgot to add
twisti [Mon, 27 Jun 2005 15:03:01 +0000 (15:03 +0000)]
* native_make_overloaded_function: heap corruption bugfix, forgot to add
  the initial name length + \0

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