cacao.git
17 years ago* src/native/native.c (native_library_find): Typo.
twisti [Fri, 29 Jun 2007 18:56:08 +0000 (18:56 +0000)]
* src/native/native.c (native_library_find): Typo.

17 years ago* configure.ac (AC_CHECK_HEADERS): Added netdb.h, ucontext.h.
twisti [Fri, 29 Jun 2007 18:53:55 +0000 (18:53 +0000)]
* configure.ac (AC_CHECK_HEADERS): Added netdb.h, ucontext.h.
(AC_CHECK_FUNCS): Added gethostbyname, htons, malloc, recv, send.
(AC_CHECK_ENABLE_ZLIB): Moved code to function.
(AC_CHECK_ENABLE_LTDL): Likewise.

* m4/zlib.m4: New file.
* m4/ltdl.m4: Likewise.

* src/native/native.c [ENABLE_LTDL && HAVE_LTDL_H] (ltdl.h): Added
#ifdef.
[ENABLE_LTDL] (hashtable_library): Likewise.
(native_init) [ENABLE_LTDL]: Likewise.
[ENABLE_LTDL] (native_library_open): Likewise.
[ENABLE_LTDL] (native_library_add): Likewise.
[ENABLE_LTLD] (native_library_find): Likewise.

17 years ago* src/native/vm/sun/jvm.c: Added copyright header.
twisti [Thu, 28 Jun 2007 13:40:37 +0000 (13:40 +0000)]
* src/native/vm/sun/jvm.c: Added copyright header.

17 years ago* src/vm/global.h (ACC_CLASS_REFERENCE_MASK): Added.
twisti [Thu, 28 Jun 2007 10:30:08 +0000 (10:30 +0000)]
* src/vm/global.h (ACC_CLASS_REFERENCE_MASK): Added.
(ACC_CLASS_SOFT_REFERENCE): Renamed to ACC_CLASS_REFERENCE_SOFT.
(ACC_CLASS_WEAK_REFERENCE): Renamed to ACC_CLASS_REFERENCE_WEAK.
(ACC_CLASS_PHANTOM_REFERENCE): Renamed to ACC_CLASS_REFERENCE_PHANTOM.

* src/vmcore/class.c (class_create_classinfo): Flag soft/weak/phantom
reference classes.

* src/vmcore/linker.c (link_class_intern): Inherit the reference
flags.

17 years ago* src/vm/jit/arm/emit.c (emit_patcher_traps): Formerly known
michi [Thu, 28 Jun 2007 01:52:19 +0000 (01:52 +0000)]
* src/vm/jit/arm/emit.c (emit_patcher_traps): Formerly known
as emit_patcher_stubs, now emits traps instead of stubs.

* src/vm/jit/arm/codegen.c (codegen_emit, codegen_emit_stub_native): Call the
new patcher functions and adapted to above change.

* src/vm/jit/arm/patcher.c: Adapted patchers to new signature for traps.
(patcher_get_putfield): Fixed severe bug for long values.
(patcher_wrapper): Removed, this is obsolete.

* src/vm/jit/arm/codegen.h (M_TRAP): Added.

* src/vm/jit/arm/asmpart.S (asm_patcher_wrapper): Removed, this is obsolete.

* src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigill): Only calls the
exception handling if exception object present.

* src/vm/jit/patcher-common.c: Fixed includes.

* src/vm/jit/patcher-common.h [__ARM__]: Added prototypes for patcher functions.
(patchref_t): Added datap.

* src/vm/jit/patcher.h [__ARM__]: Defined away old patcher stuff.

* src/vm/jit/codegen-common.c (codegen_finish): Resolves pr->datap as well.

17 years ago* src/vm/jit/verify/typecheck-typeinferer.c: Removed patcher.h include.
michi [Thu, 28 Jun 2007 00:31:31 +0000 (00:31 +0000)]
* src/vm/jit/verify/typecheck-typeinferer.c: Removed patcher.h include.
* src/vm/jit/verify/typecheck.c: Likewise.
* src/vm/jit/parse.c: Likewise.
* src/vm/builtin.c: Likewise.

