twisti [Mon, 23 Apr 2007 23:03:31 +0000 (23:03 +0000)]
* configure.ac: Removed --enable-threads checks and call instead
AC_CHECK_ENABLE_THREADS.
* m4/threads.m4: New file.
twisti [Mon, 23 Apr 2007 20:04:44 +0000 (20:04 +0000)]
* configure.ac: Removed all classpath related checks and made
functions for them.
* m4/classpath.m4: New file.
twisti [Mon, 23 Apr 2007 20:03:38 +0000 (20:03 +0000)]
* src/vm/builtin.h (md-abi.h): Added.
twisti [Mon, 23 Apr 2007 14:29:48 +0000 (14:29 +0000)]
* src/vm/signal.c (signal_thread): Don't check for an error on
sigwait (revisit this patch with the exact-GC).
tbfg [Sun, 22 Apr 2007 20:02:05 +0000 (20:02 +0000)]
* src/vm/jit/m68k/linux/md-os.c (md_signal_handler_sigsegv): Implemented.
(md_signal_handler_sigill): More exceptions handled. Some fixes.
* src/vm/jit/m68k/linux/md-os.h
(M68K_EXCEPTION_HARDWARE_NULLPOINTER): Used instead of
EXCEPTION_HARDWARE_NULLPOINTER, because a trap with value #0 will
not be taken.
* src/vm/jit/m68k/emit.c (emit_load_[low|high]): Fixed assertion.
(emit_arrayindexoutofbounds_check): Implemented.
(emit_nullpointer_check): Implemented.
(emit_exception_check_ireg): Renamed emit_exception_check.
(emit_exception_check_areg): Disabled code.
(emit_exception_check): Implemented.
* src/vm/jit/m68k/codegen.c (ICMD_LALOAD): Implemented.
(ICMD_FALOAD): Implemented.
(ICMD_DALOAD): Implemented.
(ICMD_LASTORE): Implemented.
(ICMD_FASTORE): Implemented.
(ICMD_DASTORE): Implemented.
(ICMD_BUILTIN): Exception check enabled.
(ICMD_MULTIANEWARRAY): Implemented.
(codegen_emit_stub_native): Exception check implemented.
* src/vm/jit/m68k/asmpart.S (asm_handle_nat_exception): Symbol
exported and implemented.
* src/vm/jit/stacktrace.c (stacktrace_create_extern_stackframe): More
m68k fixes.
ajordan [Sun, 22 Apr 2007 15:55:51 +0000 (15:55 +0000)]
* src/vm/jit/sparc64/arch.h: Properly activated all FP features SPARC64 supports in hardware.
* src/vm/jit/sparc64/asmpart.S: Added functions to read/write the FP state register.
* src/vm/jit/sparc64/md.c: Added prototypes here.
* src/vm/jit/sparc64/codegen.h: Added 'branch on FP condition codes' macros.
* src/vm/jit/sparc64/emit.c (emit_verbosecall_enter): Fixed FP argument passing.
* src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed FP conversion functions to (a) use unique slots in the data segment (doh!),
(b) catch the case where NaN is converted to an integer value. (JVMS and SPARC do not inherently agree here).
edwin [Sat, 21 Apr 2007 18:56:43 +0000 (18:56 +0000)]
* tests/regression/resolving/Makefile.am: Added "-classpath ." to javac
options so the tests work with ecj out-of-the-box.
edwin [Sat, 21 Apr 2007 16:42:52 +0000 (16:42 +0000)]
* configure.ac: Generate vmlog Makefiles.
* contrib/Makefile.am: Added vmlog to SUBDIRS.
* contrib/vmlog/Makefile.am, contrib/vmlog/t/Makefile.am: New files.
edwin [Sat, 21 Apr 2007 16:26:34 +0000 (16:26 +0000)]
* contrib/vmlog/Makefile: Renamed to maintain.mk.
--HG--
rename : contrib/vmlog/Makefile => contrib/vmlog/maintain.mk
edwin [Sat, 21 Apr 2007 12:48:14 +0000 (12:48 +0000)]
* contrib/vmlog/vmlog_cacao.patch: Removed. It is no longer needed.
* contrib/vmlog/README: Updated for CACAO's --enable-vmlog.
edwin [Sat, 21 Apr 2007 12:37:47 +0000 (12:37 +0000)]
* configure.ac (--enable-vmlog): New configure option.
* src/vm/jit/Makefile.am, src/vm/Makefile.am,
src/threads/native/Makefile.am (AM_CPPFLAGS): Added -I for vmlog
includes.
edwin [Sat, 21 Apr 2007 10:55:30 +0000 (10:55 +0000)]
* src/vm/jit/replace.c, src/vm/jit/intrp/asmpart.c,
src/vm/jit/codegen-common.c, src/vm/builtin.c, src/vm/exceptions.c,
src/vm/vm.c, src/threads/native/lock.c (ENABLE_VMLOG): Applied the
vmlog patch and wrapped all inserted code with
#if defined(ENABLE_VMLOG).
twisti [Fri, 20 Apr 2007 13:51:41 +0000 (13:51 +0000)]
* src/toolbox/list.h (list_t): Added size.
* src/toolbox/list.c (list_create): Initialize size.
(list_create_dump): Likewise.
(list_add_first): Increase size.
(list_add_last_unsynced): Likewise.
(list_add_before): Likewise.
(list_remove_unsynced): Decrease size.
twisti [Fri, 20 Apr 2007 13:28:27 +0000 (13:28 +0000)]
* src/toolbox/list.h (listnode): Renamed to listnode_t.
(list): Renamed to list_t.
* src/toolbox/list.c,
src/vm/jit/codegen-common.c,
src/vm/jit/codegen-common.h,
src/vm/jit/emit-common.c,
src/vm/jit/optimizing/profile.c,
src/vm/jit/optimizing/recompile.c,
src/vm/jit/optimizing/recompile.h,
src/vm/properties.c,
src/vmcore/class.c,
src/vmcore/class.h,
src/vmcore/suck.c,
src/vmcore/suck.h: Likewise.
twisti [Fri, 20 Apr 2007 13:09:36 +0000 (13:09 +0000)]
* src/vm/vm.c: Changed header order to prevent a warning.
twisti [Fri, 20 Apr 2007 13:06:45 +0000 (13:06 +0000)]
* src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c (loadLibrary): Fixed
string-internal warnings.
* src/native/vm/cldc1.1/java_lang_System.c (getProperty0): Likewise.
twisti [Fri, 20 Apr 2007 12:53:45 +0000 (12:53 +0000)]
* src/vm/vm.c (version): Print libjvm.so path.
twisti [Fri, 20 Apr 2007 12:48:55 +0000 (12:48 +0000)]
* src/vm/vm.c (vm_create): Print unknown -verbose option.
twisti [Fri, 20 Apr 2007 12:40:05 +0000 (12:40 +0000)]
* src/vm/jit/codegen-common.c (codegen_finish_native_call): #ifdef lrt
and plrt. Don't set lrt, we don't need it.
twisti [Fri, 20 Apr 2007 11:21:38 +0000 (11:21 +0000)]
* src/threads/threads-common.h (native/jni.h): Added.
twisti [Thu, 19 Apr 2007 21:31:47 +0000 (21:31 +0000)]
* src/vm/signal.c (signal_thread): Check return value of sig*
functions.
twisti [Thu, 19 Apr 2007 19:59:17 +0000 (19:59 +0000)]
* tests/regression/resolving/Makefile.am (check): Added missing
JAVAFLAGS.
twisti [Thu, 19 Apr 2007 19:58:08 +0000 (19:58 +0000)]
* configure.ac (AC_INIT): Changed version to 0.98rc.
twisti [Thu, 19 Apr 2007 19:44:54 +0000 (19:44 +0000)]
* src/vm/exceptions.h: Added a comment about the hardware-exception
assert in signal_init.
twisti [Thu, 19 Apr 2007 19:43:39 +0000 (19:43 +0000)]
* src/vm/signal.c (assert.h): Added.
(vm/exceptions.h): Likewise.
[ENABLE_STATISTICS] (vmcore/statistics.h): Likewise.
(signal_init): Added hardware-exception assert.
twisti [Thu, 19 Apr 2007 19:41:08 +0000 (19:41 +0000)]
* src/cacaoh/dummy.c (exceptions_print_current_exception): Added
abort.
(exceptions_throw_outofmemoryerror): Removed.
(exceptions_throw_illegalaccessexception): Likewise.
twisti [Thu, 19 Apr 2007 19:39:06 +0000 (19:39 +0000)]
* src/vm/jit/powerpc/darwin/md-abi.h (REG_FA0, REG_FA1): Added.
(REG_A0_A1_PACKED, REG_A2_A3_PACKED): Likewise.
* src/vm/jit/powerpc/darwin/md-os.c [ENABLE_THREADS]
(threads/native/threads.h): Added.
(md_signal_handler_sigsegv): Changed for hardware-exceptions.
(md_signal_handler_sigtrap): New function.
* src/vm/jit/powerpc/darwin/md-abi.c (vm/descriptor.h): Changed to
vmcore/descriptor.h.
(regs): Renamed to abi_registers_integer_name.
(abi_registers_integer_argument): Added.
(abi_registers_integer_saved): Likewise.
(abi_registers_integer_temporary): Likewise.
(abi_registers_float_argument): Likewise.
(abi_registers_float_saved): Likewise.
(abi_registers_float_temporary): Likewise.
(md_param_alloc): Use new register arrays.
(md_param_alloc_native): New function.
tbfg [Thu, 19 Apr 2007 15:01:49 +0000 (15:01 +0000)]
* src/vm/jit/m68k/linux/md-abi.c (abi_registers_integer_saved): Fixed.
(abi_registers_float_saved): Fixed.
* src/vm/jit/m68k/emit.c (emit_classcast_check): Fixed.
* src/vm/jit/m68k/codegen.c (codegen_emit): Temporary hacked
a field for saved adr registers until real patch will be done.
(ICMD_INSTANCEOF): Fixed.
(ICMD_CHECKCAST): Fixed.
(codegen_emit_stub_compiler): Removed useless code.
* src/vm/jit/m68k/asmpart.S (L_asm_handle_exception_not_catched):
Implemented.
* src/vm/jit/m68k/codegen.h (M_BLS): Added.
michi [Thu, 19 Apr 2007 12:19:19 +0000 (12:19 +0000)]
* src/vm/jit/arm/asmpart.S (asm_patcher_wrapper): Use long branch construct
for exception handling here. This fixes a crash in the following jasmin
regression testcase: jasmin/test_verify_fail_areturn_wrong_reftype.
twisti [Thu, 19 Apr 2007 09:19:33 +0000 (09:19 +0000)]
* src/threads/threads-common.c (threads_start_javathread)
[ENABLE_JAVASE]: Check for daemon thread and set the flag.
twisti [Thu, 19 Apr 2007 09:18:20 +0000 (09:18 +0000)]
* src/threads/native/threads.c (threads_start_javathread): Removed.
(threads_detach_thread): Added some comments.
* src/threads/native/threads.h (threads_start_javathread): Removed.
* src/threads/threads-common.c (assert.h): Added.
[ENABLE_STATISTICS] (vmcore/options.h, vmcore/statistics.h): Added.
(threads_start_javathread): Added.
* src/threads/threads-common.h (vm/global.h): Added.
(native/include/java_lang_Thread.h): Likewise.
(threads_start_javathread): Likewise.
ajordan [Wed, 18 Apr 2007 21:04:01 +0000 (21:04 +0000)]
* src/vm/jit/sparc64/emit.c: Migrated to abi_registers_{integer,float}_argument.
* src/vm/jit/sparc64/codegen.c: Likewise.
* src/vm/jit/sparc64/md-abi.c: Likewise.
michi [Wed, 18 Apr 2007 15:31:07 +0000 (15:31 +0000)]
* src/vm/jit/powerpc64/linux/Makefile.am (AM_CPPFLAGS): Added
-I$(top_builddir)/src.
tbfg [Wed, 18 Apr 2007 14:49:18 +0000 (14:49 +0000)]
* src/vm/jit/powerpc64/codegen.c (sign_ext): Removed from
ICMD_INEG, ICMD_IDIV, ICMD_IREM, ICMD_IMUL, ICMD_IAND and ICMD_IOR
to save the if runtime costs.
(ICMD_IUSHR): Needs sign extension for 0 bit shift case.
twisti [Wed, 18 Apr 2007 14:11:56 +0000 (14:11 +0000)]
* src/threads/native/threads.c (mutex_join, cond_join): Added.
(threads_init_threadobject): Don't initalize join-mutex and cond.
(threads_preinit): Initialize mutex_join and cond_join.
(threads_startup_thread): Added vm_abort.
(threads_detach_thread): Don't reset thread id and use global mutex
and condition.
(threads_find_non_daemon_thread): Lock thread list.
(threads_join_all_threads): Use global mutex and condition.
* src/threads/native/threads.h (threadobject): Removed joinmutex and
joincond.
twisti [Wed, 18 Apr 2007 09:59:58 +0000 (09:59 +0000)]
* src/native/vm/java_lang_ClassLoader.c [ENABLE_STATISTICS]
(vmcore/statistics.h): Added.
twisti [Tue, 17 Apr 2007 23:18:15 +0000 (23:18 +0000)]
* src/vm/jit/emit-common.h (emit_copy): Changed signature.
* src/vm/jit/alpha/codegen.c,
src/vm/jit/alpha/emit.c,
src/vm/jit/arm/codegen.c,
src/vm/jit/arm/emit.c,
src/vm/jit/i386/codegen.c,
src/vm/jit/i386/emit.c,
src/vm/jit/m68k/codegen.c,
src/vm/jit/m68k/emit.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/mips/emit.c,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc/emit.c,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/powerpc64/emit.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/emit.c,
src/vm/jit/sparc64/codegen.c,
src/vm/jit/sparc64/emit.c,
src/vm/jit/x86_64/codegen.c,
src/vm/jit/x86_64/emit.c: Likewise.
twisti [Tue, 17 Apr 2007 22:55:21 +0000 (22:55 +0000)]
* src/vm/jit/m68k/emit.c: boilerplate added.
twisti [Tue, 17 Apr 2007 22:50:49 +0000 (22:50 +0000)]
* src/vm/jit/m68k/codegen.c: Boilerplate added.
twisti [Tue, 17 Apr 2007 22:06:01 +0000 (22:06 +0000)]
* src/vm/jit/alpha/codegen.c (codegen_emit): Fixed bug in
float-argument passing.
twisti [Tue, 17 Apr 2007 21:37:12 +0000 (21:37 +0000)]
* tests/regression/resolving/Makefile.am (check): Use LD_LIBRARY_PATH
for JAVA.
edwin [Tue, 17 Apr 2007 21:30:20 +0000 (21:30 +0000)]
* src/vm/jit/stack.c (stack_init_javalocals): Use "type" as variable
for the type.
(stack_analyse): Likewise.
edwin [Tue, 17 Apr 2007 21:25:55 +0000 (21:25 +0000)]
* src/vm/jit/stack.c (stack_analyse): Do not abuse poor "i" for types,
use a separate variable for that.
edwin [Tue, 17 Apr 2007 21:11:20 +0000 (21:11 +0000)]
* src/vm/jit/stack.c (stack_reanalyse_block, stack_analyse): Renamed
variable "j" to a more obvious "varindex".
edwin [Tue, 17 Apr 2007 21:01:15 +0000 (21:01 +0000)]
* src/vm/jit/verify/typecheck.c: More variable renaming for clarity.
twisti [Tue, 17 Apr 2007 20:59:52 +0000 (20:59 +0000)]
* src/vm/builtintable.inc (builtintable_function) [ENABLE_JIT]: We
need the entries only for JIT.
twisti [Tue, 17 Apr 2007 20:54:04 +0000 (20:54 +0000)]
* tests/regression/jasmin/Makefile.am (check): Set LD_LIBRARY_PATH.
edwin [Tue, 17 Apr 2007 20:53:41 +0000 (20:53 +0000)]
* src/vm/jit/stack.c, src/vm/jit/verify/typecheck-common.c,
src/vm/jit/verify/typeinfo.c, src/vm/jit/inline/inline.c,
src/vm/jit/allocator/simplereg.c: Clarification: Renamed variables
that are indices into jd->var to "varindex". Renamed variables that
are bytecode variable indices to "javaindex".
edwin [Tue, 17 Apr 2007 20:37:36 +0000 (20:37 +0000)]
* src/vm/jit/stack.c, src/vm/jit/show.c, src/vm/jit/inline/inline.c,
src/vm/jit/replace.c, src/vm/jit/jit.h: Fix and use the new macros
for calculating javalocals values representing returnAddresses.
edwin [Tue, 17 Apr 2007 20:30:09 +0000 (20:30 +0000)]
* src/vm/jit/jit.h (basicblock): Document the javalocal array.
(JAVALOCAL_FROM_RETADDR): New macro.
(RETADDR_FROM_JAVALOCAL): Likewise.
twisti [Tue, 17 Apr 2007 20:25:55 +0000 (20:25 +0000)]
* src/threads/native/threads.c (threads_init): Fixed string-internal
warnings.
(threads_attach_current_thread): Likewise.
twisti [Tue, 17 Apr 2007 20:17:01 +0000 (20:17 +0000)]
* src/threads/threads-common.c (threads_print_stacktrace): Renamed to
threads_thread_print_stacktrace.
(threads_print_stacktrace): New function.
(threads_dump): Use threads_thread_print_stacktrace.
* src/threads/threads-common.h: Likewise.
* src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Use new
threads_print_stacktrace.
edwin [Tue, 17 Apr 2007 20:06:44 +0000 (20:06 +0000)]
* src/vm/jit/jit.h (jitdata): Cleaned up comments for local_map.
edwin [Tue, 17 Apr 2007 19:57:55 +0000 (19:57 +0000)]
* src/vm/jit/stack.c (stack_javalocals_store): Added an assert.
edwin [Tue, 17 Apr 2007 19:24:05 +0000 (19:24 +0000)]
* src/vm/jit/stack.c (stack_analyse): The javalocals array can have
negative values != UNUSED (these values < UNUSED represent
returnAddresses of local subroutines). Thus >= 0 must be used to
check for normal indices.
edwin [Tue, 17 Apr 2007 18:47:50 +0000 (18:47 +0000)]
* src/vm/jit/parse.c (parse): Small cleanup of local variable renaming.
(No code changes.)
twisti [Tue, 17 Apr 2007 11:15:15 +0000 (11:15 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Use simpler
code to save and restore argument registers.
twisti [Mon, 16 Apr 2007 22:56:37 +0000 (22:56 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen_emit): Made argument passing
cleaner.
twisti [Mon, 16 Apr 2007 22:24:30 +0000 (22:24 +0000)]
* src/vm/jit/codegen-common.c (codegen_setup): Removed maxstack stuff.
* src/vm/jit/codegen-common.h (codegendata): Likewise.
* src/vm/jit/inline/inline.c: Fixed includes.
(inline_jit_compile): Removed maxstack stuff.
(inline_transform): Removed basicblockindex.
twisti [Mon, 16 Apr 2007 21:09:39 +0000 (21:09 +0000)]
* src/vm/jit/Makefile.am (DIST_SUBDIRS): Added m68k.
* src/mm/cacao-gc/Makefile.am (libgc_la_SOURCES): Removed heap.c.
twisti [Mon, 16 Apr 2007 21:07:10 +0000 (21:07 +0000)]
* src/vm/jit/powerpc64/linux/md-abi.c: Argument register changes
ported (rev7713).
* src/vm/jit/powerpc64/emit.c: Likewise.
* src/vm/jit/powerpc64/codegen.c: Likewise.
twisti [Mon, 16 Apr 2007 15:57:21 +0000 (15:57 +0000)]
* src/native/jni.c (_Jv_JNI_DefineClass): Fixed string-internal
warnings.
(_Jv_JNI_NewStringUTF): Likewise.
(_Jv_JNI_GetStringUTFChars): Likewise.
twisti [Mon, 16 Apr 2007 15:53:53 +0000 (15:53 +0000)]
* src/native/vm/java_lang_Class.c (forName): Fixed string-internal
warnings.
(getDeclaredFields): Likewise.
(getDeclaredMethods): Likewise.
(getEnclosingMethod): Likewise.
(getClassSignature): Likewise.
twisti [Mon, 16 Apr 2007 15:49:09 +0000 (15:49 +0000)]
* src/native/vm/java_lang_ClassLoader.c (defineClass): Fixed
string-internal warnings.
* src/native/vm/java_lang_Runtime.c (loadLibrary): Likewise.
* src/native/vm/gnu/java_lang_reflect_Field.c (getSignature):
Likewise.
* src/native/vm/gnu/java_lang_reflect_Constructor.c (getSignature):
Likewise.
* src/native/vm/gnu/java_lang_VMThrowable.c (getStackTrace): Likewise.
twisti [Mon, 16 Apr 2007 15:29:29 +0000 (15:29 +0000)]
* src/native/vm/gnu/java_lang_reflect_Method.c (getSignature): Fixed
string-internal warnings.
twisti [Mon, 16 Apr 2007 15:26:01 +0000 (15:26 +0000)]
* src/native/vm/gnu/java_lang_VMRuntime.c (mapLibraryName): Fixed
string-internal warnings.
twisti [Mon, 16 Apr 2007 15:23:32 +0000 (15:23 +0000)]
* src/native/vm/gnu/java_lang_VMClassLoader.c (loadClass): Fixed
string-internal warnings.
(nativeGetResources): Likewise.
(findLoadedClass): Likewise.
twisti [Mon, 16 Apr 2007 14:29:53 +0000 (14:29 +0000)]
* src/vmcore/utf8.c (utf_get_number_of_u2s): Return 0 instead of NULL.
twisti [Mon, 16 Apr 2007 14:28:30 +0000 (14:28 +0000)]
* src/threads/threads-common.c (native/include/java_lang_String.h):
Added.
(threads_create_thread): Fixed string-internal warnings.
(threads_dump): Likewise.
twisti [Mon, 16 Apr 2007 14:11:14 +0000 (14:11 +0000)]
* src/vm/builtin.c (builtin_print_argument): Removed java_lang_String
until we know what we do with strings internally (more patches to
come).
twisti [Sun, 15 Apr 2007 21:49:48 +0000 (21:49 +0000)]
* src/vm/jit/reg.c (reg_setup): Removed arg{int,flt}regs stuff.
* src/vm/jit/reg.h (registerdata): Removed arg{int,flt}regs.
* src/vm/jit/stack.c (stack_analyse): regoff now contains the register
number instead of an offset.
* src/vm/jit/allocator/simplereg.c: Use
abi_registers_{integer,float}_argument instead of arg{int,flt}regs.
* src/vm/jit/alpha/codegen.c,
src/vm/jit/alpha/emit.c,
src/vm/jit/alpha/md-abi.c,
src/vm/jit/arm/codegen.c,
src/vm/jit/arm/emit.c,
src/vm/jit/arm/md-abi.c,
src/vm/jit/arm/md-abi.h,
src/vm/jit/i386/codegen.c,
src/vm/jit/i386/md-abi.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/mips/emit.c,
src/vm/jit/mips/md-abi.c,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc/emit.c,
src/vm/jit/powerpc/linux/md-abi.c,
src/vm/jit/powerpc/linux/md-abi.h,
src/vm/jit/x86_64/codegen.c,
src/vm/jit/x86_64/emit.c,
src/vm/jit/x86_64/md-abi.c: A lot of changes like the ones above.
twisti [Sun, 15 Apr 2007 21:13:03 +0000 (21:13 +0000)]
* src/vm/jit/mips/emit.c (emit_load): Bugfix: Added missing float
instruction.
(emit_store): Likewise.
michi [Sun, 15 Apr 2007 12:17:02 +0000 (12:17 +0000)]
* src/vm/jit/i386/md-abi.c (abi_registers_integer_argument): Fixed.
michi [Sun, 15 Apr 2007 12:15:01 +0000 (12:15 +0000)]
* src/vm/jit/i386/md-abi.c (abi_registers_integer_argument): Added.
(abi_registers_integer_saved): Likewise.
(abi_registers_integer_temporary): Likewise.
michi [Sun, 15 Apr 2007 11:55:25 +0000 (11:55 +0000)]
* src/vm/jit/i386/codegen.c (codegen_emit_stub_native): Fixed
calculation of stackframesize.
twisti [Sun, 15 Apr 2007 11:37:55 +0000 (11:37 +0000)]
* tests/regression/resolving/Makefile.am: Added GNU header and fixed
srcdir != builddir.
* tests/regression/resolving/classes1/Makefile.am: Likewise.
* tests/regression/resolving/classes2/Makefile.am: Likewise.
* tests/regression/resolving/classes3/Makefile.am: Likewise.
twisti [Fri, 13 Apr 2007 11:48:48 +0000 (11:48 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): ICMD_LDIV, ICMD_LREM: Use
REG_Ax_Ax_PACKED defines.
twisti [Fri, 13 Apr 2007 10:42:05 +0000 (10:42 +0000)]
* src/vm/jit/mips/md-abi.c (md_param_alloc): Code beautified.
twisti [Fri, 13 Apr 2007 10:12:04 +0000 (10:12 +0000)]
* src/cacao/cacao.c (main): Save the error message of the first
lt_dlopenext and print it too when the second fails (thanks Dalibor).
Although there's still a problem, when the first fails for some reason
and the second picks up and old installed one silently.
twisti [Thu, 12 Apr 2007 19:49:34 +0000 (19:49 +0000)]
* src/vm/jit/stack.c (stack_analyse): Removed USEBUILTINTABLE, always
check for automatic-builtins (compile this is not affected).
* src/vm/jit/alpha/arch.h,
src/vm/jit/arm/arch.h,
src/vm/jit/i386/arch.h,
src/vm/jit/m68k/arch.h,
src/vm/jit/mips/arch.h,
src/vm/jit/powerpc/arch.h,
src/vm/jit/powerpc64/arch.h,
src/vm/jit/s390/arch.h,
src/vm/jit/sparc64/arch.h,
src/vm/jit/x86_64/arch.h (USEBUILTINTABLE): Removed.
tbfg [Thu, 12 Apr 2007 15:35:13 +0000 (15:35 +0000)]
* src/vm/jit/powerpc64/emit.c (emit_patcher_stubs): Removed dead code.
* src/vm/jit/powerpc64/codegen.c (ICMD_ISUB): Fixed evil bug.
(ICMD_LSHR): Fixed a bug.
(createnativestub): Use emit_patcher_stub.
* src/vm/jit/powerpc64/patcher.c (patcher_resolve_native): Fixed.
twisti [Thu, 12 Apr 2007 14:47:24 +0000 (14:47 +0000)]
* src/vm/jit/codegen-common.c (codegen_createnativestub): Renamed to
codegen_generate_stub_native and call codegen_finish.
* src/vm/jit/codegen-common.h (codegen_createnativestub): Removed.
(codegen_generate_stub_native): Added.
* src/vm/jit_interface.h: Likewise.
* src/cacaoh/dummy.c: Likewise.
* src/vmcore/loader.c (load_newly_created_array): Renamed
codegen_createnativestub to codegen_generate_stub_native and changed
signature.
* src/vm/jit/jit.c (jit_compile_intern): Likewise.
* src/vm/jit/arm/codegen.c,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/sparc64/codegen.c,
src/vm/jit/alpha/codegen.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/m68k/codegen.c,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/i386/codegen.c,
src/vm/jit/x86_64/codegen.c (createnativestub): Renamed to
codegen_emit_stub_native and changed signature, don't call
codegen_finish.
twisti [Thu, 12 Apr 2007 12:45:10 +0000 (12:45 +0000)]
* src/vm/jit/codegen-common.c (codegen_generate_stub_compiler): New
function.
* src/vm/jit/codegen-common.h (createcompilerstub): Removed.
(codegen_generate_stub_compiler): Added.
* src/vm/jit_interface.h: Likewise.
* src/cacaoh/dummy.c: Likewise.
* src/vmcore/linker.c (link_class_intern): Replaced createcompilerstub
with codegen_generate_stub_compiler.
* src/vm/jit/alpha/codegen.c,
src/vm/jit/arm/codegen.c,
src/vm/jit/i386/codegen.c,
src/vm/jit/m68k/codegen.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/sparc64/codegen.c,
src/vm/jit/x86_64/codegen.c (COMPILERSTUB_DATASIZE)
(COMPILERSTUB_SIZE): Removed.
(createcompilerstub): Renamed to codegen_emit_stub_compiler and
changed signature.
* src/vm/jit/alpha/codegen.h,
src/vm/jit/arm/codegen.h,
src/vm/jit/i386/codegen.h,
src/vm/jit/m68k/codegen.h,
src/vm/jit/mips/codegen.h,
src/vm/jit/powerpc/codegen.h,
src/vm/jit/powerpc64/codegen.h,
src/vm/jit/s390/codegen.h,
src/vm/jit/sparc64/codegen.h,
src/vm/jit/x86_64/codegen.h (COMPILERSTUB_CODESIZE): Added.
twisti [Thu, 12 Apr 2007 11:56:05 +0000 (11:56 +0000)]
* src/vm/jit/arm/linux/md-os.c (mm/memory.h): Removed.
[ENABLE_THREADS] (threads/native/threads.h): Added.
tbfg [Wed, 11 Apr 2007 16:39:22 +0000 (16:39 +0000)]
* src/vm/jit/powerpc64/arch.h (SUPPORT_LONG_SHIFT): Enabled.
* src/vm/jit/powerpc64/codegen.c (ICMD_LSHLCONST): Implemented.
(ICMD_LSHRCONST): Likewise.
(ICMD_LUSHRCONST): Likewise.
(ICMD_LSHL): Likewise.
(ICMD_LSHR): Likewise.
(ICMD_LUSHR): Likewise.
(ICMD_IUSHR): Fixed.
(ICMD_IUSHRCONST): Fixed.
* src/vm/jit/powerpc64/codegen.h (M_SRL): Use 64bit opcode.
(M_SRA): Likewise.
(M_SRA_IMM): Likewise.
(M_SRL_IMM): Likewise.
(M_SSL_IMM): Likewise.
(M_SSL): Likewise.
(M_CLR_HIGH): Added.
twisti [Wed, 11 Apr 2007 08:21:06 +0000 (08:21 +0000)]
* src/toolbox/logging.c (log_finish): Also print a \n in the log-file.
twisti [Wed, 11 Apr 2007 08:11:49 +0000 (08:11 +0000)]
* src/vm/jit/codegen-common.c (codegen_generate): Added re-generating
debug message.
twisti [Tue, 10 Apr 2007 21:37:03 +0000 (21:37 +0000)]
* src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): We only
need to check the cause for pre glibc-2.5.
twisti [Tue, 10 Apr 2007 21:24:14 +0000 (21:24 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): Fixed ICMD_IF_Lxx
instructions for 64-bit.
twisti [Tue, 10 Apr 2007 12:22:16 +0000 (12:22 +0000)]
* src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): Set val
accordingly.
pm [Tue, 10 Apr 2007 05:02:20 +0000 (05:02 +0000)]
* src/vm/jit/s390/emit.c,
src/vm/jit/s390/md-abi.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/arch.h,
src/vm/jit/s390/asmpart.S,
src/vm/jit/s390/tests/tests.java.pp: Changed very much.
twisti [Mon, 9 Apr 2007 21:17:36 +0000 (21:17 +0000)]
* src/vm/jit/alpha/emit.c (emit_copy): Check src-type, not dst-type.
twisti [Mon, 9 Apr 2007 17:23:55 +0000 (17:23 +0000)]
* src/vm/jit/alpha/asmpart.S: Use % instead of @ for progbits as ARM's
assembler uses @ as comment character.
* src/vm/jit/arm/asmpart.S: Likewise.
* src/vm/jit/i386/asmpart.S: Likewise.
* src/vm/jit/mips/asmpart.S: Likewise.
* src/vm/jit/powerpc/asmpart.S: Likewise.
* src/vm/jit/powerpc64/asmpart.S: Likewise.
* src/vm/jit/s390/asmpart.S: Likewise.
* src/vm/jit/sparc64/asmpart.S: Likewise.
* src/vm/jit/x86_64/asmpart.S: Likewise.
twisti [Mon, 9 Apr 2007 11:51:25 +0000 (11:51 +0000)]
* src/vm/jit/mips/codegen.h (BRANCH_NOPS): Added long-branches case.
* src/vm/jit/mips/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.
(emit_branch): Implemented conditional long-branches.
twisti [Sun, 8 Apr 2007 21:14:40 +0000 (21:14 +0000)]
* src/native/vm/cldc1.1/java_lang_Object.c (notifyAll): Implemented.
* src/native/vm/cldc1.1/java_lang_String.c (lastIndexOf__I): Likewise.
michi [Thu, 5 Apr 2007 14:23:04 +0000 (14:23 +0000)]
* src/vm/global.h (compiler_lock, compiler_unlock): Removed.
* src/cacaoh/dummy.c (compiler_lock, compiler_unlock): Removed.
* src/threads/native/threads.c (compiler_lock, compiler_unlock): Removed.
* src/vmcore/linker.h (linker_classrenumber_lock): Added.
* src/vmcore/linker.c (linker_classrenumber_lock): Added.
(linker_compute_subclasses): Uses above lock object instead of compiler_lock.
* src/vm/jit/intrp/asmpart.c (intrp_asm_getclassvalues_atomic): Likewise.
michi [Thu, 5 Apr 2007 13:22:37 +0000 (13:22 +0000)]
* src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Inserted ifdef to fix
compiler error with disabled threads.
twisti [Thu, 5 Apr 2007 12:06:28 +0000 (12:06 +0000)]
* src/vm/exceptions.c (exceptions_throw_nosuchmethoderror)
[!ENABLE_JAVASE]: Throw an error.
twisti [Thu, 5 Apr 2007 11:57:59 +0000 (11:57 +0000)]
* src/threads/threads-common.c (threads_get_state): Renamed to
threads_thread_get_state.
(threads_thread_is_alive): New function.
* src/threads/threads-common.h: Likewise.
* src/native/vm/java_lang_Thread.c (isAlive): New function.
(getState): Renamed threads_get_state to threads_thread_get_state.
* src/native/vm/java_lang_Thread.h (isAlive): Added.
* src/native/vm/cldc1.1/java_lang_Thread.c (isAlive): New function.
twisti [Thu, 5 Apr 2007 11:39:58 +0000 (11:39 +0000)]
* src/native/vm/java_lang_Thread.c [ENABLE_THREADS]
(threads/native/threads.h): Removed.
(threads/threads-common.h): Added.
(vm/stringlocal.h): Likewise.
(vm/vm.h): Removed.
(getState): Implemented.
* src/threads/threads-common.c (vm/vm.h): Added.
(threads_get_state): New function.
(threads_dump): Print thread state.
* src/threads/threads-common.h (THREAD_STATE_NEW)
(THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
(THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Defined.
(threads_get_state): Added.
* src/threads/native/threads.c (threads_init): Set thread-state.
(threads_startup_thread): Likewise.
(threads_attach_current_thread): Likewise.
(threads_detach_thread): Likewise.
(threads_wait_with_timeout): Likewise.
* src/threads/native/threads.h (threadobject): Added state field.
* src/native/native.c (dummynativetable) [ENABLE_JAVASE]: Added
Java_java_lang_VMThread_getState.