cacao.git
17 years ago* autogen.sh: Check for automake-1.1x.
twisti [Fri, 15 Dec 2006 23:53:01 +0000 (23:53 +0000)]
* autogen.sh: Check for automake-1.1x.

17 years ago* src/vm/signal.c (errno.h): Added.
twisti [Wed, 13 Dec 2006 23:04:47 +0000 (23:04 +0000)]
* src/vm/signal.c (errno.h): Added.
(unistd.h): Likewise.
(sys/mman.h): Likewise.
[__DARWIN__] (sys/types.h): Likewise.
(signal_init): mmap a page at 0x0.

17 years ago* src/vm/jit/powerpc/darwin/md-asm.h (replace_build_execution_state): Defined.
twisti [Tue, 12 Dec 2006 21:12:23 +0000 (21:12 +0000)]
* src/vm/jit/powerpc/darwin/md-asm.h (replace_build_execution_state): Defined.
(replace_free_safestack): Likewise.

* src/vm/jit/powerpc/asmpart.S (L_replace_build_execution_state$stub):
Added.
(L_replace_free_safestack$stub): Likewise.

17 years ago* src/vm/jit/mips/mips/emit.c (emit_arithmetic_check): Added iptr and
twisti [Mon, 11 Dec 2006 23:29:26 +0000 (23:29 +0000)]
* src/vm/jit/mips/mips/emit.c (emit_arithmetic_check): Added iptr and
check INSTRUCTION_MUST_CHECK.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_arraystore_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.
(emit_exception_check): Likewise.
(emit_patcher_stubs): Likewise.

* src/vm/jit/mips/mips/md.c (vm/exceptions.h): Added.

* src/vm/jit/mips/mips/codegen.c (codegen): Pass iptr to
exception-emit functions.

* src/vm/jit/mips/mips/irix/md-os.c (vm/jit/codegen-common.h): Added.
(md_signal_handler_sigsegv): Call codegen_get_pv_from_pc in
error-case.

17 years ago* tests/regression/fp.output: Updated to classpath-0.93.
twisti [Mon, 11 Dec 2006 20:31:04 +0000 (20:31 +0000)]
* tests/regression/fp.output: Updated to classpath-0.93.
* tests/regression/fptest.output: Likewise.

17 years ago* src/vm/jit/parse.c (MULTIANEWARRAY): Set check-flag.
twisti [Mon, 11 Dec 2006 20:16:10 +0000 (20:16 +0000)]
* src/vm/jit/parse.c (MULTIANEWARRAY): Set check-flag.

17 years ago* src/vm/jit/parse.c (CHECKCAST): Set check-flag.
twisti [Mon, 11 Dec 2006 19:55:31 +0000 (19:55 +0000)]
* src/vm/jit/parse.c (CHECKCAST): Set check-flag.
[!SUPPORT_HARDWARE_DIVIDE_BY_ZERO] (IDIV, IREM, LDIV, LREM): Set
check-flag.

17 years ago* src/vm/signal.c (signal_init): Use SUPPORT_HARDWARE_DIVIDE_BY_ZERO.
twisti [Mon, 11 Dec 2006 19:43:41 +0000 (19:43 +0000)]
* src/vm/signal.c (signal_init): Use SUPPORT_HARDWARE_DIVIDE_BY_ZERO.
* src/vm/signallocal.h: Likewise.

* src/vm/jit/alpha/arch.h (SUPPORT_HARDWARE_DIVIDE_BY_ZERO): Defined.
* src/vm/jit/i386/arch.h: Likewise.
* src/vm/jit/mips/arch.h: Likewise.
* src/vm/jit/powerpc/arch.h: Likewise.
* src/vm/jit/powerpc64/arch.h: Likewise.
* src/vm/jit/sparc64/arch.h: Likewise.
* src/vm/jit/x86_64/arch.h: Likewise.

17 years ago* src/vm/jit/sparc64/asmpart.S: Fixed some exception handling.
ajordan [Mon, 11 Dec 2006 04:25:49 +0000 (04:25 +0000)]
* src/vm/jit/sparc64/asmpart.S: Fixed some exception handling.

* src/vm/jit/sparc64/patcher.c: Fixed order of patch words.

* src/vm/jit/sparc64/md.c: Disp mask in branch patch was wrong.

* src/vm/jit/sparc64/codegen.c: Put in ICMD_CHECKNULL.

17 years ago* src/native/vm/java_lang_reflect_Constructor.c (getSignature):
twisti [Mon, 11 Dec 2006 00:28:17 +0000 (00:28 +0000)]
* src/native/vm/java_lang_reflect_Constructor.c (getSignature):
Implemented.

17 years ago* src/native/jni.h (_Jv_JavaVM): Renamed total_started_thread_count to
twisti [Sun, 10 Dec 2006 23:20:31 +0000 (23:20 +0000)]
* src/native/jni.h (_Jv_JavaVM): Renamed total_started_thread_count to
java_lang_management_ThreadMXBean_ThreadCount, added
java_lang_management_ThreadMXBean_PeakThreadCount,
java_lang_management_ThreadMXBean_TotalStartedThreadCount.

* src/vm/vm.c (vm_run): Set ThreadMXBean variables.
* src/threads/native/threads.c (threads_startup_thread): Likewise.

