cacao.git
17 years ago* NEWS: Added release 0.98.
twisti [Wed, 8 Nov 2006 22:02:17 +0000 (22:02 +0000)]
* NEWS: Added release 0.98.

17 years ago* src/vm/method.h (methodinfo): Added signature.
twisti [Wed, 8 Nov 2006 22:00:57 +0000 (22:00 +0000)]
* src/vm/method.h (methodinfo): Added signature.
* src/vm/field.h (fieldinfo): Added signature.
* src/vm/loader.c (load_method): Load signature attribute.
(load_field): Likewise.
* src/native/vm/java_lang_reflect_Method.c (getSignature):
Implemented.
* src/native/vm/java_lang_reflect_Field.c (getSignature): Likewise.

17 years ago* src/vm/jit/code.h (codeinfo): Added field stackframesize.
edwin [Wed, 8 Nov 2006 20:34:10 +0000 (20:34 +0000)]
* src/vm/jit/code.h (codeinfo): Added field stackframesize.
* src/vm/jit/code.c (code_get_stack_frame_size): Return
code->stackframesize.

* src/vm/jit/replace.c (replace_create_replacement_points): Set
code->stackframesize.
(replace_read_executionstate): Read stack types from rplallocs.
(replace_write_executionstate): Check stack types.
(replace_pop_activation_record): New function.
(replace_me): Added some temporary code for testing.
(replace_executionstate_println): Use executionstate.code.
(java_value_print): New function.
(replace_sourcestate_println): Print values prettily.

* src/vm/jit/replace.h (executionstate): Added field `code`.
(sourcestate): Added field `javastacktype`.
(replace_pop_activation_record): New function.
(replace_executionstate_println): Changed arguments.

17 years ago* src/vm/exceptions.c (new_nullpointerexception): Renamed to
twisti [Wed, 8 Nov 2006 20:27:37 +0000 (20:27 +0000)]
* src/vm/exceptions.c (new_nullpointerexception): Renamed to
exceptions_new_nullpointerexception.
* src/vm/exceptions.h: Likewise.
* src/vm/jit/stacktrace.c: Likewise.
* src/cacaoh/headers.c: Likewise.

17 years ago* src/vm/jit/powerpc64/codegen.h (gen_resolvebranch): Removed.
tbfg [Wed, 8 Nov 2006 13:33:08 +0000 (13:33 +0000)]
* src/vm/jit/powerpc64/codegen.h (gen_resolvebranch): Removed.

* src/vm/jit/powerpc64/codegen.c (codegen): Replaced
gen_resolvebranch with md_codegen_patch_branch.

* src/vm/jit/powerpc64/md.c (md_codegen_patch_branch): Prevent AA
and LK overwrites for b.

17 years ago* src/vm/jit/powerpc64/md.c (md_codegen_patch_branch): Added.
tbfg [Wed, 8 Nov 2006 13:03:42 +0000 (13:03 +0000)]
* src/vm/jit/powerpc64/md.c (md_codegen_patch_branch): Added.

17 years ago* src/vm/jit/i386/md.c (md_codegen_patch_branch): New function.
twisti [Tue, 7 Nov 2006 09:06:18 +0000 (09:06 +0000)]
* src/vm/jit/i386/md.c (md_codegen_patch_branch): New function.
* src/vm/jit/i386/emit.c (emit_exception_stubs): Use
md_codegen_patch_branch.
* src/vm/jit/i386/codegen.c (codegen): Use codegen_resolve_branchrefs.
* src/vm/jit/i386/codegen.h (gen_resolvebranch): Removed.

17 years ago* src/vm/jit/codegen-common.h (codegen_resolve_branchrefs): Added.
twisti [Tue, 7 Nov 2006 08:51:05 +0000 (08:51 +0000)]
* src/vm/jit/codegen-common.h (codegen_resolve_branchrefs): Added.

17 years ago* jit/mips/emit.c (emit_patcher_stubs): Handle displacement overflows.
twisti [Mon, 6 Nov 2006 21:12:52 +0000 (21:12 +0000)]
* jit/mips/emit.c (emit_patcher_stubs): Handle displacement overflows.

* jit/mips/codegen.c (codegen): Removed patcher NOPs generation.
(createnativestub): Likewise.

* jit/mips/codegen.h (PATCHER_CALL_INSTRUCTIONS): Defined.
(PATCHER_CALL_SIZE): Changed to 5 * 4;
(PATCHER_NOPS): Defined.

* jit/mips/patcher.c (patcher_wrapper): Restore original instructions.
(patcher_get_putstatic): Don't restore original code.
(patcher_get_putfield): Likewise.
(patcher_aconst): Likewise.
(patcher_builtin_multianewarray): Likewise.
(patcher_builtin_arraycheckcast): Likewise.
(patcher_invokestatic_special): Likewise.
(patcher_invokevirtual): Likewise.
(patcher_invokeinterface): Likewise.
(patcher_checkcast_instanceof_flags): Likewise.
(patcher_checkcast_interface): Likewise.
(patcher_instanceof_interface): Likewise.
(patcher_checkcast_instanceof_class): Likewise.
(patcher_clinit): Likewise.
(patcher_athrow_areturn): Likewise.
(patcher_resolve_native): Likewise.

* jit/mips/asmpart.S (asm_patcher_wrapper): Handle bigger patcher stub
stack.

* jit/codegen-common.c (codegen_add_patch_ref): Generate NOPs, if
requested.

17 years ago* src/vm/jit/codegen-common.c (toolbox/list.h): Added.
twisti [Mon, 6 Nov 2006 17:13:40 +0000 (17:13 +0000)]
* src/vm/jit/codegen-common.c (toolbox/list.h): Added.
(codegen_addreference): Renamed to codegen_add_branch_ref, use
md_codegen_patch_branch instead of gen_resolvebranch.
(codegen_resolve_branchrefs): New function.
(codegen_addpatchref): Renamed to codegen_add_patch_ref.
* src/vm/jit/codegen-common.h (codegen_addreference): Renamed to
codegen_add_branch_ref.
(codegen_resolve_branchrefs): New function.
(codegen_addpatchref): Renamed to codegen_add_patch_ref.

* src/vm/jit/dseg.h (toolbox/list.h): Added.

* src/vm/jit/mips/emit.c (vm/options.h): Added.
(emit_arithmetic_check): New function.
(emit_arrayindexoutofbounds_check): Likewise.
(emit_arraystore_check): Likewise.
(emit_classcast_check): Likewise.
(emit_nullpointer_check): Likewise.
(emit_exception_check): Likewise.
(emit_exception_stubs): Use md_codegen_patch_branch instead of
gen_resolvebranch.

* src/vm/jit/mips/md.c (vm/vm.h): Added.
(md_codegen_patch_branch): New function.

* src/vm/jit/mips/codegen.c (codegen): Use new emit_* functions, use
opt_shownops instead of opt_showdissasemble.
(createnativestub): Likewise.

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

* src/vm/jit/mips/patcher.c: Use opt_shownops instead of
opt_showdissasemble.
(patcher_checkcast_instanceof_interface): Split into two functions:
patcher_checkcast_interface and patcher_instanceof_interface.

* src/vm/jit/patcher.h (patcher_checkcast_interface): Added.
(patcher_instanceof_interface): Added.

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

