cacao.git
17 years ago* autogen.sh: Recognize autoconf 2.60.
twisti [Tue, 1 Aug 2006 20:38:10 +0000 (20:38 +0000)]
* autogen.sh: Recognize autoconf 2.60.

17 years ago* src/vm/jit/codegen-common.c (codegen_createnativestub): Set
twisti [Tue, 1 Aug 2006 15:51:07 +0000 (15:51 +0000)]
* src/vm/jit/codegen-common.c (codegen_createnativestub): Set
JITDATA_FLAG_INSTRUMENT for opt_prof.

17 years ago* src/vm/jit/recompile.c (recompile_thread): Check return value of
twisti [Tue, 1 Aug 2006 15:08:57 +0000 (15:08 +0000)]
* src/vm/jit/recompile.c (recompile_thread): Check return value of
jit_recompile and print the exception in error case.

17 years ago* src/vm/jit/parse.c (new_parse): Replaced opt_verify with
twisti [Tue, 1 Aug 2006 13:10:48 +0000 (13:10 +0000)]
* src/vm/jit/parse.c (new_parse): Replaced opt_verify with
JITDATA_HAS_FLAG_VERIFY, because on recompilation we don't turn
verifying on.

17 years ago* src/vm/jit/x86_64/codegen.c (codegen): Load address for INVOKESTATIC
twisti [Mon, 31 Jul 2006 20:42:46 +0000 (20:42 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen): Load address for INVOKESTATIC
from data segment and pass the displacement to the patcher.

* src/vm/jit/x86_64/patcher.c (patcher_get_putstatic): Use
displacement from patcher, not from the instruction.
(patcher_builtin_multianewarray): Don't patch BUILTIN_multianewarray
address, it's not required.
(patcher_invokestatic_special): Use displacement passed and patch the
data segment.

* src/vm/jit/x86_64/md.c (md_stacktrace_get_returnaddress): Changed to
new INVOKESTATIC calling sequence.

17 years ago* src/native/native.c
twisti [Mon, 31 Jul 2006 16:30:33 +0000 (16:30 +0000)]
* src/native/native.c
(native/include/java_lang_management_VMManagementFactory.h): Added.
(dummynativetable): Added VMManagementFactory methods.

17 years ago* src/native/include/.cvsignore: Added
twisti [Mon, 31 Jul 2006 16:26:55 +0000 (16:26 +0000)]
* src/native/include/.cvsignore: Added
java_lang_management_VMManagementFactory.h.

17 years ago* src/native/vm/java_lang_management_VMManagementFactory.c: New file.
twisti [Mon, 31 Jul 2006 16:25:55 +0000 (16:25 +0000)]
* src/native/vm/java_lang_management_VMManagementFactory.c: New file.

* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
java_lang_management_VMManagementFactory.c.

* src/native/include/Makefile.am
(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADERS): Added
java_lang_management_VMManagementFactory.h.

17 years ago* src/native/include/Makefile.am (DO_HEADER_FILES): Do not depend on
twisti [Mon, 31 Jul 2006 15:35:00 +0000 (15:35 +0000)]
* src/native/include/Makefile.am (DO_HEADER_FILES): Do not depend on
CACAO_VM_ZIP.

17 years ago* src/native/include/.cvsignore: Added
twisti [Mon, 31 Jul 2006 15:27:03 +0000 (15:27 +0000)]
* src/native/include/.cvsignore: Added
gnu_java_lang_management_VMThreadMXBeanImpl.h and
java_lang_management_ThreadInfo.h.

17 years ago* src/native/vm/gnu_java_lang_management_VMThreadMXBeanImpl.c: New file.
twisti [Mon, 31 Jul 2006 15:26:10 +0000 (15:26 +0000)]
* src/native/vm/gnu_java_lang_management_VMThreadMXBeanImpl.c: New file.

* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
gnu_java_lang_management_VMThreadMXBeanImpl.c.

* src/native/include/Makefile.am
(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADERS): Added
gnu_java_lang_management_VMThreadMXBeanImpl.h and
java_lang_management_ThreadInfo.h.
(VM_ZIP): Removed.

* src/native/jni.h (_Jv_JavaVM): Added total_started_thread_count.

* src/threads/native/threads.c (threads_startup_thread): Count
total_started_thread_count.

* src/cacao/cacao.c (main): Likewise.

* src/cacaoh/headers.c (_Jv_jvm): Added.

17 years ago* src/native/vm/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c:
twisti [Mon, 31 Jul 2006 14:35:41 +0000 (14:35 +0000)]
* src/native/vm/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c:
New file.

* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
gnu_java_lang_management_VMClassLoadingMXBeanImpl.c.

* src/native/include/Makefile.am
(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADER_FILES): Added
gnu_java_lang_management_VMClassLoadingMXBeanImpl.h.

* src/native/include/.cvsignore: Likewise.

* src/native/jni.h (_Jv_JavaVM): Added
Java_gnu_java_lang_management_VMClassLoadingMXBeanImpl_verbose.

* src/native/native.c
(native/include/gnu_java_lang_management_VMClassLoadingMXBeanImpl.h):
Added.
(native/include/gnu_java_lang_management_VMMemoryMXBeanImpl.h):
Likewise.
(dummynativetable): Added VMClassLoadingMXBeanImpl and
VMMemoryMXBeanImpl functions.

17 years ago* src/vm/classcache.c (classcache_number_of_loaded_classes): New
twisti [Mon, 31 Jul 2006 14:21:15 +0000 (14:21 +0000)]
* src/vm/classcache.c (classcache_number_of_loaded_classes): New
internal function.
(classcache_get_loaded_class_count): New function.
(classcache_jvmti_GetLoadedClasses): Renamed to
classcache_get_loaded_classes and reimplemented.

* src/vm/classcache.h (classcache_get_loaded_class_count): Added.
(classcache_jvmti_GetLoadedClasses): Renamed to
classcache_get_loaded_classes.

17 years ago* src/native/include/.cvsignore: Added
twisti [Mon, 31 Jul 2006 12:29:42 +0000 (12:29 +0000)]
* src/native/include/.cvsignore: Added
gnu_java_lang_management_VMMemoryMXBeanImpl.h and
java_lang_management_MemoryUsage.h.

17 years ago* src/lib/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java:
twisti [Mon, 31 Jul 2006 12:28:23 +0000 (12:28 +0000)]
* src/lib/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java:
New file.

* src/lib/Makefile.am (VM_JAVA_FILES): Added
gnu/java/lang/management/VMMemoryMXBeanImpl.java.
(VM_CLASS_FILES): Likewise.

* src/native/include/Makefile.am
(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADERS): Added
gnu_java_lang_management_VMMemoryMXBeanImpl.h and
java_lang_management_MemoryUsage.h.

* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
gnu_java_lang_management_VMMemoryMXBeanImpl.c.

* src/native/vm/gnu_java_lang_management_VMMemoryMXBeanImpl.c
(vm/loader.h): Added.

17 years ago* src/mm/boehm.c (gc_get_total_bytes): New function.
twisti [Mon, 31 Jul 2006 12:25:09 +0000 (12:25 +0000)]
* src/mm/boehm.c (gc_get_total_bytes): New function.
* src/mm/boehm.h (gc_get_total_bytes): Added.

17 years ago* src/lib/vm/reference/java/lang/VMClassLoader.java: Merged GNU
twisti [Mon, 31 Jul 2006 12:17:30 +0000 (12:17 +0000)]
* src/lib/vm/reference/java/lang/VMClassLoader.java: Merged GNU
Classpath changes.

17 years ago* src/native/Makefile.am (nativetable.inc): Renamed VM_ZIP to
twisti [Mon, 31 Jul 2006 12:15:27 +0000 (12:15 +0000)]
* src/native/Makefile.am (nativetable.inc): Renamed VM_ZIP to
CACAO_VM_ZIP.

17 years ago* src/vm/jit/dseg.c (desg_increase): Removed.
twisti [Fri, 28 Jul 2006 13:24:43 +0000 (13:24 +0000)]
* src/vm/jit/dseg.c (desg_increase): Removed.
(dseg_finish): New function.
(dseg_find_s4): Likewise.
(dseg_find_s8): Likewise.
(dseg_find_float): Likewise.
(dseg_find_double): Likewise.
(dseg_find_address): Likewise.
(dseg_add_s4_intern): Likewise.
(dseg_add_unique_s4): Likewise.
(dseg_add_s4): Likewise.
(dseg_add_s8_intern): Likewise.
(dseg_add_unique_s8): Likewise.
(dseg_add_s8): Likewise.
(dseg_add_float_intern): Likewise.
(dseg_add_unique_float): Likewise.
(dseg_add_float): Likewise.
(dseg_add_double_intern): Likewise.
(dseg_add_unique_double): Likewise.
(dseg_add_double): Likewise.
(dseg_add_address_intern): Likewise.
(dseg_add_unique_address): Likewise.
(dseg_add_address): Likewise.

* src/vm/jit/dseg.h (dsegentry): New structure.

* src/vm/jit/codegen-common.c (codegen_setup): Don't allocate memory
for data segment.
(codegen_finish): Call dseg_finish.

* src/vm/jit/codegen-common.h (codegendata): Removed dsegtop and
dsegsize, added dseg.

* src/vm/jit/powerpc/codegen.c: Use new dseg function names.

* src/vm/jit/powerpc/emit.c (vm/jit/dseg.h): Added.
(emit_iconst): Use new dseg function names.

17 years ago* src/vm/jit/powerpc/linux/md-abi.h (REG_ITMP23_PACKED): New define.
twisti [Fri, 28 Jul 2006 10:54:47 +0000 (10:54 +0000)]
* src/vm/jit/powerpc/linux/md-abi.h (REG_ITMP23_PACKED): New define.
* src/vm/jit/powerpc/darwin/md-abi.h (REG_ITMP23_PACKED): Likewise.

17 years ago* src/vm/loader.c (load_class_from_classbuffer): Enable "Extra bytes
twisti [Fri, 28 Jul 2006 10:12:58 +0000 (10:12 +0000)]
* src/vm/loader.c (load_class_from_classbuffer): Enable "Extra bytes
at the end of class file"-check, since we are something like Java 1.5.

17 years ago* src/vm/jit/jit.h (INSTRUCTION_UNRESOLVED_CLASS): Defined.
twisti [Wed, 26 Jul 2006 15:20:15 +0000 (15:20 +0000)]
* src/vm/jit/jit.h (INSTRUCTION_UNRESOLVED_CLASS): Defined.

* src/vm/jit/alpha/codegen.c (codegen): First changes for duplicate
patcher removal.

17 years ago* src/vm/jit/show.c (new_show_method): Print stub length in method
twisti [Wed, 26 Jul 2006 14:50:39 +0000 (14:50 +0000)]
* src/vm/jit/show.c (new_show_method): Print stub length in method
header.
(show_method): Likewise.

* src/vm/jit/codegen-common.c (codegen_addpatchref): Don't cast to
u1*.

17 years ago* src/vm/jit/parse.h (code_get_u1, code_get_s1, code_get_u2)
twisti [Wed, 26 Jul 2006 13:27:54 +0000 (13:27 +0000)]
* src/vm/jit/parse.h (code_get_u1, code_get_s1, code_get_u2)
(code_get_s2, code_get_u4, code_get_s4): Removed.

* src/vm/suck.h (SUCK_BE_S1, SUCK_BE_S2, SUCK_BE_S4, SUCK_BE_S8):
Defined.

* src/vm/jit/parse.c (vm/suck.h): Added.
(new_parse): Use SUCK_BE_* macros instead of code_get_*.
(parse): Likewise.

17 years ago* src/vm/builtin.c (builtin_print_argument): #ifndef NDEBUG.
twisti [Wed, 26 Jul 2006 11:04:18 +0000 (11:04 +0000)]
* src/vm/builtin.c (builtin_print_argument): #ifndef NDEBUG.

17 years ago* src/vm/jit/powerpc/linux/md-asm.h: Added register defines.
twisti [Wed, 26 Jul 2006 10:16:50 +0000 (10:16 +0000)]
* src/vm/jit/powerpc/linux/md-asm.h: Added register defines.

17 years ago* src/vm/jit/powerpc/darwin/md-asm.h: Added fr register defines again,
twisti [Wed, 26 Jul 2006 10:06:22 +0000 (10:06 +0000)]
* src/vm/jit/powerpc/darwin/md-asm.h: Added fr register defines again,
we need them.

* src/vm/jit/powerpc/asmpart.S (asm_replacement_out): Use internal
register defines instead of numbers, as darwin does not understand it.
(asm_replacement_in): Likewise.

17 years ago* src/vm/jit/powerpc/darwin/md-asm.h (mach/ppc/asm.h): Removed. Don't
twisti [Wed, 26 Jul 2006 09:59:30 +0000 (09:59 +0000)]
* src/vm/jit/powerpc/darwin/md-asm.h (mach/ppc/asm.h): Removed. Don't
define the fr register names.

17 years ago* src/vm/jit/powerpc/linux/md-asm.h (asm/ppc_asm.h): Removed, it's not
twisti [Wed, 26 Jul 2006 09:43:08 +0000 (09:43 +0000)]
* src/vm/jit/powerpc/linux/md-asm.h (asm/ppc_asm.h): Removed, it's not
an official kernel header.

* src/vm/jit/powerpc/asmpart.S: Use CACAO internal register defines or
simple register numbers.

17 years ago* src/vm/global.h (IS_FLT_TYPE): Added.
twisti [Tue, 25 Jul 2006 18:30:59 +0000 (18:30 +0000)]
* src/vm/global.h (IS_FLT_TYPE): Added.
(IS_DBL_TYPE): Likewise.

17 years ago* src/vm/jit/i386/md-emit.h (emit_ialu): Removed.
twisti [Tue, 25 Jul 2006 16:00:55 +0000 (16:00 +0000)]
* src/vm/jit/i386/md-emit.h (emit_ialu): Removed.
(emit_ialuconst): Likewise.
(emit_lalu): Likewise.
(emit_laluconst): Likewise.
(emit_ishift): Likewise.
(emit_ishiftconst): Likewise.
(emit_ifcc_iconst): Likewise.

17 years ago* src/vm/jit/jit.h (ICMD_ELSE_ICONST): Removed.
twisti [Tue, 25 Jul 2006 15:57:11 +0000 (15:57 +0000)]
* src/vm/jit/jit.h (ICMD_ELSE_ICONST): Removed.
(ICMD_IFEQ_ICONST): Likewise.
(ICMD_IFNE_ICONST): Likewise.
(ICMD_IFLT_ICONST): Likewise.
(ICMD_IFGE_ICONST): Likewise.
(ICMD_IFGT_ICONST): Likewise.
(ICMD_IFLE_ICONST): Likewise.

* src/vm/jit/jit.c (icmd_names): Set removed ICMDs to UNDEF.

* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
Removed ICMDs.
(allocate_scratch_registers): Likewise.

* src/vm/jit/verify/typecheck.c (verify_basic_block): Likewise.

* src/vm/jit/stack.c (new_stack_analyse): Likewise.
(stack_analyse): Likewise.

* src/vm/jit/show.c (new_show_icmd): Likewise.
(show_icmd): Likewise.

* src/vm/jit/alpha/arch.h (CONDITIONAL_LOADCONST): Removed.
* 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.

* src/vm/jit/alpha/codegen.c (codegen): Removed ICMDs.
* src/vm/jit/i386/codegen.c: Likewise.
* src/vm/jit/mips/codegen.c: Likewise.
* src/vm/jit/sparc64/codegen.c: Likewise.
* src/vm/jit/x86_64/codegen.c: Likewise.

* src/vm/jit/i386/emit.c (emit_ifcc_iconst): Removed.

17 years ago* src/vm/jit/x86_64/md.c (md_signal_handler_sigusr2): Fixed comment.
twisti [Tue, 25 Jul 2006 15:33:58 +0000 (15:33 +0000)]
* src/vm/jit/x86_64/md.c (md_signal_handler_sigusr2): Fixed comment.

* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigusr2): New
function.

