cacao.git
19 years agoDefined registerdata structure.
twisti [Wed, 30 Jun 2004 19:49:37 +0000 (19:49 +0000)]
Defined registerdata structure.

19 years ago- moved statistic variables into statistics.*
twisti [Wed, 30 Jun 2004 19:48:48 +0000 (19:48 +0000)]
- moved statistic variables into statistics.*
- implemented ICMD_xASTORECONST

19 years ago- include options.h/statistics.h instead of main.h
twisti [Wed, 30 Jun 2004 19:47:43 +0000 (19:47 +0000)]
- include options.h/statistics.h instead of main.h
- implemented ICMD_xASTORECONST
- registerdata changes

19 years agoInclude options.h/statistics.h instead of main.h.
twisti [Wed, 30 Jun 2004 19:42:17 +0000 (19:42 +0000)]
Include options.h/statistics.h instead of main.h.

19 years ago- moved commandline switch and statistic variables into
twisti [Wed, 30 Jun 2004 19:41:23 +0000 (19:41 +0000)]
- moved commandline switch and statistic variables into
  options.*/statistics.*
- added *registerdata to methodinfo

19 years ago- moved statistic variables into statistics.*
twisti [Wed, 30 Jun 2004 19:39:04 +0000 (19:39 +0000)]
- moved statistic variables into statistics.*
- implemented ICMD_xASTORECONST
- moved global register data into structure referenced by methodinfo

19 years agoMoved commandline option and statistic variables into
twisti [Wed, 30 Jun 2004 19:32:11 +0000 (19:32 +0000)]
Moved commandline option and statistic variables into
options.*/statistics.*. So we can include them also into cacaoh and
gennativetable.

19 years agoInclude options.h
twisti [Wed, 30 Jun 2004 19:29:35 +0000 (19:29 +0000)]
Include options.h

19 years agoInclude options.h instead of main.h
twisti [Wed, 30 Jun 2004 19:26:39 +0000 (19:26 +0000)]
Include options.h instead of main.h

19 years agoInclude dir fix.
twisti [Wed, 30 Jun 2004 19:26:19 +0000 (19:26 +0000)]
Include dir fix.

19 years agoContains global statistic variables used in the compiler.
twisti [Wed, 30 Jun 2004 19:13:37 +0000 (19:13 +0000)]
Contains global statistic variables used in the compiler.

19 years agoContains commandline switch variables used in cacao and cacaoh.
twisti [Wed, 30 Jun 2004 19:13:00 +0000 (19:13 +0000)]
Contains commandline switch variables  used in cacao and cacaoh.

19 years agoGenerate nativetable.h for native.c
twisti [Wed, 30 Jun 2004 19:12:20 +0000 (19:12 +0000)]
Generate nativetable.h for native.c

19 years agoGenerate jit/ARCH_DIR/offsets.h
twisti [Wed, 30 Jun 2004 19:12:01 +0000 (19:12 +0000)]
Generate jit/ARCH_DIR/offsets.h

19 years agoAdded javastring_tochar, class_java_lang_Exception
twisti [Tue, 29 Jun 2004 14:38:55 +0000 (14:38 +0000)]
Added javastring_tochar, class_java_lang_Exception

19 years agoPrint detailMessage in builtin_throw_exception.
twisti [Tue, 29 Jun 2004 14:37:41 +0000 (14:37 +0000)]
Print detailMessage in builtin_throw_exception.

19 years agoremoval_of_global_jit_variables changes.
twisti [Tue, 29 Jun 2004 14:11:16 +0000 (14:11 +0000)]
removal_of_global_jit_variables changes.

19 years agoasmpart depends on offsets.h
twisti [Tue, 29 Jun 2004 14:09:08 +0000 (14:09 +0000)]
asmpart depends on offsets.h

19 years ago- print exceptions if they occur
twisti [Tue, 29 Jun 2004 13:31:58 +0000 (13:31 +0000)]
- print exceptions if they occur
- start with 2MB max heap size

19 years agocodegen_insertNative only for i386 and x86_64.
twisti [Tue, 29 Jun 2004 12:24:21 +0000 (12:24 +0000)]
codegen_insertNative only for i386 and x86_64.

19 years agowe need to disable threads for boehm
stefan [Sat, 26 Jun 2004 13:38:33 +0000 (13:38 +0000)]
we need to disable threads for boehm

19 years agonative threads configuration option added
stefan [Sat, 26 Jun 2004 12:45:44 +0000 (12:45 +0000)]
native threads configuration option added

