cacao.git
16 years ago* m4/classpath.m4: Added Id keyword.
twisti [Fri, 22 Jun 2007 13:29:38 +0000 (13:29 +0000)]
* m4/classpath.m4: Added Id keyword.

16 years ago* configure.ac,
twisti [Fri, 22 Jun 2007 11:15:47 +0000 (11:15 +0000)]
* configure.ac,
contrib/mapfile-vers-product,
m4/classpath.m4,
src/cacao/Makefile.am,
src/lib/Makefile.am,
src/lib/gnu/java/lang/reflect,
src/lib/gnu/java/lang/reflect/Field.java,
src/lib/gnu/java/lang/reflect/Method.java,
src/lib/gnu/sun,
src/lib/gnu/sun/misc,
src/lib/gnu/sun/misc/Unsafe.java,
src/native/include/Makefile.am,
src/native/jni.c,
src/native/jni.h,
src/native/native.c,
src/native/native.h,
src/native/vm/Makefile.am,
src/native/vm/gnu/java_lang_reflect_Field.c,
src/native/vm/gnu/java_lang_reflect_Method.c,
src/native/vm/java_lang_Class.c,
src/native/vm/java_lang_ClassLoader.c,
src/native/vm/java_lang_Object.c,
src/native/vm/java_lang_Object.h,
src/native/vm/java_lang_Thread.c,
src/native/vm/java_lang_reflect_Constructor.c,
src/native/vm/java_lang_reflect_Method.c,
src/native/vm/nativevm.c,
src/native/vm/nativevm.h,
src/native/vm/sun,
src/native/vm/sun/Makefile.am,
src/native/vm/sun/jvm.c,
src/native/vm/sun_misc_Unsafe.c,
src/threads/native/threads.c,
src/threads/threads-common.c,
src/vm/properties.c,
src/vm/vm.c,
src/vm/vm.h,
src/vmcore/class.h,
src/vmcore/field.c,
src/vmcore/field.h,
src/vmcore/utf8.c,
src/vmcore/utf8.h: Initial support for using OpenJDK libraries as Java
core libraries.

16 years ago* src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Fixed for 8 byte stack slots.
tbfg [Fri, 22 Jun 2007 09:37:00 +0000 (09:37 +0000)]
* src/vm/jit/m68k/emit.c (emit_verbosecall_enter): Fixed for 8 byte stack slots.
* src/vm/jit/m68k/asmpart.S (asm_vm_call_method): Fixed location of method address.

