twisti [Mon, 18 Dec 2006 16:27:09 +0000 (16:27 +0000)]
* src/vm/exceptions.c (exceptions_throw_internalerror): New function.
* src/vm/exceptions.h (exceptions_throw_internalerror): Added.
edwin [Sat, 16 Dec 2006 22:53:24 +0000 (22:53 +0000)]
* src/vm/jit/jit.c (jit_compile_intern): Perform inlining if
JITDATA_FLAG_INLINE is set.
* src/vm/jit/inline/inline.c: Put the result of inlining into
the passed jitdata, instead of using a new one. Do not translate
returnAddresses in javalocals. It makes no sense.
* src/vm/jit/i386/codegen.h (M_BS): New macro.
* src/vm/jit/replace.h (RPLPOINT_FLAG_COUNTDOWN): New constant.
(Preparation for count-down replacement).
* src/vm/jit/jit.h (JITDATA_FLAG_COUNTDOWN): New flag.
(JITDATA_HAS_FLAG_COUNTDOWN): New macro.
edwin [Sat, 16 Dec 2006 21:16:32 +0000 (21:16 +0000)]
* src/vm/jit/replace.c (replace_patch_class): New function.
(replace_patch_class_hierarchy): New function.
(replace_patch_future_calls): Fall back to iterating over all loaded
classes if the instance of a call is not known.
edwin [Sat, 16 Dec 2006 21:14:23 +0000 (21:14 +0000)]
* src/vm/classcache.c (classcache_foreach_loaded_class): New function.
* src/vm/classcache.h (classcache_foreach_loaded_class): Likewise.
(classcache_foreach_functionptr_t): New typedef.
edwin [Sat, 16 Dec 2006 21:12:49 +0000 (21:12 +0000)]
* src/vm/jit/replace.c (replace_read_executionstate): Fix: Initialize
the javalocaltype array for NDEBUG.
edwin [Sat, 16 Dec 2006 21:11:04 +0000 (21:11 +0000)]
* src/vm/jit/inline/inline.c: Relocate returnAddresses in javalocals
and in the s2 operand of ASTORE. Fix handling of in/out variables
of TYPE_RET.
* src/vm/jit/allocator/simplereg.c (simplereg_new_temp): Assert that
constants (currently only TYPE_RET) are not allocated.
(simplereg_new_free): Assert that constants (currently only TYPE_RET)
are not freed.
edwin [Sat, 16 Dec 2006 20:59:26 +0000 (20:59 +0000)]
* src/vm/jit/stack.c (stack_reanalyse_block): Zero line and flags of
the appended NOP.
edwin [Sat, 16 Dec 2006 20:57:01 +0000 (20:57 +0000)]
* src/vm/jit/replace.c: Prepared for native frames.
* src/vm/jit/replace.h: Likewise.
(REPLACEMENT_POINTS_RESET): Added.
edwin [Sat, 16 Dec 2006 20:51:32 +0000 (20:51 +0000)]
* src/vm/jit/intrp/intrp.h: #include codegen-common.h
edwin [Sat, 16 Dec 2006 20:50:32 +0000 (20:50 +0000)]
* src/vm/jit/inline/inline.c (create_body_block): Copy bitflags.
(test_inlining): Copy code->optlevel. This is a quick fix for a more
general problem: inline_inline should not swap the jitdata, but instead
modify it in-place.
(inline_inline_intern): Activated speculative inlining code.
twisti [Sat, 16 Dec 2006 13:04:22 +0000 (13:04 +0000)]
* src/vm/annotation.c
(annotation_load_attribute_runtimevisibleannotations): Extended
comment, removed #ifdef ENABLE_JAVASE.
twisti [Fri, 15 Dec 2006 23:54:54 +0000 (23:54 +0000)]
* 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.
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.
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.
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.
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.
twisti [Mon, 11 Dec 2006 20:16:10 +0000 (20:16 +0000)]
* src/vm/jit/parse.c (MULTIANEWARRAY): 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.
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.
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.
twisti [Mon, 11 Dec 2006 00:28:17 +0000 (00:28 +0000)]
* src/native/vm/java_lang_reflect_Constructor.c (getSignature):
Implemented.
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.
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.
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.
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.
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.
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.
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.
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.
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.
edwin [Fri, 8 Dec 2006 00:39:25 +0000 (00:39 +0000)]
* src/vm/jit/jit.h (JITDATA_FLAG_INLINE): Added.
edwin [Fri, 8 Dec 2006 00:20:16 +0000 (00:20 +0000)]
* src/vm/jit/powerpc/codegen.c: Ported replacement.
edwin [Fri, 8 Dec 2006 00:17:11 +0000 (00:17 +0000)]
* src/vm/jit/i386/asmpart.S: Adapted to new execution state layout.
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.
edwin [Fri, 8 Dec 2006 00:07:40 +0000 (00:07 +0000)]
* src/vm/jit/replace.c: Small cleanups.
edwin [Fri, 8 Dec 2006 00:06:26 +0000 (00:06 +0000)]
* src/vm/jit/replace.c: Implemented support for linkage area.
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).
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.
edwin [Thu, 7 Dec 2006 23:58:32 +0000 (23:58 +0000)]
* src/vm/jit/alpha/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.
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.
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.
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.
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.
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.
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.
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.
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.
edwin [Thu, 7 Dec 2006 22:30:56 +0000 (22:30 +0000)]
* src/vm/jit/mips/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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
twisti [Wed, 6 Dec 2006 09:47:12 +0000 (09:47 +0000)]
* src/vm/builtin.c [ENABLE_JIT] (builtintable_replace_function):
#ifdef'ed.
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.
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.
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.
twisti [Mon, 4 Dec 2006 23:39:14 +0000 (23:39 +0000)]
* src/vm/jit/powerpc64/codegen.c (createcompilerstub): Don't generate
a codeinfo.
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.
twisti [Mon, 4 Dec 2006 23:30:51 +0000 (23:30 +0000)]
* src/vm/jit/alpha/codegen.c (createcompilerstub): Don't generate a
codeinfo.
twisti [Mon, 4 Dec 2006 23:16:43 +0000 (23:16 +0000)]
* src/vm/jit/i386/codegen.c (createcompilerstub): Don't generate a
codeinfo.
twisti [Mon, 4 Dec 2006 22:51:20 +0000 (22:51 +0000)]
* src/vm/jit/powerpc/codegen.c (createcompilerstub): Don't generate a
codeinfo.
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.
twisti [Mon, 4 Dec 2006 22:18:36 +0000 (22:18 +0000)]
* src/vm/jit/code.h (vm/global.h): Added.
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.
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.
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.
twisti [Sun, 3 Dec 2006 22:45:23 +0000 (22:45 +0000)]
* src/vm/vm.c (version): Print classpath variable.
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.
tbfg [Sat, 2 Dec 2006 15:01:03 +0000 (15:01 +0000)]
* configure.ac: Added m68k host_cpu support. Added uclinux host_os
support.
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.
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.
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.
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.
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.
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.
twisti [Wed, 29 Nov 2006 20:34:02 +0000 (20:34 +0000)]
* src/vm/jit/emit-common.c (emit_bc): Commented emit_branch call.
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.
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.
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.
twisti [Wed, 29 Nov 2006 17:00:02 +0000 (17:00 +0000)]
* src/vm/resolve.h (vm/field.h): Added.
twisti [Tue, 28 Nov 2006 22:36:47 +0000 (22:36 +0000)]
* src/vm/jit/emit-common.c (emit_bc): Temporary compile fix
twisti [Tue, 28 Nov 2006 22:32:22 +0000 (22:32 +0000)]
* src/vm/jit/i386/codegen.h (vm/jit/i386/emit.h): Added.
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.
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.
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.
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.
twisti [Tue, 28 Nov 2006 21:50:26 +0000 (21:50 +0000)]
* src/native/tools/Makefile.am (GC_LIB): Removed.
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.
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.
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.
twisti [Tue, 28 Nov 2006 19:14:14 +0000 (19:14 +0000)]
* src/vm/jit/alpha/codegen.h (PATCHER_CALL_SIZE): Defined.