19 years agorename thread switch so we can control it from our configure script
stefan [Sat, 26 Jun 2004 12:43:29 +0000 (12:43 +0000)]
rename thread switch so we can control it from our configure script

19 years agojit global vars added
stefan [Fri, 25 Jun 2004 22:41:28 +0000 (22:41 +0000)]
jit global vars added

19 years agono threads compile fix merged
stefan [Fri, 25 Jun 2004 22:16:40 +0000 (22:16 +0000)]
no threads compile fix merged

19 years agoTemporary hack for non i386 architectures.
twisti [Fri, 25 Jun 2004 12:20:52 +0000 (12:20 +0000)]
Temporary hack for non i386 architectures.

19 years ago- implemented some exceptions
twisti [Fri, 25 Jun 2004 10:19:28 +0000 (10:19 +0000)]
- implemented some exceptions
- sleepThread now takes also nanos

19 years ago- pass nanos to sleepThread
twisti [Fri, 25 Jun 2004 10:15:56 +0000 (10:15 +0000)]
- pass nanos to sleepThread
- #ifdef __GNUC__ for #warning

19 years agoupdated inline.c so works with lazy loading
carolyn [Fri, 25 Jun 2004 06:18:44 +0000 (06:18 +0000)]
updated inline.c so works with lazy loading

19 years agoHmm, this file makes problems.
twisti [Wed, 23 Jun 2004 13:35:43 +0000 (13:35 +0000)]
Hmm, this file makes problems.

19 years agoRemoved jit.c global variables. Most of them were already in methodinfo,
twisti [Tue, 22 Jun 2004 23:14:55 +0000 (23:14 +0000)]
Removed jit.c global variables. Most of them were already in methodinfo,
others now have a pointer into dump area, some are new variables. Thus the
methodinfo pointer is now passed to the called functions.

19 years agoneed clarification
stefan [Mon, 21 Jun 2004 19:58:48 +0000 (19:58 +0000)]
need clarification

20 years ago- check for NoClassDefFoundError, because forName can also throw other
twisti [Sun, 20 Jun 2004 21:24:17 +0000 (21:24 +0000)]
- check for NoClassDefFoundError, because forName can also throw other
  exceptions, check for class_load/link errors
- commented some strange code

20 years agoAdded a testing class.
twisti [Sun, 20 Jun 2004 21:20:33 +0000 (21:20 +0000)]
Added a testing class.