* src/native/vm/gnu_java_lang_management_VMThreadMXBeanImpl.c
(getPeakThreadCount): Implemented.
(getTotalStartedThreadCount): Use renamed variable.
(resetPeakThreadCount): Implemented.

17 years ago* src/vm/jit/powerpc/emit.c (emit_arrayindexoutofbounds_check): Added
twisti [Sun, 10 Dec 2006 22:17:03 +0000 (22:17 +0000)]
* src/vm/jit/powerpc/emit.c (emit_arrayindexoutofbounds_check): Added
iptr and check INSTRUCTION_MUST_CHECK.
(emit_nullpointer_check): Likewise.

* src/vm/jit/powerpc/codegen.c (codegen): Pass iptr to exception-emit
functions.

17 years ago* src/vm/jit/alpha/emit.c (emit_arithmetic_check): Added iptr and
twisti [Sun, 10 Dec 2006 22:07:02 +0000 (22:07 +0000)]
* src/vm/jit/alpha/emit.c (emit_arithmetic_check): Added iptr and
check INSTRUCTION_MUST_CHECK.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.

* src/vm/jit/alpha/codegen.c (codegen): Pass iptr to exception-emit
functions.

17 years ago* src/vm/jit/x86_64/emit.c (emit_arithmetic_check): Added iptr and
twisti [Sun, 10 Dec 2006 21:50:22 +0000 (21:50 +0000)]
* src/vm/jit/x86_64/emit.c (emit_arithmetic_check): Added iptr and
check INSTRUCTION_MUST_CHECK.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.

* src/vm/jit/x86_64/codegen.c (codegen): Pass iptr to exception-emit
functions.

17 years ago* src/vm/jit/emit-common.c (emit_array_checks): Pass iptr to emit
twisti [Sun, 10 Dec 2006 21:35:52 +0000 (21:35 +0000)]
* src/vm/jit/emit-common.c (emit_array_checks): Pass iptr to emit
functions.

* src/vm/jit/emit-common.h (emit_arithmetic_check): Added iptr.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_arraystore_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.
(emit_exception_check): Likewise.

* src/vm/jit/i386/emit.c (emit_arithmetic_check): Added iptr and check
INSTRUCTION_MUST_CHECK.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.

* src/vm/jit/i386/codegen.c (codegen): Pass iptr to exception-emit
functions.

17 years ago* src/vm/jit/parse.c (ICMD_CHECKNULL): Use OP_CHECK_EXCEPTION.
twisti [Sun, 10 Dec 2006 21:27:07 +0000 (21:27 +0000)]
* src/vm/jit/parse.c (ICMD_CHECKNULL): Use OP_CHECK_EXCEPTION.
* src/vm/jit/parse.h (OP_CHECK_EXCEPTION): New macro.

17 years ago* src/vm/jit/sparc64/codegen.h: Fixed float register mapping and compare macros.
ajordan [Sun, 10 Dec 2006 17:19:38 +0000 (17:19 +0000)]
* src/vm/jit/sparc64/codegen.h: Fixed float register mapping and compare macros.
* src/vm/jit/sparc64/emit.c: Likewise.

* src/vm/jit/sparc64/md.c: Fixed branch backpatching, was off by one.
* src/vm/jit/sparc64/codegen.c: replaced codegen_addreference() with codegen_add_branch_ref().

* src/vm/jit/sparc64/patcher.c: Tested and activated invokevirtual patcher.

17 years ago* src/vm/jit/sparc64/codegen.h: Reworked float handling, single precision floats...
ajordan [Sat, 9 Dec 2006 23:20:11 +0000 (23:20 +0000)]
* src/vm/jit/sparc64/codegen.h: Reworked float handling, single precision floats are now stored in the upper half of the double pair.

* src/vm/jit/sparc64/codegen.c: Fixes for argument handling and get/put-static.
* src/vm/jit/sparc64/emit.c: Likewise.
* src/vm/jit/sparc64/md-abi.c: Likewise.

* src/vm/jit/sparc64/asmpart.S(asm_call_jit_compiler): Fixed float arg saving.

17 years ago* src/vm/jit/powerpc/emit.c (emit_arrayindexoutofbounds_check):
twisti [Sat, 9 Dec 2006 00:25:34 +0000 (00:25 +0000)]
* src/vm/jit/powerpc/emit.c (emit_arrayindexoutofbounds_check):
Removed hardware-exception code.

17 years ago* src/vm/jit/jit.h (JITDATA_FLAG_INLINE): Added.
edwin [Fri, 8 Dec 2006 00:39:25 +0000 (00:39 +0000)]
* src/vm/jit/jit.h (JITDATA_FLAG_INLINE): Added.

17 years ago* src/vm/jit/powerpc/codegen.c: Ported replacement.
edwin [Fri, 8 Dec 2006 00:20:16 +0000 (00:20 +0000)]
* src/vm/jit/powerpc/codegen.c: Ported replacement.

17 years ago* src/vm/jit/i386/asmpart.S: Adapted to new execution state layout.
edwin [Fri, 8 Dec 2006 00:17:11 +0000 (00:17 +0000)]
* src/vm/jit/i386/asmpart.S: Adapted to new execution state layout.

17 years ago* src/vm/jit/replace.h: Use a type union replace_val_t for all source
edwin [Fri, 8 Dec 2006 00:16:21 +0000 (00:16 +0000)]
* src/vm/jit/replace.h: Use a type union replace_val_t for all source
state values. Give the registers in the execution state meaningful
types. Properly convert float/double values.
* src/vm/jit/replace.c: Likewise.