17 years ago* src/vm/jit/jit.h (TYPE_INT, TYPE_LNG, TYPE_FLT, TYPE_DBL, TYPE_ADR)
twisti [Tue, 25 Jul 2006 13:52:38 +0000 (13:52 +0000)]
* src/vm/jit/jit.h (TYPE_INT, TYPE_LNG, TYPE_FLT, TYPE_DBL, TYPE_ADR)
(IS_INT_LNG_TYPE, IS_FLT_DBL_TYPE, IS_2_WORD_TYPE)
(IS_INT_TYPE, IS_LNG_TYPE, IS_ADR_TYPE, IS_VOID_TYPE): Removed.

* src/vm/global.h (TYPE_LONG, TYPE_FLOAT, TYPE_DOUBLE, TYPE_ADDRESS):
Removed.
(TYPE_INT, TYPE_LNG, TYPE_FLT, TYPE_DBL, TYPE_ADR)
(IS_INT_LNG_TYPE, IS_FLT_DBL_TYPE, IS_2_WORD_TYPE)
(IS_INT_TYPE, IS_LNG_TYPE, IS_ADR_TYPE, IS_VOID_TYPE): Added.

* src/vm/loader.c (load_field): Use short TYPE_* defines.
(load_newly_created_array): Likewise.

* src/vm/descriptor.c (descriptor_to_basic_type): Likewise.
(descriptor_typesize): Likewise.
(descriptor_to_typedesc): Likewise.
(descriptor_pool_parse_method_descriptor): Likewise.
(descriptor_debug_print_typedesc): Likewise.