20 years agoMade random a global variable to get always different sleep values (equals
twisti [Sun, 20 Jun 2004 21:20:15 +0000 (21:20 +0000)]
Made random a global variable to get always different sleep values (equals
values happend on fast smp machines).

20 years agoAlso pass nanos to sleepThread function.
twisti [Sun, 20 Jun 2004 20:59:12 +0000 (20:59 +0000)]
Also pass nanos to sleepThread function.

20 years agoFixed include path.
twisti [Sun, 20 Jun 2004 20:58:46 +0000 (20:58 +0000)]
Fixed include path.

20 years agoSet prev and next to NULL on list_remove (with this fix eager loading
twisti [Sun, 20 Jun 2004 19:45:55 +0000 (19:45 +0000)]
Set prev and next to NULL on list_remove (with this fix eager loading
works).

20 years agoEager loading now works.
twisti [Sun, 20 Jun 2004 19:44:46 +0000 (19:44 +0000)]
Eager loading now works.

20 years agoBug fix in builtin_monitor* with green threads: monitors must be
twisti [Sat, 19 Jun 2004 12:59:20 +0000 (12:59 +0000)]
Bug fix in builtin_monitor* with green threads: monitors must be
reentrantable by the same thread (recursive call of synchronized function).

20 years ago- Arghhhh! Do NOT use %ebx in a asm_ function without saving it, it's a
twisti [Sat, 19 Jun 2004 12:49:53 +0000 (12:49 +0000)]
- Arghhhh! Do NOT use %ebx in a asm_ function without saving it, it's a
  callee saved register!!! Damn. I now use %edx (-> related to jit.c's
  method_uses_edx stuff).
- some code indent

20 years agoDon't use ecx, edx on i386 (we have problems with asmpart functions). I
twisti [Sat, 19 Jun 2004 12:47:25 +0000 (12:47 +0000)]
Don't use ecx, edx on i386 (we have problems with asmpart functions). I
now think, this was not a good idea.

20 years agoSome lazy loading/linking checks, i believe the are _many_ more!
twisti [Sat, 19 Jun 2004 12:46:00 +0000 (12:46 +0000)]
Some lazy loading/linking checks, i believe the are _many_ more!

20 years ago- added: throw_exception, throw_exception_exit, throw_main_exception and
twisti [Sat, 19 Jun 2004 12:44:12 +0000 (12:44 +0000)]
- added: throw_exception, throw_exception_exit, throw_main_exception and
         throw_main_exception_exit, which all of them use
         throw_exception_exit_intern
- eager loading stuff

20 years agoAdded: throw_exception, throw_main_exception, throw_main_exception_exit
twisti [Sat, 19 Jun 2004 12:42:54 +0000 (12:42 +0000)]
Added: throw_exception, throw_main_exception, throw_main_exception_exit

20 years ago- added compatibility flags: -cp, -Xmx, -Xms (with K, M)
twisti [Sat, 19 Jun 2004 12:32:57 +0000 (12:32 +0000)]
- added compatibility flags: -cp, -Xmx, -Xms (with K, M)
- usage of throw_main_exception_exit
- don't exit after an exception in the main method (2 reasons: we use
  Runtime.exit() and maybe other threads are running)

20 years agoAdded initializing flag to classinfo structure. This is used by the
twisti [Sat, 19 Jun 2004 12:26:33 +0000 (12:26 +0000)]
Added initializing flag to classinfo structure. This is used by the
compiler to prevent circularity in class_init's.

20 years ago- removed stringdeleter from tables_close (why?)
twisti [Sat, 19 Jun 2004 12:24:42 +0000 (12:24 +0000)]
- removed stringdeleter from tables_close (why?)
- renamed some functions to better names: utf_new_int -> utf_new_intern
                                          class_new_int -> class_new_intern
- added class_remove

20 years ago- removed stringdeleter from tables_close (why?)
twisti [Sat, 19 Jun 2004 12:23:13 +0000 (12:23 +0000)]
- removed stringdeleter from tables_close (why?)
- renamed some functions to better names: utf_new_int -> utf_new_intern
                                          class_new_int -> class_new_intern
- added class_remove: this removes the classinfo entry in the hashtable

20 years agoAdded class_free
twisti [Sat, 19 Jun 2004 12:21:06 +0000 (12:21 +0000)]
Added class_free

20 years agoAnsi C greetz you...
twisti [Sat, 19 Jun 2004 12:20:06 +0000 (12:20 +0000)]
Ansi C greetz you...

20 years ago- added new_classformaterror
twisti [Sat, 19 Jun 2004 12:13:45 +0000 (12:13 +0000)]
- added new_classformaterror
- added check_classbuffer_size (use before suck_ calls)
- made suck_* #define's inline functions
- some functions now return bool to catch "truncated class files"
- added some eager loading stuff
- free class resources if loading failed
- class_init wrapper with monitors to handle class init's properly

20 years agoMoved builtin_monitorenter/builtin_monitorexit functions outside of the
twisti [Thu, 17 Jun 2004 19:23:25 +0000 (19:23 +0000)]
Moved builtin_monitorenter/builtin_monitorexit functions outside of the
trace call functions to get a proper trace call with threads.

20 years agoFixed include paths.
twisti [Thu, 17 Jun 2004 17:17:09 +0000 (17:17 +0000)]
Fixed include paths.

20 years agoAdded throw_exception
twisti [Thu, 17 Jun 2004 17:12:40 +0000 (17:12 +0000)]
Added throw_exception

20 years ago*** empty log message ***
stefan [Thu, 17 Jun 2004 16:04:44 +0000 (16:04 +0000)]
*** empty log message ***

20 years agoa few finalizer testcases, old thread implementation uses now VMThread, no mor contex...
jowenn [Wed, 16 Jun 2004 14:56:18 +0000 (14:56 +0000)]
a few finalizer testcases, old thread implementation uses now VMThread, no mor context (perhaps we should change some of the functions needing Thread objects to use VMThreadobjects. Better handling of ambigious native function names. Fix for clinit in static native call stub. early  initialization of  System class ...

20 years agoMIPS specific functions
stefan [Sat, 12 Jun 2004 15:04:31 +0000 (15:04 +0000)]
MIPS specific functions

20 years agoprototype fix
stefan [Sat, 12 Jun 2004 15:01:00 +0000 (15:01 +0000)]
prototype fix

20 years agoansi c fix
stefan [Sat, 12 Jun 2004 14:58:25 +0000 (14:58 +0000)]
ansi c fix

20 years agoThreads for IRIX
stefan [Sat, 12 Jun 2004 13:34:06 +0000 (13:34 +0000)]
Threads for IRIX

20 years agoAlignment was broken for MIPS
stefan [Sat, 12 Jun 2004 13:33:38 +0000 (13:33 +0000)]
Alignment was broken for MIPS

20 years agoCritical sections declaration fix
stefan [Sat, 12 Jun 2004 13:32:49 +0000 (13:32 +0000)]
Critical sections declaration fix

20 years agoNative stub size again
stefan [Sat, 12 Jun 2004 13:29:07 +0000 (13:29 +0000)]
Native stub size again

20 years agoSmall fix (native stub size)
stefan [Fri, 11 Jun 2004 20:41:38 +0000 (20:41 +0000)]
Small fix (native stub size)

20 years agoatomic functions in asmpart.S because of MIPSPro compiler
stefan [Fri, 11 Jun 2004 16:28:13 +0000 (16:28 +0000)]
atomic functions in asmpart.S because of MIPSPro compiler

20 years agoAtomic operations for MIPS
stefan [Fri, 11 Jun 2004 15:45:05 +0000 (15:45 +0000)]
Atomic operations for MIPS

20 years agoMore darwin-threads stuff
stefan [Fri, 11 Jun 2004 12:16:04 +0000 (12:16 +0000)]
More darwin-threads stuff

20 years agoNull pointer exception working again on darwin
stefan [Fri, 11 Jun 2004 11:34:49 +0000 (11:34 +0000)]
Null pointer exception working again on darwin

20 years ago- removed cacao_shutdown
twisti [Wed, 9 Jun 2004 16:28:52 +0000 (16:28 +0000)]
- removed cacao_shutdown
- support classfiles up to 48.0

20 years ago- suck_init filename bugfix
twisti [Wed, 9 Jun 2004 16:28:00 +0000 (16:28 +0000)]
- suck_init filename bugfix
- support classfiles up to 48.0

20 years agoRemoved TRACECALLARGS stuff, because it used 16MB memory. Now we use a
twisti [Wed, 9 Jun 2004 15:50:23 +0000 (15:50 +0000)]
Removed TRACECALLARGS stuff, because it used 16MB memory. Now we use a
simple malloc with a memset to zero for literals.

20 years agostatic function prototypes should not be in a header file, because they produce warni...
twisti [Mon, 7 Jun 2004 10:09:20 +0000 (10:09 +0000)]
static function prototypes should not be in a header file, because they produce warnings. This was originally my fault.

20 years ago- export xhandler
twisti [Sun, 6 Jun 2004 15:01:06 +0000 (15:01 +0000)]
- export xhandler
- bug fix in clinit (save float argument register)

20 years ago- added cacao_exit which exits the cacao jvm as it should be, with
twisti [Sun, 6 Jun 2004 13:29:25 +0000 (13:29 +0000)]
- added cacao_exit which exits the cacao jvm as it should be, with
  Runtime.exit(I)V
- include paths fixed

20 years agoAdded function protos: cacao_exit, cacao_shutdown.
twisti [Sun, 6 Jun 2004 13:28:36 +0000 (13:28 +0000)]
Added function protos: cacao_exit, cacao_shutdown.

20 years agoFix include paths to support build directories.
twisti [Sun, 6 Jun 2004 13:20:49 +0000 (13:20 +0000)]
Fix include paths to support build directories.

20 years ago- runFinalization() bug fix, ucsd benchmark now works again
twisti [Sun, 6 Jun 2004 13:20:11 +0000 (13:20 +0000)]
- runFinalization() bug fix, ucsd benchmark now works again
- implemented _deprecated_ runFinalizersOnExitInternal (and it does not
  work really, it closes very soon stdin, stdout and stderr file handles
  and exit then silenty, don't know yet how to fix this)

20 years agoFix include paths to support build directories.
twisti [Sun, 6 Jun 2004 12:48:10 +0000 (12:48 +0000)]
Fix include paths to support build directories.

20 years agoFix include paths to support build directories.
twisti [Sat, 5 Jun 2004 23:57:56 +0000 (23:57 +0000)]
Fix include paths to support build directories.

20 years ago- added gc_invoke_finalizers
twisti [Sat, 5 Jun 2004 23:53:56 +0000 (23:53 +0000)]
- added gc_invoke_finalizers
- fixed include paths
- gc_out_of_memory changes

20 years agoAdded gc_invoke_finalizers proto.
twisti [Sat, 5 Jun 2004 23:53:24 +0000 (23:53 +0000)]
Added gc_invoke_finalizers proto.

20 years ago- added emitfuncs stuff
twisti [Sat, 5 Jun 2004 23:20:53 +0000 (23:20 +0000)]
- added emitfuncs stuff
- fix to support build directories

20 years agoFix include paths to support build directories.
twisti [Sat, 5 Jun 2004 23:19:24 +0000 (23:19 +0000)]
Fix include paths to support build directories.

20 years ago- export calljava_xhandler, calljava_xhandler2
twisti [Sat, 5 Jun 2004 20:58:14 +0000 (20:58 +0000)]
- export calljava_xhandler, calljava_xhandler2
- some code indent

20 years ago- fixed ArrayIndexOutOfBoundsException bug
twisti [Sat, 5 Jun 2004 20:57:12 +0000 (20:57 +0000)]
- fixed ArrayIndexOutOfBoundsException bug
- moved gen_bound_check into .h

20 years ago- fixed ArrayIndexOutOfBoundsException bug
twisti [Sat, 5 Jun 2004 20:39:49 +0000 (20:39 +0000)]
- fixed ArrayIndexOutOfBoundsException bug
- removed wrapper functions for asm_calljavafunction and asm_cacheflush
  (why did we need them?)

20 years ago- bug fix in L_initializererror
twisti [Sat, 5 Jun 2004 20:28:56 +0000 (20:28 +0000)]
- bug fix in L_initializererror
- replaced _asm_docalljavamethod with _asm_calljavafunction, this implies
  a exception bug fix
- added some function comments

20 years agoFixed ArrayIndexOutOfBoundsException bug.
twisti [Sat, 5 Jun 2004 17:46:19 +0000 (17:46 +0000)]
Fixed ArrayIndexOutOfBoundsException bug.

20 years agoFixed ArrayIndexOutOfBoundsException bug.
twisti [Sat, 5 Jun 2004 17:38:00 +0000 (17:38 +0000)]
Fixed ArrayIndexOutOfBoundsException bug.

20 years ago- ICMD_CHECKOOM to ICMD_CHECKEXCEPTION stuff
twisti [Sat, 5 Jun 2004 17:32:27 +0000 (17:32 +0000)]
- ICMD_CHECKOOM to ICMD_CHECKEXCEPTION stuff
- removed LOOP_DEBUG stuff
- removed compileverbose message
- fixed ArrayIndexOutOfBoundsException bug

20 years ago- moved all code emitter functions in emitfuncs.c
twisti [Sat, 5 Jun 2004 16:29:07 +0000 (16:29 +0000)]
- moved all code emitter functions in emitfuncs.c
- moved code generation macros into header file (some of them are needed
  emit functions)

20 years ago- correct includes
twisti [Sat, 5 Jun 2004 15:44:52 +0000 (15:44 +0000)]
- correct includes
- use class_free again

20 years agoi386 and x86_64 methodtable bugfix.
twisti [Sat, 5 Jun 2004 14:37:51 +0000 (14:37 +0000)]
i386 and x86_64 methodtable bugfix.

20 years agoAdded dummy prototypes for calljava_xhandler and calljava_xhandler2.
twisti [Sat, 5 Jun 2004 14:37:14 +0000 (14:37 +0000)]
Added dummy prototypes for calljava_xhandler and calljava_xhandler2.

20 years ago- removed _GNU_SOURCE
twisti [Sat, 5 Jun 2004 12:22:26 +0000 (12:22 +0000)]
- removed _GNU_SOURCE
- started to set include directories correctly (to support builds in
different build directories)

20 years agoClass values (off*val) are s4's, so just read and write a long.
twisti [Thu, 3 Jun 2004 22:15:22 +0000 (22:15 +0000)]
Class values (off*val) are s4's, so just read and write a long.

20 years ago- replaced ICMD_CHECKOOM with ICMD_CHECKEXCEPTION
twisti [Thu, 3 Jun 2004 21:35:05 +0000 (21:35 +0000)]
- replaced ICMD_CHECKOOM with ICMD_CHECKEXCEPTION
- added missing gen_div_check's for software / by zero

20 years ago- added asm_getclassvalues_atomic and asm_criticalsections
twisti [Thu, 3 Jun 2004 21:30:30 +0000 (21:30 +0000)]
- added asm_getclassvalues_atomic and asm_criticalsections
- some risc-like defines

20 years agoRemoved methodtable.* stuff.
twisti [Thu, 3 Jun 2004 20:47:05 +0000 (20:47 +0000)]
Removed methodtable.* stuff.