* src/vm/jit/powerpc/asmpart.S: Adapted to new execution state layout.
* src/vm/jit/i386/asmpart.S: Likewise.

17 years ago* src/vm/jit/replace.c: Small cleanups.
edwin [Fri, 8 Dec 2006 00:07:40 +0000 (00:07 +0000)]
* src/vm/jit/replace.c: Small cleanups.

17 years ago* src/vm/jit/replace.c: Implemented support for linkage area.
edwin [Fri, 8 Dec 2006 00:06:26 +0000 (00:06 +0000)]
* src/vm/jit/replace.c: Implemented support for linkage area.

17 years ago* src/vm/jit/replace.c: Implement alpha-style stack frames (ra is at
edwin [Fri, 8 Dec 2006 00:04:54 +0000 (00:04 +0000)]
* src/vm/jit/replace.c: Implement alpha-style stack frames (ra is at
top of frame, in leaf methods the ra register is used).

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Fix: Put the
edwin [Thu, 7 Dec 2006 23:59:32 +0000 (23:59 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Fix: Put the
REPLACEMENT_POINT_INVOKE_RETURN macro in the right place.

17 years ago* src/vm/jit/alpha/codegen.c: Ported replacement.
edwin [Thu, 7 Dec 2006 23:58:32 +0000 (23:58 +0000)]
* src/vm/jit/alpha/codegen.c: Ported replacement.

17 years ago* src/vm/jit/x86_64/codegen.c: Ported replacement.
edwin [Thu, 7 Dec 2006 23:57:45 +0000 (23:57 +0000)]
* src/vm/jit/x86_64/codegen.c: Ported replacement.

17 years ago* src/vm/jit/replace.h: Added macros for codegens.
edwin [Thu, 7 Dec 2006 23:54:40 +0000 (23:54 +0000)]
* src/vm/jit/replace.h: Added macros for codegens.

* src/vm/jit/replace.c: Architecture-independent patching of future
calls. Use a safe stack area for the final phase of replacement.

* src/vm/jit/asmpart.h (asm_replacement_in): Got an additional
argument for the safe stack area.

* src/vm/jit/powerpc/asmpart.S: Ported.
* src/vm/jit/alpha/asmpart.S: Likewise.
* src/vm/jit/i386/asmpart.S: Likewise.
* src/vm/jit/x86_64/asmpart.S: Likewise.

17 years ago* src/vm/jit/replace.h (replace_safestack_t): Prepared declarations
edwin [Thu, 7 Dec 2006 23:44:38 +0000 (23:44 +0000)]
* src/vm/jit/replace.h (replace_safestack_t): Prepared declarations
for the safe stack area (not used, yet).
(sourceframe_t): Added from/to members.

* src/vm/jit/replace.c: Major refactoring.

17 years ago* src/vm/jit/replace.h (rplpoint): Removed members outcode, code,
edwin [Thu, 7 Dec 2006 23:32:43 +0000 (23:32 +0000)]
* src/vm/jit/replace.h (rplpoint): Removed members outcode, code,
mcode. Fixed bitwidth of regalloccount.
(replace_activate_replacement_points): Activate rplpoints per codeinfo.
(replace_deactivate_replacement_points): Deactivate --''--.
* src/vm/jit/replace.c: Likewise.
* src/vm/jit/jit.c: Likewise.

17 years ago* src/vm/jit/replace.h (rplpoint): Removed `target` member.
edwin [Thu, 7 Dec 2006 23:17:24 +0000 (23:17 +0000)]
* src/vm/jit/replace.h (rplpoint): Removed `target` member.
* src/vm/jit/replace.c: Likewise.
* src/vm/jit/jit.c: Likewise.

17 years ago* src/vm/jit/codegen-common.c (codegen_finish): Relocate
edwin [Thu, 7 Dec 2006 23:13:25 +0000 (23:13 +0000)]
* src/vm/jit/codegen-common.c (codegen_finish): Relocate
code->replacementstubs, do not use rplpoint.outcode.

17 years ago* src/vm/jit/powerpc/md.c (md_patch_replacement_point): Changed to use
edwin [Thu, 7 Dec 2006 23:02:52 +0000 (23:02 +0000)]
* src/vm/jit/powerpc/md.c (md_patch_replacement_point): Changed to use
an external array for saving machine code.
* src/vm/jit/sparc64/md.c: Likewise.
* src/vm/jit/alpha/md.c: Likewise.
* src/vm/jit/mips/md.c: Likewise.
* src/vm/jit/powerpc64/md.c: Likewise.
* src/vm/jit/i386/md.c: Likewise.
* src/vm/jit/x86_64/md.c: Likewise.

* src/vm/jit/replace.h (md_patch_replacement_point): Added arguments.
* src/vm/jit/replace.c: Likewise.

17 years ago* src/vm/jit/powerpc/md.c (md_patch_replacement_point): Deactivate
edwin [Thu, 7 Dec 2006 22:48:41 +0000 (22:48 +0000)]
* src/vm/jit/powerpc/md.c (md_patch_replacement_point): Deactivate
debug print.
* src/vm/jit/alpha/md.c: Likewise.

17 years ago* src/vm/jit/powerpc/md.c (md_get_method_patch_address): Return NULL
edwin [Thu, 7 Dec 2006 22:45:09 +0000 (22:45 +0000)]
* src/vm/jit/powerpc/md.c (md_get_method_patch_address): Return NULL
if no mptr was specified and the call is dynamically dispatched.
* src/vm/jit/sparc64/md.c: Likewise.
* src/vm/jit/alpha/md.c: Likewise.
* src/vm/jit/mips/md.c: Likewise.
* src/vm/jit/i386/md.c: Likewise.
* src/vm/jit/powerpc64/md.c: Likewise.
* src/vm/jit/x86_64/md.c: Likewise.

17 years ago* src/vm/jit/mips/emit.c: #include <assert.h>
edwin [Thu, 7 Dec 2006 22:30:56 +0000 (22:30 +0000)]
* src/vm/jit/mips/emit.c: #include <assert.h>

17 years ago* src/vm/jit/alpha/emit.c: #include <assert.h>
edwin [Thu, 7 Dec 2006 22:29:22 +0000 (22:29 +0000)]
* src/vm/jit/alpha/emit.c: #include <assert.h>
* src/vm/jit/x86_64/emit.c (emit_replacement_stubs): Ported.

17 years ago* src/vm/jit/powerpc/emit.c (emit_replacement_stubs): Prepared for
edwin [Thu, 7 Dec 2006 22:25:42 +0000 (22:25 +0000)]
* src/vm/jit/powerpc/emit.c (emit_replacement_stubs): Prepared for
removal of rplpoint.mcode.
* src/vm/jit/alpha/emit.c: Likewise.
* src/vm/jit/mips/emit.c: Likewise.
* src/vm/jit/i386/emit.c: Likewise.
* src/vm/jit/x86_64/emit.c: Likewise.

17 years ago* src/vm/jit/powerpc/emit.c (emit_replacement_stubs): Do not
edwin [Thu, 7 Dec 2006 22:19:12 +0000 (22:19 +0000)]
* src/vm/jit/powerpc/emit.c (emit_replacement_stubs): Do not
set rplp->outcode.
* src/vm/jit/alpha/emit.c: Likewise.
* src/vm/jit/mips/emit.c: Likewise.
* src/vm/jit/i386/emit.c: Likewise.
* src/vm/jit/x86_64/emit.c: Likewise.

17 years ago* src/vm/jit/code.c (code_find_codeinfo_for_pc): New function.
edwin [Thu, 7 Dec 2006 20:39:57 +0000 (20:39 +0000)]
* src/vm/jit/code.c (code_find_codeinfo_for_pc): New function.
* src/vm/jit/code.h (codeinfo): Added codeinfo flags, replacementstubs,
and savedmcode.

* src/vm/jit/jit.c (jit_invalidate_code): Use codeinfo flags.
(jit_get_current_code): Likewise.

17 years ago* src/vm/jit/powerpc/arch.h (REPLACEMENT_PATCH_SIZE): Added.
edwin [Thu, 7 Dec 2006 20:14:40 +0000 (20:14 +0000)]
* src/vm/jit/powerpc/arch.h (REPLACEMENT_PATCH_SIZE): Added.
(REPLACEMENT_STUB_SIZE): Added.
* src/vm/jit/sparc64/arch.h: Likewise.
* src/vm/jit/alpha/arch.h: Likewise.
* src/vm/jit/mips/arch.h: Likewise.
* src/vm/jit/parisc/arch.h: Likewise.
* src/vm/jit/powerpc64/arch.h: Likewise.
* src/vm/jit/i386/arch.h: Likewise.
* src/vm/jit/x86_64/arch.h: Likewise.

17 years ago* scr/vm/jit/sparc64/emit.c: Fixed M_XOR and iconst, lconst.
ajordan [Thu, 7 Dec 2006 19:57:41 +0000 (19:57 +0000)]
* scr/vm/jit/sparc64/emit.c: Fixed M_XOR and iconst, lconst.
* src/vm/jit/sparc64/codegen.h: Likewise

* src/vm/jit/sparc64/codegen.c: Allocating (ABI defined) param array on stack before builtin call.

17 years ago* src/vm/jit/x86_64/emit.c (vm/options.h): Added.
twisti [Thu, 7 Dec 2006 10:59:01 +0000 (10:59 +0000)]
* src/vm/jit/x86_64/emit.c (vm/options.h): Added.
(emit_arithmetic_check): New function.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.

* src/vm/jit/x86_64/codegen.c (codegen): Use emit_*_check functions
for exception checks.
(IDIV, IREM, LDIV, LREM): Use emit_{load,store} functions.

* src/vm/jit/x86_64/codegen.h (gen_nullptr_check): Removed.
(gen_bound_check): Likewise.
(gen_resolvebranch): Likewise.

17 years ago* src/native/vm/java_lang_VMClass.c (forName): Throw NPE if null is
twisti [Wed, 6 Dec 2006 22:15:57 +0000 (22:15 +0000)]
* src/native/vm/java_lang_VMClass.c (forName): Throw NPE if null is
passed.

17 years ago* src/vm/jit/i386/emit.c (vm/options.h): Added.
twisti [Wed, 6 Dec 2006 10:49:47 +0000 (10:49 +0000)]
* src/vm/jit/i386/emit.c (vm/options.h): Added.
(emit_arithmetic_check): New function.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.

* src/vm/jit/i386/codegen.c (codegen): Use emit_*_check functions for
exception checks.

* src/vm/jit/i386/codegen.h (gen_nullptr_check): Removed.
(gen_bound_check): Likewise.

17 years ago* src/vm/jit/emit-common.c [__ALPHA__ || __POWERPC__]
twisti [Wed, 6 Dec 2006 10:37:11 +0000 (10:37 +0000)]
* src/vm/jit/emit-common.c [__ALPHA__ || __POWERPC__]
(emit_array_checks): Removed #ifdef's.

17 years ago* src/vm/jit/i386/emit.c (emit_verbosecall_enter): Check for
twisti [Wed, 6 Dec 2006 09:53:37 +0000 (09:53 +0000)]
* src/vm/jit/i386/emit.c (emit_verbosecall_enter): Check for
JITDATA_HAS_FLAG_VERBOSECALL.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/i386/codegen.c (codegen): Removed
JITDATA_HAS_FLAG_VERBOSECALL check.
(createnativestub): Likewise.

17 years ago* src/vm/builtin.c [ENABLE_JIT] (builtintable_replace_function):
twisti [Wed, 6 Dec 2006 09:47:12 +0000 (09:47 +0000)]
* src/vm/builtin.c [ENABLE_JIT] (builtintable_replace_function):
#ifdef'ed.

17 years ago* src/vm/jit/sparc64/emit.c: stack bias used in emit_load and emit_store.
ajordan [Tue, 5 Dec 2006 23:58:01 +0000 (23:58 +0000)]
* src/vm/jit/sparc64/emit.c: stack bias used in emit_load and emit_store.

* src/vm/jit/sparc64/md.c (md_stacktrace_get_returnaddress): let it return the original ra (address of the call instruction).

* src/vm/jit/sparc64/codegen.h: fixed M_RESTORE instruction.

* src/vm/jit/sparc64/codegen.c: fixed datasp argument for codegen_finish_native_call.

17 years ago* src/vm/exceptions.h (EXCEPTION_LOAD_DISP_NULLPOINTER)
twisti [Tue, 5 Dec 2006 21:10:54 +0000 (21:10 +0000)]
* src/vm/exceptions.h (EXCEPTION_LOAD_DISP_NULLPOINTER)
(EXCEPTION_LOAD_DISP_ARITHMETIC)
(EXCEPTION_LOAD_DISP_ARRAYINDEXOUTOFBOUNDS)
(EXCEPTION_LOAD_DISP_CLASSCAST, EXCEPTION_LOAD_DISP_PATCHER): Defined.

* src/vm/signal.c (signal_init): Removed checknull-check.

* src/vm/jit/powerpc/emit.c (vm/exceptions.h): Added.
(emit_arrayindexoutofbounds_check): Added hardware-exception version.

* src/vm/jit/powerpc/darwin/md-os.c (md_signal_handler_sigsegv):
Started to handle other hardware-exceptions.

17 years ago* src/vm/jit/x86_64/codegen.c (createcompilerstub): Don't generate a
twisti [Mon, 4 Dec 2006 23:48:23 +0000 (23:48 +0000)]
* src/vm/jit/x86_64/codegen.c (createcompilerstub): Don't generate a
codeinfo.

17 years ago* src/vm/jit/powerpc64/codegen.c (createcompilerstub): Don't generate
twisti [Mon, 4 Dec 2006 23:39:14 +0000 (23:39 +0000)]
* src/vm/jit/powerpc64/codegen.c (createcompilerstub): Don't generate
a codeinfo.

17 years ago* src/vm/jit/powerpc64/linux/md-os.c (vm/jit/profile/profile.h):
twisti [Mon, 4 Dec 2006 23:36:11 +0000 (23:36 +0000)]
* src/vm/jit/powerpc64/linux/md-os.c (vm/jit/profile/profile.h):
Changed to vm/jit/optimizing/profile.h.

17 years ago* src/vm/jit/alpha/codegen.c (createcompilerstub): Don't generate a
twisti [Mon, 4 Dec 2006 23:30:51 +0000 (23:30 +0000)]
* src/vm/jit/alpha/codegen.c (createcompilerstub): Don't generate a
codeinfo.

17 years ago* src/vm/jit/i386/codegen.c (createcompilerstub): Don't generate a
twisti [Mon, 4 Dec 2006 23:16:43 +0000 (23:16 +0000)]
* src/vm/jit/i386/codegen.c (createcompilerstub): Don't generate a
codeinfo.

17 years ago* src/vm/jit/powerpc/codegen.c (createcompilerstub): Don't generate a
twisti [Mon, 4 Dec 2006 22:51:20 +0000 (22:51 +0000)]
* src/vm/jit/powerpc/codegen.c (createcompilerstub): Don't generate a
codeinfo.

17 years ago* src/vm/jit/code.c (code_init): New function.
twisti [Mon, 4 Dec 2006 22:21:49 +0000 (22:21 +0000)]
* src/vm/jit/code.c (code_init): New function.
* src/vm/jit/code.h (code_init): Added.
* src/vm/jit/jit.c (jit_init): Added code_init call.

17 years ago* src/vm/jit/code.h (vm/global.h): Added.
twisti [Mon, 4 Dec 2006 22:18:36 +0000 (22:18 +0000)]
* src/vm/jit/code.h (vm/global.h): Added.

17 years ago* src/vm/jit/sparc64/codegen.h: updated code to new dseg functions.
ajordan [Mon, 4 Dec 2006 14:46:59 +0000 (14:46 +0000)]
* src/vm/jit/sparc64/codegen.h: updated code to new dseg functions.
* src/vm/jit/sparc64/codegen.c: Likewise.
* src/vm/jit/sparc64/emit.c: Likewise.

17 years ago* src/vm/vm.c (vm_create): Moved properties_postinit after jar-file
twisti [Mon, 4 Dec 2006 11:20:27 +0000 (11:20 +0000)]
* src/vm/vm.c (vm_create): Moved properties_postinit after jar-file
handling. This fixes an eclipse bug found by mjw and neugens.

17 years ago* src/mm/cacao-gc/compact.c: Now uses regioninfo; Added compact_thread_classes
michi [Mon, 4 Dec 2006 02:05:34 +0000 (02:05 +0000)]
* src/mm/cacao-gc/compact.c: Now uses regioninfo; Added compact_thread_classes
Fixed compact_move; Disabled some logging.
* src/mm/cacao-gc/compact.h: Now uses regioninfo.

17 years ago* src/vm/vm.c (version): Print classpath variable.
twisti [Sun, 3 Dec 2006 22:45:23 +0000 (22:45 +0000)]
* src/vm/vm.c (version): Print classpath variable.

17 years ago* src/mm/cacao-gc/compact.c: Added.
michi [Sun, 3 Dec 2006 17:55:16 +0000 (17:55 +0000)]
* src/mm/cacao-gc/compact.c: Added.
* src/mm/cacao-gc/compact.h: Added.

17 years ago* configure.ac: Added m68k host_cpu support. Added uclinux host_os
tbfg [Sat, 2 Dec 2006 15:01:03 +0000 (15:01 +0000)]
* configure.ac: Added m68k host_cpu support. Added uclinux host_os
support.

17 years ago* src/native/tools/gennativetable.c (main): Renamed nogc_init
tbfg [Sat, 2 Dec 2006 14:54:27 +0000 (14:54 +0000)]
* src/native/tools/gennativetable.c (main): Renamed nogc_init
to gc_init in DISABLE_GC path.

* src/native/Makefile.am: Introduced GENNATIVETABLE to
make crosscompilation a friendlier experience. Rewrote
rule for nativetable.inc accordingly.

* src/threads/native/threads.c (threads_cast_stopworld) [!DISABLE_GC]:
Depends on GC_signum1 and GC_signum2 which are undefined without
garbage collector.
(threads_cast_startworld): Likewise.
(threads_sigsuspend_handler): Likewise.

17 years ago* src/vm/builtin.c (builtin_trace_args): Added missing + for
twisti [Sat, 2 Dec 2006 12:22:06 +0000 (12:22 +0000)]
* src/vm/builtin.c (builtin_trace_args): Added missing + for
logtextlen, thanks to --enable-memcheck.

17 years ago* src/vm/jit/x86_64/codegen.h (vm/jit/x86_64/emit.h): Added.
twisti [Fri, 1 Dec 2006 16:51:25 +0000 (16:51 +0000)]
* src/vm/jit/x86_64/codegen.h (vm/jit/x86_64/emit.h): Added.

17 years ago* src/vm/jit/powerpc64/asmpart.S (asm_vm_call_method):
tbfg [Fri, 1 Dec 2006 11:38:47 +0000 (11:38 +0000)]
* src/vm/jit/powerpc64/asmpart.S (asm_vm_call_method):
Fixed a bug in argument handling when using lwz instead
of lwa zeroed out sign extension bits which lead to wrong
int->string conversion in exception handling path.

17 years ago* tests/regression/jasmin/test_verify_fail_merge_init_nullpointer.j:
edwin [Wed, 29 Nov 2006 22:33:49 +0000 (22:33 +0000)]
* tests/regression/jasmin/test_verify_fail_merge_init_nullpointer.j:
New test.

* tests/regression/jasmin/test_verify_fail_init_nullpointer.j: Pass
null pointer without merging.

* tests/regression/jasmin/Makefile.am: Added new test.

17 years ago* src/vm/jit/dseg.h (jumpref, dataref, exceptionref, patchref)
twisti [Wed, 29 Nov 2006 20:44:10 +0000 (20:44 +0000)]
* src/vm/jit/dseg.h (jumpref, dataref, exceptionref, patchref)
(linenumberref): Moved to codegen-common.h.
* src/vm/jit/codegen-common.h: Likewise.

17 years ago* src/vm/jit/emit-common.c (emit_bc): Commented emit_branch call.
twisti [Wed, 29 Nov 2006 20:34:02 +0000 (20:34 +0000)]
* src/vm/jit/emit-common.c (emit_bc): Commented emit_branch call.

17 years ago* src/vm/jit/x86_64/emit.h (config.h): Added.
twisti [Wed, 29 Nov 2006 20:15:47 +0000 (20:15 +0000)]
* src/vm/jit/x86_64/emit.h (config.h): Added.
(vm/jit/codegen-common.h): Likewise.
(vm/jit/jit.h): Likewise.

17 years ago* src/vm/class.h [ENABLE_JAVASE] (vm/annotation.h): Added.
twisti [Wed, 29 Nov 2006 17:08:27 +0000 (17:08 +0000)]
* src/vm/class.h [ENABLE_JAVASE] (vm/annotation.h): Added.
[ENABLE_JAVASE] (classinfo): Added runtimevisibleannotationscount,
runtimevisibleannotations.

17 years ago* src/vm/annotation.c: New file.
twisti [Wed, 29 Nov 2006 17:04:14 +0000 (17:04 +0000)]
* src/vm/annotation.c: New file.
* src/vm/annotation.h: Likewise.
* src/vm/Makefile.am [ENABLE_JAVASE] (ANNOTATION_OBJ): Added.

17 years ago* src/vm/resolve.h (vm/field.h): Added.
twisti [Wed, 29 Nov 2006 17:00:02 +0000 (17:00 +0000)]
* src/vm/resolve.h (vm/field.h): Added.

17 years ago* src/vm/jit/emit-common.c (emit_bc): Temporary compile fix
twisti [Tue, 28 Nov 2006 22:36:47 +0000 (22:36 +0000)]
* src/vm/jit/emit-common.c (emit_bc): Temporary compile fix

17 years ago* src/vm/jit/i386/codegen.h (vm/jit/i386/emit.h): Added.
twisti [Tue, 28 Nov 2006 22:32:22 +0000 (22:32 +0000)]
* src/vm/jit/i386/codegen.h (vm/jit/i386/emit.h): Added.

17 years ago* src/vm/statistics.c (count_branches_resolved)
twisti [Tue, 28 Nov 2006 22:28:52 +0000 (22:28 +0000)]
* src/vm/statistics.c (count_branches_resolved)
(count_branches_unresolved): New variable.
(print_stats): Print new variables.

* src/vm/statistics.h (count_branches_resolved)
(count_branches_unresolved): Added.

17 years ago* src/vm/jit/emit-common.c (codegen.h): Added.
twisti [Tue, 28 Nov 2006 22:25:11 +0000 (22:25 +0000)]
* src/vm/jit/emit-common.c (codegen.h): Added.
(vm/options.h): Likewise.
[ENABLE_STATISTICS] (vm/statistics.h): Likewise.
(emit_bc): New function.
(emit_br): Likewise.

* src/vm/jit/emit-common.h (emit_branch): Added.

17 years ago* src/vm/jit/alpha/codegen.h (BRANCH_NOPS): Defined.
twisti [Tue, 28 Nov 2006 22:19:16 +0000 (22:19 +0000)]
* src/vm/jit/alpha/codegen.h (BRANCH_NOPS): Defined.
* src/vm/jit/i386/codegen.h (BRANCH_NOPS, PATCHER_NOPS): Likewise.
* src/vm/jit/mips/codegen.h (BRANCH_NOPS): Likewise.
* src/vm/jit/powerpc/codegen.h (BRANCH_NOPS): Likewise.
* src/vm/jit/powerpc64/codegen.h (BRANCH_NOPS, PATCHER_CALL_SIZE)
(PATCHER_NOPS): Likewise.
* src/vm/jit/x86_64/codegen.h (BRANCH_NOPS): Likewise.

17 years ago* src/vm/jit/dseg.c (dseg_get_linenumber_from_pc_intern):
twisti [Tue, 28 Nov 2006 22:04:29 +0000 (22:04 +0000)]
* src/vm/jit/dseg.c (dseg_get_linenumber_from_pc_intern):
Short-circuit the common case.

17 years ago* src/native/tools/Makefile.am (GC_LIB): Removed.
twisti [Tue, 28 Nov 2006 21:50:26 +0000 (21:50 +0000)]
* src/native/tools/Makefile.am (GC_LIB): Removed.

17 years ago* src/vm/jit/emit-common.c (emit_beq, emit_bne, emit_blt, emit_bge)
twisti [Tue, 28 Nov 2006 19:58:02 +0000 (19:58 +0000)]
* src/vm/jit/emit-common.c (emit_beq, emit_bne, emit_blt, emit_bge)
(emit_bgt, emit_ble, emit_bnan): New functions.
* src/vm/jit/emit-common.h (emit_beq, emit_bne, emit_blt, emit_bge)
(emit_bgt, emit_ble, emit_bnan): Added.

* src/vm/jit/codegen-common.h (BRANCH_UNCONDITIONAL, BRANCH_EQ)
(BRANCH_NE, BRANCH_LT, BRANCH_GE, BRANCH_GT, BRANCH_LE, BRANCH_NAN):
Added.

17 years ago* tests/regression/jasmin/test_verify_fail_merge_different_new_objects.j:
edwin [Tue, 28 Nov 2006 19:24:33 +0000 (19:24 +0000)]
* tests/regression/jasmin/test_verify_fail_merge_different_new_objects.j:
New test.

* tests/regression/jasmin/test_verify_fail_init_nullpointer.j: Likewise.

* tests/regression/jasmin/Makefile.am: Added new tests.

17 years ago* src/vm/jit/verify/typeinfo.c (typeinfo_merge_error): Moved debug
edwin [Tue, 28 Nov 2006 19:24:06 +0000 (19:24 +0000)]
* src/vm/jit/verify/typeinfo.c (typeinfo_merge_error): Moved debug
print into #ifdef TYPEINFO_VERBOSE.

17 years ago* src/vm/jit/alpha/codegen.h (PATCHER_CALL_SIZE): Defined.
twisti [Tue, 28 Nov 2006 19:14:14 +0000 (19:14 +0000)]
* src/vm/jit/alpha/codegen.h (PATCHER_CALL_SIZE): Defined.

17 years ago* src/native/vm/java_lang_VMThrowable.c
twisti [Tue, 28 Nov 2006 15:11:20 +0000 (15:11 +0000)]
* src/native/vm/java_lang_VMThrowable.c
(native/include/java_lang_VMClass.h): Removed.
(getStackTrace): Use native_class_getname.

17 years ago* src/vm/jit/sparc64/asmpart.S: fixed asm_patcher_wrapper
ajordan [Tue, 28 Nov 2006 01:07:49 +0000 (01:07 +0000)]
* src/vm/jit/sparc64/asmpart.S: fixed asm_patcher_wrapper
* src/vm/jit/sparc64/patcher.c: updated some patchers and the wrapper
* src/vm/jit/sparc64/emit.c: likewise

* src/vm/jit/sparc64/codegen.h: fixed M_BRACC

* src/vm/jit/sparc64/codegen.c: added reg window workaround for arg register copying.
some patch ref updates

* src/vm/jit/sparc64/md.c: updated md_codegen_patch_branch()

17 years ago* src/vm/jit/powerpc/codegen.h (PATCHER_CALL_SIZE): Defined.
twisti [Mon, 27 Nov 2006 20:05:59 +0000 (20:05 +0000)]
* src/vm/jit/powerpc/codegen.h (PATCHER_CALL_SIZE): Defined.

17 years ago* src/vm/jit/replace.c: Lazy patching of virtual methods. Cleanup.
edwin [Mon, 27 Nov 2006 16:53:53 +0000 (16:53 +0000)]
* src/vm/jit/replace.c: Lazy patching of virtual methods. Cleanup.
* src/vm/jit/replace.h: Likewise.

17 years ago* src/vm/jit/replace.h (sourceframe_t): Added normalized type
edwin [Mon, 27 Nov 2006 15:37:02 +0000 (15:37 +0000)]
* src/vm/jit/replace.h (sourceframe_t): Added normalized type
of replacement point.

* src/vm/jit/replace.c (replace_normalize_type_map): Added
normalization table for replacement point types.
(replace_read_executionstate): Set normalized type of rplpoint.
(replace_find_replacement_point): Match normalized type of rplpoint.
(replace_source_frame_println): Print it.

17 years ago* src/vm/jit/i386/codegen.c (codegen): set marker in line number table
edwin [Mon, 27 Nov 2006 15:29:40 +0000 (15:29 +0000)]
* src/vm/jit/i386/codegen.c (codegen): set marker in line number table
_after_ inlining prolog (This fixes the stacktrace for the CHECKNULL in
the prolog.)

* src/vm/jit/dseg.c (dseg_addlinenumber_inline_start): Document that
it is now called with the INLINE_BODY instruction.

17 years ago* src/vm/jit/i386/codegen.cn (codegen): Use the new functions for
edwin [Mon, 27 Nov 2006 15:24:39 +0000 (15:24 +0000)]
* src/vm/jit/i386/codegen.cn (codegen): Use the new functions for
setting replacement point addresses.

17 years ago* src/vm/jit/codegen-common.c (codegen_set_replacement_point_notrap):
edwin [Mon, 27 Nov 2006 15:23:55 +0000 (15:23 +0000)]
* src/vm/jit/codegen-common.c (codegen_set_replacement_point_notrap):
New function.
(codegen_set_replacement_point): Likewise.

* src/vm/jit/codegen-common.h (codegendata): Added field
`replacementpoint`.
(codegen_set_replacement_point_notrap): Added prototype.
(codegen_set_replacement_point): Likewise.

* src/vm/jit/replace.h (RPLPOINT_CHECK): New macro.
(RPLPOINT_CHECK_BB): Likewise.

17 years ago* src/vm/jit/replace.c (replace_create_inline_start_replacement_point):
edwin [Mon, 27 Nov 2006 15:19:20 +0000 (15:19 +0000)]
* src/vm/jit/replace.c (replace_create_inline_start_replacement_point):
New function.
(replace_create_replacement_points): Cleaned up.

17 years ago* src/vm/jit/stack.c (stack_javalocals_store): New function.
edwin [Mon, 27 Nov 2006 15:15:54 +0000 (15:15 +0000)]
* src/vm/jit/stack.c (stack_javalocals_store): New function.
* src/vm/jit/stack.h (stack_javalocals_store): Likewise.

* src/vm/jit/inline/inline.c (inline_clone_instruction): Use
stack_javalocals_store.

* src/vm/jit/replace.c (replace_create_replacement_points): Use
stack_javalocals_store. Other cleanups.

17 years ago* src/vm/jit/replace.c (replace_create_replacement_points): Create
edwin [Mon, 27 Nov 2006 15:11:12 +0000 (15:11 +0000)]
* src/vm/jit/replace.c (replace_create_replacement_points): Create
non-trappable replacement point for INLINE_BODY.

* src/vm/jit/i386/codegen.c (codegen): Handle replacement point
for INLINE_BODY.

17 years ago* src/vm/jit/replace.h (RPLPOINT_TYPE_BODY): Added.
edwin [Mon, 27 Nov 2006 15:06:08 +0000 (15:06 +0000)]
* src/vm/jit/replace.h (RPLPOINT_TYPE_BODY): Added.
* src/vm/jit/replace.c: Likewise.