16 years ago* src/vmcore/options.c (opt_ThreadStackSize): Added.
twisti [Fri, 22 Jun 2007 08:50:37 +0000 (08:50 +0000)]
* src/vmcore/options.c (opt_ThreadStackSize): Added.
(options_xx): Option and values are seperated by '=', not by ':'
(let's keep compatible to Sun).
* src/vmcore/options.h (opt_ThreadStackSize): Added.

16 years ago* src/vm/jit/m68k/linux/md-abi.h: Prepared 8 byte stackslots.
tbfg [Thu, 21 Jun 2007 16:29:53 +0000 (16:29 +0000)]
* src/vm/jit/m68k/linux/md-abi.h: Prepared 8 byte stackslots.
* src/vm/jit/m68k/linux/md-abi.c: Likewise.
* src/vm/jit/m68k/emit.c: Likewise.
* src/vm/jit/m68k/arch.h: Likewise.
* src/vm/jit/m68k/codegen.c: Likewise.
* src/vm/jit/m68k/asmpart.S: Likewise.
* src/vm/jit/asmpart.h: Likewise.
* src/vm/vm.c: Likewise.
* src/vm/vm.h: Likewise.
* src/native/jni.c: Likewise.

16 years ago* src/vm/jit/arm/arch.h: Removed HAS_4BYTE_STACKSLOT, ALIGN_LONGS_IN_MEMORY and
michi [Thu, 21 Jun 2007 11:55:56 +0000 (11:55 +0000)]
* src/vm/jit/arm/arch.h: Removed HAS_4BYTE_STACKSLOT, ALIGN_LONGS_IN_MEMORY and
ALIGN_DOUBLES_IN_MEMORY.

* src/vm/jit/arm/md-abi.c (md_param_alloc): Changed to 8-byte stackslots and
set pd->index correctly.

* src/vm/jit/arm/codegen.c: Changed to 8-byte stackslots (spilled regs and
arguments only).

* src/vm/jit/arm/asmpart.S (asm_vm_call_method): Reimplemented to fit new
argument passing. Changed to 8-byte stackslots.

* src/vm/vm.c (vm_array_store_flt, vm_array_store_dbl)
[SUPPORT_PASS_FLOATARGS_IN_INTREGS]: Fixed.

* src/vm/vm.c: Added ARM ifdefs.
* src/vm/vm.h: Added ARM ifdefs.
* src/native/jni.c: Added ARM ifdefs.

16 years ago* configure.ac (AC_CHECK_FUNCS): Added gethostname.
twisti [Thu, 21 Jun 2007 10:42:35 +0000 (10:42 +0000)]
* configure.ac (AC_CHECK_FUNCS): Added gethostname.

16 years ago* configure.ac (AC_CHECK_HEADERS): Added sys/socket.h.
twisti [Thu, 21 Jun 2007 10:02:14 +0000 (10:02 +0000)]
* configure.ac (AC_CHECK_HEADERS): Added sys/socket.h.
(AC_CHECK_FUNCS): Added accept, close, connect, getsockname, listen,
setsockopt, shutdown, socket.

16 years ago* src/vmcore/options.c [ENABLE_REPLACEMENT] (opt_TraceReplacement): Added.
michi [Wed, 20 Jun 2007 23:32:34 +0000 (23:32 +0000)]
* src/vmcore/options.c [ENABLE_REPLACEMENT] (opt_TraceReplacement): Added.
(options_xx) [ENABLE_REPLACEMENT]: Handle OPT_TraceReplacement.

* src/vmcore/options.h [ENABLE_REPLACEMENT] (opt_TraceReplacement): Added.

* src/vm/jit/replace.c: Use opt_TraceReplacement mentioned above.

16 years ago* src/vmcore/options.c (opt_verboseexception): Removed.
twisti [Wed, 20 Jun 2007 22:11:24 +0000 (22:11 +0000)]
* src/vmcore/options.c (opt_verboseexception): Removed.
(opt_TraceExceptions): Added.
(options_xx): Handle OPT_TraceExceptions.

* src/vmcore/options.h (opt_verboseexception): Removed.
(opt_TraceExceptions): Added.

* src/vm/exceptions.c (exceptions_handle_exception): Replaced
opt_verboseexception with opt_TraceExceptions.

* src/vm/vm.c (XXusage): Removed opt_verboseexception.
(vm_create): Likewise.

16 years ago* src/vmcore/statistics.c (statistics_print_gc_memory_usage):
twisti [Wed, 20 Jun 2007 22:05:10 +0000 (22:05 +0000)]
* src/vmcore/statistics.c (statistics_print_gc_memory_usage):
Different print-format for different pointer-sizes.

16 years ago* src/vm/jit/s390/codegen.h,
pm [Wed, 20 Jun 2007 21:20:53 +0000 (21:20 +0000)]
* src/vm/jit/s390/codegen.h,
src/vm/jit/s390/codegen.c (codegen_emit): Support another hercules bug in F2D.

16 years ago* src/vm/jit/arm/codegen.c (codegen_emit, codegen_emit_stub_native):
michi [Wed, 20 Jun 2007 20:30:56 +0000 (20:30 +0000)]
* src/vm/jit/arm/codegen.c (codegen_emit, codegen_emit_stub_native):
Changed cd->stackframesize from wordcount to bytecount.

* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Adapted to above change.

16 years ago* src/vm/vm.c (vm_array_store_int, vm_array_store_adr, vm_array_store_lng,
michi [Wed, 20 Jun 2007 19:14:05 +0000 (19:14 +0000)]
* src/vm/vm.c (vm_array_store_int, vm_array_store_adr, vm_array_store_lng,
vm_array_store_flt, vm_array_store_dbl): Uses pd->index for inmemory arguments.

* src/vm/jit/allocator/simplereg.c: The regoff value is a real offset
(multiplied by the stackslot size) for inmemory variables now.

* src/vm/jit/arm/md-abi.c (md_param_alloc): Set pd->regoff as described above.
* src/vm/jit/arm/emit.c: Adapted to above changes.
* src/vm/jit/arm/codegen.c: Adapted to above changes.

* src/vm/jit/powerpc/linux/md-abi.c,
* src/vm/jit/powerpc/netbsd/md-abi.c,
* src/vm/jit/powerpc/emit.c,
* src/vm/jit/powerpc/darwin/md-abi.c,
* src/vm/jit/powerpc/codegen.c,
* src/vm/jit/sparc64/emit.c,
* src/vm/jit/sparc64/md-abi.h,
* src/vm/jit/sparc64/codegen.c,
* src/vm/jit/sparc64/md-abi.c,
* src/vm/jit/alpha/emit.c,
* src/vm/jit/alpha/codegen.c,
* src/vm/jit/alpha/md-abi.c,
* src/vm/jit/s390/emit.c,
* src/vm/jit/s390/codegen.c,
* src/vm/jit/s390/md-abi.c,
* src/vm/jit/mips/emit.c,
* src/vm/jit/mips/codegen.c,
* src/vm/jit/mips/md-abi.c,
* src/vm/jit/m68k/emit.c,
* src/vm/jit/m68k/linux/md-abi.c,
* src/vm/jit/m68k/codegen.c,
* src/vm/jit/powerpc64/linux/md-abi.c,
* src/vm/jit/powerpc64/emit.c,
* src/vm/jit/powerpc64/codegen.c,
* src/vm/jit/i386/emit.c,
* src/vm/jit/i386/codegen.c,
* src/vm/jit/i386/md-abi.c,
* src/vm/jit/x86_64/emit.c,
* src/vm/jit/x86_64/codegen.c,
* src/vm/jit/x86_64/md-abi.c: Likewise.

16 years ago* src/threads/threads-common.c (threads_preinit): Added another
twisti [Wed, 20 Jun 2007 18:57:41 +0000 (18:57 +0000)]
* src/threads/threads-common.c (threads_preinit): Added another
linuxthreads check.

16 years ago* src/vmcore/statistics.c (statistics_print_gc_memory_usage): Call
twisti [Wed, 20 Jun 2007 18:05:39 +0000 (18:05 +0000)]
* src/vmcore/statistics.c (statistics_print_gc_memory_usage): Call
fflush.

* configure.ac (AC_CHECK_FUNCS): Added fflush, fopen, fprintf.

16 years ago* src/vm/vm.c (XXusage): Removed -verbose:memory.
twisti [Wed, 20 Jun 2007 17:54:36 +0000 (17:54 +0000)]
* src/vm/vm.c (XXusage): Removed -verbose:memory.
(vm_create): Likewise.

* src/mm/memory.c (memory_thread): Rewritten to use new variables.

* src/vmcore/options.c (errno.h): Added.
(stdint.h): Likewise
(stdio.h): Likewise.
(stdlib.h): Likewise.
(opt_verbosememory): Removed.
(opt_ProfileGCMemoryUsage): Added.
(opt_ProfileMemoryUsage): Likewise.
(opt_ProfileMemoryUsageGNUPlot): Likewise.
(options_XX): Likewise.
(options_xx): Implemented.

* src/vmcore/options.h (stdint.h): Added.
(option_t): Likewise.
(opt_ProfileGCMemoryUsage): Likewise.
(opt_ProfileMemoryUsage): Likewise.
(opt_ProfileMemoryUsageGNUPlot): Likewise.
(options_xx): Changed signature.

* src/vmcore/statistics.c (statistics_print_gc_memory_usage):
Rewritten to use new variables and GNU Plot output.

* configure.ac (AC_CHECK_FUNCS): Added atoi, atol, strchr, strncmp.

16 years ago* src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.c,
twisti [Wed, 20 Jun 2007 13:51:38 +0000 (13:51 +0000)]
* src/native/vm/gnu/gnu_java_lang_management_VMClassLoadingMXBeanImpl.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_VMObject.c,
src/native/vm/gnu/java_lang_VMRuntime.c,
src/native/vm/gnu/java_lang_VMThread.c,
src/native/vm/gnu/java_lang_reflect_Field.c,
src/native/vm/sun_misc_Unsafe.c: Use stdint-types because of conflicts
with generated header files.

16 years ago* src/cacaoh/cacaoh.c (HEAP_MAXSIZE, HEAP_STARTSIZE): Removed.
twisti [Wed, 20 Jun 2007 12:24:32 +0000 (12:24 +0000)]
* src/cacaoh/cacaoh.c (HEAP_MAXSIZE, HEAP_STARTSIZE): Removed.
(main): Removed heapmaxsize, heapstartsize.

16 years ago* src/native/vm/nativevm.h [ENABLE_JAVASE && WITH_CLASSPATH_GNU]:
twisti [Wed, 20 Jun 2007 12:22:56 +0000 (12:22 +0000)]
* src/native/vm/nativevm.h [ENABLE_JAVASE && WITH_CLASSPATH_GNU]:
Added _Jv_java_util_concurrent_atomic_AtomicLong_init.

16 years ago* src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added pd->index setting.
ajordan [Wed, 20 Jun 2007 12:05:26 +0000 (12:05 +0000)]
* src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added pd->index setting.

* src/vm/jit/sparc64/asmpart.S (asm_vm_call_method): Get parameters from
new array.

* src/vm/jit/asmpart.h: Enable new parameter passing for SPARC64.
* src/vm/vm.h: Likewise.
* src/vm/vm.c: Likewise.
(vm_array_store_flt): For SPARC, shift float arguments on stack to low word too.

16 years ago* src/vm/vm.c (vm_array_store_int) [SIZEOF_VOID_P == 4]: Only do the
twisti [Wed, 20 Jun 2007 11:11:59 +0000 (11:11 +0000)]
* src/vm/vm.c (vm_array_store_int) [SIZEOF_VOID_P == 4]: Only do the
integer shift on 32-bit architectures.

16 years ago* src/vm/vm.c (vm_call_float_array): New function.
twisti [Tue, 19 Jun 2007 22:50:17 +0000 (22:50 +0000)]
* src/vm/vm.c (vm_call_float_array): New function.
(vm_call_method_float_valist): Likewise.
(vm_call_method_float_jvalue): Likewise.
(vm_call_double_array): Likewise.
(vm_call_method_double_valist): Likewise.
(vm_call_method_double_jvalue): Likewise.

* src/vm/vm.h: Defined new functions.
* src/vm/jit/asmpart.h: Likewise.
* src/native/jni.c: Use new functions.

16 years ago* src/cacaoh/headers.c (stdint.h): Added and use stdint-types.
twisti [Tue, 19 Jun 2007 21:47:51 +0000 (21:47 +0000)]
* src/cacaoh/headers.c (stdint.h): Added and use stdint-types.
(vm/types.h): Removed.

16 years ago* src/cacaoh/dummy.c (stdint.h): Added.
twisti [Tue, 19 Jun 2007 21:15:00 +0000 (21:15 +0000)]
* src/cacaoh/dummy.c (stdint.h): Added.
(vm/types.h): Removed and replaced all old types with stdint ones.
(threads/threads-common.h): Removed.
[ENABLE_THREADS] (threads_current_threadobject_key): Removed.

16 years ago* src/native/vm/nativevm.c (nativevm_init)
twisti [Tue, 19 Jun 2007 19:43:00 +0000 (19:43 +0000)]
* src/native/vm/nativevm.c (nativevm_init)
[ENABLE_JAVASE && WITH_CLASSPATH_GNU]: Call
_Jv_java_util_concurrent_atomic_AtomicLong_init.

* src/native/vm/Makefile.am [ENABLE_JAVASE]
(JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES): Added.
(libnativevm_la_SOURCES): Added
JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES.

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

* src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Added
java_util_concurrent_atomic_AtomicLong.c.

* src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c: New
file.

* src/native/include/Makefile.am (JAVASE_HEADER_FILES): Added
java_util_concurrent_atomic_AtomicLong.h.

16 years ago* src/cacaoh/dummy.c: Added Id keyword.
twisti [Tue, 19 Jun 2007 18:09:16 +0000 (18:09 +0000)]
* src/cacaoh/dummy.c: Added Id keyword.

16 years ago* src/cacaoh/dummy.c [ENABLE_THREADS] (pthread.h): Removed.
twisti [Tue, 19 Jun 2007 18:07:59 +0000 (18:07 +0000)]
* src/cacaoh/dummy.c [ENABLE_THREADS] (pthread.h): Removed.
(threads/threads-common.h): Added.
[ENABLE_THREADS] (threads_current_threadobject_key): Added #ifdef.

16 years ago* src/vm/exceptions.c (exceptions_throw_utf_throwable): Call
twisti [Mon, 18 Jun 2007 20:18:14 +0000 (20:18 +0000)]
* src/vm/exceptions.c (exceptions_throw_utf_throwable): Call
(Ljava/lang/Throwable;)V initializer and resolve the method with
class_resolveclassmethod to get possible exceptions.
(exceptions_throw_utf_cause): New function.
(exceptions_throw_noclassdeffounderror_cause): Use
exceptions_throw_utf_cause.

16 years ago* src/vm/jit/powerpc64/linux/md-abi.c (md_param_alloc): Set index.
tbfg [Mon, 18 Jun 2007 18:26:58 +0000 (18:26 +0000)]
* src/vm/jit/powerpc64/linux/md-abi.c (md_param_alloc): Set index.

* src/vm/jit/powerpc64/asmpart.S (asm_vm_call_method): New parameter
format, do not call asm_jit_compile any more.

* src/vm/jit/asmpart.h: Enable new parameter format function
prototypes.

* src/vm/vm.h: Likewise.

* src/vm/vm.c (vm_array_store_int): Although ppc64 is big endian
do not big endianize the new parameter format.
(vm_array_store_flt): Likewise.
(vm_array_store_adr): Likewise.
(vm_vmargs_from_valist): ppc64 like alpha uses doubles everywhere.
(vm_vmargs_from_jvalue): When HAS_ADDRESS_REGISTER_FILE is defined
address register arguments are between float and memuse.

* src/native/jni.c: Enable new parameter function calling.

16 years ago* src/vm/jit/s390/codegen.c (codegen_emit): More data segment load optimalisations.
pm [Sun, 17 Jun 2007 14:50:16 +0000 (14:50 +0000)]
* src/vm/jit/s390/codegen.c (codegen_emit): More data segment load optimalisations.
* src/vm/jit/s390/md.c (md_get_method_patch_address): Adapt to changes in codegen_emit.

16 years ago* src/vm/jit/s390/asmpart.S
pm [Sun, 17 Jun 2007 13:45:58 +0000 (13:45 +0000)]
* src/vm/jit/s390/asmpart.S
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/emit.c,
src/vm/jit/s390/md.c,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/tests/dacapo.status: Optimized loads from data segment: the procedure vector now always points 4092 bytes before the data segment, so a lot of loads have a positive displacement. Removed dead code.

16 years ago* src/vm/jit/sparc64/codegen.c (codegen_emit): Improved integer argument passing
ajordan [Sat, 16 Jun 2007 19:56:19 +0000 (19:56 +0000)]
* src/vm/jit/sparc64/codegen.c (codegen_emit): Improved integer argument passing
by swapping variable allocation instead of copying.

* src/vm/jit/sparc64/md-abi.h: Turned %i0 into saved reg.
* src/vm/jit/sparc64/md-abi.c: Likewise.

16 years ago* src/vmcore/statistics.h: Added more fine grained spill statistics.
ajordan [Sat, 16 Jun 2007 01:15:41 +0000 (01:15 +0000)]
* src/vmcore/statistics.h: Added more fine grained spill statistics.
* src/vmcore/statistics.c: Likewise.

* src/vm/jit/jit.h: New defines for spill statistics. Old ones are deprecated,
won't increase the counters.

* src/vm/jit/codegen-common.c (codegen_increase): Defined SPARC64 for
2-instr-patcher-stub-call workaround.
(codegen_add_patch_ref): Likewise.
(codegen_reg_of_var): Removed obsolete spill counting.

* src/vm/jit/sparc64/emit.c: Changed for new spill statistics.
* src/vm/jit/sparc64/linux/md-os.c (md_critical_section_restart): Fixed.

16 years ago* src/vm/jit/emit-common.c (emit_bccz) [STATISTICS]: Is called
twisti [Thu, 14 Jun 2007 16:51:44 +0000 (16:51 +0000)]
* src/vm/jit/emit-common.c (emit_bccz) [STATISTICS]: Is called
ENABLE_STATISTICS.
(emit_label_bccz): Likewise.
(emit_label): Likewise.

16 years ago* src/native/native.c (native_findfunction): Use
twisti [Thu, 14 Jun 2007 16:12:35 +0000 (16:12 +0000)]
* src/native/native.c (native_findfunction): Use
exceptions_throw_unsatisfiedlinkerror.

16 years ago* src/threads/native/threads.c: Don't use exceptionptr directly
twisti [Thu, 14 Jun 2007 16:10:33 +0000 (16:10 +0000)]
* src/threads/native/threads.c: Don't use exceptionptr directly
anymore.

16 years ago* src/vm/exceptions.c: Don't use exceptionptr directly anymore, access
twisti [Thu, 14 Jun 2007 16:07:37 +0000 (16:07 +0000)]
* src/vm/exceptions.c: Don't use exceptionptr directly anymore, access
it only with functions.

16 years ago* src/native/vm/java_lang_Class.c: Added Id keyword.
twisti [Thu, 14 Jun 2007 16:06:31 +0000 (16:06 +0000)]
* src/native/vm/java_lang_Class.c: Added Id keyword.

16 years ago* src/native/vm/java_lang_Class.c (forName): Removed unused variables.
twisti [Thu, 14 Jun 2007 16:05:42 +0000 (16:05 +0000)]
* src/native/vm/java_lang_Class.c (forName): Removed unused variables.

16 years ago* src/vm/exceptions.c (exceptions_get_exception)
twisti [Thu, 14 Jun 2007 16:01:12 +0000 (16:01 +0000)]
* src/vm/exceptions.c (exceptions_get_exception)
(exceptions_set_exception, exceptions_clear_exception)
(exceptions_get_and_clear_exception): Moved these low leve function to
the top of the file.
* src/vm/exceptions.h: Likewise.

16 years ago* src/vmcore/loader.c: Removed commented
twisti [Thu, 14 Jun 2007 15:31:54 +0000 (15:31 +0000)]
* src/vmcore/loader.c: Removed commented
exceptions_throw_noclassdeffounderror calls.

16 years ago* src/vm/jit/emit-common.c: Fixed warning related to STATISTICS.
tbfg [Thu, 14 Jun 2007 15:12:54 +0000 (15:12 +0000)]
* src/vm/jit/emit-common.c: Fixed warning related to STATISTICS.

16 years ago* src/vm/jit/emit-common.c: Added emit_branch statistics.
tbfg [Thu, 14 Jun 2007 12:10:49 +0000 (12:10 +0000)]
* src/vm/jit/emit-common.c: Added emit_branch statistics.
* src/vmcore/statistics.c: Likewise.
* src/vmcore/statistics.h: Added count_emit_branch,
count_emit_branch_8bit, count_emit_branch_16bit,
count_emit_branch_32bit, count_emit_branch_64bit.

16 years agosrc/vm/jit/m68k/disass.c: Changed bfd_mach_mcf_isa_b_float_emac to
tbfg [Thu, 14 Jun 2007 12:07:03 +0000 (12:07 +0000)]
src/vm/jit/m68k/disass.c: Changed bfd_mach_mcf_isa_b_float_emac to
bfd_mach_mcfv4e as needed for newer binutils.

16 years ago* src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Rewritten for new
twisti [Thu, 14 Jun 2007 11:12:11 +0000 (11:12 +0000)]
* src/vm/jit/x86_64/asmpart.S (asm_vm_call_method): Rewritten for new
argument passing.

* src/vm/jit/x86_64/md-abi.c (md_param_alloc): Set pd->index.

* src/vm/vm.c: Added __X86_64__ ifdef.
* src/vm/vm.h: Likewise.
* src/native/jni.c: Likewise.
* src/vm/jit/asmpart.h: Likewise.

16 years ago* src/vm/vm.c (vm_array_from_objectarray): For TYPE_ADR param can be
twisti [Thu, 14 Jun 2007 11:06:48 +0000 (11:06 +0000)]
* src/vm/vm.c (vm_array_from_objectarray): For TYPE_ADR param can be
NULL, that's ok (jboss is a testcase for that).

16 years ago* src/vm/vm.c (vm_call_method_long_vmarg): Removed vm_abort.
twisti [Thu, 14 Jun 2007 10:20:02 +0000 (10:20 +0000)]
* src/vm/vm.c (vm_call_method_long_vmarg): Removed vm_abort.

16 years ago* src/vm/vm.c (arch.h): Added.
twisti [Thu, 14 Jun 2007 09:44:12 +0000 (09:44 +0000)]
* src/vm/vm.c (arch.h): Added.
(vm/jit/abi-asm.h): Likewise.
(vm_array_store_int): Use ARG_CNT define.
(vm_array_store_dbl): Likewise.
(vm_array_store_flt): Likewise.
(vm_array_store_dbl): Likewise.
(vm_array_store_adr) [HAS_ADDRESS_REGISTER_FILE]: Changed offset.

16 years ago* src/vm/vm.c: Fixed typos.
twisti [Thu, 14 Jun 2007 09:35:31 +0000 (09:35 +0000)]
* src/vm/vm.c: Fixed typos.

16 years ago* src/vm/jit/mips/asmpart.S (asm_vm_call_method) [!WORDS_BIGENDIAN]:
twisti [Thu, 14 Jun 2007 00:38:53 +0000 (00:38 +0000)]
* src/vm/jit/mips/asmpart.S (asm_vm_call_method) [!WORDS_BIGENDIAN]:
Fixed bug (use lw instead of ld), better code in the stack copy loop.

16 years ago* src/vm/jit/mips/asmpart.S (asm_vm_call_method): Rewritten for new
twisti [Wed, 13 Jun 2007 22:27:17 +0000 (22:27 +0000)]
* src/vm/jit/mips/asmpart.S (asm_vm_call_method): Rewritten for new
argument passing.

* src/vm/jit/mips/md-abi.c (stdarg.h): Added.
(mm/memory.h): Likewise.
(md_param_alloc): Set pd->index.

* src/vm/jit/asmpart.h (stdint.h): Added new function prototypes.

* src/vm/vm.c (md-abi.h): Added.
(vm_array_store_int): New function.
(vm_array_store_lng): Likewise.
(vm_array_store_flt): Likewise.
(vm_array_store_dbl): Likewise.
(vm_array_store_adr): Likewise.
(vm_array_from_valist): Likewise.
(vm_array_from_jvalue): Likewise.
(vm_array_from_objectarray): Likewise.
(vm_call_method_valist): New version added.
(vm_call_method_jvalue): Likewise.
(vm_call_array): New function.
(vm_call_int_array): Likewise.
(vm_call_method_int_valist): New version added.
(vm_call_method_int_jvalue): Likewise.
(vm_call_method_long_valist): Likewise.
(vm_call_method_long_jvalue): Likewise.
(vm_call_long_array): New function.
(vm_call_method_float_vmarg): Added vm_abort.
(vm_call_method_double_vmarg): Likwise.

* src/vm/vm.h (stdarg.h): Added.
(vmcore/class.h): Likewise.
(vmcore/method.h): Likewise.
(vm_array_from_objectarray): Likewise.
(vm_call_array): Likewise.
(vm_call_int_array): Likewise.
(vm_call_long_array): Likewise.

* src/native/jni.c (_Jv_jni_invokeNative): Added new version.

* src/vmcore/descriptor.h (stdint.h): Added.
(paramdesc): Added index field (this is temporarily).

16 years ago* src/vm/jit/tools/genoffsets.c (vmcore/class.h): Removed.
twisti [Wed, 13 Jun 2007 21:54:27 +0000 (21:54 +0000)]
* src/vm/jit/tools/genoffsets.c (vmcore/class.h): Removed.
(vmcore/linker.h): Likewise.
(vmcore/method.h): Likewise.

16 years ago* tests/regression/native/testarguments.java,
twisti [Wed, 13 Jun 2007 18:31:19 +0000 (18:31 +0000)]
* tests/regression/native/testarguments.java,
tests/regression/native/testarguments.c,
tests/regression/native/testarguments.output: Added address test.

16 years ago* src/vm/jit/tools/genoffsets.c (main): Removed some obsolete stuff.
twisti [Wed, 13 Jun 2007 17:37:55 +0000 (17:37 +0000)]
* src/vm/jit/tools/genoffsets.c (main): Removed some obsolete stuff.
* src/vm/jit/m68k/md.c (md_init): Removed offobjvftbl check.

16 years ago* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Removed.
twisti [Wed, 13 Jun 2007 14:26:41 +0000 (14:26 +0000)]
* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Removed.
(_Jv_jni_invokeNative): Use vm_vmargs_from_objectarray.

* src/vm/vm.c (stdint.h): Added.
(native/include/java_lang_Byte.h)
(native/include/java_lang_Character.h)
(native/include/java_lang_Short.h)
(native/include/java_lang_Integer.h)
(native/include/java_lang_Boolean.h)
(native/include/java_lang_Long.h)
(native/include/java_lang_Float.h)
(native/include/java_lang_Double.h): Likewise.
(vm_vmargs_from_objectarray): New function.

* src/vm/vm.h (vm_vmargs_from_objectarray): Added.

16 years ago* src/native/jni.c (stdint.h): Added.
twisti [Wed, 13 Jun 2007 14:08:24 +0000 (14:08 +0000)]
* src/native/jni.c (stdint.h): Added.
(_Jv_jni_vmargs_from_objectarray): Use stdint-types, use global class
variables.

17 years ago* src/vm/jits/390/codegen.h (N_BRC_BACK_PATCH, N_LTEBR, N_LTDBR, N_LTXBR, DD_0, ...
pm [Tue, 12 Jun 2007 15:50:35 +0000 (15:50 +0000)]
* src/vm/jits/390/codegen.h (N_BRC_BACK_PATCH, N_LTEBR, N_LTDBR, N_LTXBR, DD_0, ..., DD_3): added, (M_CVTFI, M_CVTDI) changed to round to nearest.
* src/vm/jits/390/codegen.c (codegen_emit): In ICMD_F2I and ICMD_D2I correct handling of corner cases, ICMD_LALOAD fix.
* src/vm/jit/s390/md.c (md_dump_context): Include information on java method in dump.
* src/vm/jits/390/tests/dacapo.status: Noted dacapo eclipse results.

17 years ago* src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
twisti [Tue, 12 Jun 2007 12:32:18 +0000 (12:32 +0000)]
* src/native/vm/gnu/java_lang_reflect_Constructor.c (constructNative):
Added asserts for declaringClass and slot.
* src/native/vm/gnu/java_lang_reflect_Method.c (invokeNative): Likewise.

17 years ago* src/vm/vm.c (opts): Added OPT_EA, OPT_DA.
twisti [Tue, 12 Jun 2007 09:08:12 +0000 (09:08 +0000)]
* src/vm/vm.c (opts): Added OPT_EA, OPT_DA.
(usage): Print help for OPT_EA, OPT_DA.
(vm_create): Ignore OPT_EA, OPT_DA.

17 years ago* src/vm/jit/s390/emit.c (emit_load_s1_notzero, emit_load_s2_notzero, emit_load_s1_bu...
pm [Mon, 11 Jun 2007 15:22:09 +0000 (15:22 +0000)]
* src/vm/jit/s390/emit.c (emit_load_s1_notzero, emit_load_s2_notzero, emit_load_s1_but, emit_load_s2_but): Correctly handle float regissters.
* src/vm/jit/s390/tests/dacapo.status: Include dacapo lusearch results.

17 years ago* src/native/vm/java_lang_reflect_Method.c: New file.
twisti [Mon, 11 Jun 2007 15:11:01 +0000 (15:11 +0000)]
* src/native/vm/java_lang_reflect_Method.c: New file.
* src/native/vm/java_lang_reflect_Method.h: Likewise.

* src/native/vm/Makefile.am [ENABLE_JAVASE]
(JAVA_LANG_REFLECT_METHOD_SOURCES): Added
(libnativevm_la_SOURCES): Added JAVA_LANG_REFLECT_METHOD_SOURCES.

* src/native/vm/gnu/java_lang_reflect_Method.c
(native/vm/java_lang_reflect_Method.h): Added.
(invokeNative): Use _Jv_java_lang_reflect_Method_invoke.

17 years ago* src/vmcore/method.c (method_returntype_get): New function.
twisti [Mon, 11 Jun 2007 14:44:58 +0000 (14:44 +0000)]
* src/vmcore/method.c (method_returntype_get): New function.
* src/vmcore/method.h (method_returntype_get): Added.

* src/native/vm/gnu/java_lang_reflect_Method.c (getReturnType): Use
method_returntype_get.

17 years ago* src/vm/resolve.c (resolve_class_from_name): Call
twisti [Mon, 11 Jun 2007 08:12:14 +0000 (08:12 +0000)]
* src/vm/resolve.c (resolve_class_from_name): Call
exceptions_classnotfoundexception_to_noclassdeffounderror in exception
case.

* src/vm/exceptions.c (vmcore/method.h): Added.
(exceptions_throw_utf_throwable): Added object-initialize code.
(exceptions_throw_utf_exception): Likewise.
(exceptions_throw_noclassdeffounderror_cause): New function.
(classnotfoundexception_to_noclassdeffounderror): Renamed to
exceptions_classnotfoundexception_to_noclassdeffounderror.
(exceptions_print_stacktrace): Don't use exceptionptr directly.

* src/vm/exceptions.h (exceptions_throw_noclassdeffounderror_cause):
Added.
(classnotfoundexception_to_noclassdeffounderror): Renamed to
exceptions_classnotfoundexception_to_noclassdeffounderror.

* src/vm/vm.c (opts): Added XX:.
(vm_create): Likewise.
(vm_run): Call exceptions_throw_noclassdeffounderror_cause when
main-class is not found.

* src/native/vm/java_lang_Class.c (forName): Don't convert exception.

* src/native/vm/gnu/java_lang_VMClassLoader.c (getPrimitiveClass): Use
primitive_class_get_by_char.
(loadClass): Don't convert exception.

* src/native/native.c (native_new_and_init_string): Use
class_findmethod instead of class_resolveclassmethod.
(native_new_and_init_throwable): Removed.
(native_new_and_init_exception): Likewise.

* src/native/native.h (native_new_and_init_throwable): Removed.
(native_new_and_init_exception): Likewise.

* src/vmcore/class.c (class_array_of): Smaller code changes.

* src/vmcore/loader.c (vmcore/primitive.h): Added.
(load_class_from_classloader): Don't convert exception.
(load_class_bootstrap): Throw ClassNotFoundException instead of
NoClassDefFoundError.
(load_newly_created_array): Likewise, check if primitive-array type is
valid.

* src/vmcore/utf8.c (utf_initCause): Added.
(utf_java_lang_Throwable__java_lang_Throwable): Likewise.
(utf8_init): Initialize new variables.

* src/vmcore/utf8.h (utf_initCause): Added.
(utf_java_lang_Throwable__java_lang_Throwable): Likewise.

* src/cacaoh/dummy.c (exceptions_throw_classnotfoundexception): New
function.
(classnotfoundexception_to_noclassdeffounderror): Removed.

* src/vmcore/options.c (options_xx): New function.
* src/vmcore/options.h (options_xx): Added.

17 years ago* src/vmcore/primitive.c (primitive_class_get_by_char): New function.
twisti [Mon, 11 Jun 2007 07:59:36 +0000 (07:59 +0000)]
* src/vmcore/primitive.c (primitive_class_get_by_char): New function.
* src/vmcore/primitive.h (primitive_class_get_by_char): Added.

17 years ago* src/vm/global.h (PRIMITIVETYPE_*): Removed.
twisti [Sun, 10 Jun 2007 20:00:40 +0000 (20:00 +0000)]
* src/vm/global.h (PRIMITIVETYPE_*): Removed.
(ARRAYTYPE_*): Likewise.

* src/vm/jit/verify/typecheck-typeinferer.c (vmcore/primitive.h): Added.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/verify/typecheck-stackbased.c: Likewise.
* src/vm/jit/verify/typeinfo.c: Likewise.
* src/vm/builtin.c: Likewise.
* src/native/jni.c: Likewise.
* src/native/vm/gnu/java_lang_VMClassLoader.c: Likewise.
* src/native/vm/gnu/java_lang_reflect_Field.c: Likewise.
* src/vmcore/descriptor.c: Likewise.

* src/vm/string.c (vmcore/primitive.h): Added.
(stringtable_update): Use new primitive functions.

* src/vm/resolve.c: Likewise.
(resolve_class_from_typedesc): Use new primitive functions.

* src/vm/vm.c (vmcore/primitive.h): Added.
(vm_create): Call primitive_init.

* src/native/vm/java_lang_Class.c (vmcore/primitive.h): Added.
(isPrimitive): Use primitive_class_is_primitive.
(getDeclaringClass): Likewise.
(getDeclaredClasses): Likewise.
(getComponentType): Use primitive_class_get_by_type.

* src/vmcore/class.c (class_is_primitive): Removed.
(class_primitive_get): Removed.
* src/vmcore/class.c: Likewise.

* src/vmcore/primitive.c: New file.
* src/vmcore/primitive.h: Likewise.

* src/vmcore/Makefile.am (libvmcore_la_SOURCES): Added primitive.[ch].

* src/vmcore/linker.c (vmcore/primitive.h): Added.
(primitivetype_table): Removed.
(linker_init): Removed link_primitivetype_table call.
(link_primitivetype_table): Removed.

* src/vmcore/linker.h (primitivetypeinfo): Removed.
(primitivetype_table): Removed.

* src/vm/jit/verify/typecheck-builtins.inc: Removed Contact, Authors
from header.

17 years ago* src/vm/vm.c (vm_vmargs_from_valist): Use TYPE_-defines instead of
twisti [Sun, 10 Jun 2007 19:31:28 +0000 (19:31 +0000)]
* src/vm/vm.c (vm_vmargs_from_valist): Use TYPE_-defines instead of
PRIMITIVETYPE_ ones.
(vm_vmargs_from_jvalue): Likewise.

17 years ago* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Indent.
twisti [Sun, 10 Jun 2007 19:30:25 +0000 (19:30 +0000)]
* src/native/jni.c (_Jv_jni_vmargs_from_objectarray): Indent.

17 years ago* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Check for
twisti [Fri, 8 Jun 2007 20:42:54 +0000 (20:42 +0000)]
* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_INCLUDEDIR): Check for
jni_md.h too.

17 years ago* configure.ac (AC_CHECK_FUNCS): Added lseek.
twisti [Fri, 8 Jun 2007 20:04:34 +0000 (20:04 +0000)]
* configure.ac (AC_CHECK_FUNCS): Added lseek.

17 years ago* src/vmcore/class.c (class_define): New function.
twisti [Thu, 7 Jun 2007 23:30:45 +0000 (23:30 +0000)]
* src/vmcore/class.c (class_define): New function.
* src/vmcore/class.h (class_define): Added.

* src/native/vm/java_lang_ClassLoader.c (defineClass): Use
class_define.

17 years ago* src/vmcore/utf8.c (utf_java_lang_Exception__V): Added.
twisti [Thu, 7 Jun 2007 22:41:54 +0000 (22:41 +0000)]
* src/vmcore/utf8.c (utf_java_lang_Exception__V): Added.
(utf8_init): Initialize utf_java_lang_Exception__V.
* src/vmcore/utf8.h (utf_java_lang_Exception__V): Added.

* src/vm/exceptions.c (exceptions_throw_utf_exception): New function.
(exceptions_throw_privilegedactionexception): Use
exceptions_throw_utf_exception.

* src/native/native.c (native_new_and_init_exception): New function.
* src/native/native.h (native_new_and_init_exception): Added.

17 years ago* src/vmcore/utf8.c (utf_java_security_PrivilegedActionException):
twisti [Thu, 7 Jun 2007 22:20:37 +0000 (22:20 +0000)]
* src/vmcore/utf8.c (utf_java_security_PrivilegedActionException):
Added.
(utf8_init): Initialize utf_java_security_PrivilegedActionException.

* src/vmcore/utf8.h (utf_java_security_PrivilegedActionException):
Added.

* src/vm/exceptions.c (exceptions_throw_privilegedactionexception):
New function.

* src/vm/exceptions.h (exceptions_throw_privilegedactionexception):
Added.

17 years ago* src/vm/jit/s390/emit.c (emit_verbosecall_enter): Fix passing of float argument...
pm [Thu, 7 Jun 2007 22:02:16 +0000 (22:02 +0000)]
* src/vm/jit/s390/emit.c (emit_verbosecall_enter): Fix passing of float argument 2 to builtin_verbosecall_enter.
* src/vm/builtin.c (builtin_print_argument): Fix malfunctioning conversion from s8 to float on s390.

17 years ago* src/native/jni.c (_Jv_JNI_FatalError): Changed error message.
twisti [Thu, 7 Jun 2007 21:52:21 +0000 (21:52 +0000)]
* src/native/jni.c (_Jv_JNI_FatalError): Changed error message.

17 years ago* src/vm/builtin.c (builtin_nanotime): New function.
twisti [Thu, 7 Jun 2007 19:24:35 +0000 (19:24 +0000)]
* src/vm/builtin.c (builtin_nanotime): New function.
(builtin_currenttimemillis): Use builtin_nanotime.

* src/vm/builtin.h (builtin_nanotime): Added.

17 years ago* configure.ac (AC_CHECK_FUNCS): Added open, strerror.
twisti [Thu, 7 Jun 2007 19:22:31 +0000 (19:22 +0000)]
* configure.ac (AC_CHECK_FUNCS): Added open, strerror.

17 years ago* src/vmcore/class.c (class_primitive_get): New function.
twisti [Thu, 7 Jun 2007 17:43:29 +0000 (17:43 +0000)]
* src/vmcore/class.c (class_primitive_get): New function.
* src/vmcore/class.h (class_primitive_get): Added.

* src/vmcore/linker.c (primitivetype_table): Changed layout.
(link_primitivetype_table): Store UTF-8 name in table.

* src/vmcore/linker.h (primitivetypeinfo): Changed layout, added
cname, changed name to UTF-8.

17 years ago* configure.ac (AC_CHECK_HEADERS): Check for sys/select.h, sys/stat.h,
twisti [Thu, 7 Jun 2007 16:21:11 +0000 (16:21 +0000)]
* configure.ac (AC_CHECK_HEADERS): Check for sys/select.h, sys/stat.h,
sys/types.h.
(AC_CHECK_FUNCS): Check for fstat, ioctl, select.

17 years ago* src/vm/jit/m68k/linux/md-abi.c: Additional defines for address registers.
tbfg [Thu, 7 Jun 2007 11:23:52 +0000 (11:23 +0000)]
* src/vm/jit/m68k/linux/md-abi.c: Additional defines for address registers.

17 years ago* src/native/vm/gnu/java_lang_reflect_Constructor.c (methods): Install
twisti [Thu, 7 Jun 2007 09:04:51 +0000 (09:04 +0000)]
* src/native/vm/gnu/java_lang_reflect_Constructor.c (methods): Install
_Jv_- functions directly.
(getModifiersInternal): Removed.
(getParameterTypes): Likewise.
(getExceptionTypes): Likewise.
(constructNative): Call _Jv_java_lang_reflect_Constructor_newInstance.
(getSignature): Removed.

* src/native/vm/Makefile.am [ENABLE_JAVASE]
(JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES): Added.
(libnativevm_la_SOURCES): Added JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES.

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

17 years ago* src/vm/jit/code.h (codeinfo) [ENABLE_REPLACEMENT, HAS_ADDRESS_REGISTER_FILE]:
michi [Thu, 7 Jun 2007 08:51:54 +0000 (08:51 +0000)]
* src/vm/jit/code.h (codeinfo) [ENABLE_REPLACEMENT, HAS_ADDRESS_REGISTER_FILE]:
Added savedadrcount.

* src/vm/jit/replace.c [HAS_ADDRESS_REGISTER_FILE]: Added support for address
registers.

* src/vm/jit/replace.h [HAS_ADDRESS_REGISTER_FILE]: Likewise.

17 years ago* src/vmcore/class.c (class_is_primitive): New function.
twisti [Wed, 6 Jun 2007 17:23:42 +0000 (17:23 +0000)]
* src/vmcore/class.c (class_is_primitive): New function.
* src/vmcore/class.h (class_is_primitive): Added.

* src/native/vm/java_lang_Class.c (isPrimitive): Use
class_is_primitive.
(getDeclaringClass): Likewise.
(getDeclaredClasses): Likewise.

17 years ago* NEWS: Fixed 0.98 release date.
twisti [Wed, 6 Jun 2007 17:19:17 +0000 (17:19 +0000)]
* NEWS: Fixed 0.98 release date.

17 years ago* configure.ac (AC_INIT): Changed version to 0.98+svn.
twisti [Wed, 6 Jun 2007 11:31:28 +0000 (11:31 +0000)]
* configure.ac (AC_INIT): Changed version to 0.98+svn.
(OPT_CFLAGS): Changed to -O0.

17 years ago* ChangeLog: Updated.
twisti [Wed, 6 Jun 2007 09:26:00 +0000 (09:26 +0000)]
* ChangeLog: Updated.

17 years ago* configure.ac (AC_INIT): Changed version to 0.98.
twisti [Wed, 6 Jun 2007 09:24:22 +0000 (09:24 +0000)]
* configure.ac (AC_INIT): Changed version to 0.98.

17 years ago* src/native/vm/gnu/java_lang_VMString.c
twisti [Tue, 5 Jun 2007 23:46:59 +0000 (23:46 +0000)]
* src/native/vm/gnu/java_lang_VMString.c
(native/vm/java_lang_String.h): Added.
(intern): Call _Jv_java_lang_String_intern.

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

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

17 years ago* src/native/native.c (native_init): Check nativevm_init return value.
twisti [Tue, 5 Jun 2007 22:11:12 +0000 (22:11 +0000)]
* src/native/native.c (native_init): Check nativevm_init return value.

* src/native/vm/nativevm.c (nativevm_init): Changed signature.
* src/native/vm/nativevm.h (nativevm_init): Likewise.

17 years ago* src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Removed
twisti [Tue, 5 Jun 2007 20:58:11 +0000 (20:58 +0000)]
* src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Removed
sun_misc_Unsafe.c.

* src/native/vm/Makefile.am [ENABLE_JAVASE] (SUN_MISC_UNSAFE_SOURCES):
Added.
(libnativevm_la_SOURCES): Added SUN_MISC_UNSAFE_SOURCES.

* src/native/vm/gnu/sun_misc_Unsafe.c: Removed.
* src/native/vm/sun_misc_Unsafe.c: Added.

--HG--
rename : src/native/vm/gnu/sun_misc_Unsafe.c => src/native/vm/sun_misc_Unsafe.c

17 years ago* src/vm/jit/codegen-common.c [__ARM__] (md-abi.h): Removed.
twisti [Tue, 5 Jun 2007 12:53:30 +0000 (12:53 +0000)]
* src/vm/jit/codegen-common.c [__ARM__] (md-abi.h): Removed.
(codegen_reg_of_var) [__ARM__]: Removed split-code.

17 years ago* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 8]: Use
twisti [Tue, 5 Jun 2007 10:19:09 +0000 (10:19 +0000)]
* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 8]: Use
reguse instead of i.

17 years ago* src/vm/jit/mips/md-abi.c (md_param_alloc_native)
twisti [Tue, 5 Jun 2007 10:14:29 +0000 (10:14 +0000)]
* src/vm/jit/mips/md-abi.c (md_param_alloc_native)
[SIZEOF_VOID_P == 8]: Fixed compilation.

17 years ago* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 4]: Use
twisti [Tue, 5 Jun 2007 10:06:18 +0000 (10:06 +0000)]
* src/vm/jit/mips/md-abi.c (md_param_alloc) [SIZEOF_VOID_P == 4]: Use
internally a different calling convention. It's the same as on n64
with register skipping and, but with long alignment (as on ARM).
(md_param_alloc_native) [SIZEOF_VOID_P == 4]: Use the o32 ABI.