17 years ago* src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added absolute offsets for
ajordan [Thu, 28 Jun 2007 00:01:34 +0000 (00:01 +0000)]
* src/vm/jit/sparc64/md-abi.c (md_param_alloc): Added absolute offsets for
native arguments (reguse * 8).

* src/vm/jit/sparc64/codegen.c (codegen_emit_stub_native): Adapted to
change above.

17 years ago* src/vm/vm.c: Fixed messed up ifdefs introduced with M68K.
michi [Wed, 27 Jun 2007 22:12:32 +0000 (22:12 +0000)]
* src/vm/vm.c: Fixed messed up ifdefs introduced with M68K.
* src/vm/vm.h: Likewise.

17 years ago* configure.ac: Check for librt should only be done on Solaris.
ajordan [Wed, 27 Jun 2007 22:07:28 +0000 (22:07 +0000)]
* configure.ac: Check for librt should only be done on Solaris.

17 years ago* src/vm/builtin.c (builtin_f2l): Added for DISABLE_GC.
ajordan [Wed, 27 Jun 2007 21:53:44 +0000 (21:53 +0000)]
* src/vm/builtin.c (builtin_f2l): Added for DISABLE_GC.
(builtin_d2l): Likewise.

* src/native/jni.c (_Jv_jni_invokeNative): Added SPARC to defines, corrected
bitwise & for ARM.

17 years ago* configure.ac: Added librt for SPARC/Solaris.
ajordan [Wed, 27 Jun 2007 20:56:57 +0000 (20:56 +0000)]
* configure.ac: Added librt for SPARC/Solaris.

17 years ago* src/vm/jit/sparc64/md-abi.h: Removed faulty register offset
ajordan [Wed, 27 Jun 2007 20:56:03 +0000 (20:56 +0000)]
* src/vm/jit/sparc64/md-abi.h: Removed faulty register offset
multiplication from REG_WINDOW_TRANSPOSE.

* src/vm/jit/sparc64/asmpart.S: fixed offsets.h include.

* src/vm/jit/sparc64/solaris/macro_rename.h: Added include,
which renames the REG_SP defined from Solaris sys headers to
REG_SP_SOLARIS and defines mine.
* src/vm/jit/sparc64/emit.c: Used here.
* src/vm/jit/sparc64/codegen.c: Used here.
* src/vm/jit/sparc64/patcher.c: Used here.

17 years ago* src/vm/jit/s390/codegen.c (codegen_emit): Fix profiling code.
pm [Wed, 27 Jun 2007 20:37:45 +0000 (20:37 +0000)]
* src/vm/jit/s390/codegen.c (codegen_emit): Fix profiling code.

17 years ago* src/vm/jit/s390/codegen.c (codegen_emit): Replace some load/stores by a mvc.
pm [Wed, 27 Jun 2007 20:08:30 +0000 (20:08 +0000)]
* src/vm/jit/s390/codegen.c (codegen_emit): Replace some load/stores by a mvc.

17 years ago* src/mm/boehm.c (gc_init): Set GC_all_interior_pointers to 0 and call
twisti [Wed, 27 Jun 2007 18:35:40 +0000 (18:35 +0000)]
* src/mm/boehm.c (gc_init): Set GC_all_interior_pointers to 0 and call
GC_INIT very late.

* src/vm/vm.c (vm_create): Initialze the GC before all other
subsystems.

17 years ago* src/native/vm/sun_misc_Unsafe.c (putObject): New function.
twisti [Wed, 27 Jun 2007 13:26:49 +0000 (13:26 +0000)]
* src/native/vm/sun_misc_Unsafe.c (putObject): New function.
(park): New function, but not implemented.