17 years ago* src/vm/jit/powerpc64/codegen.c (codegen): Various more fixes all
tbfg [Mon, 6 Nov 2006 16:38:31 +0000 (16:38 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen): Various more fixes all
over the place. jctest is now successfull for ppc64.

* src/vm/jit/powerpc64/codegen.h (M_DIV): Changed used opcode.
(M_SLL_IMM): Fixed.

17 years ago* src/vm/jit/replace.c (replace_create_replacement_point): New
edwin [Mon, 6 Nov 2006 16:17:16 +0000 (16:17 +0000)]
* src/vm/jit/replace.c (replace_create_replacement_point): New
function.
(replace_create_replacement_points): Create replacement points for
INVOKE* and *RETURN instructions.
(replace_read_executionstate): Fixed loop.
(replace_write_executionstate): Fixed loop.
(replace_sourcestate_println): Adapted to new source state layout.

17 years ago* src/vm/jit/i386/codegen.c (codegen): Create replacement points after
edwin [Sun, 5 Nov 2006 23:17:23 +0000 (23:17 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Create replacement points after
the final allocations.

* src/vm/jit/jit.c (jit_compile_intern): Do not create replacement
points before the codegen is called.

17 years ago* src/vm/jit/codegen-common.h (codegendata): Removed maxlocals. This is
edwin [Sun, 5 Nov 2006 23:11:27 +0000 (23:11 +0000)]
* src/vm/jit/codegen-common.h (codegendata): Removed maxlocals. This is
now in jitdata.
* src/vm/jit/codegen-common.c (codegen_setup): Removed cd->maxlocals.

* src/vm/jit/replace.c: Move towards exact replacement/GC points.
* src/vm/jit/replace.h: Likewise.

* src/vm/jit/optimizing/lsra.h: Use jd->maxlocals.
* src/vm/jit/optimizing/lifetimes.c: Likewise.
* src/vm/jit/optimizing/ssa.c: Likewise.
* src/vm/jit/show.c: Likewise.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/loop/analyze.c: Likewise.
* src/vm/jit/inline/inline.c: Likewise.
* src/vm/jit/allocator/lsra.c: Likewise.
* src/vm/jit/allocator/simplereg.c: Likewise.
* src/vm/jit/allocator/liveness.c: Likewise.
* src/vm/jit/jit.c: Likewise.

* src/vm/jit/show.h (show_allocation): Made global.
* src/vm/jit/show.c: Likewise.

17 years ago* src/vm/jit/jit.c (jit_jitdata_new): Initialize jd->maxlocals.
edwin [Sun, 5 Nov 2006 22:47:23 +0000 (22:47 +0000)]
* src/vm/jit/jit.c (jit_jitdata_new): Initialize jd->maxlocals.

17 years ago* src/vm/jit/jit.h (jitdata): Added maxlocals field.
edwin [Sun, 5 Nov 2006 22:46:11 +0000 (22:46 +0000)]
* src/vm/jit/jit.h (jitdata): Added maxlocals field.

17 years ago* src/vm/options.c (opt_shownops): Added.
twisti [Sun, 5 Nov 2006 21:43:09 +0000 (21:43 +0000)]
* src/vm/options.c (opt_shownops): Added.
* src/vm/options.h (opt_shownops): Likewise.
* src/vm/vm.c (usage): Added -so help.
(vm_create): Added opt_shownops handling.

17 years ago* src/vm/jit/jit.h (INS_FLAG_RETADDR): Added flag for marking ASTOREs
edwin [Sun, 5 Nov 2006 21:27:37 +0000 (21:27 +0000)]
* src/vm/jit/jit.h (INS_FLAG_RETADDR): Added flag for marking ASTOREs
of returnAddresses.

* src/vm/jit/stack.c (stack_reanalyse_block): Invalidate target of
ASTORE with returnAddress.
(stack_analyse): Likewise.

17 years ago* src/vm/utf8.c (utf_Signature): Added.
twisti [Sun, 5 Nov 2006 21:23:09 +0000 (21:23 +0000)]
* src/vm/utf8.c (utf_Signature): Added.
(utf8_init): Initialize utf_Signature.
* src/vm/utf8.h (utf_Signature): Added.

17 years ago* src/vm/loader.c (load_attributes): Load Signature attribute.
twisti [Sun, 5 Nov 2006 21:18:05 +0000 (21:18 +0000)]
* src/vm/loader.c (load_attributes): Load Signature attribute.
* src/vm/class.h (classinfo): Added signature.
* src/native/vm/java_lang_VMClass.c (getClassSignature): Implemented.

17 years ago* src/vm/jit/show.c (show_basicblock): Show javalocals.
edwin [Sun, 5 Nov 2006 21:14:55 +0000 (21:14 +0000)]
* src/vm/jit/show.c (show_basicblock): Show javalocals.
(show_variable_array): Made it NULL-safe, show UNUSED entries.

17 years ago* src/vm/jit/show.c (show_icmd): Show javaindex for *STORE.
edwin [Sun, 5 Nov 2006 20:17:56 +0000 (20:17 +0000)]
* src/vm/jit/show.c (show_icmd): Show javaindex for *STORE.

17 years ago* src/vm/jit/jit.h (s3_operand_t): Added field javaindex.
edwin [Sun, 5 Nov 2006 20:07:21 +0000 (20:07 +0000)]
* src/vm/jit/jit.h (s3_operand_t): Added field javaindex.
(INS_FLAG_KILL_PREV): New flag.
(INS_FLAG_KILL_NEXT): New flag.
(basicblock): Added field javalocals. This points to the mapping from
Java bytecode locals to cacao variables at the beginning of the block.

* src/vm/jit/stack.c (Changes): Merged with Authors.
(stackdata_t): Added fields maxlocals and javalocals.
(stack_clone_block): Initialize javalocals.
(stack_create_locals): New function.
(stack_merge_locals): New function.
(stack_create_invars): Use stack_create_invars.
(stack_create_invars_from_outvars): Likewise.
(stack_check_invars): Use stack_merge_locals.
(stack_check_invars_from_outvars): Likewise.
(stack_reanalyse_block): Maintain javalocals mapping.
(stack_init_javalocals): New function.
(stack_analyse): Maintain javalocals mapping.
(stack_verbose_show_block): Show javalocals.
(stack_verbose_block_enter): Distinguish block cloning and
re-analysing.
(stack_verbose_show_state): New function.

17 years ago* src/vm/jit/stack.c (COPY_VAL_AND_TYPE): Fix: Only copy vv for TYPE_RET
edwin [Sun, 5 Nov 2006 19:49:29 +0000 (19:49 +0000)]
* src/vm/jit/stack.c (COPY_VAL_AND_TYPE): Fix: Only copy vv for TYPE_RET
(and later for other constants). Otherwise the allocation of PREALLOC
variables can be overwritten when re-analysing a block.

17 years ago* src/vm/jit/show.c (show_method): Show maxinterfaces only for stage
edwin [Sun, 5 Nov 2006 19:45:51 +0000 (19:45 +0000)]
* src/vm/jit/show.c (show_method): Show maxinterfaces only for stage
>= SHOW_STACK.
(show_variable): Show allocation for PREALLOC variables.

17 years ago* src/vm/jit/stacktrace.h: Added stacktracecontainer.
michi [Sun, 5 Nov 2006 16:58:27 +0000 (16:58 +0000)]
* src/vm/jit/stacktrace.h: Added stacktracecontainer.
* src/vm/jit/stacktrace.c (stacktrace_fillInStackTrace): Now returns
stacktracecontainer as wrapper for stacktracebuffer and entries.

* src/native/vm/java_lang_VMThrowable.c: Undoes the wrapping mentioned above.

17 years ago* src/vm/jit/replace.c (replace_create_replacement_points): Partially
edwin [Sun, 5 Nov 2006 15:47:33 +0000 (15:47 +0000)]
* src/vm/jit/replace.c (replace_create_replacement_points): Partially
ported to new IR.

* src/vm/jit/i386/codegen.c (codegen): Reactivate code for
replacement points.
* src/vm/jit/jit.c (jit_compile_intern): Likewise.

17 years ago* src/vm/jit/inline/inline.c: Ported to the new IR. There are some
edwin [Sun, 5 Nov 2006 10:40:15 +0000 (10:40 +0000)]
* src/vm/jit/inline/inline.c: Ported to the new IR. There are some
checkins missing to make it linkable, though.
* src/vm/jit/inline/inline_debug.inc: Likewise.

17 years ago* src/vm/global.h (ACC_METHOD_IMPLEMENTED): Added.
edwin [Sun, 5 Nov 2006 10:31:32 +0000 (10:31 +0000)]
* src/vm/global.h (ACC_METHOD_IMPLEMENTED): Added.
(ACC_METHOD_MONOMORPHIC): Added.

17 years ago* src/vm/jit/jit.h (jitdata): New fields maxinterfaces, returnblock,
edwin [Sun, 5 Nov 2006 10:22:37 +0000 (10:22 +0000)]
* src/vm/jit/jit.h (jitdata): New fields maxinterfaces, returnblock,
returncount, branchtoentry, branchtoend.

* src/vm/jit/jit.c (jit_jitdata_new): Initialize new fields.

* src/vm/jit/parse.c (parse_mark_exception_boundaries): Set
branchtoend.
(parse): Set branchtoentry.

* src/vm/jit/stack.c (stack_analyse): Set jd->maxinterfaces,
returncount, and returnblock.

* src/vm/jit/allocator/simplereg.c (simplereg_allocate_interfaces):
Use jd->maxinterfaces.
(simplereg_allocate_temporaries): Likewise.

* src/vm/jit/show.c (show_method): Show the new fields. Use
jd->maxinterfaces. Show invalid variable indices. Show inline info.

17 years ago* src/vm/jit/i386/codegen.c (codegen): Reactivated code for inlining.
edwin [Sun, 5 Nov 2006 09:52:43 +0000 (09:52 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Reactivated code for inlining.

17 years ago* src/vm/jit/jit.h (jitdata): Clarified comment of isleafmethod.
edwin [Sat, 4 Nov 2006 23:42:40 +0000 (23:42 +0000)]
* src/vm/jit/jit.h (jitdata): Clarified comment of isleafmethod.

17 years ago* src/vm/jit/jit.c (jit_jitdata_new): Initialize jd->isleafmethod
edwin [Sat, 4 Nov 2006 23:37:10 +0000 (23:37 +0000)]
* src/vm/jit/jit.c (jit_jitdata_new): Initialize jd->isleafmethod
depending on whether the method needs synchronization.

* src/vm/jit/parse.c (parse): Initialization of jd->isleafmethod has
been moved to jit_jitdata_new.

17 years ago* src/vm/jit/jit.h, src/vm/jit/jit.c (jit_jitdata_new): Made global.
edwin [Sat, 4 Nov 2006 23:29:36 +0000 (23:29 +0000)]
* src/vm/jit/jit.h, src/vm/jit/jit.c (jit_jitdata_new): Made global.

17 years ago* src/vm/loader.c (load_newly_created_array): Explicitly zero the
edwin [Sat, 4 Nov 2006 23:24:48 +0000 (23:24 +0000)]
* src/vm/loader.c (load_newly_created_array): Explicitly zero the
allocated methodinfo array.

17 years ago* src/vm/jit/stack.c (stack_change_to_tempvar): Fix: Only replace
edwin [Sat, 4 Nov 2006 23:13:37 +0000 (23:13 +0000)]
* src/vm/jit/stack.c (stack_change_to_tempvar): Fix: Only replace
pass-through variables at the right stack depth. Otherwise the IR
can become inconsistent, for example a temporary variable could be
used more than once.

17 years ago* src/vm/jit/stack.c (stack_reanalyse_block): Relocate dst.varindex
edwin [Sat, 4 Nov 2006 22:40:13 +0000 (22:40 +0000)]
* src/vm/jit/stack.c (stack_reanalyse_block): Relocate dst.varindex
for ICMD_JSR (even if it is not used, it keeps the IR consistent).

17 years ago* src/mm/memory.c: Added ENABLE_MEMCHECK code:
edwin [Sat, 4 Nov 2006 22:01:51 +0000 (22:01 +0000)]
* src/mm/memory.c: Added ENABLE_MEMCHECK code:
(mem_alloc): Prepared for poisoning memory.
(mem_realloc): Invalidate freed memory.
(mem_free): Invalidate freed memory.
(dump_check_canaries): New function.
(dump_alloc): Added canaries, record allocation.
(dump_realloc): Invalidate freed memory.
(dump_release): Check canaries, invalidate freed memory.

* src/mm/memory.h (dump_allocation_t): New struct.
(dumpinfo_t): Added allocation list for ENABLE_MEMCHECK.

* configure.ac (--enable-memcheck): Added configure flag.

17 years ago* src/mm/boehm.h: Renamed to gc-common.h
michi [Sat, 4 Nov 2006 17:30:44 +0000 (17:30 +0000)]
* src/mm/boehm.h: Renamed to gc-common.h
* src/mm/gc-common.h: Added.

* src/vm/builtin.c, src/vm/jit/mips/linux/md-os.c,
src/vm/jit/mips/irix/md-os.c, src/vm/jit/stacktrace.c, src/vm/vm.c,
src/native/tool/gennativetable.c, src/native/jni.c,
src/native/vm/gnu_java_lang_management_VMThreadMXBeanImpl.c,
src/native/vm/gnu_java_lang_management_VMMemoryMXBeanImpl.c,
src/native/vm/java_lang_VMObject.c, src/native/vm/java_lang_VMRuntime.c,
src/native/vm/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
src/native/jvmti/jvmti.c, src/mm/nogc.c, src/mm/boehm.c, src/mm/memory.h,
src/threads/native/threads.c, src/cacaoh/headers.c, src/cacaoh/cacaoh.c:
Changed include from "mm/boehm.h" to "mm/gc-common.h"

* src/mm/Makefile.am: Added subdir and lib for cacao-gc

* src/mm/cacao-gc: Added.
* src/mm/cacao-gc/gc.c: Added.
* src/mm/cacao-gc/Makefile.am: Added.
* src/mm/cacao-gc/.cvsignore: Added.

* src/threads/native/threads.c: Fixed include of boehms gc.h

* src/vm/jit/mips/linux/md-os.c (md_init) [ENABLE_GC_BOEHM]: Added ifdef
for boehm specific call.
* src/vm/jit/mips/irix/md-os.c: Likewise.
* src/vm/signal.c: Likewise.

* configure.ac: Adapted buildsystem for new GC. Added cacao-gc.

--HG--
rename : src/mm/boehm.h => src/mm/gc-common.h

17 years ago* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter):
tbfg [Sat, 4 Nov 2006 15:46:18 +0000 (15:46 +0000)]
* src/vm/jit/powerpc64/emit.c (emit_verbosecall_enter):
Removed unsued var.

* src/vm/jit/powerpc64/codegen.c (codegen):
Lots of arithmetic changes.

* src/vm/jit/powerpc64/codegen.h (M_SLL): Converted to 64bit.
(M_LSTX): Added.
(gen_bound_check): Fixed.

17 years ago* src/vm/loader.c (load_class_from_classbuffer): Removed commented code which
michi [Fri, 3 Nov 2006 22:11:49 +0000 (22:11 +0000)]
* src/vm/loader.c (load_class_from_classbuffer): Removed commented code which
placed methodinfos onto the heap.

17 years agocheckcast testcase
tbfg [Fri, 3 Nov 2006 15:40:32 +0000 (15:40 +0000)]
checkcast testcase

17 years ago* parisc/.cvsignore: New file.
twisti [Fri, 3 Nov 2006 15:13:33 +0000 (15:13 +0000)]
* parisc/.cvsignore: New file.
* parisc/linux/.cvsignore: Likewise.

17 years ago* src/vm/jit/parisc/md-abi.h: New file.
twisti [Fri, 3 Nov 2006 14:03:40 +0000 (14:03 +0000)]
* src/vm/jit/parisc/md-abi.h: New file.
* src/vm/jit/parisc/md.c: Likewise.
* src/vm/jit/parisc/arch.h: Likewise.
* src/vm/jit/parisc/Makefile.am: Likewise.
* src/vm/jit/Makefile.am (SUBDIRS): Added parisc.
* configure.ac: Added parisc support.

17 years ago* src/toolbox/list.c, src/toolbox/list.h (list_create_dump): New
twisti [Thu, 2 Nov 2006 12:54:15 +0000 (12:54 +0000)]
* src/toolbox/list.c, src/toolbox/list.h (list_create_dump): New
function.
(list_first_unsynced): Likewise.
(list_last_unsynced): Likewise.
(list_next_unsynced): Likewise.
(list_prev_unsynced): Likewise.

17 years ago* src/Makefile.am (DIST_SUBDIRS): Compile mm first.
twisti [Thu, 2 Nov 2006 12:50:25 +0000 (12:50 +0000)]
* src/Makefile.am (DIST_SUBDIRS): Compile mm first.
(SUBDIRS): Likewise.

17 years ago* src/vm/jit/dseg.h (patchref): Added comments.
twisti [Thu, 2 Nov 2006 10:21:37 +0000 (10:21 +0000)]
* src/vm/jit/dseg.h (patchref): Added comments.

17 years ago* src/vm/jit/mips/codegen.c (codegen): Use new dseg function names.
twisti [Wed, 1 Nov 2006 20:19:44 +0000 (20:19 +0000)]
* src/vm/jit/mips/codegen.c (codegen): Use new dseg function names.
(createnativestub): Likewise.
* src/vm/jit/mips/emit.c (emit_iconst): Likewise.
(emit_lconst): Likewise.
(emit_exception_stubs): Likewise.
(emit_patcher_stubs): Likewise.
(emit_verbosecall_enter): Likewise.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/mips/codegen.h (M_INTMOVE): Wrap into do-while.

17 years ago* src/vm/jit/Makefile.am (DIST_SUBDIRS): Forgot to remove ifconv.
twisti [Tue, 31 Oct 2006 22:02:30 +0000 (22:02 +0000)]
* src/vm/jit/Makefile.am (DIST_SUBDIRS): Forgot to remove ifconv.

17 years ago* src/vm/jit/ifconv: Removed.
twisti [Tue, 31 Oct 2006 22:01:26 +0000 (22:01 +0000)]
* src/vm/jit/ifconv: Removed.

* src/vm/jit/optimizing/ifconv.c: Added.
* src/vm/jit/optimizing/ifconv.h: Likewise.

* src/vm/jit/optimizing/Makefile.am (IFCONV_SOURCES): Added.
(liboptimizing_la_SOURCES): Added IFCONV_SOURCES.

* src/vm/jit/jit.c (vm/jit/ifconv/ifconv.h): Changed to
vm/jit/optimizing/ifconv.h.

* src/vm/jit/Makefile.am (IFCONV_LIB): Removed.

* configure.ac (AC_CONFIG_FILES): Removed src/vm/jit/ifconv/Makefile.

--HG--
rename : src/vm/jit/ifconv/ifconv.c => src/vm/jit/optimizing/ifconv.c
rename : src/vm/jit/ifconv/ifconv.h => src/vm/jit/optimizing/ifconv.h

17 years ago* src/vm/jit/sparc64/asmpart.S: added exception handling code.
ajordan [Tue, 31 Oct 2006 21:57:57 +0000 (21:57 +0000)]
* src/vm/jit/sparc64/asmpart.S: added exception handling code.
* src/vm/jit/sparc64/md-asm.h: Likewise.

* src/vm/jit/sparc64/*: implemented createnativestub, added functions for param allocation following the ABI.

17 years ago* src/vm/jit/reorder.c: Removed.
twisti [Tue, 31 Oct 2006 21:35:07 +0000 (21:35 +0000)]
* src/vm/jit/reorder.c: Removed.
* src/vm/jit/reorder.h: Likewise.

* src/vm/jit/optimizing/reorder.c: Added.
* src/vm/jit/optimizing/reorder.h: Likewise.

* src/vm/jit/optimizing/Makefile.am (REORDER_SOURCES): Added.
(liboptimizing_la_SOURCES): Added REORDER_SOURCES.

* src/vm/jit/jit.c (vm/jit/reorder.h): Changed to
vm/jit/optimizing/reorder.h.

* src/vm/jit/Makefile.am (libjit_la_SOURCES): Removed reorder.[ch].

--HG--
rename : src/vm/jit/reorder.c => src/vm/jit/optimizing/reorder.c
rename : src/vm/jit/reorder.h => src/vm/jit/optimizing/reorder.h

17 years ago* src/vm/jit/optimizing/Makefile.am (INCLUDES): Renamed to
twisti [Tue, 31 Oct 2006 21:27:29 +0000 (21:27 +0000)]
* src/vm/jit/optimizing/Makefile.am (INCLUDES): Renamed to
AM_CPPFLAGS.
(LIBS): Added.

17 years ago* src/vm/vm.c (vm/jit/profile/profile.h): Changed to
twisti [Tue, 31 Oct 2006 20:26:26 +0000 (20:26 +0000)]
* src/vm/vm.c (vm/jit/profile/profile.h): Changed to
vm/jit/optimizing/profile.h.
(vm/jit/recompile.h) Changed to vm/jit/optimizing/recompile.h.

17 years ago* src/vm/jit/optimizing/profile.c: Added.
twisti [Tue, 31 Oct 2006 20:11:28 +0000 (20:11 +0000)]
* src/vm/jit/optimizing/profile.c: Added.
* src/vm/jit/optimizing/profile.h: Likewise.
* src/vm/jit/optimizing/recompile.c: Likewise.
* src/vm/jit/optimizing/recompile.h: Likewise.

* src/vm/jit/optimizing/Makefile.am (INCLUDES): Added OS_DIR.
(PROFILE_SOURCES): Added.
(RECOMPILE_SOURCES): Added.
(SSA_SOURCES): Added.

* src/vm/jit/recompile.c: Removed.
* src/vm/jit/recompile.h: Likewise.
* src/vm/jit/profile: Likewise.

* src/vm/jit/Makefile.am (SUBDIRS): Added optimizing.
(PROFILE_LIB): Removed.
(RECOMPILE_SOURCES): Likewise.

* src/cacao/Makefile.am (GC_LIB): Removed.

* src/mm/Makefile.am (DIST_DUBDIRS): Added boehm-gc.
(GC_LIB): Added.

* src/Makefile.am (DIST_SUBDIRS): Removed boehm-gc.
(SUBDIRS): Likewise.
(BOEHM): Removed.

* src/threads/native/threads.c (boehm-gc/include/gc.h): Changed to
mm/boehm-gc/include/gc.h.

* src/cacaoh/Makefile.am (GC_LIB): Removed.

* configure.ac (AC_CONFIG_FILES): Removed src/vm/jit/profile/Makefile.
(AC_CONFIG_SUBDIRS): Changed src/boehm-gc to src/mm/boehm-gc.
* autogen.sh: Changed path to boehm-gc.

--HG--
rename : src/vm/jit/profile/profile.c => src/vm/jit/optimizing/profile.c
rename : src/vm/jit/profile/profile.h => src/vm/jit/optimizing/profile.h
rename : src/vm/jit/recompile.c => src/vm/jit/optimizing/recompile.c
rename : src/vm/jit/recompile.h => src/vm/jit/optimizing/recompile.h

17 years ago* src/vm/exceptions.c (exceptions_handle_exception): Made identation
twisti [Tue, 31 Oct 2006 20:00:10 +0000 (20:00 +0000)]
* src/vm/exceptions.c (exceptions_handle_exception): Made identation
correct.

17 years ago* src/mm/boehm-gc/.cvsignore: Added some files.
twisti [Tue, 31 Oct 2006 19:58:14 +0000 (19:58 +0000)]
* src/mm/boehm-gc/.cvsignore: Added some files.

17 years ago* Moved boehm-gc from src/ to src/mm/.
twisti [Tue, 31 Oct 2006 15:42:42 +0000 (15:42 +0000)]
* Moved boehm-gc from src/ to src/mm/.

--HG--
rename : src/boehm-gc/.cvsignore => src/mm/boehm-gc/.cvsignore
rename : src/boehm-gc/AmigaOS.c => src/mm/boehm-gc/AmigaOS.c
rename : src/boehm-gc/BCC_MAKEFILE => src/mm/boehm-gc/BCC_MAKEFILE
rename : src/boehm-gc/EMX_MAKEFILE => src/mm/boehm-gc/EMX_MAKEFILE
rename : src/boehm-gc/MacOS.c => src/mm/boehm-gc/MacOS.c
rename : src/boehm-gc/MacProjects.sit.hqx => src/mm/boehm-gc/MacProjects.sit.hqx
rename : src/boehm-gc/Mac_files/MacOS_Test_config.h => src/mm/boehm-gc/Mac_files/MacOS_Test_config.h
rename : src/boehm-gc/Mac_files/MacOS_config.h => src/mm/boehm-gc/Mac_files/MacOS_config.h
rename : src/boehm-gc/Mac_files/dataend.c => src/mm/boehm-gc/Mac_files/dataend.c
rename : src/boehm-gc/Mac_files/datastart.c => src/mm/boehm-gc/Mac_files/datastart.c
rename : src/boehm-gc/Makefile.DLLs => src/mm/boehm-gc/Makefile.DLLs
rename : src/boehm-gc/Makefile.am => src/mm/boehm-gc/Makefile.am
rename : src/boehm-gc/Makefile.direct => src/mm/boehm-gc/Makefile.direct
rename : src/boehm-gc/Makefile.dj => src/mm/boehm-gc/Makefile.dj
rename : src/boehm-gc/NT_MAKEFILE => src/mm/boehm-gc/NT_MAKEFILE
rename : src/boehm-gc/NT_THREADS_MAKEFILE => src/mm/boehm-gc/NT_THREADS_MAKEFILE
rename : src/boehm-gc/OS2_MAKEFILE => src/mm/boehm-gc/OS2_MAKEFILE
rename : src/boehm-gc/PCR-Makefile => src/mm/boehm-gc/PCR-Makefile
rename : src/boehm-gc/README.QUICK => src/mm/boehm-gc/README.QUICK
rename : src/boehm-gc/SMakefile.amiga => src/mm/boehm-gc/SMakefile.amiga
rename : src/boehm-gc/WCC_MAKEFILE => src/mm/boehm-gc/WCC_MAKEFILE
rename : src/boehm-gc/acinclude.m4 => src/mm/boehm-gc/acinclude.m4
rename : src/boehm-gc/add_gc_prefix.c => src/mm/boehm-gc/add_gc_prefix.c
rename : src/boehm-gc/allchblk.c => src/mm/boehm-gc/allchblk.c
rename : src/boehm-gc/alloc.c => src/mm/boehm-gc/alloc.c
rename : src/boehm-gc/alpha_mach_dep.S => src/mm/boehm-gc/alpha_mach_dep.S
rename : src/boehm-gc/autogen.sh => src/mm/boehm-gc/autogen.sh
rename : src/boehm-gc/backgraph.c => src/mm/boehm-gc/backgraph.c
rename : src/boehm-gc/blacklst.c => src/mm/boehm-gc/blacklst.c
rename : src/boehm-gc/callprocs => src/mm/boehm-gc/callprocs
rename : src/boehm-gc/checksums.c => src/mm/boehm-gc/checksums.c
rename : src/boehm-gc/configure.host => src/mm/boehm-gc/configure.host
rename : src/boehm-gc/configure.in => src/mm/boehm-gc/configure.in
rename : src/boehm-gc/cord/cordbscs.c => src/mm/boehm-gc/cord/cordbscs.c
rename : src/boehm-gc/cord/cordprnt.c => src/mm/boehm-gc/cord/cordprnt.c
rename : src/boehm-gc/cord/cordtest.c => src/mm/boehm-gc/cord/cordtest.c
rename : src/boehm-gc/cord/cordxtra.c => src/mm/boehm-gc/cord/cordxtra.c
rename : src/boehm-gc/cord/de.c => src/mm/boehm-gc/cord/de.c
rename : src/boehm-gc/cord/de_cmds.h => src/mm/boehm-gc/cord/de_cmds.h
rename : src/boehm-gc/cord/de_win.ICO => src/mm/boehm-gc/cord/de_win.ICO
rename : src/boehm-gc/cord/de_win.RC => src/mm/boehm-gc/cord/de_win.RC
rename : src/boehm-gc/cord/de_win.c => src/mm/boehm-gc/cord/de_win.c
rename : src/boehm-gc/cord/de_win.h => src/mm/boehm-gc/cord/de_win.h
rename : src/boehm-gc/darwin_stop_world.c => src/mm/boehm-gc/darwin_stop_world.c
rename : src/boehm-gc/dbg_mlc.c => src/mm/boehm-gc/dbg_mlc.c
rename : src/boehm-gc/digimars.mak => src/mm/boehm-gc/digimars.mak
rename : src/boehm-gc/doc/.cvsignore => src/mm/boehm-gc/doc/.cvsignore
rename : src/boehm-gc/doc/Makefile.am => src/mm/boehm-gc/doc/Makefile.am
rename : src/boehm-gc/doc/README => src/mm/boehm-gc/doc/README
rename : src/boehm-gc/doc/README.DGUX386 => src/mm/boehm-gc/doc/README.DGUX386
rename : src/boehm-gc/doc/README.Mac => src/mm/boehm-gc/doc/README.Mac
rename : src/boehm-gc/doc/README.MacOSX => src/mm/boehm-gc/doc/README.MacOSX
rename : src/boehm-gc/doc/README.OS2 => src/mm/boehm-gc/doc/README.OS2
rename : src/boehm-gc/doc/README.amiga => src/mm/boehm-gc/doc/README.amiga
rename : src/boehm-gc/doc/README.arm.cross => src/mm/boehm-gc/doc/README.arm.cross
rename : src/boehm-gc/doc/README.autoconf => src/mm/boehm-gc/doc/README.autoconf
rename : src/boehm-gc/doc/README.changes => src/mm/boehm-gc/doc/README.changes
rename : src/boehm-gc/doc/README.contributors => src/mm/boehm-gc/doc/README.contributors
rename : src/boehm-gc/doc/README.cords => src/mm/boehm-gc/doc/README.cords
rename : src/boehm-gc/doc/README.darwin => src/mm/boehm-gc/doc/README.darwin
rename : src/boehm-gc/doc/README.dj => src/mm/boehm-gc/doc/README.dj
rename : src/boehm-gc/doc/README.environment => src/mm/boehm-gc/doc/README.environment
rename : src/boehm-gc/doc/README.ews4800 => src/mm/boehm-gc/doc/README.ews4800
rename : src/boehm-gc/doc/README.hp => src/mm/boehm-gc/doc/README.hp
rename : src/boehm-gc/doc/README.linux => src/mm/boehm-gc/doc/README.linux
rename : src/boehm-gc/doc/README.macros => src/mm/boehm-gc/doc/README.macros
rename : src/boehm-gc/doc/README.rs6000 => src/mm/boehm-gc/doc/README.rs6000
rename : src/boehm-gc/doc/README.sgi => src/mm/boehm-gc/doc/README.sgi
rename : src/boehm-gc/doc/README.solaris2 => src/mm/boehm-gc/doc/README.solaris2
rename : src/boehm-gc/doc/README.uts => src/mm/boehm-gc/doc/README.uts
rename : src/boehm-gc/doc/README.win32 => src/mm/boehm-gc/doc/README.win32
rename : src/boehm-gc/doc/barrett_diagram => src/mm/boehm-gc/doc/barrett_diagram
rename : src/boehm-gc/doc/debugging.html => src/mm/boehm-gc/doc/debugging.html
rename : src/boehm-gc/doc/gc.man => src/mm/boehm-gc/doc/gc.man
rename : src/boehm-gc/doc/gcdescr.html => src/mm/boehm-gc/doc/gcdescr.html
rename : src/boehm-gc/doc/gcinterface.html => src/mm/boehm-gc/doc/gcinterface.html
rename : src/boehm-gc/doc/leak.html => src/mm/boehm-gc/doc/leak.html
rename : src/boehm-gc/doc/scale.html => src/mm/boehm-gc/doc/scale.html
rename : src/boehm-gc/doc/simple_example.html => src/mm/boehm-gc/doc/simple_example.html
rename : src/boehm-gc/doc/tree.html => src/mm/boehm-gc/doc/tree.html
rename : src/boehm-gc/dyn_load.c => src/mm/boehm-gc/dyn_load.c
rename : src/boehm-gc/finalize.c => src/mm/boehm-gc/finalize.c
rename : src/boehm-gc/gc.mak => src/mm/boehm-gc/gc.mak
rename : src/boehm-gc/gc_cpp.cc => src/mm/boehm-gc/gc_cpp.cc
rename : src/boehm-gc/gc_cpp.cpp => src/mm/boehm-gc/gc_cpp.cpp
rename : src/boehm-gc/gc_dlopen.c => src/mm/boehm-gc/gc_dlopen.c
rename : src/boehm-gc/gcc_support.c => src/mm/boehm-gc/gcc_support.c
rename : src/boehm-gc/gcj_mlc.c => src/mm/boehm-gc/gcj_mlc.c
rename : src/boehm-gc/gcname.c => src/mm/boehm-gc/gcname.c
rename : src/boehm-gc/headers.c => src/mm/boehm-gc/headers.c
rename : src/boehm-gc/hpux_test_and_clear.s => src/mm/boehm-gc/hpux_test_and_clear.s
rename : src/boehm-gc/ia64_save_regs_in_stack.s => src/mm/boehm-gc/ia64_save_regs_in_stack.s
rename : src/boehm-gc/if_mach.c => src/mm/boehm-gc/if_mach.c
rename : src/boehm-gc/if_not_there.c => src/mm/boehm-gc/if_not_there.c
rename : src/boehm-gc/include/.cvsignore => src/mm/boehm-gc/include/.cvsignore
rename : src/boehm-gc/include/Makefile.am => src/mm/boehm-gc/include/Makefile.am
rename : src/boehm-gc/include/cord.h => src/mm/boehm-gc/include/cord.h
rename : src/boehm-gc/include/ec.h => src/mm/boehm-gc/include/ec.h
rename : src/boehm-gc/include/gc.h => src/mm/boehm-gc/include/gc.h
rename : src/boehm-gc/include/gc_alloc.h => src/mm/boehm-gc/include/gc_alloc.h
rename : src/boehm-gc/include/gc_allocator.h => src/mm/boehm-gc/include/gc_allocator.h
rename : src/boehm-gc/include/gc_amiga_redirects.h => src/mm/boehm-gc/include/gc_amiga_redirects.h
rename : src/boehm-gc/include/gc_backptr.h => src/mm/boehm-gc/include/gc_backptr.h
rename : src/boehm-gc/include/gc_config_macros.h => src/mm/boehm-gc/include/gc_config_macros.h
rename : src/boehm-gc/include/gc_cpp.h => src/mm/boehm-gc/include/gc_cpp.h
rename : src/boehm-gc/include/gc_gcj.h => src/mm/boehm-gc/include/gc_gcj.h
rename : src/boehm-gc/include/gc_inl.h => src/mm/boehm-gc/include/gc_inl.h
rename : src/boehm-gc/include/gc_inline.h => src/mm/boehm-gc/include/gc_inline.h
rename : src/boehm-gc/include/gc_local_alloc.h => src/mm/boehm-gc/include/gc_local_alloc.h
rename : src/boehm-gc/include/gc_mark.h => src/mm/boehm-gc/include/gc_mark.h
rename : src/boehm-gc/include/gc_pthread_redirects.h => src/mm/boehm-gc/include/gc_pthread_redirects.h
rename : src/boehm-gc/include/gc_typed.h => src/mm/boehm-gc/include/gc_typed.h
rename : src/boehm-gc/include/javaxfc.h => src/mm/boehm-gc/include/javaxfc.h
rename : src/boehm-gc/include/leak_detector.h => src/mm/boehm-gc/include/leak_detector.h
rename : src/boehm-gc/include/new_gc_alloc.h => src/mm/boehm-gc/include/new_gc_alloc.h
rename : src/boehm-gc/include/private/cord_pos.h => src/mm/boehm-gc/include/private/cord_pos.h
rename : src/boehm-gc/include/private/darwin_semaphore.h => src/mm/boehm-gc/include/private/darwin_semaphore.h
rename : src/boehm-gc/include/private/darwin_stop_world.h => src/mm/boehm-gc/include/private/darwin_stop_world.h
rename : src/boehm-gc/include/private/dbg_mlc.h => src/mm/boehm-gc/include/private/dbg_mlc.h
rename : src/boehm-gc/include/private/gc_hdrs.h => src/mm/boehm-gc/include/private/gc_hdrs.h
rename : src/boehm-gc/include/private/gc_locks.h => src/mm/boehm-gc/include/private/gc_locks.h
rename : src/boehm-gc/include/private/gc_pmark.h => src/mm/boehm-gc/include/private/gc_pmark.h
rename : src/boehm-gc/include/private/gc_priv.h => src/mm/boehm-gc/include/private/gc_priv.h
rename : src/boehm-gc/include/private/gcconfig.h => src/mm/boehm-gc/include/private/gcconfig.h
rename : src/boehm-gc/include/private/pthread_stop_world.h => src/mm/boehm-gc/include/private/pthread_stop_world.h
rename : src/boehm-gc/include/private/pthread_support.h => src/mm/boehm-gc/include/private/pthread_support.h
rename : src/boehm-gc/include/private/solaris_threads.h => src/mm/boehm-gc/include/private/solaris_threads.h
rename : src/boehm-gc/include/private/specific.h => src/mm/boehm-gc/include/private/specific.h
rename : src/boehm-gc/include/weakpointer.h => src/mm/boehm-gc/include/weakpointer.h
rename : src/boehm-gc/libtool.m4 => src/mm/boehm-gc/libtool.m4
rename : src/boehm-gc/ltconfig => src/mm/boehm-gc/ltconfig
rename : src/boehm-gc/mach_dep.c => src/mm/boehm-gc/mach_dep.c
rename : src/boehm-gc/malloc.c => src/mm/boehm-gc/malloc.c
rename : src/boehm-gc/mallocx.c => src/mm/boehm-gc/mallocx.c
rename : src/boehm-gc/mark.c => src/mm/boehm-gc/mark.c
rename : src/boehm-gc/mark_rts.c => src/mm/boehm-gc/mark_rts.c
rename : src/boehm-gc/mips_sgi_mach_dep.s => src/mm/boehm-gc/mips_sgi_mach_dep.s
rename : src/boehm-gc/mips_ultrix_mach_dep.s => src/mm/boehm-gc/mips_ultrix_mach_dep.s
rename : src/boehm-gc/misc.c => src/mm/boehm-gc/misc.c
rename : src/boehm-gc/new_hblk.c => src/mm/boehm-gc/new_hblk.c
rename : src/boehm-gc/obj_map.c => src/mm/boehm-gc/obj_map.c
rename : src/boehm-gc/os_dep.c => src/mm/boehm-gc/os_dep.c
rename : src/boehm-gc/pc_excludes => src/mm/boehm-gc/pc_excludes
rename : src/boehm-gc/pcr_interface.c => src/mm/boehm-gc/pcr_interface.c
rename : src/boehm-gc/powerpc_darwin_mach_dep.s => src/mm/boehm-gc/powerpc_darwin_mach_dep.s
rename : src/boehm-gc/pthread_stop_world.c => src/mm/boehm-gc/pthread_stop_world.c
rename : src/boehm-gc/pthread_support.c => src/mm/boehm-gc/pthread_support.c
rename : src/boehm-gc/ptr_chck.c => src/mm/boehm-gc/ptr_chck.c
rename : src/boehm-gc/real_malloc.c => src/mm/boehm-gc/real_malloc.c
rename : src/boehm-gc/reclaim.c => src/mm/boehm-gc/reclaim.c
rename : src/boehm-gc/rs6000_mach_dep.s => src/mm/boehm-gc/rs6000_mach_dep.s
rename : src/boehm-gc/setjmp_t.c => src/mm/boehm-gc/setjmp_t.c
rename : src/boehm-gc/solaris_pthreads.c => src/mm/boehm-gc/solaris_pthreads.c
rename : src/boehm-gc/solaris_threads.c => src/mm/boehm-gc/solaris_threads.c
rename : src/boehm-gc/sparc_mach_dep.S => src/mm/boehm-gc/sparc_mach_dep.S
rename : src/boehm-gc/sparc_netbsd_mach_dep.s => src/mm/boehm-gc/sparc_netbsd_mach_dep.s
rename : src/boehm-gc/sparc_sunos4_mach_dep.s => src/mm/boehm-gc/sparc_sunos4_mach_dep.s
rename : src/boehm-gc/specific.c => src/mm/boehm-gc/specific.c
rename : src/boehm-gc/stubborn.c => src/mm/boehm-gc/stubborn.c
rename : src/boehm-gc/tests/leak_test.c => src/mm/boehm-gc/tests/leak_test.c
rename : src/boehm-gc/tests/test.c => src/mm/boehm-gc/tests/test.c
rename : src/boehm-gc/tests/test_cpp.cc => src/mm/boehm-gc/tests/test_cpp.cc
rename : src/boehm-gc/tests/thread_leak_test.c => src/mm/boehm-gc/tests/thread_leak_test.c
rename : src/boehm-gc/tests/trace_test.c => src/mm/boehm-gc/tests/trace_test.c
rename : src/boehm-gc/threadlibs.c => src/mm/boehm-gc/threadlibs.c
rename : src/boehm-gc/typd_mlc.c => src/mm/boehm-gc/typd_mlc.c
rename : src/boehm-gc/version.h => src/mm/boehm-gc/version.h
rename : src/boehm-gc/win32_threads.c => src/mm/boehm-gc/win32_threads.c

17 years ago* src/vm/jit/powerpc64/codegen.c (codegen):
tbfg [Tue, 31 Oct 2006 13:40:55 +0000 (13:40 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen):
 Fixed parameter passing.
 Various fixes for many ICMD_*.

* src/vm/jit/powerpc64/patcher.c (patcher_get_putfield):
 Fixed for longs.

* src/vm/jit/powerpc64/asmpart.S (asm_vm_call_method):
 Fixed methodheader, exception handling now works.

* src/vm/exceptions.c (exceptions_handle_exception):
 Indenting.

17 years ago* configure.ac (AC_INIT): Changed version to 0.97+svn.
twisti [Tue, 31 Oct 2006 10:16:04 +0000 (10:16 +0000)]
* configure.ac (AC_INIT): Changed version to 0.97+svn.
(OPT_CFLAGS): Changed to -O0.

17 years ago* NEWS: Forgot to commit the date for 0.97, grrrr.
twisti [Tue, 31 Oct 2006 10:15:01 +0000 (10:15 +0000)]
* NEWS: Forgot to commit the date for 0.97, grrrr.

17 years ago* ChangeLog: Updated for release 0.97.
twisti [Tue, 31 Oct 2006 00:07:07 +0000 (00:07 +0000)]
* ChangeLog: Updated for release 0.97.

17 years ago* configure.ac (AC_INIT): Changed version to 0.97.
twisti [Mon, 30 Oct 2006 23:52:12 +0000 (23:52 +0000)]
* configure.ac (AC_INIT): Changed version to 0.97.
(--enable-threads): Removed green from help string.

17 years ago* src/vm/jit/show.c (show_method): Removed debug output.
twisti [Mon, 30 Oct 2006 13:03:08 +0000 (13:03 +0000)]
* src/vm/jit/show.c (show_method): Removed debug output.
(SHOW_INT_CONST): Removed long cast and print hex value additionally.
(SHOW_LNG_CONST): Removed long long cast and print hex value
additionally. Also added version for SIZEOF_VOID_P == 4.
(SHOW_ADR_CONST): Added.
(SHOW_FLT_CONST): Print hex value additionally.
(SHOW_DBL_CONST): Likewise. Also added version for SIZEOF_VOID_P == 4.
(show_icmd): Smaller changes.

17 years ago* src/threads/native/threads.h (MUTEXSIM): Removed.
twisti [Mon, 30 Oct 2006 12:27:59 +0000 (12:27 +0000)]
* src/threads/native/threads.h (MUTEXSIM): Removed.
(pthread_mutex_rec_t): Likewise.
(pthread_mutex_init_rec): Likewise.
(pthread_mutex_destroy_rec): Likewise.
(pthread_mutex_lock_rec): Likewise.
(pthread_mutex_unlock_rec): Likewise.
* src/threads/native/threads.c (pthread_mutex_init_rec): Removed.
(pthread_mutex_destroy_rec): Likewise.
(pthread_mutex_lock_rec): Likewise.
(pthread_mutex_unlock_rec): Likewise.
(compiler_lock): Use pthread functions.
(compiler_unlock): Likewise.
(threads_cast_darwinstop): Warning fixes and use vm_abort.
(threads_cast_darwinresume): Use vm_abort.
(threads_cast_stopworld): Warning fixes.
(pthreads_preinit) [!MUTEXSIM]: Removed code.

17 years ago* src/vm/jit/intrp/intrp.h (Cell): Moved the typedef upward, so we can
edwin [Mon, 30 Oct 2006 11:52:09 +0000 (11:52 +0000)]
* src/vm/jit/intrp/intrp.h (Cell): Moved the typedef upward, so we can
use it in other headers.
(global_sp): Does not need the complex casts anymore.

* src/threads/native/threads.h (threadobject): Made _global_sp a Cell*.
* src/threads/native/threads.c: Likewise.

17 years ago* src/mm/memory.h (ALIGN): Renamed to MEMORY_ALIGN.
edwin [Mon, 30 Oct 2006 11:21:36 +0000 (11:21 +0000)]
* src/mm/memory.h (ALIGN): Renamed to MEMORY_ALIGN.
* src/mm/memory.c: Likewise.
* src/vm/jit/dseg.c: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/codegen-common.c: Likewise.
* src/vm/linker.c: Likewise.
* src/mm/nogc.c: Likewise.
* src/cacaoh/headers.c: Likewise.

17 years ago* src/threads/native/threads.c (threads_dump): Cast pthread_t to long
edwin [Mon, 30 Oct 2006 11:04:47 +0000 (11:04 +0000)]
* src/threads/native/threads.c (threads_dump): Cast pthread_t to long
for printing it.

17 years ago* src/vm/jit/cfg.c (cfg_build): Removed set-but-not-used variable (m).
edwin [Mon, 30 Oct 2006 11:00:56 +0000 (11:00 +0000)]
* src/vm/jit/cfg.c (cfg_build): Removed set-but-not-used variable (m).
* src/vm/jit/ifconv/ifconv.c (check): Likewise (cd).
* src/vm/jit/stack.c (stack_reanalyse_block): Likewise (maythrow).
(stack_analyse): Likewise (code, b_index).
* src/vm/jit/show.c (show_basicblock): Likewise (m).
* src/vm/jit/mips/emit.c (emit_copy): Likewise (rd).
* src/vm/jit/parse.c (parse): Likewise (code).
* src/vm/exceptions.c (exceptions_handle_exception): Likewise
(framesize).

17 years ago* src/vm/jit/verify/typecheck-common.c (typecheck_init_flags): Removed
edwin [Mon, 30 Oct 2006 10:32:39 +0000 (10:32 +0000)]
* src/vm/jit/verify/typecheck-common.c (typecheck_init_flags): Removed
set-but-not-used variable `i`.

17 years ago* src/vm/jit/verify/typecheck-builtins.inc: Removed set-but-not-used
edwin [Mon, 30 Oct 2006 10:31:00 +0000 (10:31 +0000)]
* src/vm/jit/verify/typecheck-builtins.inc: Removed set-but-not-used
variable `cls`.

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Zero `uf` to avoid warning.
edwin [Mon, 30 Oct 2006 10:15:28 +0000 (10:15 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Zero `uf` to avoid warning.

17 years ago* src/vm/builtin.c (builtin_print_argument): Made logtextlen an in/out
edwin [Mon, 30 Oct 2006 00:45:30 +0000 (00:45 +0000)]
* src/vm/builtin.c (builtin_print_argument): Made logtextlen an in/out
argument. Correctly reallocate logtext, increase logtextlen.
(builtin_trace_args): Pass &logtextlen to builtin_print_argument.
(builtin_displaymethodstop): Likewise.

17 years ago* src/vm/jit/jit.h (stackelement): Removed the obsolete fields
edwin [Sun, 29 Oct 2006 23:43:26 +0000 (23:43 +0000)]
* src/vm/jit/jit.h (stackelement): Removed the obsolete fields
`typeinfo` and `regoff`.

17 years ago* src/vm/jit/stack.c (stack_grow_variable_array): Zero the additional
edwin [Sun, 29 Oct 2006 23:37:20 +0000 (23:37 +0000)]
* src/vm/jit/stack.c (stack_grow_variable_array): Zero the additional
space when reallocating the jd->var array.

* src/vm/jit/parse.c (parse_realloc_instructions): Zero the
additional space when reallocating the instructions array.

17 years ago* src/vm/jit/parse.c (parse): Fix in ICMD_TABLESWITCH: Put table into
edwin [Sun, 29 Oct 2006 23:33:30 +0000 (23:33 +0000)]
* src/vm/jit/parse.c (parse): Fix in ICMD_TABLESWITCH: Put table into
dump memory.

17 years ago* NEWS: Typo fixed.
edwin [Sun, 29 Oct 2006 23:23:19 +0000 (23:23 +0000)]
* NEWS: Typo fixed.

17 years ago* src/vm/suck.c (stdlib.h): Include to avoid warning about `free`.
edwin [Sun, 29 Oct 2006 16:21:38 +0000 (16:21 +0000)]
* src/vm/suck.c (stdlib.h): Include to avoid warning about `free`.

17 years ago* src/vm/suck.c (suck_add_from_property): Use `free` to free memory
edwin [Sun, 29 Oct 2006 16:14:27 +0000 (16:14 +0000)]
* src/vm/suck.c (suck_add_from_property): Use `free` to free memory
coming out of the C library - it has not been allocated with M?NEW,
so M?FREE is wrong here.

17 years ago* src/vm/builtin.c (builtin_print_argument): Print float/double values
twisti [Sun, 29 Oct 2006 14:49:10 +0000 (14:49 +0000)]
* src/vm/builtin.c (builtin_print_argument): Print float/double values
with %g and addresses as hex.
(builtin_trace_args): Fixed message length calclation.
(builtin_displaymethodstop): Fixed bug: we only passed the long value.

17 years ago* src/cacaoh/headers.c (vm_abort): Print the error message before
edwin [Sun, 29 Oct 2006 11:15:36 +0000 (11:15 +0000)]
* src/cacaoh/headers.c (vm_abort): Print the error message before
aborting.

17 years ago* NEWS: New news.
twisti [Sat, 28 Oct 2006 19:40:58 +0000 (19:40 +0000)]
* NEWS: New news.

17 years ago* src/vm/jit/dseg.c (dseg_find_float): Compare hex value.
twisti [Sat, 28 Oct 2006 19:26:51 +0000 (19:26 +0000)]
* src/vm/jit/dseg.c (dseg_find_float): Compare hex value.
(dseg_find_double): Likewise.

17 years ago* NEWS: Added some stuff.
twisti [Sat, 28 Oct 2006 17:45:05 +0000 (17:45 +0000)]
* NEWS: Added some stuff.

17 years ago* NEWS: Added news for CACAO 0.97.
edwin [Sat, 28 Oct 2006 17:15:22 +0000 (17:15 +0000)]
* NEWS: Added news for CACAO 0.97.

17 years ago* src/vm/jit/jit.c (stackreq): Fixed for DUP/SWAP instructions. The
edwin [Sat, 28 Oct 2006 16:55:29 +0000 (16:55 +0000)]
* src/vm/jit/jit.c (stackreq): Fixed for DUP/SWAP instructions. The
numbers for DUP2_X1 and DUP2_X2 were also wrong before the new IR
had been introduced. The new IR in addition needs extra temps in some
cases, thus the numbers before the 'plus' operators.

17 years ago* src/vm/jit/stack.c (stack_analyse): Store vartop in jitdata.
edwin [Sat, 28 Oct 2006 16:51:12 +0000 (16:51 +0000)]
* src/vm/jit/stack.c (stack_analyse): Store vartop in jitdata.

* src/vm/jit/show.c (show_method): Show number of variables.

* tests/regression/jasmin/test_many_dup2_x2.j: New test.
* tests/regression/jasmin/test_many_dup.j: Likewise.
* tests/regression/jasmin/test_many_dup_x2.j: Likewise.
* tests/regression/jasmin/test_many_swap.j: Likewise.
* tests/regression/jasmin/test_many_dup2.j: Likewise.
* tests/regression/jasmin/test_many_dup2_x1.j: Likewise.
* tests/regression/jasmin/test_many_dup_x1.j: Likewise.

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

17 years ago* src/vm/jit/stack.c (stackdata_t): Added field varsallocated.
edwin [Sat, 28 Oct 2006 15:21:45 +0000 (15:21 +0000)]
* src/vm/jit/stack.c (stackdata_t): Added field varsallocated.
(stack_grow_variable_array): Smarted memory allocation.
(stack_analyse): Initialize sd.varsallocated.

17 years ago* src/vm/access.c (ACCESS_ASSERT): Replaced with assert. Because of
edwin [Sat, 28 Oct 2006 13:02:19 +0000 (13:02 +0000)]
* src/vm/access.c (ACCESS_ASSERT): Replaced with assert. Because of
a mistake in the definition of ACCESS_DEBUG, ACCESS_ASSERT always
was a NOP!
(access_is_accessible_member): Fixed assertion.

17 years ago* src/vm/loader.c (LOADER_ASSERT): Replaced with assert.
edwin [Sat, 28 Oct 2006 12:53:24 +0000 (12:53 +0000)]
* src/vm/loader.c (LOADER_ASSERT): Replaced with assert.

17 years ago* src/vm/class.c (CLASS_ASSERT): Replaced by assert.
edwin [Sat, 28 Oct 2006 12:49:29 +0000 (12:49 +0000)]
* src/vm/class.c (CLASS_ASSERT): Replaced by assert.

17 years ago* src/vm/class.c (class_array_of): Release dump memory.
edwin [Sat, 28 Oct 2006 12:47:45 +0000 (12:47 +0000)]
* src/vm/class.c (class_array_of): Release dump memory.
(class_multiarray_of): Likewise.
(class_get_classref_multiarray_of): Likewise.

17 years ago* src/vm/vm.c: Renamed -Xglibj to -Xbootclasspath/c to match jamvm's
twisti [Fri, 27 Oct 2006 10:41:02 +0000 (10:41 +0000)]
* src/vm/vm.c: Renamed -Xglibj to -Xbootclasspath/c to match jamvm's
option (Robert, Mark and I decided that once).
(vm_create): Removed unnecessary k. #ifdef'd the profiling stuff.
(vm_run): Removed commented code.
* src/vm/options.c, src/vm/options.h [ENABLE_PROFILING] (opt_prof)
(opt_prof_bb): Added.
* src/vm/jit/jit.c (jit_compile) [ENABLE_PROFILING]: Added for
opt_prof stuff.
[ENABLE_VERIFIER]: Added for flag setting.
* src/vm/jit/codegen-common.c (codegen_createnativestub)
[ENABLE_PROFILING]: Added for opt_prof stuff.

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Declare variables at the start
edwin [Thu, 26 Oct 2006 16:41:07 +0000 (16:41 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Declare variables at the start
of codegen (uf, fi).

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Made fieldinfo and
twisti [Thu, 26 Oct 2006 12:05:33 +0000 (12:05 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Made fieldinfo and
unresolved_field fucntion variables, fieldtype was uninitialized for
PUTFIELD.

17 years ago* src/vm/jit/x86_64/codegen.c (codegen): Made fieldinfo and
twisti [Thu, 26 Oct 2006 11:57:16 +0000 (11:57 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen): Made fieldinfo and
unresolved_field function variables (it makes the code more readable).

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Fixed ICMD_PUTFIELD: Set
edwin [Thu, 26 Oct 2006 11:47:43 +0000 (11:47 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Fixed ICMD_PUTFIELD: Set
fieldtype before it is used. Fixed warnings.

* src/vm/jit/mips/codegen.c (codegen): Prevent warnings.

17 years ago* NEWS: Added some 0.97 news.
twisti [Thu, 26 Oct 2006 11:35:04 +0000 (11:35 +0000)]
* NEWS: Added some 0.97 news.

17 years ago* src/vm/exceptions.c (exceptions_print_exception): Removed [!NDEBUG]
twisti [Thu, 26 Oct 2006 11:30:02 +0000 (11:30 +0000)]
* src/vm/exceptions.c (exceptions_print_exception): Removed [!NDEBUG]
condition, as we may need this function in the VM (e.g. recompile).
* src/vm/jit/recompile.c (vm/exceptions.h): Added.
(recompile_thread): Call exceptions_print_exception in exception case.

17 years ago* src/vm/jit/intrp/codegen.c (codegen): Initialize uf to NULL for
edwin [Thu, 26 Oct 2006 11:29:42 +0000 (11:29 +0000)]
* src/vm/jit/intrp/codegen.c (codegen): Initialize uf to NULL for
resolved fields, to avoid warnings.

* src/vm/jit/intrp/engine.c (engine): Initialize
classcastexception_object and arrayindexoutofbounds_index to avoid
warnings.