* src/vm/jit/verify/typecheck.c (typestack_copy): Likewise.
(typestack_put_retaddr): Likewise.
(typestack_merge): Likewise.
(verify_basic_block): Likewise.
(verify_init_locals): Likewise.

* src/vm/jit/verify/typeinfo.c (typevectorset_copymergedtype):
Likewise.
(typevectorset_store_retaddr): Likewise.
(typevectorset_store_twoword): Likewise.
(typevector_merge): Likewise.
(typeinfos_init_from_methoddesc): Likewise.
(typeinfo_test_parse): Likewise.
(typeinfo_print_type): Likewise.
(typeinfo_print_stacktype): Likewise.

* src/vm/jit/verify/typeinfo.h (TYPE_IS_RETURNADDRESS): Likwise.
(TYPE_IS_REFERENCE): Likwise.

* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Likewise.

17 years ago* src/mm/memory.c (memory_cnew): When MAP_ANONYMOUS and MAP_ANON are
twisti [Tue, 25 Jul 2006 12:33:52 +0000 (12:33 +0000)]
* src/mm/memory.c (memory_cnew): When MAP_ANONYMOUS and MAP_ANON are
not defined, we use simply malloc. This is required for IRIX.

17 years ago* configure.ac (AC_FUNC_MMAP): Added.
twisti [Tue, 25 Jul 2006 11:38:18 +0000 (11:38 +0000)]
* configure.ac (AC_FUNC_MMAP): Added.
(AC_CHECK_FUNCS): Removed mprotect.

* src/mm/memory.c (DEFAULT_CODEMEM_SIZE): Renamed to
DEFAULT_CODE_MEMORY_SIZE.
(codememlock): Renamed to lock_code_memory.
(codememptr): Renamed to code_memory.
(codememsize): Renamed to code_memory_size.
(pagesize): Added global static variable.
(memory_init): Use new variable names and set pagesize.
(memory_cnew): Don't use malloc/mprotect as this makes some problems
with selinux enabled distributions. Instead use mmap.

17 years ago* src/boehm-gc/configure.in (MY_CFLAGS): Commented. We want to use the
twisti [Fri, 21 Jul 2006 14:40:27 +0000 (14:40 +0000)]
* src/boehm-gc/configure.in (MY_CFLAGS): Commented. We want to use the
top-level CFLAGS.
* src/boehm-gc/Makefile.am (LTCOMPILE): Likewise.
(LINK): Likewise.