* src/vm/jit/mips/codegen.c (codegen_emit) [SIZEOF_VOID_P == 4]:
Changes for new internal calling conventions.
(codegen_emit_stub_native) [SIZEOF_VOID_P == 4]: Likewise.

* src/vm/jit/mips/asmpart.S (asm_vm_call_method) [SIZEOF_VOID_P == 4]:
Adjusted reserved stack-space to 4*4.

17 years ago* src/vm/jit/mips/codegen.c (codegen_emit): Use FLTMOVE and DBLMOVE to
twisti [Tue, 5 Jun 2007 09:00:30 +0000 (09:00 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): Use FLTMOVE and DBLMOVE to
save some moves.

17 years ago* src/vm/jit/mips/codegen.c (codegen_emit): Small code-layout change.
twisti [Tue, 5 Jun 2007 07:56:35 +0000 (07:56 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): Small code-layout change.

17 years ago* src/vm/vm.c: Set Id keyword.
twisti [Tue, 5 Jun 2007 07:44:38 +0000 (07:44 +0000)]
* src/vm/vm.c: Set Id keyword.

17 years ago* src/vm/vm.c (vmcore/statistics.h): Added.
twisti [Tue, 5 Jun 2007 07:42:57 +0000 (07:42 +0000)]
* src/vm/vm.c (vmcore/statistics.h): Added.

17 years ago* src/vmcore/statistics.c (count_calls_java_to_native): Added.
twisti [Tue, 5 Jun 2007 07:40:49 +0000 (07:40 +0000)]
* src/vmcore/statistics.c (count_calls_java_to_native): Added.
(count_calls_native_to_java): Likewise.
(count_native_function_calls): Removed.
(nativeinvokation): Likewise.
(print_stats): Print new variables.

* src/vmcore/statistics.h (count_calls_java_to_native): Added.
(count_calls_native_to_java): Likewise.
(nativeinvokation): Removed.

* src/vm/jit/codegen-common.c (codegen_start_native_call)
[ENABLE_STATISTICS]: Increase count_calls_java_to_native.

* src/vm/vm.c (vm_call_method_vmarg) [ENABLE_STATISTICS]: Increase
count_calls_native_to_java.
(vm_call_method_int_vmarg): Likewise.
(vm_call_method_long_vmarg): Likewise.
(vm_call_method_float_vmarg): Likewise.
(vm_call_method_double_vmarg): Likewise.

17 years ago* src/vm/signal.c (unistd.h): Removed.
twisti [Mon, 4 Jun 2007 13:12:56 +0000 (13:12 +0000)]
* src/vm/signal.c (unistd.h): Removed.
(sys/mman.h): Likewise.
(signal_init): Moved mmap of page 0x0 and the hardware-exceptions
check into exceptions_init.

* src/vm/exceptions.c (unistd.h): Added.
(sys/mman.h): Likewise.
(exceptions_init): See above.