cacao.git
16 years ago* ChangeLog: Updated.
twisti [Wed, 30 May 2007 21:59:29 +0000 (21:59 +0000)]
* ChangeLog: Updated.
* ChangeLog-2006: New file.

16 years ago* src/vm/jit/powerpc/darwin/md-os.c (thread_restartcriticalsection):
twisti [Wed, 30 May 2007 21:05:20 +0000 (21:05 +0000)]
* src/vm/jit/powerpc/darwin/md-os.c (thread_restartcriticalsection):
Renamed to md_critical_section_restart.

16 years ago* src/vm/jit/powerpc/asmpart.S [ENABLE_REPLACEMENT] (L_replace_me)
twisti [Wed, 30 May 2007 21:04:42 +0000 (21:04 +0000)]
* src/vm/jit/powerpc/asmpart.S [ENABLE_REPLACEMENT] (L_replace_me)
(L_replace_build_execution_state, L_replace_free_safestack): Only if
replacement is enabled, otherwise we get a linker error.

16 years ago* src/vm/jit/powerpc/darwin/md-abi.c,
twisti [Wed, 30 May 2007 20:53:56 +0000 (20:53 +0000)]
* src/vm/jit/powerpc/darwin/md-abi.c,
src/vm/jit/powerpc/darwin/md-abi.h: Removed Contact, Authors, Changes
from header.

16 years ago* src/vm/signal.c (signal_thread) [!__DARWIN__]: Don't do the
twisti [Wed, 30 May 2007 20:51:50 +0000 (20:51 +0000)]
* src/vm/signal.c (signal_thread) [!__DARWIN__]: Don't do the
GC_signum stuff on Darwin (should also be done on Solaris, but let's
wait how the exact-GC is doing).

16 years ago* src/vm/builtin.c (math.h): Removed because we don't need it as we
twisti [Wed, 30 May 2007 20:45:43 +0000 (20:45 +0000)]
* src/vm/builtin.c (math.h): Removed because we don't need it as we
include fdlibm.h and it does not work on some OSs, like Darwin.

16 years ago* src/mm/boehm-gc/pthread_stop_world.c (GC_signum1, GC_signum2): No it
twisti [Wed, 30 May 2007 20:40:23 +0000 (20:40 +0000)]
* src/mm/boehm-gc/pthread_stop_world.c (GC_signum1, GC_signum2): No it
did not work, reverted rev7981.

16 years ago* src/threads/native/threads.c (threads_impl_preinit): Initialize
twisti [Wed, 30 May 2007 20:30:00 +0000 (20:30 +0000)]
* src/threads/native/threads.c (threads_impl_preinit): Initialize
mutex_threads_list.
(threads_impl_table_init): Removed.
(threads_impl_table_init, threads_list_unlock): Fixed debug message.

* src/threads/threads-common.h (threads_impl_table_init): Removed.

16 years ago* src/vm/resolve.c (resolve_subtype_check): Don't free the memory
twisti [Wed, 30 May 2007 20:04:42 +0000 (20:04 +0000)]
* src/vm/resolve.c (resolve_subtype_check): Don't free the memory
before it's used.