17 years ago* src/vm/jit/powerpc/linux/md-asm.h (__ASSEMBLY__): Defined. It's
twisti [Fri, 21 Jul 2006 14:15:10 +0000 (14:15 +0000)]
* src/vm/jit/powerpc/linux/md-asm.h (__ASSEMBLY__): Defined. It's
required for <asm/ppc_asm.h> on my Debian system.

17 years ago* src/vm/exceptions.c (new_verifyerror): Renamed to
twisti [Fri, 21 Jul 2006 10:09:33 +0000 (10:09 +0000)]
* src/vm/exceptions.c (new_verifyerror): Renamed to
exceptions_new_verifyerror.
(exceptions_throw_verifyerror): New function.
* src/vm/exceptions.h (new_verifyerror): Renamed to
exceptions_new_verifyerror.
(exceptions_throw_verifyerror): Added.

* src/vm/resolve.c: Use exceptions_throw_verifyerror instead of
new_verifyerror.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/stack.c: Likewise.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/verify/typeinfo.c: Likewise.

* src/cacaoh/headers.c (new_verifyerror): Renamed to
exceptions_throw_verifyerror.

17 years ago* src/vm/builtin.c (builtin_asm_get_exceptionptrptr): Removed.
twisti [Fri, 21 Jul 2006 09:24:03 +0000 (09:24 +0000)]
* src/vm/builtin.c (builtin_asm_get_exceptionptrptr): Removed.
* src/vm/builtin.h (builtin_get_exceptionptrptr): Likewise.

17 years ago* src/vm/jit/mips/patcher.c (assert.h): Added.
twisti [Wed, 19 Jul 2006 15:54:01 +0000 (15:54 +0000)]
* src/vm/jit/mips/patcher.c (assert.h): Added.
(vm/exceptions.h): Added.
(vm/jit/methodheader.h): Likewise.
(patcher_wrapper): New function.
(patcher_get_putstatic): Removed monitor enter/exit, this is now done
by the wrapper.
(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_instanceof_interface): Likewise.
(patcher_checkcast_instanceof_class): Likewise.
(patcher_clinit): Likewise.
(patcher_athrow_areturn): Likewise.
(patcher_resolve_native): Likewise.

* src/vm/jit/mips/asmpart.S (asm_call_jit_compiler): Use
exceptions_get_and_clear_exception.
(asm_abstractmethoderror): Added missing .ent/.end.
(asm_wrapper_patcher): Use patcher_wrapper.

17 years ago* src/vm/jit/show.c (new_show_method): Print data length.
twisti [Wed, 19 Jul 2006 13:38:44 +0000 (13:38 +0000)]
* src/vm/jit/show.c (new_show_method): Print data length.
(show_method): Likewise.