17 years ago* src/native/vm/gnu/java_lang_VMRuntime.c (unistd.h): Added.
twisti [Wed, 27 Jun 2007 09:23:24 +0000 (09:23 +0000)]
* src/native/vm/gnu/java_lang_VMRuntime.c (unistd.h): Added.

17 years ago* src/vm/exceptions.h: Added EXCEPTION_HARDWARE_COMPILER.
michi [Wed, 27 Jun 2007 09:04:17 +0000 (09:04 +0000)]
* src/vm/exceptions.h: Added EXCEPTION_HARDWARE_COMPILER.
* src/vm/exceptions.c (exceptions_init): Made check clearer.

17 years ago* src/vm/jit/patcher-common.h: Added.
michi [Wed, 27 Jun 2007 08:54:10 +0000 (08:54 +0000)]
* src/vm/jit/patcher-common.h: Added.
* src/vm/jit/patcher-common.t: Added.
* src/vm/jit/Makefile.am: Added above two files.

* src/vm/jit/code.h (codeinfo): Added patcher list.
* src/vm/jit/code.c (code_codeinfo_new, code_codeinfo_free): Patcher list is
created and freed together with codeinfo.

* src/vm/jit/codegen-common.c (codegen_finish): Absolute PCs for patchers are
resolved.

* src/vm/jit/emit-common.h (emit_patcher_traps): Added prototype.

* src/vm/exception.c (exceptions_new_hardware_exception): Patcher handler is
called if needed.

17 years ago* src/vm/jit/s390/tests/dacapo.status: Added more dacapo eclipse results.
pm [Tue, 26 Jun 2007 21:16:35 +0000 (21:16 +0000)]
* src/vm/jit/s390/tests/dacapo.status: Added more dacapo eclipse results.

17 years ago* src/vm/jit/i386/patcher.c (patcher_builtin_multianewarray): Dont'
twisti [Tue, 26 Jun 2007 15:47:43 +0000 (15:47 +0000)]
* src/vm/jit/i386/patcher.c (patcher_builtin_multianewarray): Dont'
patch function address.

17 years ago* src/vm/jit/s390/tests/jasmin.status: Added.
pm [Mon, 25 Jun 2007 18:58:11 +0000 (18:58 +0000)]
* src/vm/jit/s390/tests/jasmin.status: Added.

17 years ago* src/vm/jit/stacktrace.c (stacktrace_print_trace): Handle
twisti [Sun, 24 Jun 2007 10:12:27 +0000 (10:12 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_print_trace): Handle
WITH_CLASSPATH_SUN properly.

17 years ago* src/vm/jit/replace.c: Adapted to multiplied regoff value.
michi [Fri, 22 Jun 2007 16:33:40 +0000 (16:33 +0000)]
* src/vm/jit/replace.c: Adapted to multiplied regoff value.

17 years ago* src/lib/gnu/sun/misc/Unsafe.java: Updated to openjdk rev239.
twisti [Fri, 22 Jun 2007 15:31:05 +0000 (15:31 +0000)]
* src/lib/gnu/sun/misc/Unsafe.java: Updated to openjdk rev239.

* src/native/vm/sun_misc_Unsafe.c (arrayBaseOffset): Implemented.
(arrayIndexScale): Likewise.
(addressSize): Likewise.

17 years ago* src/vmcore/options.c (opt_MaxPermSize): Added.
twisti [Fri, 22 Jun 2007 14:49:10 +0000 (14:49 +0000)]
* src/vmcore/options.c (opt_MaxPermSize): Added.
(opt_PermSize): Likewise.
(options_xx): Check for +/- for boolean options (still some work
left).

* src/vmcore/options.h (opt_MaxPermSize): Added.
(opt_PermSize): Likewise.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

17 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).

17 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.

17 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.

17 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.

17 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.

17 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).

17 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.

17 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.

17 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.

17 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.

17 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.