16 years ago* src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_native): Fixed
twisti [Wed, 30 May 2007 20:01:49 +0000 (20:01 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen_emit_stub_native): Fixed
typo.

* src/vm/jit/powerpc64/emit.c [!NDEBUG] (emit_verbosecall_enter)
(emit_verbosecall_exit): Only compile conditionally.

16 years ago* src/mm/boehm-gc/pthread_stop_world.c (cacao_suspendhandler):
twisti [Wed, 30 May 2007 19:43:36 +0000 (19:43 +0000)]
* src/mm/boehm-gc/pthread_stop_world.c (cacao_suspendhandler):
Commented.
(GC_suspend_handler): Commented cacao_suspendhandler call.
(GC_signum1, GC_signum2): Define for all configurations (hope that
works).

* src/threads/native/threads.c: Commented all critical-sections code,
as it does not work anyway and it does not compile everywhere.

16 years ago* src/vm/jit/powerpc64/md.c (md_get_method_patch_address): Use
twisti [Wed, 30 May 2007 16:01:09 +0000 (16:01 +0000)]
* src/vm/jit/powerpc64/md.c (md_get_method_patch_address): Use
vm_abort and fixed warning.
(md_codegen_get_pv_from_pc): Likewise.

16 years ago* src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed --disable-debug
twisti [Wed, 30 May 2007 15:52:00 +0000 (15:52 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed --disable-debug
build.

16 years ago* src/vm/signal.c (mm/boehm-gc/include/gc.h): Added.
twisti [Wed, 30 May 2007 14:09:10 +0000 (14:09 +0000)]
* src/vm/signal.c (mm/boehm-gc/include/gc.h): Added.
(GC_suspend_handler): Defined.
(GC_restart_handler): Likewise.
(signal_thread): Add the Boehm-GC signals to the mask and call the
appropriate Boehm-function. This is a workaround for the
Boehm-LinuxThreads bug.

16 years ago* src/vm/signal.c (signal_init): Changed signature.
twisti [Tue, 29 May 2007 12:34:20 +0000 (12:34 +0000)]
* src/vm/signal.c (signal_init): Changed signature.
* src/vm/signallocal.h (signal_init): Likewise.

* src/vm/vm.c (vm_create): Call signal_init right after gc_init and
check return value.

16 years ago* src/vm/access.c (string.h): Added.
twisti [Tue, 29 May 2007 12:22:55 +0000 (12:22 +0000)]
* src/vm/access.c (string.h): Added.
(mm/memory.h): Likewise.
(vmcore/field.h): Likewise.
(vmcore/method.h): Likewise.
(access_check_member): Removed.
(access_check_field): New function.
(access_check_method): Likewise.

* src/vm/access.h (vmcore/field.h): Added.
(vmcore/method.h): Likewise.
(access_check_member): Removed.
(access_check_field): New function.
(access_check_method): Likewise.

* src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Call
access_check_method instead of access_check_member.

* src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
Likewise.

* src/native/vm/gnu/java_lang_reflect_Field.c
(cacao_get_field_address): Call access_check_field instead of
access_check_member.

16 years ago* src/vm/jit/show.c (vm/vm.h) add missing include,
pm [Tue, 29 May 2007 11:44:02 +0000 (11:44 +0000)]
* src/vm/jit/show.c (vm/vm.h) add missing include,
(_no_threads_filterverbosecallctr) fix type: u2 instead of u4

16 years ago* src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed warnings, some
twisti [Tue, 29 May 2007 11:30:20 +0000 (11:30 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen_emit): Fixed warnings, some
indent.

16 years ago* src/vm/exceptions.c (exceptions_throw_illegalaccessexception):
twisti [Tue, 29 May 2007 09:03:56 +0000 (09:03 +0000)]
* src/vm/exceptions.c (exceptions_throw_illegalaccessexception):
Changed signature.
* src/vm/exceptions.h: Likewise.

* src/vm/resolve.c (resolve_class_from_name): Make utf8-string out of
exception message.
(resolve_subtype_check): Likewise.
(resolve_field_verifier_checks): Likewise.
(resolve_method_verifier_checks): Likewise.

16 years ago* src/vm/jit/sparc64/codegen.h: Removed asserts for stores with sethi.
ajordan [Mon, 28 May 2007 00:05:04 +0000 (00:05 +0000)]
* src/vm/jit/sparc64/codegen.h: Removed asserts for stores with sethi.

* src/vm/jit/sparc64/codegen.c: Added code to fill with nops when a patcher is right at the
end of a basic block.

* src/vm/jit/sparc64/asmpart.S (asm_vm_call_method_end): Returning 0 when an exception occurs.

* src/vm/jit/sparc64/md.c (md_get_method_patch_address): Improved handling of mptr loads when
a sethi is involved.

16 years ago* contrib/vmlog/vmlog.c: Use autoconf define WORDS_BIGENDIAN to determine endianess.
pm [Sat, 26 May 2007 15:26:06 +0000 (15:26 +0000)]
* contrib/vmlog/vmlog.c: Use autoconf define WORDS_BIGENDIAN to determine endianess.

16 years ago* src/threads/threads-common.c (threads_thread_start_internal)
twisti [Fri, 25 May 2007 15:23:56 +0000 (15:23 +0000)]
* src/threads/threads-common.c (threads_thread_start_internal)
[WITH_CLASSPATH_CLDC1_1]: Set name to NULL, but this needs a fix.
(threads_thread_print_info) [ENABLE_JAVAME_CLDC1_1]: Set name to
utf_null.

16 years ago* src/vm/jit/optimizing/ifconv.c (vm/vm.h): Added.
twisti [Fri, 25 May 2007 15:05:57 +0000 (15:05 +0000)]
* src/vm/jit/optimizing/ifconv.c (vm/vm.h): Added.
(ifconv_static): Fixed warning, use vm_abort.

16 years ago* src/vm/jit/powerpc/md.c (md_get_method_patch_address): Fixed
twisti [Fri, 25 May 2007 15:05:04 +0000 (15:05 +0000)]
* src/vm/jit/powerpc/md.c (md_get_method_patch_address): Fixed
warning, use vm_abort.

16 years ago* src/vm/string.c (javastring_new_from_utf_buffer): Made static.
twisti [Fri, 25 May 2007 15:03:46 +0000 (15:03 +0000)]
* src/vm/string.c (javastring_new_from_utf_buffer): Made static.
* src/vm/stringlocal.h (javastring_new_from_utf_buffer): Removed.

16 years ago* src/vm/jit/show.h (show_filters_init, show_filters_apply, show_filters_test_verbose...
pm [Fri, 25 May 2007 12:41:03 +0000 (12:41 +0000)]
* src/vm/jit/show.h (show_filters_init, show_filters_apply, show_filters_test_verbosecall_enter, show_filters_test_verbosecall_exit): Added.
* src/vm/jit/show.c: Likewise.
* src/vm/jit/jit.c (jit_compile_intern): Honour filters.
* src/vm/jit/codegen-common.c (codegen_add_patch_ref, codegen_generate_stub_native): Honour PATCHER_LONGBRANCHES_NOPS if defined, honour filters.
* src/vm/builtin.c (builtin_trace_exception, builtin_verbosecall_enter, builtin_verbosecall_exit): Honour filters.
* src/vm/signal.c (signal_init): Register SIGILL handler on s390.
* src/vm/vm.c: Handle -XXfi, -XXfe, -XXfm commandline options.
* src/vm/signallocal.h (md_signal_handler_sigill): Forward declare on s390.
* src/threads/none/threads.h (_no_threads_filterverbosecallctr, FILTERVERBOSECALLCTR): Added.
* src/threads/native/threads.h (struct threadobject): Added filterverbosecallctr.
* src/threads/native/threads.c (threads_impl_thread_new): Initialize filterverbosecallctr.
* src/threads/critical.c (critical_comparator): On s390, clear bit 32 of pointer when comparing.
* src/vmcore/options.h (opt_filter_verbosecall_include, opt_filter_verbosecall_exclude, opt_filter_show_method): Added.
* src/vmcore/options.c: Likewise.
* src/vmcore/method.h (struct methodinfo): Added filtermatches.
* configure.ac: If no NDEBUG and regex.h header is present, define ENABLE_DEBUG_FILTER.
* src/vm/jit/s390/emit.c,
src/vm/jit/s390/md.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/tests/dacapo.status,
src/vm/jit/s390/patcher.c: Changed a lot.

16 years ago* src/vmcore/linker.c (link_class_intern) [__ARM_EABI__]: Fixed field
michi [Thu, 24 May 2007 13:25:41 +0000 (13:25 +0000)]
* src/vmcore/linker.c (link_class_intern) [__ARM_EABI__]: Fixed field
alignment bug. Double and Long fields are 8-byte aligned with EABI.

16 years ago* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigsegv): Fixed
twisti [Thu, 24 May 2007 10:23:42 +0000 (10:23 +0000)]
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigsegv): Fixed
warning.

16 years ago* src/threads/threads-common.c (mm/memory.h): Added.
twisti [Thu, 24 May 2007 10:21:16 +0000 (10:21 +0000)]
* src/threads/threads-common.c (mm/memory.h): Added.
(toolbox/list.h): Likewise.
(threads_table): Removed.
(list_threads, list_threads_free): Added.
(threads_preinit): Initialize lists.
(threads_table_init): Removed.
(threads_table_add): Likewise.
(threads_table_remove): Likewise.
(threads_table_get): Likewise.
(threads_table_get_threads): Likewise.
(threads_table_get_non_daemons): Likewise.
(threads_table_first): Likewise.
(threads_table_next): Likewise.
(threads_table_dump): Likewise.
(threads_list_first): New function.
(threads_list_next): Likewise.
(threads_list_get_non_daemons): Likewise.
(threads_thread_new): Likewise.
(threads_thread_free): Likewise.
(threads_thread_print_info): Added state-assert, print thread index.
(threads_thread_state_runnable): New function.
(threads_thread_state_waiting): Likewise.
(threads_thread_state_timed_waiting): Likewise.
(threads_thread_state_terminated): Likewise.
(threads_dump): Use threads-list functions.

* src/threads/threads-common.h: Likewise.
(threads_table_entry_t): Removed.
(threads_table_t): Likewise.

* src/threads/native/threads.c (mutex_threads_table): Renamed to
mutex_threads_list.
(threads_cast_sendsignals): Use threads-list functions.
(threads_table_lock): Renamed to threads_list_lock.
(threads_table_unlock): Renamed to threads_list_unlock.
(threads_startup_thread): Use threads-state functions.
(threads_detach_thread): Likewise.
(threads_wait_with_timeout): Likewise.
(threads_join_all_threads): Use threads-list functions.

* src/threads/native/threads.h (threadobject): Added linkage.

16 years ago* src/vm/jit/sparc64/Makefile.am: Added missing emit.h.
ajordan [Wed, 23 May 2007 23:56:59 +0000 (23:56 +0000)]
* src/vm/jit/sparc64/Makefile.am: Added missing emit.h.

16 years ago* src/vm/jit/sparc64/Makefile.am:
ajordan [Wed, 23 May 2007 22:54:38 +0000 (22:54 +0000)]
* src/vm/jit/sparc64/Makefile.am:
md-asm.h was not properly added to noinst_HEADERS.

16 years ago* configure.ac (AM_INIT_AUTOMAKE): Added dist-bzip2.
twisti [Wed, 23 May 2007 22:04:49 +0000 (22:04 +0000)]
* configure.ac (AM_INIT_AUTOMAKE): Added dist-bzip2.

16 years ago* src/threads/threads-common.h (THREAD_STATE_NEW)
twisti [Wed, 23 May 2007 19:37:26 +0000 (19:37 +0000)]
* src/threads/threads-common.h (THREAD_STATE_NEW)
(THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
(THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Start states
with 1, so we can catch unset states.

16 years ago* src/vm/jit/powerpc64/linux/md-os.c (md_critical_section_restart):
twisti [Wed, 23 May 2007 19:11:10 +0000 (19:11 +0000)]
* src/vm/jit/powerpc64/linux/md-os.c (md_critical_section_restart):
Fixed typo.

16 years ago* src/vm/jit/mips/Makefile.am (DIST_SUBDIRS): Added uclinux.
twisti [Wed, 23 May 2007 18:28:01 +0000 (18:28 +0000)]
* src/vm/jit/mips/Makefile.am (DIST_SUBDIRS): Added uclinux.

16 years ago* src/vmcore/statistics.c (statistics_print_memory_usage): Smaller
twisti [Wed, 23 May 2007 18:08:42 +0000 (18:08 +0000)]
* src/vmcore/statistics.c (statistics_print_memory_usage): Smaller
output changes.

16 years ago* src/vm/jit/arm/linux/md-os.c,
twisti [Wed, 23 May 2007 18:05:26 +0000 (18:05 +0000)]
* src/vm/jit/arm/linux/md-os.c,
src/vm/jit/alpha/linux/md-os.c,
src/vm/jit/i386/linux/md-os.c,
src/vm/jit/powerpc/linux/md-os.c,
src/vm/jit/powerpc64/linux/md-os.c,
src/vm/jit/x86_64/linux/md-os.c (md_critical_section_restart): Removed
debug output.

16 years ago* src/threads/native/lock.c: Set Id keyword.
twisti [Wed, 23 May 2007 17:58:18 +0000 (17:58 +0000)]
* src/threads/native/lock.c: Set Id keyword.
* src/threads/native/lock.h: Likewise.

16 years ago* src/native/vm/gnu/java_lang_VMClassLoader.c (getPrimitiveClass):
twisti [Wed, 23 May 2007 17:56:59 +0000 (17:56 +0000)]
* src/native/vm/gnu/java_lang_VMClassLoader.c (getPrimitiveClass):
Return NULL in error case.

16 years ago* src/vm/jit/optimizing/profile.c: Set Id keyword.
twisti [Wed, 23 May 2007 17:53:13 +0000 (17:53 +0000)]
* src/vm/jit/optimizing/profile.c: Set Id keyword.

16 years ago* src/vm/jit/optimizing/profile.c (profile_thread): Replaced table-
twisti [Wed, 23 May 2007 17:51:43 +0000 (17:51 +0000)]
* src/vm/jit/optimizing/profile.c (profile_thread): Replaced table-
with list-functions.

16 years ago* src/vm/vm.c (vm_create): Use vm_abort for profile_start_thread.
twisti [Wed, 23 May 2007 17:51:04 +0000 (17:51 +0000)]
* src/vm/vm.c (vm_create): Use vm_abort for profile_start_thread.

16 years ago* src/vm/jit/jit.c (jit_compile_intern): Fixed typo.
twisti [Wed, 23 May 2007 17:46:27 +0000 (17:46 +0000)]
* src/vm/jit/jit.c (jit_compile_intern): Fixed typo.

16 years ago* src/vm/exceptions.c (exceptions_new_hardware_exception): Fixed
twisti [Wed, 23 May 2007 16:00:13 +0000 (16:00 +0000)]
* src/vm/exceptions.c (exceptions_new_hardware_exception): Fixed
warning.

16 years ago* src/vm/jit/x86_64/md.c (md_get_method_patch_address): Fixed warning.
twisti [Wed, 23 May 2007 15:57:41 +0000 (15:57 +0000)]
* src/vm/jit/x86_64/md.c (md_get_method_patch_address): Fixed warning.
* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigsegv):
Likewise.

16 years ago* configure.ac (OPT_CFLAGS): Changed to -O2.
twisti [Wed, 23 May 2007 15:43:53 +0000 (15:43 +0000)]
* configure.ac (OPT_CFLAGS): Changed to -O2.

16 years ago* src/vm/jit/powerpc64/codegen.c (codegen_emit): ICMD_INSTANCEOF:
twisti [Wed, 23 May 2007 15:25:18 +0000 (15:25 +0000)]
* src/vm/jit/powerpc64/codegen.c (codegen_emit): ICMD_INSTANCEOF:
Removed unused supervftbl.

* src/vm/jit/emit-common.h [__POWERPC64__] (emit_bnan): Enabled.

16 years ago* src/vm/jit/powerpc64/emit.c (MCODECHECK): Increase values to fix canary corruption.
tbfg [Wed, 23 May 2007 14:15:00 +0000 (14:15 +0000)]
* src/vm/jit/powerpc64/emit.c (MCODECHECK): Increase values to fix canary corruption.
* src/vm/jit/powerpc64/codegen.c (MCODECHECK): Increase values to fix canary corruption.

16 years ago* src/vmcore/linker.c (linker_compute_subclasses): We don't ship the
twisti [Wed, 23 May 2007 13:09:28 +0000 (13:09 +0000)]
* src/vmcore/linker.c (linker_compute_subclasses): We don't ship the
critical-section stuff with this release, since it's broken on some
architectures because of boehm.

16 years ago* src/vm/exceptions.c (threads/lock-common.h): Added.
twisti [Wed, 23 May 2007 12:40:31 +0000 (12:40 +0000)]
* src/vm/exceptions.c (threads/lock-common.h): Added.
[ENABLE_THREADS] (threads/native/threads.h): Removed.
[!ENABLE_THREADS] (threads/none/threads.h): Likewise.
(threads/threads-common.h): Added.
(new_exception_message): Removed.
(exceptions_throw_classcircularityerror): Use
exceptions_throw_utf_utf.
(exceptions_throw_classformaterror): Likewise.
(classnotfoundexception_to_noclassdeffounderror): Fixed warning.
(exceptions_throw_incompatibleclasschangeerror): Use
exceptions_throw_utf_utf.
(exceptions_throw_internalerror): Likewise.
(exceptions_throw_unsupportedclassversionerror): Likewise.
(exceptions_throw_verifyerror): Likewise.
(exceptions_throw_verifyerror_for_stack): Likewise.
(exceptions_new_arithmeticexception): Likewise.
(exceptions_new_classcastexception): Use exceptions_new_class_utf.
(exceptions_print_exception): Fixed warnings.

* src/vmcore/utf8.c (utf_division_by_zero): Added.
(utf8_init): Likewise.

* src/vmcore/utf8.h (utf_division_by_zero): Likewise.

16 years ago* src/vm/exceptions.c (new_exception_int): Removed.
twisti [Wed, 23 May 2007 11:59:51 +0000 (11:59 +0000)]
* src/vm/exceptions.c (new_exception_int): Removed.
* src/vm/exceptions.h (new_exception_int): Likewise.

* src/native/native.c (native_new_and_init_int): Likewise.
* src/native/native.h (native_new_and_init_int): Likewise.

16 years ago* src/vm/jit/m68k/codegen.c (codegen_emit): Remove NOP after each
tbfg [Wed, 23 May 2007 09:40:05 +0000 (09:40 +0000)]
* src/vm/jit/m68k/codegen.c (codegen_emit): Remove NOP after each
ICMD.
Add NOP generation at end of basci block when patcher is longer than
instruction to be patched.

* src/vm/jit/m68k/patcher.c (patcher_get_putfield): Implemented.

* src/vm/jit/m68k/codegen.h (COMPILERSTUB_CODESIZE): Correct value.

* src/vm/jit/codegen-common.c (codegen_increase): Enable NOP after
patcher generation at end of basic block.

16 years ago* src/vm/jit/abi.h (abi_registers_address_name): Added.
tbfg [Wed, 23 May 2007 09:37:37 +0000 (09:37 +0000)]
* src/vm/jit/abi.h (abi_registers_address_name): Added.
(abi_registers_address_argument): Likewise.
(abi_registers_address_saved): Likewise.
(abi_registers_address_temporary): Likewise.

17 years ago* src/vm/jit/x86_64/md.c (md_get_method_patch_address): Replaced
twisti [Tue, 22 May 2007 11:18:15 +0000 (11:18 +0000)]
* src/vm/jit/x86_64/md.c (md_get_method_patch_address): Replaced
assert with vm_abort.

17 years ago* src/vm/jit/arm/codegen.c (codegen_emit_stub_native): Removed obsolete SPLIT-stuff.
michi [Tue, 22 May 2007 10:07:21 +0000 (10:07 +0000)]
* src/vm/jit/arm/codegen.c (codegen_emit_stub_native): Removed obsolete SPLIT-stuff.

17 years ago* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Removed obsolete SPLIT-stuff.
michi [Tue, 22 May 2007 07:21:08 +0000 (07:21 +0000)]
* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Removed obsolete SPLIT-stuff.

17 years ago* src/vm/jit/arm/md-abi.c (md_param_alloc): Align stack arguments as well.
michi [Tue, 22 May 2007 07:00:57 +0000 (07:00 +0000)]
* src/vm/jit/arm/md-abi.c (md_param_alloc): Align stack arguments as well.
* src/vm/jit/arm/asmpart.S (asm_vm_call_method): Use EABI internally.

17 years ago* src/vm/jit/arm/md-abi.c (md_param_alloc): Use EABI internally.
twisti [Mon, 21 May 2007 14:42:28 +0000 (14:42 +0000)]
* src/vm/jit/arm/md-abi.c (md_param_alloc): Use EABI internally.
(ALIGN_2): Removed.

* src/vm/jit/arm/codegen.c (codegen_emit): Removed SPLIT-stuff.
* src/vm/jit/arm/emit.c (emit_store): Likewise.

17 years ago* src/vm/global.h (ALIGN_2): Added.
twisti [Mon, 21 May 2007 14:40:32 +0000 (14:40 +0000)]
* src/vm/global.h (ALIGN_2): Added.

17 years ago* src/vm/jit/arm/codegen.h (M_EORLE): Added.
michi [Mon, 21 May 2007 11:45:31 +0000 (11:45 +0000)]
* src/vm/jit/arm/codegen.h (M_EORLE): Added.

* src/vm/jit/arm/codegen.c (codegen_emit): Fixed superindex overflow
for ICMD_INSTANCEOF and ICMD_CHECKCAST.

* src/vm/jit/arm/patcher.c (patcher_checkcast_instanceof_interface):
Adapted patcher to above changes.

17 years ago* src/native/include/Makefile.am (CLEANFILES): Simply clean an *.h
twisti [Mon, 21 May 2007 08:48:46 +0000 (08:48 +0000)]
* src/native/include/Makefile.am (CLEANFILES): Simply clean an *.h
files.

17 years ago* src/native/jni.c (_Jv_jni_CallLongMethodA): New function.
twisti [Mon, 21 May 2007 08:27:06 +0000 (08:27 +0000)]
* src/native/jni.c (_Jv_jni_CallLongMethodA): New function.
(_Jv_jni_CallFloatMethodA): Likewise.
(_Jv_jni_CallDoubleMethodA): Likewise.
(_Jv_JNI_CallStaticBooleanMethodA): Implemented.
(_Jv_JNI_CallStaticByteMethodA): Likewise.
(_Jv_JNI_CallStaticCharMethodA): Likewise.
(_Jv_JNI_CallStaticShortMethodA): Likewise.
(_Jv_JNI_CallStaticIntMethodA): Likewise.
(_Jv_JNI_CallStaticLongMethodA): Likewise.
(_Jv_JNI_CallStaticFloatMethodA): Likewise.
(_Jv_JNI_CallStaticDoubleMethodA): Likewise.

17 years ago* src/native/vm/cldc1.1/java_lang_Object.c (getClass): Fixed
twisti [Fri, 18 May 2007 15:05:32 +0000 (15:05 +0000)]
* src/native/vm/cldc1.1/java_lang_Object.c (getClass): Fixed
signature.

17 years ago* src/vmcore/statistics.c (count_nstub_len): Renamed to
twisti [Fri, 18 May 2007 14:24:21 +0000 (14:24 +0000)]
* src/vmcore/statistics.c (count_nstub_len): Renamed to
size_stub_native.
(statistics_print_memory_usage): Likewise.

* src/vmcore/statistics.h: Likewise.

* src/vm/jit/codegen-common.c (codegen_generate_stub_native):
Likewise, moved statistics-calculation after codegen_finish(), so
actually something is counted.

17 years ago* src/toolbox/list.c (list_create): Use LOCK_INIT_OBJECT_LOCK-macro.
twisti [Fri, 18 May 2007 14:22:19 +0000 (14:22 +0000)]
* src/toolbox/list.c (list_create): Use LOCK_INIT_OBJECT_LOCK-macro.

17 years ago* src/threads/threads-common.c (threads_thread_get_state): Fixed
twisti [Fri, 18 May 2007 14:17:34 +0000 (14:17 +0000)]
* src/threads/threads-common.c (threads_thread_get_state): Fixed
compiler warning.
(threads_thread_is_alive): Likewise.

17 years ago* src/native/vm/cldc1.1/java_lang_String.c (methods): Removed
twisti [Fri, 18 May 2007 13:45:54 +0000 (13:45 +0000)]
* src/native/vm/cldc1.1/java_lang_String.c (methods): Removed
quick-hack.

* src/native/vm/cldc1.1/java_lang_Throwable.c (fillInStackTrace):
Fixed signature.

17 years ago* src/native/native.c (native_tree_native_methods_comparator): Compare
twisti [Fri, 18 May 2007 13:12:09 +0000 (13:12 +0000)]
* src/native/native.c (native_tree_native_methods_comparator): Compare
classname, name and descriptor.
(native_method_register): Set all structure members.
(native_method_find): Changed argument-type to methodinfo.
(native_resolve_function): Likewise.

* src/native/native.h (native_methods_node_t): Added classname and
descriptor, renamed method to function.

* src/native/vm/gnu/java_lang_VMClass.c: Updated wrong signatures.
* src/native/vm/gnu/java_lang_VMObject.c: Likewise.
* src/native/vm/gnu/java_lang_VMThread.c: Likewise.
* src/native/vm/gnu/java_lang_reflect_Constructor.c: Likewise.

17 years ago* src/native/native.c (native_library_open): New function.
twisti [Wed, 16 May 2007 09:01:10 +0000 (09:01 +0000)]
* src/native/native.c (native_library_open): New function.
(native_hashtable_library_add): Renamed to native_library_add.
(native_hashtable_library_find): Renamed to native_library_find.
* src/native/native.h: Likewise.

* src/native/vm/java_lang_Runtime.c (loadLibrary): Use
native_library_open.

17 years ago* src/native/native.c: Removed all native-includes.
twisti [Wed, 16 May 2007 08:02:52 +0000 (08:02 +0000)]
* src/native/native.c: Removed all native-includes.
(dummynativetable): Removed.
(mainhandle): Likewise.
(native_init): Don't dlopen libjvm, initialize the native-methods
tree.
(native_tree_native_methods_comparator): New function.
(native_method_symbol): Likewise.
(native_method_find): Likewise.
(native_resolve_function): Use native-methods tree for internal native
methods.

* src/native/native.h (native/jni.h): Added.
(NATIVE_METHODS_COUNT): Defined.
(native_methods_node_t): New structure.
(native_method_register): Added.

* src/native/vm/nativevm.c: New file.
* src/native/vm/nativevm.h: Likewise.

* src/native/vm/Makefile.am (libnativevm_la_SOURCES): Added
nativevm.[ch].

* src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c,
src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c,
src/native/vm/cldc1.1/com_sun_cldchi_io_ConsoleOutputStream.c,
src/native/vm/cldc1.1/com_sun_cldchi_jvm_JVM.c,
src/native/vm/cldc1.1/java_lang_Class.c,
src/native/vm/cldc1.1/java_lang_Double.c,
src/native/vm/cldc1.1/java_lang_Float.c,
src/native/vm/cldc1.1/java_lang_Math.c,
src/native/vm/cldc1.1/java_lang_Object.c,
src/native/vm/cldc1.1/java_lang_Runtime.c,
src/native/vm/cldc1.1/java_lang_String.c,
src/native/vm/cldc1.1/java_lang_System.c,
src/native/vm/cldc1.1/java_lang_Thread.c,
src/native/vm/cldc1.1/java_lang_Throwable.c,
src/native/vm/gnu/gnu_classpath_VMStackWalker.c,
src/native/vm/gnu/gnu_classpath_VMSystemProperties.c,
src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
src/native/vm/gnu/gnu_java_lang_management_VMMemoryMXBeanImpl.c,
src/native/vm/gnu/gnu_java_lang_management_VMRuntimeMXBeanImpl.c,
src/native/vm/gnu/gnu_java_lang_management_VMThreadMXBeanImpl.c,
src/native/vm/gnu/java_lang_VMClass.c,
src/native/vm/gnu/java_lang_VMClassLoader.c,
src/native/vm/gnu/java_lang_VMObject.c,
src/native/vm/gnu/java_lang_VMRuntime.c,
src/native/vm/gnu/java_lang_VMString.c,
src/native/vm/gnu/java_lang_VMSystem.c,
src/native/vm/gnu/java_lang_VMThread.c,
src/native/vm/gnu/java_lang_VMThrowable.c,
src/native/vm/gnu/java_lang_management_VMManagementFactory.c,
src/native/vm/gnu/java_lang_reflect_Constructor.c,
src/native/vm/gnu/java_lang_reflect_Field.c,
src/native/vm/gnu/java_lang_reflect_Method.c,
src/native/vm/gnu/java_lang_reflect_VMProxy.c,
src/native/vm/gnu/java_security_VMAccessController.c,
src/native/vm/gnu/sun_misc_Unsafe.c: Added methods table and init
function to register the native methods.

17 years ago* src/vm/jit/powerpc64/patcher.c
tbfg [Tue, 15 May 2007 10:32:16 +0000 (10:32 +0000)]
* src/vm/jit/powerpc64/patcher.c
(patcher_resolve_classref_to_classinfo): Patch back original code.

(patcher_resolve_classref_to_vftbl): Likewise.
(patcher_resolve_classref_to_flags): Likewise.

* src/vm/jit/powerpc64/asmpart.S (DARWIN): Removed all darwin
ifdefed code for readability. Needs to be ported carefully anyways.

(asm_vm_call_method): When handling arguments treat address type as
long.

17 years ago* src/vm/jit/codegen-common.c: (codegen_emit_phi_moves): Added. (Former
christian [Tue, 15 May 2007 09:55:17 +0000 (09:55 +0000)]
* src/vm/jit/codegen-common.c: (codegen_emit_phi_moves): Added. (Former
codegen_insert_phi_moves from codegen.c)

* src/vm/jit/codegen-common.h: Function prototype for codegen_emit_phi_moves
added.

* src/vm/jit/optimizing/lsra.c: Adapted to new instruction format and unified
variables.

* src/vm/jit/optimizing/lsra.h: Likewise.

* src/vm/jit/optimizing/ssa.c: Likewise.

* src/vm/jit/optimizing/ssa.h: Likewise.

* src/vm/jit/optimizing/graph.c: Likewise.

* src/vm/jit/optimizing/graph.h: Likewise.

* src/vm/jit/optimizing/dominators.c: Likewise.

* src/vm/jit/optimizing/lifetimes.c: Likewise and changed lifetime anaylsis to
a worklist algorithmus.

* src/vm/jit/optimizing/lifetimes.h: Likewise.

* src/vm/jit/i386/codegen.c: (codegen_insert_phi_moves): Moved to
src/vm/jit/codegen-common.c codegen_emit_phi_moves
(codegen_emit): Necessary Adaptions for SSA.

* src/toolbox/worklist.c: (wl_reset): Added.

* src/toolbox/worklist.h: Function Prototype for wl_reset added.

* src/vm/jit/stack.c: Removed old SSA specific code.

17 years ago* builtin.c (builtin_ldiv): Needed when DISABLE_GC.
tbfg [Tue, 15 May 2007 09:25:27 +0000 (09:25 +0000)]
* builtin.c (builtin_ldiv): Needed when DISABLE_GC.

17 years ago* src/native/native.c (native_class_getdeclaredannotations): Removed.
twisti [Mon, 14 May 2007 17:25:33 +0000 (17:25 +0000)]
* src/native/native.c (native_class_getdeclaredannotations): Removed.

17 years ago* src/toolbox/list.c (list_add_first): Call list_add_first_unsynced.
twisti [Mon, 14 May 2007 14:11:33 +0000 (14:11 +0000)]
* src/toolbox/list.c (list_add_first): Call list_add_first_unsynced.
(list_add_first_unsynced): New function.
* src/toolbox/list.h (list_add_first_unsynced): Added.

17 years ago* src/threads/threads-common.c (threads_create_thread): Renamed to
twisti [Mon, 14 May 2007 13:29:32 +0000 (13:29 +0000)]
* src/threads/threads-common.c (threads_create_thread): Renamed to
threads_thread_new.
(threads_thread_free): New function.
(threads_preinit): Renamed threads_create_thread to
threads_thread_new.
(threads_thread_start_internal): Likewise.
(threads_thread_start): Likewise.

* src/threads/threads-common.h (threads_create_thread): Renamed to
threads_thread_new.
(threads_thread_free): Added.
(threads_init_threadobject): Renamed to threads_impl_thread_new.
(threads_impl_thread_free): Added.

* src/threads/native/threads.c (toolbox/avl.h): Removed.
(threadattr): Likewise.
(threads_init_threadobject): Renamed to threads_impl_thread_new.
(threads_impl_thread_free): New function.
(threads_init): Use local pthread_attr_t.
(threads_impl_thread_start): Use pthread_attr_setdetachstate (fixes
memory leak), check more return values of pthread-calls.
(threads_attach_current_thread): Renamed threads_create_thread to
threads_thread_new.
(threads_detach_thread): Removed lock-record pools comment, call
threads_thread_free.

17 years ago* src/vm/jit/dseg.h (dseg_adddata): Removed warning due to typo.
tbfg [Mon, 14 May 2007 11:15:33 +0000 (11:15 +0000)]
* src/vm/jit/dseg.h (dseg_adddata): Removed warning due to typo.

* src/vm/jit/m68k/arch.h (SUPPORT_LONG) Defined.
(SUPPORT_LONG_ADD): Defined.
(SUPPORT_CONST_LOGICAL): Defined.

* src/vm/jit/m68k/codegen.c (ICMD_LADD): Implemented.
(ICMD_LADDCONST): Implemented.
(ICMD_LSUB): Implemented.
(ICMD_LSUBCONST): Implemented.
(ICMD_LNEG): Implemented.

* src/vm/jit/m68k/codegen.h (M_ISUBX): Added.
(M_INEGX): Added.

17 years ago* configure.ac (AC_CHECK_HEADERS): Added time.h.
twisti [Fri, 11 May 2007 22:33:15 +0000 (22:33 +0000)]
* configure.ac (AC_CHECK_HEADERS): Added time.h.
(AC_CHECK_FUNCS): Added localtime, localtime_r, time.

* src/vmcore/statistics.c [HAVE_TIME_H] (time.h): Added.
(statistics_print_date): New function.
* src/vmcore/statistics.h (statistics_print_date): Added.

* src/mm/memory.c (memory_thread) [ENABLE_STATISTICS]: Call
statistics_print_date.

17 years ago* src/vmcore/statistics.c (statistics_print_memory_usage): Use
twisti [Fri, 11 May 2007 21:18:51 +0000 (21:18 +0000)]
* src/vmcore/statistics.c (statistics_print_memory_usage): Use
log_println instead of printf.

17 years ago* src/vm/jit/arm/codegen.c (codegen_emit): Use
twisti [Fri, 11 May 2007 20:35:16 +0000 (20:35 +0000)]
* src/vm/jit/arm/codegen.c (codegen_emit): Use
CODEGEN_CRITICAL_SECTION_* macros.

* src/vm/jit/arm/linux/md-os.c (thread_restartcriticalsection):
Renamed to md_critical_section_restart.

17 years ago* src/threads/threads-common.c (threads_create_thread): Removed
twisti [Fri, 11 May 2007 19:31:04 +0000 (19:31 +0000)]
* src/threads/threads-common.c (threads_create_thread): Removed
lock_init_execution_env.

* src/threads/lock-common.h (lock_init_execution_env): Removed.
(lock_record_free_pools): Likewise.

* src/threads/native/threads.h (threadobject): Removed ee.

* src/threads/native/lock.c (vm/finalizer.h): Added.
[ENABLE_GC_BOEHM] (mm/boehm-gc/include/gc.h): Likewise.
(lock_global_pool): Removed.
(lock_global_pool_lock): Likewise.
(lock_init): Don't initialize lock_global_pool_lock.
(lock_record_init): Removed.
(lock_init_execution_env): Likewise.
(lock_record_alloc_new_pool): Likewise.
(lock_record_alloc_pool): Likewise.
(lock_record_free_pools): Likewise.
(lock_record_alloc): Likewise.
(lock_record_recycle): Likewise.
(lock_hashtable_get_lock_record): Renamed to lock_hashtable_get.
(lock_record_new): New function.
(lock_record_free): Likewise.
(lock_hashtable_remove): Likewise.
[ENABLE_GC_BOEHM] (lock_record_finalizer): Likewise.

* src/threads/native/lock.h (lock_execution_env_t): Removed.
(lock_record_pool_header_t): Likewise.
(lock_record_pool_t): Likewise.
(lock_record_t): Renamed obj to object, removed nextfree.
[ENABLE_JVMTI] (lock_global_pool_lock, lock_global_pool): Removed.

* src/vmcore/statistics.c (size_lock_record_pool): Renamed to
size_lock_record.
(statistics_print_memory_usage): Likewise.
* src/vmcore/statistics.h: Likewise.

17 years ago* src/vm/jit/m68k/linux/md-abi.h (ADR_SAV_CNT): Increased by one (%fp).
tbfg [Fri, 11 May 2007 18:58:24 +0000 (18:58 +0000)]
* src/vm/jit/m68k/linux/md-abi.h (ADR_SAV_CNT): Increased by one (%fp).
(ADR_RES_CNT): Decreased by one (%fp).

* src/vm/jit/m68k/linux/md-abi.c (nregdescadr): Declared %fp a
REG_SAV.

* src/vm/jit/m68k/arch.h (SUPPORT_DIVISION): Defined.

* src/vm/jit/m68k/asmpart.S (asm_handle_exception): Additional
logic to restore %fp when unwinding the stack.

17 years ago* src/threads/native/threads.h (threadobject): Removed next and prev.
twisti [Fri, 11 May 2007 18:23:27 +0000 (18:23 +0000)]
* src/threads/native/threads.h (threadobject): Removed next and prev.

17 years ago* src/vm/jit/m68k/codegen.c (codegen_emit): Fix stackframesize
tbfg [Fri, 11 May 2007 17:15:08 +0000 (17:15 +0000)]
* src/vm/jit/m68k/codegen.c (codegen_emit): Fix stackframesize
allocation in not synchronized methods which call a builtin returning
a double. Merged with ENABLE_THREADS case.
Added code to copy interface registers.

* src/vm/jit/m68k/asmpart.S (asm_handle_exception):
Save temporary registers, dunno if really needed, but its a
slow path anyways.

17 years ago* src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Make SOFTFLOAT clean.
tbfg [Thu, 10 May 2007 14:34:05 +0000 (14:34 +0000)]
* src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Make SOFTFLOAT clean.
(emit_verbosecall_exit): Likewise.

* src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Mark comment about
gcc abi wiredness.

* src/vm/jit/m68k/codegen.h (M_D2F): Fixed.
(M_F2D): Fixed.

17 years ago* src/vmcore/options.c (opt_verbosethreads): Added.
twisti [Thu, 10 May 2007 14:04:05 +0000 (14:04 +0000)]
* src/vmcore/options.c (opt_verbosethreads): Added.
* src/vmcore/options.h (opt_verbosethreads): Likewise.

* src/vm/vm.c (XXusage): Added -verbose:threads.
(vm_create): Likewise.

* src/threads/threads-common.c (threads_create_thread): Renamed
variable thread to t.
(threads_thread_print_info): New function.
(threads_dump): Use threads_thread_print_info.

* src/threads/threads-common.h (threads_thread_print_info): Added.

* src/threads/native/threads.c (threads_init) [!NDEBUG]: Added
-verbose:threads debug-output.
(threads_startup_thread): Likewise.
(threads_attach_current_thread): Likewise.
(threads_detach_thread): Likewise.

17 years ago* src/threads/threads-common.c (threads_thread_start_internal): Set
twisti [Thu, 10 May 2007 13:27:29 +0000 (13:27 +0000)]
* src/threads/threads-common.c (threads_thread_start_internal): Set
thread-flags.
(threads_thread_start): Likewise.

* src/threads/native/threads.c (threads_startup_thread): Don't set
thread-flags.

17 years ago* src/vm/jit/powerpc64/patcher.c (patcher_checkcast_interface):
tbfg [Thu, 10 May 2007 12:50:45 +0000 (12:50 +0000)]
* src/vm/jit/powerpc64/patcher.c (patcher_checkcast_interface):
Fixed not flushing all bytes written.

17 years ago* src/vm/jit/powerpc64/codegen.c (ICMD_CHECKCAST): Use
tbfg [Wed, 9 May 2007 16:37:20 +0000 (16:37 +0000)]
* src/vm/jit/powerpc64/codegen.c (ICMD_CHECKCAST): Use
branch_label_* instead of harcoded jump offsets.

(ICMD_INSTANCEOF): Likewise.

17 years ago* src/lib/Makefile.am (VM_JAVA_FILES): Renamed vm/reference/ to gnu/.
twisti [Wed, 9 May 2007 16:05:58 +0000 (16:05 +0000)]
* src/lib/Makefile.am (VM_JAVA_FILES): Renamed vm/reference/ to gnu/.

* src/lib/vm: Removed.
* src/lib/gnu: Added.
* src/lib/gnu/java: Likewise.
* src/lib/gnu/gnu: Likewise.

--HG--
rename : src/lib/vm/reference/gnu/classpath/VMStackWalker.java => src/lib/gnu/gnu/classpath/VMStackWalker.java
rename : src/lib/vm/reference/gnu/classpath/VMSystemProperties.java => src/lib/gnu/gnu/classpath/VMSystemProperties.java
rename : src/lib/vm/reference/gnu/java/lang/management/VMMemoryMXBeanImpl.java => src/lib/gnu/gnu/java/lang/management/VMMemoryMXBeanImpl.java
rename : src/lib/vm/reference/gnu/java/lang/management/VMRuntimeMXBeanImpl.java => src/lib/gnu/gnu/java/lang/management/VMRuntimeMXBeanImpl.java
rename : src/lib/vm/reference/java/lang/VMClassLoader.java => src/lib/gnu/java/lang/VMClassLoader.java
rename : src/lib/vm/reference/java/lang/VMString.java => src/lib/gnu/java/lang/VMString.java
rename : src/lib/vm/reference/java/lang/VMThread.java => src/lib/gnu/java/lang/VMThread.java
rename : src/lib/vm/reference/java/lang/VMThrowable.java => src/lib/gnu/java/lang/VMThrowable.java
rename : src/lib/vm/reference/java/security/VMAccessController.java => src/lib/gnu/java/security/VMAccessController.java

17 years ago* src/vm/jit/m68k/linux/md-abi.h (LA_SIZE_IN_POINTERS): Defined 0.
tbfg [Wed, 9 May 2007 08:52:11 +0000 (08:52 +0000)]
* src/vm/jit/m68k/linux/md-abi.h (LA_SIZE_IN_POINTERS): Defined 0.
(PA_SIZE_IN_POINTERS): Removed.
(PA_SIZE): Removed.
(LA_LR_OFFSET): Removed.
(LA_SIZE_ALIGNED): Removed.

* src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Removed
linking instructions, save only used registers.

(emit_verbosecall_exit): Likewise.

* src/vm/jit/m68k/arch.h (SUPPORT_FLOAT): Depends on
configure option ENABLE_SOFTFLOAT.

* src/vm/jit/m68k/codegen.c (codegen_emit): Use M_FSTORE/M_FLOAT
to save/restore float registers without converting any values.
Fixed offset of IsSync.

(codegen_emit_stub_native): Move floating point return values
into floating point registers.

* src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Save/restore
floating point registers.

(asm_call_jit_compiler): Save/restore volatile floating point
registers.

(asm_patcher_wrapper): Likewise.

(asm_handle_exception): Use fmovemd instructions to restore
floatng point registers without converting.

* src/vm/jit/m68k/codegen.h (M_FSTORE): Added.
(M_FLOAT): Added.

17 years ago* src/vm/jit/powerpc64/linux/md-os.c (thread_restartcriticalsection):
tbfg [Wed, 9 May 2007 08:36:16 +0000 (08:36 +0000)]
* src/vm/jit/powerpc64/linux/md-os.c (thread_restartcriticalsection):
Renamed to md_critical_section_restart.

* src/vm/jit/powerpc64/codegen.c (codegen_emit): Use
CODEGEN_CRITICAL_SECTION_* macros.

17 years ago* src/configure.ac (AC_CHECK_HEADERS): Added string.h.
twisti [Tue, 8 May 2007 13:03:07 +0000 (13:03 +0000)]
* src/configure.ac (AC_CHECK_HEADERS): Added string.h.
(AC_CHECK_FUNCS): Added strdup.

* src/src/vmcore/options.c [HAVE_STRING_H] (string.h): Added #ifdef.
(options_get) HAVE_STRDUP]: Added.

17 years ago* src/vm/jit/alpha/codegen.c (codegen_emit): Use
twisti [Mon, 7 May 2007 21:34:01 +0000 (21:34 +0000)]
* src/vm/jit/alpha/codegen.c (codegen_emit): Use
CODEGEN_CRITICAL_SECTION_* macros.

* src/vm/jit/alpha/linux/md-os.c (thread_restartcriticalsection):
Renamed to md_critical_section_restart.

17 years ago* src/threads/native/threads.c (mainthreadobj): Removed.
twisti [Mon, 7 May 2007 21:29:55 +0000 (21:29 +0000)]
* src/threads/native/threads.c (mainthreadobj): Removed.
* src/threads/native/threads.h (mainthreadobj): Likewise.

* src/vm/jit/optimizing/profile.c (threads/native/threads.h):
Likewise.
(profile_thread): Rewritten thread iteration.

17 years ago* src/vm/jit/sparc64/codegen.c (codegen_emit): Adapted to critical section renames.
ajordan [Mon, 7 May 2007 15:07:03 +0000 (15:07 +0000)]
* src/vm/jit/sparc64/codegen.c (codegen_emit): Adapted to critical section renames.
* src/vm/jit/sparc64/linux/md-os.c: Likewise.

17 years ago* src/vm/jit/m68k/codegen.c (ICMD_FNEG): Implemented.
tbfg [Mon, 7 May 2007 14:26:41 +0000 (14:26 +0000)]
* src/vm/jit/m68k/codegen.c (ICMD_FNEG): Implemented.
(ICMD_DNEG): Implemented.

* src/vm/jit/m68k/asmpart.S (asm_call_jit_compiler):
Store volatile floatregisters.
(asm_patcher_wrapper): Likewise.
(asm_handle_exception): Restore float registers.

* src/vm/jit/m68k/codegen.h (M_FNEG): Added.
(M_DNEG): Added.

17 years ago* tests/exception_restore_registers.java: New test, tests if
tbfg [Mon, 7 May 2007 14:23:32 +0000 (14:23 +0000)]
* tests/exception_restore_registers.java: New test, tests if
variables get restored in case of exceptions.

* tests/exception_restore_registers.output: New file, expected
output.

* tests/Makefile.am: Added exception_restore_registers target.

17 years ago* configure.ac (AC_CONFIG_FILES): Added
twisti [Mon, 7 May 2007 14:16:54 +0000 (14:16 +0000)]
* configure.ac (AC_CONFIG_FILES): Added
src/vm/jit/mips/uclinux/Makefile.

* src/vm/jit/mips/uclinux: New directory.
* src/vm/jit/mips/uclinux/md-os.c: New file.
* src/vm/jit/mips/uclinux/Makefile.am: Likewise.

17 years ago* src/vm/jit/mips/codegen.c (codegen_emit): Use
twisti [Mon, 7 May 2007 14:13:45 +0000 (14:13 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): Use
CODEGEN_CRITICAL_SECTION_* macros.

* src/vm/jit/mips/linux/md-os.c (thread_restartcriticalsection):
Renamed to md_critical_section_restart.