17 years ago* src/vm/jit/powerpc64/* (global): changed all powerpc references to
tbfg [Wed, 19 Jul 2006 13:07:00 +0000 (13:07 +0000)]
* src/vm/jit/powerpc64/* (global): changed all powerpc references to
 powerpc64.

17 years ago* src/vm/jit/show.c (new_show_method): Print method's code length.
twisti [Wed, 19 Jul 2006 12:09:07 +0000 (12:09 +0000)]
* src/vm/jit/show.c (new_show_method): Print method's code length.
(show_method): Likewise.

17 years ago* src/vm/jit/alpha/patcher.c (patcher_wrapper): Patch back the
twisti [Wed, 19 Jul 2006 09:13:34 +0000 (09:13 +0000)]
* src/vm/jit/alpha/patcher.c (patcher_wrapper): Patch back the
original instruction on successful returns.
(patcher_get_putstatic): Removed instruction patching.
(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_instanceof_interface): Likewise.
(patcher_checkcast_instanceof_class): Likewise.
(patcher_clinit): Likewise.
(patcher_athrow_areturn): Likewise.
(patcher_resolve_native): Likewise.

17 years ago* src/vm/jit/powerpc64/linux/md-abi.c (md_return_alloc): isleafmethod
tbfg [Tue, 18 Jul 2006 18:38:49 +0000 (18:38 +0000)]
* src/vm/jit/powerpc64/linux/md-abi.c (md_return_alloc): isleafmethod
 has been moved to jitdata.

* src/vm/jjit/powerpc64/codegen.c (global): fixes for isleafmethod
 changes, BUILTIN_monitor* renamed to LOCK_monitor_*
 codegen_add_classcastexception_ref api changed.

* src/vm/jit/powerpc64/asmpart.S (global): fixed R_PPC64_ADDR32
 issues (32 bit adresses) all jump tables data types from
 long to quad and synched with powerpc asmpart.S.

17 years ago* src/mm/memory.c (memory_cfree): New function.
twisti [Tue, 18 Jul 2006 14:05:43 +0000 (14:05 +0000)]
* src/mm/memory.c (memory_cfree): New function.
* src/mm/memory.h (CFREE): Define to memory_cfree.
(memory_cfree): Added.

17 years ago* src/native/jvmti/Makefile.am (lib_LTLIBRARIES): Removed libjdwp.la.
twisti [Tue, 18 Jul 2006 11:09:47 +0000 (11:09 +0000)]
* src/native/jvmti/Makefile.am (lib_LTLIBRARIES): Removed libjdwp.la.
(libjdwp_la_SOURCES): Removed.

* src/native/jvmti/VMjdwp.c: Removed.
* src/native/jvmti/VMjdwp.h: Likewise.

* src/native/vm/Makefile.am [ENABLE_JVMTI] (lib_LTLIBRARIES): Added
libjdwp.la.
(libjdwp_la_SOURCES): Added.

* src/native/vm/VMFrame.c: Removed.
* src/native/vm/VMMethod.c: Likewise.
* src/native/vm/VMVirtualMachine.c: Likewise.

* src/native/vm/VMjdwp.c: Added.
* src/native/vm/VMjdwp.h: Likewise.
* src/native/vm/gnu_classpath_jdwp_VMVirtualMachine.c: Likewise.
* src/native/vm/gnu_classpath_jdwp_VMFrame.c: Likewise.
* src/native/vm/gnu_classpath_jdwp_VMMethod.c: Likewise.

--HG--
rename : src/native/jvmti/VMjdwp.c => src/native/vm/VMjdwp.c
rename : src/native/jvmti/VMjdwp.h => src/native/vm/VMjdwp.h
rename : src/native/vm/VMFrame.c => src/native/vm/gnu_classpath_jdwp_VMFrame.c
rename : src/native/vm/VMMethod.c => src/native/vm/gnu_classpath_jdwp_VMMethod.c
rename : src/native/vm/VMVirtualMachine.c => src/native/vm/gnu_classpath_jdwp_VMVirtualMachine.c

17 years ago* src/native/jvmti/VMjdwp.c (Breakpoint): adapt BreakpointEvent signature to changed...
motse [Tue, 18 Jul 2006 11:02:28 +0000 (11:02 +0000)]
* src/native/jvmti/VMjdwp.c (Breakpoint): adapt BreakpointEvent signature to changed gnu classpath jdwp implementation.
(fillidcache): idem

17 years ago* src/vm/builtin.c (builtin_trace_args): Added missing
twisti [Tue, 18 Jul 2006 08:56:55 +0000 (08:56 +0000)]
* src/vm/builtin.c (builtin_trace_args): Added missing
TRACE_ARGS_NUM >= 4 case.

17 years ago* src/vm/jit/powerpc/darwin/md-asm.h (asm_wrapper_patcher): Renamed to
twisti [Tue, 18 Jul 2006 08:36:08 +0000 (08:36 +0000)]
* src/vm/jit/powerpc/darwin/md-asm.h (asm_wrapper_patcher): Renamed to
asm_patcher_wrapper.

17 years ago* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added package
twisti [Tue, 18 Jul 2006 08:19:24 +0000 (08:19 +0000)]
* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added package
prefix to filenames.

* src/native/vm/VMClassLoader.c: Removed.
* src/native/vm/VMThrowable.c: Likewise.
* src/native/vm/VMAccessController.c: Likewise.
* src/native/vm/VMString.c: Likewise.
* src/native/vm/VMObject.c: Likewise.
* src/native/vm/VMStackWalker.c: Likewise.
* src/native/vm/Field.c: Likewise.
* src/native/vm/VMSystem.c: Likewise.
* src/native/vm/VMSystemProperties.c: Likewise.
* src/native/vm/VMClass.c: Likewise.
* src/native/vm/VMThread.c: Likewise.
* src/native/vm/Method.c: Likewise.
* src/native/vm/VMProxy.c: Likewise.
* src/native/vm/Constructor.c: Likewise.
* src/native/vm/VMRuntime.c: Likewise.

* src/native/vm/gnu_classpath_VMStackWalker.c: Added.
* src/native/vm/java_lang_VMSystem.c: Likewise.
* src/native/vm/java_lang_reflect_Method.c: Likewise.
* src/native/vm/java_lang_VMObject.c: Likewise.
* src/native/vm/java_lang_VMString.c: Likewise.
* src/native/vm/gnu_classpath_VMSystemProperties.c: Likewise.
* src/native/vm/java_lang_VMRuntime.c: Likewise.
* src/native/vm/java_lang_reflect_Field.c: Likewise.
* src/native/vm/java_lang_VMThrowable.c: Likewise.
* src/native/vm/java_lang_VMClassLoader.c: Likewise.
* src/native/vm/java_lang_VMClass.c: Likewise.
* src/native/vm/java_lang_VMThread.c: Likewise.
* src/native/vm/java_security_VMAccessController.c: Likewise.
* src/native/vm/java_lang_reflect_VMProxy.c: Likewise.
* src/native/vm/java_lang_reflect_Constructor.c: Likewise.

--HG--
rename : src/native/vm/VMStackWalker.c => src/native/vm/gnu_classpath_VMStackWalker.c
rename : src/native/vm/VMSystemProperties.c => src/native/vm/gnu_classpath_VMSystemProperties.c
rename : src/native/vm/VMClass.c => src/native/vm/java_lang_VMClass.c
rename : src/native/vm/VMClassLoader.c => src/native/vm/java_lang_VMClassLoader.c
rename : src/native/vm/VMObject.c => src/native/vm/java_lang_VMObject.c
rename : src/native/vm/VMRuntime.c => src/native/vm/java_lang_VMRuntime.c
rename : src/native/vm/VMString.c => src/native/vm/java_lang_VMString.c
rename : src/native/vm/VMSystem.c => src/native/vm/java_lang_VMSystem.c
rename : src/native/vm/VMThread.c => src/native/vm/java_lang_VMThread.c
rename : src/native/vm/VMThrowable.c => src/native/vm/java_lang_VMThrowable.c
rename : src/native/vm/Constructor.c => src/native/vm/java_lang_reflect_Constructor.c
rename : src/native/vm/Field.c => src/native/vm/java_lang_reflect_Field.c
rename : src/native/vm/Method.c => src/native/vm/java_lang_reflect_Method.c
rename : src/native/vm/VMProxy.c => src/native/vm/java_lang_reflect_VMProxy.c
rename : src/native/vm/VMAccessController.c => src/native/vm/java_security_VMAccessController.c

17 years ago* src/native/vm/gnu_java_lang_management_VMMemoryMXBeanImpl.c: New
twisti [Tue, 18 Jul 2006 08:16:04 +0000 (08:16 +0000)]
* src/native/vm/gnu_java_lang_management_VMMemoryMXBeanImpl.c: New
file.

17 years ago* src/native/vm/gnu_java_lang_management_VMRuntimeMXBeanImpl.c
twisti [Tue, 18 Jul 2006 08:14:02 +0000 (08:14 +0000)]
* src/native/vm/gnu_java_lang_management_VMRuntimeMXBeanImpl.c
(vm/vm.h): Added.
(getStartTime): Implemented.

17 years ago* src/native/vm/VMSystemProperties.c (preInit): Added
twisti [Tue, 18 Jul 2006 08:05:02 +0000 (08:05 +0000)]
* src/native/vm/VMSystemProperties.c (preInit): Added
gnu.java.compiler.name property.

17 years ago* src/vm/jit/jit.h (IS_VOID_TYPE): Added.
twisti [Mon, 17 Jul 2006 16:11:35 +0000 (16:11 +0000)]
* src/vm/jit/jit.h (IS_VOID_TYPE): Added.

* src/vm/builtin.c (builtin_print_argument): New function.
(builtin_trace_args): Rewritten. Uses builtin_trace_args and prints
arguments much better.
(builtin_displaymethodstop): Likewise.

17 years ago* src/native/jvmti/.cvsignore (TAGS): Added.
twisti [Mon, 17 Jul 2006 15:14:31 +0000 (15:14 +0000)]
* src/native/jvmti/.cvsignore (TAGS): Added.
(cacaodbgserver): Likewise.

17 years ago* configure.ac (CACAO_LIBDIR): Added.
twisti [Mon, 17 Jul 2006 15:11:15 +0000 (15:11 +0000)]
* configure.ac (CACAO_LIBDIR): Added.

* src/vm/classcache.c [ENABLE_JVMTI] (lock_hashtable_classcache):
Don't export it.
(classcache_jvmti_GetLoadedClasses): New method.

* src/vm/classcache.h (CLASSCACHE_LOCK): Don't define it.
(CLASSCACHE_UNLOCK): Likewise.
(lock_hashtable_classcache): Don't export it.
(classcache_jvmti_GetLoadedClasses): Added.

* src/vm/vm.c (vm_create): Use CACAO_LIBDIR in OPT_XRUNJDWP.

* src/native/jvmti/jvmti.c (GetLoadedClasses): Use
classcache_jvmti_GetLoadedClasses.
(jvmti_agentload): Some code cleanup.

17 years ago* src/native/include/include/Makefile.am (GEN_JVMTI_HEADER_FILES):
twisti [Mon, 17 Jul 2006 13:50:35 +0000 (13:50 +0000)]
* src/native/include/include/Makefile.am (GEN_JVMTI_HEADER_FILES):
Reordered.

* src/native/include/include/.cvsignore
(gnu_classpath_jdwp_VMMethod.h): Added.
(gnu_classpath_jdwp_util_VariableTable.h): Likewise.

17 years ago* src/vm/jit/asmpart.h (asm_wrapper_patcher): Renamed to
twisti [Mon, 17 Jul 2006 11:48:38 +0000 (11:48 +0000)]
* src/vm/jit/asmpart.h (asm_wrapper_patcher): Renamed to
asm_patcher_wrapper.

* src/vm/jit/alpha/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/alpha/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/i386/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/i386/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/mips/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/mips/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/powerpc/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/powerpc/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/powerpc64/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/powerpc64/asmpart.S (asm_wrapper_patcher): Likewise.

* src/vm/jit/x86_64/codegen.c (codegen): Likewise.
(createnativestub): Likewise.
* src/vm/jit/x86_64/asmpart.S (asm_wrapper_patcher): Likewise.

17 years ago* src/mm/boehm.c (heap_allocate): Changed signature. Some cleanup.
twisti [Mon, 17 Jul 2006 11:09:21 +0000 (11:09 +0000)]
* src/mm/boehm.c (heap_allocate): Changed signature. Some cleanup.
* src/mm/boehm.h (heap_allocate): Likewise.

17 years ago* src/native/vm/VMRuntime.c (maxMemory): Comment fix.
twisti [Mon, 17 Jul 2006 10:00:33 +0000 (10:00 +0000)]
* src/native/vm/VMRuntime.c (maxMemory): Comment fix.
(availableProcessors): Likewise.

17 years ago* src/vm/jit/x86_64/patcher.c (vm/jit/x86_64/codegen.h): Added.
twisti [Mon, 17 Jul 2006 09:47:02 +0000 (09:47 +0000)]
* src/vm/jit/x86_64/patcher.c (vm/jit/x86_64/codegen.h): Added.
(vm/exceptions.h): Likewise.
(patcher_get_putstatic): Removed monitor enter/exit and return address
calculation, this is now done by the wrapper.
(patcher_get_putfield): Likewise.
(patcher_putfieldconst): 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_instanceof_interface): Likewise.
(patcher_checkcast_class): Likewise.
(patcher_instanceof_class): Likewise.
(patcher_clinit): Likewise.
(patcher_athrow_areturn): Likewise.
(patcher_resolve_native): Likewise.

* src/vm/jit/x86_64/asmpart.S (asm_wrapper_patcher): Use
patcher_wrapper.

17 years ago* src/native/jvmti/jvmti.c (DestroyRawMonitor): Don't pass
twisti [Sun, 16 Jul 2006 15:58:21 +0000 (15:58 +0000)]
* src/native/jvmti/jvmti.c (DestroyRawMonitor): Don't pass
threadobject to lock_monitor_exit.
(RawMonitorEnter): Changed builtin_monitorenter to lock_monitor_enter.
(RawMonitorExit): Changed builtin_monitorexit to lock_monitor_exit.

17 years ago* src/vm/jit/recompile.c (recompile_threadobject): Renamed to
twisti [Sun, 16 Jul 2006 15:38:12 +0000 (15:38 +0000)]
* src/vm/jit/recompile.c (recompile_threadobject): Renamed to
recompile_vmthread and changed type to java_lang_VMThread.
(recompile_start_thread): Changed initialization of the thread
object. This fixes the not-exit bug.

* src/vm/jit/profile/profile.c (profile_threadobject): Renamed to
profile_vmthread.
(profile_thread): Call codegen_get_pv_from_pc_nocheck instead of
codegen_findmethod.
(profile_start_thread): Changed initialization of the thread
object.

* src/vm/jit/codegen-common.c (codegen_findmethod): Print a stacktrace
if no function was found and exit the VM.
(codegen_get_pv_from_pc_nocheck): New function. Like
codegen_findmethod, but can return NULL.
* src/vm/jit/codegen-common.h (codegen_get_pv_from_pc_nocheck): Added.

17 years ago* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
edwin [Fri, 14 Jul 2006 17:08:32 +0000 (17:08 +0000)]
* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
Fixed dupslots indices for ICMD_SWAP.

17 years ago* src/vm/jit/show.c (new_show_icmd): General handling of
edwin [Fri, 14 Jul 2006 17:07:23 +0000 (17:07 +0000)]
* src/vm/jit/show.c (new_show_icmd): General handling of
INS_FLAG_UNRESOLVED.

17 years ago* src/vm/jit/show.c (new_show_icmd): Fixed showing of LASTORECONST.
edwin [Fri, 14 Jul 2006 17:06:13 +0000 (17:06 +0000)]
* src/vm/jit/show.c (new_show_icmd): Fixed showing of LASTORECONST.

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Fixed propagation of
edwin [Fri, 14 Jul 2006 17:05:12 +0000 (17:05 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Fixed propagation of
INS_FLAG_UNRESOLVED for PUTFIELDCONST/PUTSTATICCONST.

17 years ago* src/vm/jit/stack.c (DUP_SLOT): Copy only TEMPVARs directly.
edwin [Fri, 14 Jul 2006 17:03:36 +0000 (17:03 +0000)]
* src/vm/jit/stack.c (DUP_SLOT): Copy only TEMPVARs directly.

17 years ago* src/vm/jit/parse.c (new_parse): No exception check for
edwin [Fri, 14 Jul 2006 17:02:24 +0000 (17:02 +0000)]
* src/vm/jit/parse.c (new_parse): No exception check for
MONITORENTER.

17 years ago* src/vm/jit/show.c (new_show_stackvar): Show varkind and varnum for
edwin [Fri, 14 Jul 2006 16:58:39 +0000 (16:58 +0000)]
* src/vm/jit/show.c (new_show_stackvar): Show varkind and varnum for
variables with an invalid varkind.

17 years ago* src/vm/jit/stack.c (new_stack_analyse): Use POPANY for DUP*
edwin [Fri, 14 Jul 2006 16:56:35 +0000 (16:56 +0000)]
* src/vm/jit/stack.c (new_stack_analyse): Use POPANY for DUP*
instructions, in order to set varkind correctly. The repeated
POPANY macros should probably be replaced by more efficient
code.

17 years ago* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
edwin [Fri, 14 Jul 2006 16:54:11 +0000 (16:54 +0000)]
* src/vm/jit/allocator/simplereg.c (new_allocate_scratch_registers):
Fixed dupslots indices for ICMD_DUP_X1.

17 years ago* src/vm/jit/parse.h (NEW_OP_STORE_ONEWORD): Store index in dst,
edwin [Fri, 14 Jul 2006 16:52:36 +0000 (16:52 +0000)]
* src/vm/jit/parse.h (NEW_OP_STORE_ONEWORD): Store index in dst,
not in s1.
(NEW_OP_STORE_TWOWORD): Likewise.

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Use lock_monitor_enter/exit
twisti [Thu, 13 Jul 2006 11:54:16 +0000 (11:54 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Use lock_monitor_enter/exit
instead of builtin_monitorenter/exit.

17 years ago* doc/handbook/jvmti.tex: documentation of the cacao jvmti implementation added to...
motse [Thu, 13 Jul 2006 11:17:21 +0000 (11:17 +0000)]
* doc/handbook/jvmti.tex: documentation of the cacao jvmti implementation added to the cacao handbook
* doc/handbook/arch.eps: idem
* doc/handbook/cacao.tex: idem
* doc/handbook/java.bib: idem
* doc/handbook/arm.tex: added bounding box for arm-double-memory.png

17 years ago* src/vm/jit/mips/codegen.c (codegen): Use lock_monitor_enter/exit
twisti [Thu, 13 Jul 2006 10:26:38 +0000 (10:26 +0000)]
* src/vm/jit/mips/codegen.c (codegen): Use lock_monitor_enter/exit
instead of builtin_monitorenter/exit.
(createnativestub): Don't use builtin_get_exceptionptrptr, but
codegen_finish_native_call for exception check.

17 years ago* src/mm/memory.c (vm/vm.h): Added.
twisti [Wed, 12 Jul 2006 22:55:05 +0000 (22:55 +0000)]
* src/mm/memory.c (vm/vm.h): Added.
(memory_cnew): Replaced throw_cacao_exception_exit with vm_abort.
(dump_release): Likewise.

* src/toolbox/util.c (_Jv_getcwd): Likewise.

17 years ago* src/vm/jit/alpha/codegen.c (codegen): Use lock_monitor_enter/exit
twisti [Wed, 12 Jul 2006 22:12:47 +0000 (22:12 +0000)]
* src/vm/jit/alpha/codegen.c (codegen): Use lock_monitor_enter/exit
instead of builtin_monitorenter/exit.

17 years ago* src/vm/jit/i386/codegen.c (codegen): Use lock_monitor_enter/exit
twisti [Wed, 12 Jul 2006 21:59:24 +0000 (21:59 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Use lock_monitor_enter/exit
instead of builtin_monitorenter/exit.

17 years ago* src/vm/builtin.c (builtin_monitorenter): Removed.
twisti [Wed, 12 Jul 2006 21:45:34 +0000 (21:45 +0000)]
* src/vm/builtin.c (builtin_monitorenter): Removed.
(builtin_staticmonitorenter): Likewise.
(builtin_monitorexit): Likewise.
* src/vm/builtin.h: Likewise.

* src/threads/native/lock.c (lock_monitor_enter): Don't pass
threadobject, get it in this function.
(lock_monitor_exit): Likewise.

* src/threads/native/lock.h (lock_monitor_enter): Changed signature.
(lock_monitor_exit): Likewise.
(LOCK_monitor_enter): Defined.
(LOCK_monitor_exit): Likewise.
(LOCK_MONITOR_ENTER): Likewise.
(LOCK_MONITOR_EXIT): Likewise.

* src/vm/suck.c: Use lock_monitor_enter/exit instead of
builtin_monitorenter/exit.
* src/vm/string.c: Likewise.
* src/vm/finalizer.c: Likewise.
* src/vm/classcache.c: Likewise.
* src/vm/initialize.c: Likewise.
* src/vm/jit/recompile.c: Likewise.
* src/vm/jit/show.c: Likewise.
* src/vm/jit/patcher.h: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/jit/x86_64/md.c: Likewise.
* src/vm/jit/x86_64/codegen.c: Likewise.
* src/vm/jit/jit.c: Likewise.
* src/vm/builtintable.inc: Likewise.
* src/vm/exceptions.c: Likewise.
* src/vm/linker.c: Likewise.
* src/vm/utf8.c: Likewise.
* src/native/jni.c: Likewise.
* src/native/native.c: Likewise.
* src/toolbox/avl.c: Likewise.
* src/toolbox/list.c: Likewise.
* src/mm/memory.c: Likewise.
* src/cacaoh/headers.h: Likewise.

17 years ago* src/threads/Makefile.am: Added path to header.
twisti [Wed, 12 Jul 2006 21:33:30 +0000 (21:33 +0000)]
* src/threads/Makefile.am: Added path to header.

17 years ago* src/vm/jit/Makefile.am (RECOMPILE_SOURCES): Added, compile recompile
twisti [Wed, 12 Jul 2006 21:32:21 +0000 (21:32 +0000)]
* src/vm/jit/Makefile.am (RECOMPILE_SOURCES): Added, compile recompile
only if threads are enabled.

* src/vm/vm.c (vm_create): Call recompile_init only if threads are
enabled.

17 years ago* src/threads/none/.cvsignore: New file.
twisti [Wed, 12 Jul 2006 21:27:47 +0000 (21:27 +0000)]
* src/threads/none/.cvsignore: New file.

17 years ago* src/threads/none/Makefile.am: New file.
twisti [Wed, 12 Jul 2006 21:26:54 +0000 (21:26 +0000)]
* src/threads/none/Makefile.am: New file.
* src/threads/none/lock.h: Likewise.
* src/threads/Makefile.am (DIST_SUBDIRS): Added.
* configure.ac (AC_CONFIG_FILES): Added src/threads/none/Makefile.

17 years ago* src/vm/jit/powerpc/darwin/md-abi.c (md_return_alloc): Use jd->isleafmethod.
twisti [Wed, 12 Jul 2006 20:27:55 +0000 (20:27 +0000)]
* src/vm/jit/powerpc/darwin/md-abi.c (md_return_alloc): Use jd->isleafmethod.

17 years ago* src/vm/jit/powerpc/codegen.c (codegen): Use jd->isleafmethod.
twisti [Wed, 12 Jul 2006 20:14:00 +0000 (20:14 +0000)]
* src/vm/jit/powerpc/codegen.c (codegen): Use jd->isleafmethod.
* src/vm/jit/powerpc/linux/md-abi.c (md_return_alloc): Likewise.

17 years ago* src/vm/jit/recompile.c (recompile_replace_vftbl): #ifndef NDEBUG
twisti [Wed, 12 Jul 2006 15:02:46 +0000 (15:02 +0000)]
* src/vm/jit/recompile.c (recompile_replace_vftbl): #ifndef NDEBUG
debugging code.

17 years ago* src/vm/jit/powerpc/linux/md-abi.c (vm/jit/abi.h): Added.
twisti [Wed, 12 Jul 2006 14:55:04 +0000 (14:55 +0000)]
* src/vm/jit/powerpc/linux/md-abi.c (vm/jit/abi.h): Added.
* src/vm/jit/powerpc/netbsd/md-abi.c: Likewise.
* src/vm/jit/powerpc/darwin/md-abi.c: Likewise.
* src/vm/jit/alpha/md-abi.c: Likewise.
* src/vm/jit/powerpc64/linux/md-abi.c: Likewise.
* src/vm/jit/i386/md-abi.c: Likewise.

* src/vm/jit/sparc64/md-abi.c: Added GNU header.
(vm/jit/abi.h): Added.

17 years ago* src/vm/jit/mips/codegen.c (codegen): Use jd->isleafmethod. Pass
twisti [Wed, 12 Jul 2006 14:53:28 +0000 (14:53 +0000)]
* src/vm/jit/mips/codegen.c (codegen): Use jd->isleafmethod. Pass
register number to codegen_add_classcastexception_ref.

* src/vm/jit/mips/md-abi.c (vm/jit/abi.h): Added.
(md_return_alloc): Changed signature.

17 years ago* src/vm/jit/emit.h (emit_load): New function. This is a general
edwin [Wed, 12 Jul 2006 14:42:38 +0000 (14:42 +0000)]
* src/vm/jit/emit.h (emit_load): New function. This is a general
function for emitting loads that will keep its stackvar argument
after switching to the new instruction format. It will be used
for instructions with variable arguments, for example.

* src/vm/jit/x86_64/emit.c (emit_load): New function.

17 years ago* src/vm/jit/x86_64/codegen.c (codegen): Use jd->isleafmethod.
twisti [Wed, 12 Jul 2006 13:52:08 +0000 (13:52 +0000)]
* src/vm/jit/x86_64/codegen.c (codegen): Use jd->isleafmethod.
* src/vm/jit/x86_64/md-abi.c (md_return_alloc): Likewise.

17 years ago* src/vm/jit/code.c (code_get_stack_frame_size): Commented code, we
twisti [Wed, 12 Jul 2006 13:47:51 +0000 (13:47 +0000)]
* src/vm/jit/code.c (code_get_stack_frame_size): Commented code, we
need another implementation.

17 years ago* src/vm/jit/x86_64/asmpart.S (asm_call_jit_compiler): Use
twisti [Tue, 11 Jul 2006 22:23:55 +0000 (22:23 +0000)]
* src/vm/jit/x86_64/asmpart.S (asm_call_jit_compiler): Use
exceptions_get_and_clear_exception.
(asm_wrapper_patcher): Likewise.

17 years ago* src/vm/jit/i386/emit.c: Changed prefix from i386_ to emit_.
twisti [Tue, 11 Jul 2006 19:17:23 +0000 (19:17 +0000)]
* src/vm/jit/i386/emit.c: Changed prefix from i386_ to emit_.
(vm/jit/emit.h): Added.
(emit_load_s1_low): New function.
(emit_load_s2_low): New function.

* src/vm/jit/i386/md.c (md_get_method_patch_address): Changed
instruction byte.

* src/vm/jit/i386/md-emit.h: Changed prefix from i386_ to emit_. Added
architecture defines.

* src/vm/jit/i386/codegen.c Changed the code generator to produce
RISC-like code. These are way too much changes to name them.

* src/vm/jit/i386/codegen.h: Removed a lot of architecture stuff.

* src/vm/jit/i386/patcher.c (vm/exceptions.h): Added.
(patcher_wrapper): New function.
(patcher_get_putstatic): Removed monitor enter/exit and return address
calculation, this is now done by the wrapper.

(patcher_getfield): Likewise.
(patcher_putfield): Likewise.
(patcher_putfieldconst): 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_instanceof_interface): Likewise.
(patcher_checkcast_class): Likewise.
(patcher_instanceof_class): Likewise.
(patcher_clinit): Likewise.
(patcher_athrow_areturn): Likewise.
(patcher_resolve_native): Likewise.

* src/vm/jit/i386/asmpart.S (asm_vm_call_method): Changed calling
sequence of asm_call_jit_compiler.
(asm_call_jit_compiler): Use jit_asm_compile.
(asm_wrapper_patcher): Use patcher_wrapper.

17 years ago* src/vm/jit/emit.h [SIZEOF_VOID_P == 4] (emit_store_low): Added.
twisti [Tue, 11 Jul 2006 18:39:13 +0000 (18:39 +0000)]
* src/vm/jit/emit.h [SIZEOF_VOID_P == 4] (emit_store_low): Added.
[SIZEOF_VOID_P == 4] (emit_store_high): Likewise.

17 years ago* src/vm/jit/i386/md-asm.h (mptr): Added.
twisti [Tue, 11 Jul 2006 18:35:27 +0000 (18:35 +0000)]
* src/vm/jit/i386/md-asm.h (mptr): Added.

17 years ago* src/vm/jit/i386/md-abi.h (REG_METHODPTR): Added.
twisti [Tue, 11 Jul 2006 18:34:45 +0000 (18:34 +0000)]
* src/vm/jit/i386/md-abi.h (REG_METHODPTR): Added.
(REG_ITMP12_PACKED): Likewise.
(REG_ITMP13_PACKED): Likewise.
(REG_ITMP23_PACKED): Likewise.
(REG_RESULT_PACKED): Likewise.
(EAX_EDX_PACKED): Likewise.

17 years ago* src/vm/jit/alpha/patcher.c (patcher_wrapper): Added return address
twisti [Tue, 11 Jul 2006 17:10:01 +0000 (17:10 +0000)]
* src/vm/jit/alpha/patcher.c (patcher_wrapper): Added return address
calculation.
(patcher_get_putstatic): Removed return address calculation.
(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_instanceof_interface): Likewise.
(patcher_checkcast_instanceof_class): Likewise.
(patcher_clinit): Likewise.
(patcher_athrow_areturn): Likewise.
(patcher_resolve_native): Likewise.