cacao.git
17 years ago* src/vm/jit/codegen-common.c (codegen_generate_stub_compiler): New
twisti [Thu, 12 Apr 2007 12:45:10 +0000 (12:45 +0000)]
* src/vm/jit/codegen-common.c (codegen_generate_stub_compiler): New
function.

* src/vm/jit/codegen-common.h (createcompilerstub): Removed.
(codegen_generate_stub_compiler): Added.
* src/vm/jit_interface.h: Likewise.
* src/cacaoh/dummy.c: Likewise.

* src/vmcore/linker.c (link_class_intern): Replaced createcompilerstub
with codegen_generate_stub_compiler.

* src/vm/jit/alpha/codegen.c,
src/vm/jit/arm/codegen.c,
src/vm/jit/i386/codegen.c,
src/vm/jit/m68k/codegen.c,
src/vm/jit/mips/codegen.c,
src/vm/jit/powerpc/codegen.c,
src/vm/jit/powerpc64/codegen.c,
src/vm/jit/s390/codegen.c,
src/vm/jit/sparc64/codegen.c,
src/vm/jit/x86_64/codegen.c (COMPILERSTUB_DATASIZE)
(COMPILERSTUB_SIZE): Removed.
(createcompilerstub): Renamed to codegen_emit_stub_compiler and
changed signature.

* src/vm/jit/alpha/codegen.h,
src/vm/jit/arm/codegen.h,
src/vm/jit/i386/codegen.h,
src/vm/jit/m68k/codegen.h,
src/vm/jit/mips/codegen.h,
src/vm/jit/powerpc/codegen.h,
src/vm/jit/powerpc64/codegen.h,
src/vm/jit/s390/codegen.h,
src/vm/jit/sparc64/codegen.h,
src/vm/jit/x86_64/codegen.h (COMPILERSTUB_CODESIZE): Added.

17 years ago* src/vm/jit/arm/linux/md-os.c (mm/memory.h): Removed.
twisti [Thu, 12 Apr 2007 11:56:05 +0000 (11:56 +0000)]
* src/vm/jit/arm/linux/md-os.c (mm/memory.h): Removed.
[ENABLE_THREADS] (threads/native/threads.h): Added.

17 years ago* src/vm/jit/powerpc64/arch.h (SUPPORT_LONG_SHIFT): Enabled.
tbfg [Wed, 11 Apr 2007 16:39:22 +0000 (16:39 +0000)]
* src/vm/jit/powerpc64/arch.h (SUPPORT_LONG_SHIFT): Enabled.

* src/vm/jit/powerpc64/codegen.c (ICMD_LSHLCONST): Implemented.
(ICMD_LSHRCONST): Likewise.
(ICMD_LUSHRCONST): Likewise.
(ICMD_LSHL): Likewise.
(ICMD_LSHR): Likewise.
(ICMD_LUSHR): Likewise.
(ICMD_IUSHR): Fixed.
(ICMD_IUSHRCONST): Fixed.

* src/vm/jit/powerpc64/codegen.h (M_SRL): Use 64bit opcode.
(M_SRA): Likewise.
(M_SRA_IMM): Likewise.
(M_SRL_IMM): Likewise.
(M_SSL_IMM): Likewise.
(M_SSL): Likewise.
(M_CLR_HIGH): Added.

17 years ago* src/toolbox/logging.c (log_finish): Also print a \n in the log-file.
twisti [Wed, 11 Apr 2007 08:21:06 +0000 (08:21 +0000)]
* src/toolbox/logging.c (log_finish): Also print a \n in the log-file.

17 years ago* src/vm/jit/codegen-common.c (codegen_generate): Added re-generating
twisti [Wed, 11 Apr 2007 08:11:49 +0000 (08:11 +0000)]
* src/vm/jit/codegen-common.c (codegen_generate): Added re-generating
debug message.

17 years ago* src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): We only
twisti [Tue, 10 Apr 2007 21:37:03 +0000 (21:37 +0000)]
* src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): We only
need to check the cause for pre glibc-2.5.

17 years ago* src/vm/jit/mips/codegen.c (codegen_emit): Fixed ICMD_IF_Lxx
twisti [Tue, 10 Apr 2007 21:24:14 +0000 (21:24 +0000)]
* src/vm/jit/mips/codegen.c (codegen_emit): Fixed ICMD_IF_Lxx
instructions for 64-bit.

17 years ago* src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): Set val
twisti [Tue, 10 Apr 2007 12:22:16 +0000 (12:22 +0000)]
* src/vm/jit/mips/linux/md-os.c (md_signal_handler_sigsegv): Set val
accordingly.

17 years ago* src/vm/jit/s390/emit.c,
pm [Tue, 10 Apr 2007 05:02:20 +0000 (05:02 +0000)]
* src/vm/jit/s390/emit.c,
src/vm/jit/s390/md-abi.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/arch.h,
src/vm/jit/s390/asmpart.S,
src/vm/jit/s390/tests/tests.java.pp: Changed very much.

17 years ago* src/vm/jit/alpha/emit.c (emit_copy): Check src-type, not dst-type.
twisti [Mon, 9 Apr 2007 21:17:36 +0000 (21:17 +0000)]
* src/vm/jit/alpha/emit.c (emit_copy): Check src-type, not dst-type.

17 years ago* src/vm/jit/alpha/asmpart.S: Use % instead of @ for progbits as ARM's
twisti [Mon, 9 Apr 2007 17:23:55 +0000 (17:23 +0000)]
* src/vm/jit/alpha/asmpart.S: Use % instead of @ for progbits as ARM's
assembler uses @ as comment character.
* src/vm/jit/arm/asmpart.S: Likewise.
* src/vm/jit/i386/asmpart.S: Likewise.
* src/vm/jit/mips/asmpart.S: Likewise.
* src/vm/jit/powerpc/asmpart.S: Likewise.
* src/vm/jit/powerpc64/asmpart.S: Likewise.
* src/vm/jit/s390/asmpart.S: Likewise.
* src/vm/jit/sparc64/asmpart.S: Likewise.
* src/vm/jit/x86_64/asmpart.S: Likewise.

17 years ago* src/vm/jit/mips/codegen.h (BRANCH_NOPS): Added long-branches case.
twisti [Mon, 9 Apr 2007 11:51:25 +0000 (11:51 +0000)]
* src/vm/jit/mips/codegen.h (BRANCH_NOPS): Added long-branches case.

* src/vm/jit/mips/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.
(emit_branch): Implemented conditional long-branches.

17 years ago* src/native/vm/cldc1.1/java_lang_Object.c (notifyAll): Implemented.
twisti [Sun, 8 Apr 2007 21:14:40 +0000 (21:14 +0000)]
* src/native/vm/cldc1.1/java_lang_Object.c (notifyAll): Implemented.
* src/native/vm/cldc1.1/java_lang_String.c (lastIndexOf__I): Likewise.

17 years ago* src/vm/global.h (compiler_lock, compiler_unlock): Removed.
michi [Thu, 5 Apr 2007 14:23:04 +0000 (14:23 +0000)]
* src/vm/global.h (compiler_lock, compiler_unlock): Removed.
* src/cacaoh/dummy.c (compiler_lock, compiler_unlock): Removed.
* src/threads/native/threads.c (compiler_lock, compiler_unlock): Removed.

* src/vmcore/linker.h (linker_classrenumber_lock): Added.
* src/vmcore/linker.c (linker_classrenumber_lock): Added.
(linker_compute_subclasses): Uses above lock object instead of compiler_lock.

* src/vm/jit/intrp/asmpart.c (intrp_asm_getclassvalues_atomic): Likewise.

17 years ago* src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Inserted ifdef to fix
michi [Thu, 5 Apr 2007 13:22:37 +0000 (13:22 +0000)]
* src/vm/jit/codegen-common.c (codegen_get_pv_from_pc): Inserted ifdef to fix
compiler error with disabled threads.

17 years ago* src/vm/exceptions.c (exceptions_throw_nosuchmethoderror)
twisti [Thu, 5 Apr 2007 12:06:28 +0000 (12:06 +0000)]
* src/vm/exceptions.c (exceptions_throw_nosuchmethoderror)
[!ENABLE_JAVASE]: Throw an error.

17 years ago* src/threads/threads-common.c (threads_get_state): Renamed to
twisti [Thu, 5 Apr 2007 11:57:59 +0000 (11:57 +0000)]
* src/threads/threads-common.c (threads_get_state): Renamed to
threads_thread_get_state.
(threads_thread_is_alive): New function.

* src/threads/threads-common.h: Likewise.

* src/native/vm/java_lang_Thread.c (isAlive): New function.
(getState): Renamed threads_get_state to threads_thread_get_state.

* src/native/vm/java_lang_Thread.h (isAlive): Added.

* src/native/vm/cldc1.1/java_lang_Thread.c (isAlive): New function.

17 years ago* src/native/vm/java_lang_Thread.c [ENABLE_THREADS]
twisti [Thu, 5 Apr 2007 11:39:58 +0000 (11:39 +0000)]
* src/native/vm/java_lang_Thread.c [ENABLE_THREADS]
(threads/native/threads.h): Removed.
(threads/threads-common.h): Added.
(vm/stringlocal.h): Likewise.
(vm/vm.h): Removed.
(getState): Implemented.

* src/threads/threads-common.c (vm/vm.h): Added.
(threads_get_state): New function.
(threads_dump): Print thread state.

* src/threads/threads-common.h (THREAD_STATE_NEW)
(THREAD_STATE_RUNNABLE, THREAD_STATE_BLOCKED, THREAD_STATE_WAITING)
(THREAD_STATE_TIMED_WAITING, THREAD_STATE_TERMINATED): Defined.
(threads_get_state): Added.

* src/threads/native/threads.c (threads_init): Set thread-state.
(threads_startup_thread): Likewise.
(threads_attach_current_thread): Likewise.
(threads_detach_thread): Likewise.
(threads_wait_with_timeout): Likewise.

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

* src/native/native.c (dummynativetable) [ENABLE_JAVASE]: Added
Java_java_lang_VMThread_getState.

17 years ago* src/threads/threads-common.c (threads_print_stacktrace): Removed
twisti [Thu, 5 Apr 2007 00:14:57 +0000 (00:14 +0000)]
* src/threads/threads-common.c (threads_print_stacktrace): Removed
!ENABLE_THREADS code, since this file is only compiled with
ENABLE_THREADS.

17 years ago* src/vm/jit/verify/typecheck-stackbased.c: Use block directly instead
twisti [Wed, 4 Apr 2007 22:29:36 +0000 (22:29 +0000)]
* src/vm/jit/verify/typecheck-stackbased.c: Use block directly instead
of insindex.
* src/vm/jit/verify/typecheck-stackbased-gen.inc: Newly generated.

17 years ago* src/vm/jit/parse.c (BYTECODEINDEX_TO_BASICBLOCK): Added.
twisti [Wed, 4 Apr 2007 22:14:42 +0000 (22:14 +0000)]
* src/vm/jit/parse.c (BYTECODEINDEX_TO_BASICBLOCK): Added.
(parsedata_t): Removed instructionstart, added bytecodestart,
basicblockstart, bytecodemap, instructionmap.
(parse_setup): Allocate new arrays.
(parse_bytecodeindex_to_basicblock): New function.
(parse_mark_exception_boundaries): Pass parsedata_t.
(parse_resolve_exception_table): Likewise.
(parse): Completely rewritten so we are able to have basic block
boundaries on IR instruction level. We now also resolve basic block
pointers in this pass.

* src/vm/jit/parse.h (MARK_BASICBLOCK): Pass parsedata_t.
(BLOCK_OF): Removed.

* src/vm/jit/jit.h (jitdata): Removed basicblockindex.

* src/vm/jit/show.c (SHOW_TARGET): Print block instead of insindex.
(show_icmd): Likewise.

* src/vm/jit/stack.c (BRANCH_TARGET): Directly use block.
(stack_analyse): Likewise.
* src/vm/jit/verify/icmds.c: Likewise.
* src/vm/jit/verify/typecheck-stackbased.c: Likewise.

17 years ago* src/native/vm/gnu/sun_misc_Unsafe.c: Header changes.
twisti [Wed, 4 Apr 2007 14:16:37 +0000 (14:16 +0000)]
* src/native/vm/gnu/sun_misc_Unsafe.c: Header changes.

* src/native/native.c [ENABLE_JAVASE]
(native/include/sun_misc_Unsafe.h): Added.
[ENABLE_JAVASE] (dummynativetable): Added
Java_sun_misc_Unsafe_objectFieldOffset and
Java_sun_misc_Unsafe_compareAndSwapInt.

17 years ago* src/vm/jit/alpha/asmpart.S: Replaced __GNU__ with __linux__ for
twisti [Tue, 3 Apr 2007 22:29:59 +0000 (22:29 +0000)]
* src/vm/jit/alpha/asmpart.S: Replaced __GNU__ with __linux__ for
exec-stacks.
* src/vm/jit/arm/asmpart.S: Likewise.
* src/vm/jit/i386/asmpart.S: Likewise.
* src/vm/jit/mips/asmpart.S: Likewise.
* src/vm/jit/powerpc/asmpart.S: Likewise.
* src/vm/jit/powerpc64/asmpart.S: Likewise.
* src/vm/jit/s390/asmpart.S: Likewise.
* src/vm/jit/sparc64/asmpart.S: Likewise.
* src/vm/jit/x86_64/asmpart.S: Likewise.

17 years ago* src/vm/jit/i386/linux/md-os.c (threads/threads-common.h): Added.
twisti [Tue, 3 Apr 2007 21:30:13 +0000 (21:30 +0000)]
* src/vm/jit/i386/linux/md-os.c (threads/threads-common.h): Added.

17 years ago* src/vm/jit/mips/md-abi.h (REG_FA0, REG_FA1, REG_FA2): Defined.
twisti [Tue, 3 Apr 2007 18:02:48 +0000 (18:02 +0000)]
* src/vm/jit/mips/md-abi.h (REG_FA0, REG_FA1, REG_FA2): Defined.

17 years ago* src/threads/threads-common.c (threads_print_stacktrace): Pass
twisti [Tue, 3 Apr 2007 16:06:30 +0000 (16:06 +0000)]
* src/threads/threads-common.c (threads_print_stacktrace): Pass
stackframeinfo to stacktrace_create.

* src/vm/jit/codegen-common.c (threads/native/threads.h): Removed.
(threads/threads-common.h): Added.
(codegen_get_pv_from_pc): Replaced stacktrace_dump_trace with
threads_print_stacktrace.

* src/vm/jit/stacktrace.h (stacktrace_print_trace_from_buffer): Added.

17 years ago* src/vm/jit/stacktrace.c (stacktrace_create): Changed signature.
twisti [Tue, 3 Apr 2007 15:51:52 +0000 (15:51 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_create): Changed signature.

(stacktrace_fillInStackTrace): Pass stackframeinfo to
stacktrace_create.
(stacktrace_getClassContext): Likewise.
(stacktrace_getCurrentClass): Likewise.
(stacktrace_getStack): Likewise.
(stacktrace_dump_trace): Removed.

* src/vm/jit/stacktrace.h (threads/native/threads.h)
(threads/none/threads.h): Removed.
(stacktrace_create): Added.
(stacktrace_dump_trace): Removed.

* src/threads/native/threads.c (threads_dump): Removed.
* src/threads/native/threads.h (threads_dump): Likewise.

* src/threads/threads-common.c (vm/jit/stacktrace.h): Added.
(threads_dump): Added.
(threads_print_stacktrace): Likewise.

* src/threads/threads-common.h (threads_dump): Added.
(threads_print_stacktrace): Likewise.

17 years ago* src/vm/jit/replace.c (threads/threads-common.h): Added.
twisti [Tue, 3 Apr 2007 15:29:26 +0000 (15:29 +0000)]
* src/vm/jit/replace.c (threads/threads-common.h): Added.

* src/vm/jit/replace.h: Moved empty defines to the top of the file to
see what's happening when !defined(ENABLE_REPLACEMENT).

17 years ago* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigfpe): Use
twisti [Tue, 3 Apr 2007 15:22:57 +0000 (15:22 +0000)]
* src/vm/jit/x86_64/linux/md-os.c (md_signal_handler_sigfpe): Use
exceptions_new_hardware_exception.

17 years ago* src/vm/exceptions.c (exceptions_fillinstacktrace)
twisti [Tue, 3 Apr 2007 15:22:21 +0000 (15:22 +0000)]
* src/vm/exceptions.c (exceptions_fillinstacktrace)
[ENABLE_JAVAME_CLDC1_1]: fillInStackTrace has another signature in
CLDC-1.1.

17 years ago* src/vm/jit/arm/emit.c (emit_exception_stubs): Removed.
twisti [Tue, 3 Apr 2007 14:34:23 +0000 (14:34 +0000)]
* src/vm/jit/arm/emit.c (emit_exception_stubs): Removed.

* src/vm/jit/arm/md.c (md_codegen_patch_branch): Likewise.
(md_stacktrace_get_returnaddress): Removed debug code.

17 years ago* src/threads/native/threads.h (STACKFRAMEINFO): Return stackframeinfo
twisti [Tue, 3 Apr 2007 14:23:16 +0000 (14:23 +0000)]
* src/threads/native/threads.h (STACKFRAMEINFO): Return stackframeinfo
instead of a pointer to it.
* src/threads/none/threads.h (STACKFRAMEINFO): Likewise.

* src/vm/jit/codegen-common.c (codegen_finish_native_call):
STACKFRAMEINFO changes.

* src/vm/jit/replace.c (replace_recover_source_state): Likewise.

* src/vm/jit/stacktrace.c (stacktrace_create_stackframeinfo):
Likewise.
(stacktrace_create_extern_stackframeinfo): Likewise.
(stacktrace_create_native_stackframeinfo): Likewise.
(stacktrace_remove_stackframeinfo): Likewise.

17 years ago* src/vm/jit/stacktrace.c (stacktrace_create_inline_stackframeinfo):
twisti [Tue, 3 Apr 2007 14:00:32 +0000 (14:00 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_create_inline_stackframeinfo):
Removed.
(stacktrace_inline_arithmeticexception): Likewise.
(stacktrace_inline_arrayindexoutofboundsexception): Likewise.
(stacktrace_inline_arraystoreexception): Likewise.
(stacktrace_inline_classcastexception): Likewise.
(stacktrace_inline_nullpointerexception): Likewise.
(stacktrace_inline_fillInStackTrace): Likewise.
(stacktrace_hardware_arithmeticexception): Likewise.
(stacktrace_hardware_nullpointerexception): Likewise.

* src/vm/jit/stacktrace.h: Likewise.

17 years ago* configure.ac: Added armv4 architecture.
twisti [Tue, 3 Apr 2007 13:48:10 +0000 (13:48 +0000)]
* configure.ac: Added armv4 architecture.

17 years ago* src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigsegv): Use
twisti [Tue, 3 Apr 2007 13:47:39 +0000 (13:47 +0000)]
* src/vm/jit/arm/linux/md-os.c (md_signal_handler_sigsegv): Use
exceptions_new_hardware_exception.
[ENABLE_THREADS] (md_signal_handler_sigusr2): New function.

17 years ago* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigfpe): Use
twisti [Tue, 3 Apr 2007 13:14:09 +0000 (13:14 +0000)]
* src/vm/jit/i386/linux/md-os.c (md_signal_handler_sigfpe): Use
exceptions_new_hardware_exception.

17 years ago* src/vm/jit/jit.h: Includes alpha-sorted.
twisti [Tue, 3 Apr 2007 12:10:22 +0000 (12:10 +0000)]
* src/vm/jit/jit.h: Includes alpha-sorted.

17 years ago* src/vm/jit/replace.c (native/include/java_lang_String.h): Removed.
twisti [Tue, 3 Apr 2007 11:56:21 +0000 (11:56 +0000)]
* src/vm/jit/replace.c (native/include/java_lang_String.h): Removed.
(java_value_print): Don't cast to java_lang_String.

17 years ago* src/vm/jit/allocator/simplereg.c (simplereg_make_statistics): Fixed
twisti [Tue, 3 Apr 2007 11:46:50 +0000 (11:46 +0000)]
* src/vm/jit/allocator/simplereg.c (simplereg_make_statistics): Fixed
compiler warning.

17 years ago* src/vm/jit/x86_64/emit.c (emit_replacement_stubs): Removed unused
twisti [Tue, 3 Apr 2007 11:37:30 +0000 (11:37 +0000)]
* src/vm/jit/x86_64/emit.c (emit_replacement_stubs): Removed unused
variable disp.

17 years ago* src/vmcore/statistics.c (statistics_print_memory_usage): Prevent
twisti [Tue, 3 Apr 2007 11:35:40 +0000 (11:35 +0000)]
* src/vmcore/statistics.c (statistics_print_memory_usage): Prevent
compiler warning on 64-bit machines.

17 years ago* src/vm/jit/replace.c: Added include to fix crash on x86_64.
michi [Mon, 2 Apr 2007 23:13:55 +0000 (23:13 +0000)]
* src/vm/jit/replace.c: Added include to fix crash on x86_64.

17 years ago* src/vm/jit/alpha/linux/md-os.c [ENABLE_THREADS]
twisti [Mon, 2 Apr 2007 21:24:59 +0000 (21:24 +0000)]
* src/vm/jit/alpha/linux/md-os.c [ENABLE_THREADS]
(threads/native/threads.h): Added.
[ENABLE_THREADS] (md_signal_handler_sigusr2): Added #ifdef.

17 years ago* src/vm/jit/alpha/md-abi.c (abi_registers_integer_argument): Added.
twisti [Mon, 2 Apr 2007 20:58:30 +0000 (20:58 +0000)]
* src/vm/jit/alpha/md-abi.c (abi_registers_integer_argument): Added.
(abi_registers_integer_saved): Likewise.
(abi_registers_integer_temporary): Likewise.

17 years ago* src/vm/jit/stacktrace.c (stacktrace_create): Returns NULL if there is no
michi [Mon, 2 Apr 2007 20:04:22 +0000 (20:04 +0000)]
* src/vm/jit/stacktrace.c (stacktrace_create): Returns NULL if there is no
stacktrace available for the given thread. Fixed comments.

17 years ago* src/vm/jit/x86_64/md-abi.c (abi_registers_integer_argument): Added.
twisti [Mon, 2 Apr 2007 19:56:14 +0000 (19:56 +0000)]
* src/vm/jit/x86_64/md-abi.c (abi_registers_integer_argument): Added.
(abi_registers_integer_saved): Likewise.
(abi_registers_integer_temporary): Likewise.

17 years ago* src/vm/jit/parse.c (parse): JAVA_GOTO_W must be converted to a
twisti [Mon, 2 Apr 2007 19:45:20 +0000 (19:45 +0000)]
* src/vm/jit/parse.c (parse): JAVA_GOTO_W must be converted to a
ICMD_GOTO.

17 years ago* src/vm/jit/jit.h (INS_FLAG_BASICBLOCK): Defined.
twisti [Mon, 2 Apr 2007 18:56:59 +0000 (18:56 +0000)]
* src/vm/jit/jit.h (INS_FLAG_BASICBLOCK): Defined.
(INS_FLAG_ID_SHIFT): Changed to 5.
(INSTRUCTION_STARTS_BASICBLOCK): Added.

* src/vm/jit/parse.c (parse): Changed basic block determination. Now
basic blocks can start at IR instruction level. This is required for
slow-fast path builtins.

17 years ago* src/vm/jit/stack.c (stack_reach_next_block): Reformatted comments.
twisti [Mon, 2 Apr 2007 16:09:44 +0000 (16:09 +0000)]
* src/vm/jit/stack.c (stack_reach_next_block): Reformatted comments.
(stack_analyse): Likewise.

17 years ago* src/vm/jit/stack.c (stack_mark_reached): Added assert on b.
twisti [Mon, 2 Apr 2007 13:45:30 +0000 (13:45 +0000)]
* src/vm/jit/stack.c (stack_mark_reached): Added assert on b.
(stack_mark_reached_from_outvars): Likewise.
(stack_reach_next_block): Use NULL instead of !.
(stack_analyse): Indent.

17 years ago* src/vm/jit/sparc64/codegen.c: Implemented float argument passing for builtin calls.
ajordan [Sun, 1 Apr 2007 22:53:59 +0000 (22:53 +0000)]
* src/vm/jit/sparc64/codegen.c: Implemented float argument passing for builtin calls.
* src/vm/jit/sparc64/codegen.h: Likewise.

17 years ago* src/vm/jit/powerpc/darwin/md-asm.h,
stefan [Sun, 1 Apr 2007 16:18:16 +0000 (16:18 +0000)]
* src/vm/jit/powerpc/darwin/md-asm.h,
src/vm/jit/i386/darwin/md-asm.h: added missing symbol asm_vm_call_method_end.

17 years ago* contrib/vmlog: Committed vmlog 0.0.5.
edwin [Sun, 1 Apr 2007 10:50:39 +0000 (10:50 +0000)]
* contrib/vmlog: Committed vmlog 0.0.5.
* THIRDPARTY: Added copyright notice for vmlog.

17 years ago* src/vm/jit/parse.c (parse_realloc_instructions): Renamed ipc to
twisti [Fri, 30 Mar 2007 11:41:27 +0000 (11:41 +0000)]
* src/vm/jit/parse.c (parse_realloc_instructions): Renamed ipc to
icount.
(parse): Renamed ipc to icount, set method variables at the very end
and use local variables before.

* src/vm/jit/parse.h (INSTRUCTIONS_CHECK): Renamed ipc to icount.
(PINC): Likewise.
(OP_PREPARE_FLAGS): Likewise.

17 years ago* src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Fixed
twisti [Thu, 29 Mar 2007 23:22:07 +0000 (23:22 +0000)]
* src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Fixed
address check (thanks Michi).

17 years ago* src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed ICMD_IREMPOW2.
ajordan [Thu, 29 Mar 2007 23:01:58 +0000 (23:01 +0000)]
* src/vm/jit/sparc64/codegen.c (codegen_emit): Fixed ICMD_IREMPOW2.
Added ICMD_L2F and ICMD_L2D.
Fixed constant creation in IF_L* compares.

17 years ago* src/mm/nogc.c: Fixed merging conflict which was commited to that file.
michi [Thu, 29 Mar 2007 21:56:35 +0000 (21:56 +0000)]
* src/mm/nogc.c: Fixed merging conflict which was commited to that file.

17 years ago* src/vm/jit/sparc64/md.c (md_get_pv_from_pc): Implemented sethi hanlding.
ajordan [Thu, 29 Mar 2007 21:37:40 +0000 (21:37 +0000)]
* src/vm/jit/sparc64/md.c (md_get_pv_from_pc): Implemented sethi hanlding.

* src/vm/jit/sparc64/codegen.c (createnativestub): Fixed window/stack handling in case of exception.
* src/vm/jit/sparc64/asmpart.S (asm_call_jit_compiler): Likewise.

17 years ago* src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Check
twisti [Thu, 29 Mar 2007 11:04:25 +0000 (11:04 +0000)]
* src/vm/jit/powerpc/linux/md-os.c (md_signal_handler_sigsegv): Check
for addr == NULL in NPE case.

17 years ago* src/vm/jit/s390/md-abi.h,
pm [Thu, 29 Mar 2007 06:52:15 +0000 (06:52 +0000)]
* src/vm/jit/s390/md-abi.h,
src/vm/jit/s390/emit.c,
src/vm/jit/s390/emit.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/arch.h: Changed a lot.

17 years ago* src/vm/exceptions.h (exceptionptr): Removed.
twisti [Wed, 28 Mar 2007 22:59:52 +0000 (22:59 +0000)]
* src/vm/exceptions.h (exceptionptr): Removed.
(_no_threads_exceptionptr): Likewise.

17 years ago* AUTHORS: Added myself to the list of authors (finally).
michi [Wed, 28 Mar 2007 22:25:44 +0000 (22:25 +0000)]
* AUTHORS: Added myself to the list of authors (finally).

17 years ago* Merged in twisti-branch.
twisti [Wed, 28 Mar 2007 21:05:53 +0000 (21:05 +0000)]
* Merged in twisti-branch.

17 years ago* src/vm/exceptions.c (throw_exception_exit_intern): Removed.
twisti [Wed, 28 Mar 2007 13:29:09 +0000 (13:29 +0000)]
* src/vm/exceptions.c (throw_exception_exit_intern): Removed.
(throw_exception): Likewise.
(throw_exception_exit): Likewise.
(throw_main_exception): Likewise.
(throw_main_exception_exit): Likewise.
(throw_cacao_exception_exit): Likewise.
(exceptions_print_stacktrace): New function.
* src/vm/exceptions.h: Likewise.

* src/vm/vm.c (vm_create): Use vm_abort or exceptions_print_stacktrace
instead of throw_main_exception_exit.
(vm_run): Likewise.
(vm_exit): Likewise.
(vm_get_mainclass_from_jar): Likewise.

* src/threads/native/threads.c (threads_init): Use return instead of
throw_exception_exit.
(threads_startup_thread): Use vm_abort.

17 years ago* src/vm/jit/s390/emit.c,
pm [Mon, 26 Mar 2007 07:23:16 +0000 (07:23 +0000)]
* src/vm/jit/s390/emit.c,
src/vm/jit/s390/md-abi.h,
src/vm/jit/s390/md.c,
src/vm/jit/s390/emit.h,
src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h,
src/vm/jit/s390/tests/tests.java.pp,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/md-abi.c: Chaned a lot.

17 years agoReverted patch 7268.
twisti [Sun, 25 Mar 2007 20:30:50 +0000 (20:30 +0000)]
Reverted patch 7268.

* src/vm/jit/code.c: Reverted.
* src/vm/jit/code.h: Likewise.
* src/vm/jit/jit.c: Likewise.
* src/vm/jit/jit.h: Likewise.
* src/vmcore/loader.c: Likewise.
* src/vmcore/method.h: Likewise.

17 years ago* src/native/native.c (native_get_parametertypes): Removed.
twisti [Sun, 25 Mar 2007 18:55:02 +0000 (18:55 +0000)]
* src/native/native.c (native_get_parametertypes): Removed.
(native_get_exceptiontypes): Likewise.
* src/native/native.h: Likewise.

* src/vmcore/method.c (vm/builtin.h): Added.
(vm/resolve.h): Likewise.
(method_get_parametertypearray): New function.
(method_get_exceptionarray): Likewise.
* src/vmcore/method.h (method_get_parametertypearray): Added.
(method_get_exceptionarray): Likewise.

* src/cacaoh/dummy.c (builtin_anewarray): Added.
(resolve_class_from_typedesc): Likewise.

* src/native/vm/gnu/java_lang_reflect_Method.c (getParameterTypes):
Use method function.
(getExceptionTypes): Likewise.
* src/native/vm/gnu/java_lang_reflect_Constructor.c
(getParameterTypes): Likewise.
(getExceptionTypes): Likewise.

17 years ago* src/vm/builtin.c (builtin_isanysubclass): Removed.
twisti [Fri, 23 Mar 2007 21:33:53 +0000 (21:33 +0000)]
* src/vm/builtin.c (builtin_isanysubclass): Removed.
(builtin_instanceof): Replaced builtin_isanysubclass with
class_isanysubclass.
(builtin_descriptorscompatible): Likewise.

* src/vm/builtin.h (builtin_isanysubclass): Removed.

* src/vm/access.c (access_is_accessible_member): Replaced
builtin_isanysubclass with class_isanysubclass.
* src/native/vm/java_lang_Class.c (isAssignableFrom): Likewise.

* src/vm/jit/asmpart.h (castinfo): Removed.

* src/vmcore/class.c (vm/jit/asmpart.h): Added.
(class_isanysubclass): New function.

* src/vmcore/class.h (castinfo): Added.
(class_isanysubclass): Likewise.

* src/cacaoh/dummy.c (asm_getclassvalues_atomic): New function.
(intrp_asm_getclassvalues_atomic): Likewise.

17 years ago* src/vm/builtin.c (builtin_isanysubclass_vftbl): Removed.
twisti [Fri, 23 Mar 2007 20:38:14 +0000 (20:38 +0000)]
* src/vm/builtin.c (builtin_isanysubclass_vftbl): Removed.
(builtin_descriptorscompatible): Use builtin_isanysubclass instead of
builtin_isanysubclass_vftbl.

17 years ago* src/vm/global.h (ACC_CLASS_PRIMITIVE): Defined.
twisti [Fri, 23 Mar 2007 19:10:35 +0000 (19:10 +0000)]
* src/vm/global.h (ACC_CLASS_PRIMITIVE): Defined.

* src/vm/builtin.c (builtin_isanysubclass): Check for primitive
classes.

* src/vmcore/linker.c (link_primitivetype_table): Set primitive flag.

17 years ago* src/vmcore/classcache.c (classcache_add_constraint)
twisti [Fri, 23 Mar 2007 18:51:41 +0000 (18:51 +0000)]
* src/vmcore/classcache.c (classcache_add_constraint)
[CLASSCACHE_VERBOSE]: Started to use log-functions.
(classcache_debug_dump): Likewise.

17 years ago* src/vm/jit/powerpc/emit.c (emit_load): Use switch-case instead of
twisti [Fri, 23 Mar 2007 11:56:31 +0000 (11:56 +0000)]
* src/vm/jit/powerpc/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.

17 years ago* src/vm/jit/arm/codegen.c (codegen) [!ENABLE_SOFTFLOAT]: Fixed position of
michi [Thu, 22 Mar 2007 13:55:44 +0000 (13:55 +0000)]
* src/vm/jit/arm/codegen.c (codegen) [!ENABLE_SOFTFLOAT]: Fixed position of
soft null pointer checks in PUTFIELD and GETFIELD.

17 years ago* src/vmcore/statistics.c (size_lock_record_pool): Added.
twisti [Wed, 21 Mar 2007 14:26:09 +0000 (14:26 +0000)]
* src/vmcore/statistics.c (size_lock_record_pool): Added.
(statistics_print_memory_usage): Print new variable.

* src/vmcore/statistics.h (size_lock_record_pool): Added.

* src/threads/native/lock.c (lock_record_alloc_new_pool): Added
statistics.

17 years ago* src/vmcore/statistics.c (size_threadobject, size_lock_hashtable)
twisti [Wed, 21 Mar 2007 13:27:14 +0000 (13:27 +0000)]
* src/vmcore/statistics.c (size_threadobject, size_lock_hashtable)
(size_lock_waiter): Added.
(statistics_print_memory_usage): Print new variables.

* src/vmcore/statistics.h (size_threadobject, size_lock_hashtable)
(size_lock_waiter): Added.

* src/threads/native/lock.c (vmcore/options.h): Added.
[ENABLE_STATISTICS] (vmcore/statistics.h): Added.
(lock_hashtable_init): Added statistics.
(lock_hashtable_grow): Likewise.
(lock_record_add_waiter): Likewise.
(lock_record_remove_waiter): Likewise.

* src/threads/native/threads.c [ENABLE_STATISTICS]
(vmcore/statistics.h): Added.
(threads_preinit): Added statistics.
(threads_init): Likewise.
(threads_start_javathread): Likewise.
(threads_attach_current_thread): Likewise.
(threads_detach_thread): Likewise.

17 years ago* src/vmcore/zip.c (zip_get): Don't assign in if-statement, this makes
twisti [Wed, 21 Mar 2007 13:19:44 +0000 (13:19 +0000)]
* src/vmcore/zip.c (zip_get): Don't assign in if-statement, this makes
debugging a bit easier.

17 years ago* src/vmcore/linker.c (link_primitivetype_table): Set super class
twisti [Wed, 21 Mar 2007 13:18:20 +0000 (13:18 +0000)]
* src/vmcore/linker.c (link_primitivetype_table): Set super class
explicitly to NULL.
(linker_compute_subclasses): Indent.

17 years ago* src/vm/jit/sparc64/md-abi.c (md_param_alloc_native): using this for native param...
ajordan [Tue, 20 Mar 2007 00:25:19 +0000 (00:25 +0000)]
* src/vm/jit/sparc64/md-abi.c (md_param_alloc_native): using this for native param allocation. No need for my own version of this anymore.
* src/vm/jit/sparc64/codegen.c: Likewise.

17 years ago* src/vm/builtin.h (builtin_isanysubclass_vftbl): Removed, made
twisti [Sat, 17 Mar 2007 13:12:00 +0000 (13:12 +0000)]
* src/vm/builtin.h (builtin_isanysubclass_vftbl): Removed, made
static.

17 years ago* src/vm/builtin.c (builtin_isanysubclass): Code cleanup.
twisti [Sat, 17 Mar 2007 13:11:11 +0000 (13:11 +0000)]
* src/vm/builtin.c (builtin_isanysubclass): Code cleanup.
(builtin_isanysubclass_vftbl): Likewise.

17 years ago* src/native/vm/gnu/java_lang_reflect_Method.c (vm/resolve.h): Added.
twisti [Sat, 17 Mar 2007 13:10:04 +0000 (13:10 +0000)]
* src/native/vm/gnu/java_lang_reflect_Method.c (vm/resolve.h): Added.

17 years ago* src/vm/builtin.c (builtin_isanysubclass): Cleanup and comments.
twisti [Sat, 17 Mar 2007 12:57:32 +0000 (12:57 +0000)]
* src/vm/builtin.c (builtin_isanysubclass): Cleanup and comments.

17 years ago* src/vm/exceptions.c (exceptions_handle_exception): 31 bit address comparison for...
pm [Fri, 16 Mar 2007 23:00:18 +0000 (23:00 +0000)]
* src/vm/exceptions.c (exceptions_handle_exception): 31 bit address comparison for S390. These address comparison macros need to be moved to some header.
* 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/arch.h,
src/vm/jit/s390/patcher.c,
src/vm/jit/s390/md-abi.c,
src/vm/jit/s390/tests/tests.java.pp,
src/vm/jit/s390/tests/Makefile: Changed a lot.

17 years ago* src/native/jni.c (_Jv_jni_invokeNative): Release memory in exception
twisti [Thu, 15 Mar 2007 09:28:56 +0000 (09:28 +0000)]
* src/native/jni.c (_Jv_jni_invokeNative): Release memory in exception
case.

17 years ago* src/vm/jit/s390/tests/tests.java.pp: added INT2CHAR test testing negative values.
pm [Thu, 15 Mar 2007 08:23:19 +0000 (08:23 +0000)]
* src/vm/jit/s390/tests/tests.java.pp: added INT2CHAR test testing negative values.

17 years ago* src/vm/jit/s390/codegen.c,
pm [Thu, 15 Mar 2007 07:07:51 +0000 (07:07 +0000)]
* src/vm/jit/s390/codegen.c,
src/vm/jit/s390/codegen.h: Changed a lot.
* src/vm/jit/s390/tests,
src/vm/jit/s390/tests/tests.java.pp,
src/vm/jit/s390/tests/Makefile: Added opcode tests in java.

17 years ago* src/vmcore/statistics.c (size_string): Added.
twisti [Wed, 14 Mar 2007 21:54:49 +0000 (21:54 +0000)]
* src/vmcore/statistics.c (size_string): Added.
(statistics_print_memory_usage): Likewise.
* src/vmcore/statistics.h (size_string): Likewise.

* src/vm/string.c (vmcore/statistics.h): Added.
(literalstring_u2): Added statistics.

17 years ago* src/vm/jit/alpha/emit.c (emit_load): Use switch-case instead of
twisti [Wed, 14 Mar 2007 21:18:00 +0000 (21:18 +0000)]
* src/vm/jit/alpha/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.

17 years ago* src/vm/jit/alpha/md.c (vm/jit/codegen-common.h): Added temporarily.
twisti [Wed, 14 Mar 2007 21:16:04 +0000 (21:16 +0000)]
* src/vm/jit/alpha/md.c (vm/jit/codegen-common.h): Added temporarily.

17 years ago* src/vm/jit/arm/codegen.c (codegen): All the long compares have a different
michi [Wed, 14 Mar 2007 17:31:05 +0000 (17:31 +0000)]
* src/vm/jit/arm/codegen.c (codegen): All the long compares have a different
implementation now.

17 years ago* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Fixed bug with inmemory
michi [Wed, 14 Mar 2007 16:44:05 +0000 (16:44 +0000)]
* src/vm/jit/arm/emit.c (emit_verbosecall_enter): Fixed bug with inmemory
arguments, which caused some crashes with verbose-calls.

17 years ago* src/mm/nogc.c: Fixed includes and exceptions.
michi [Wed, 14 Mar 2007 12:00:07 +0000 (12:00 +0000)]
* src/mm/nogc.c: Fixed includes and exceptions.

17 years ago* src/vm/jit/i386/emit.c (emit_load): Use switch-case instead of
twisti [Tue, 13 Mar 2007 20:31:51 +0000 (20:31 +0000)]
* src/vm/jit/i386/emit.c (emit_load): Use switch-case instead of
if-else contruct.
(emit_store): Likewise.
(emit_copy): Likewise.

17 years ago* src/vm/jit/i386/codegen.c (codegen): Fixed compiler warning.
twisti [Tue, 13 Mar 2007 20:31:23 +0000 (20:31 +0000)]
* src/vm/jit/i386/codegen.c (codegen): Fixed compiler warning.

17 years ago* src/vm/jit/arm/codegen.c (codegen): Long branches are implemented
michi [Tue, 13 Mar 2007 16:32:56 +0000 (16:32 +0000)]
* src/vm/jit/arm/codegen.c (codegen): Long branches are implemented
differently now.

* src/vm/jit/arm/codegen.h (M_COMPARE): Easier macros without overjumps.
(M_MOVEQ_IMM, M_MOVGT_IMM, M_ADDHI_IMM, M_SUBLO_IMM, M_CMPEQ_IMM): New macro.

17 years ago* src/vm/jit/arm/linux/Makefile.am: Fixed include path to care about builddir.
michi [Tue, 13 Mar 2007 13:19:07 +0000 (13:19 +0000)]
* src/vm/jit/arm/linux/Makefile.am: Fixed include path to care about builddir.

17 years ago* src/vm/jit/codegen.c (codegen): Change the operand direction of some
twisti [Mon, 12 Mar 2007 13:34:37 +0000 (13:34 +0000)]
* src/vm/jit/codegen.c (codegen): Change the operand direction of some
macros. Started to implement long-compares differently.

* src/vm/jit/codegen.h (M_AND, M_ORR, M_EOR, M_AND_IMM, M_MOVEQ)
(M_MOVVS_IMM, M_MOVNE_IMM, M_MOVLT_IMM, M_MOVLS_IMM): Changed operand
direction.
(M_ORR_S, M_CMPEQ, M_CMPLE): New macro.

17 years ago* src/vm/jit/arm/md.c (vm/jit/codegen-common.h): Added.
twisti [Mon, 12 Mar 2007 13:17:07 +0000 (13:17 +0000)]
* src/vm/jit/arm/md.c (vm/jit/codegen-common.h): Added.

17 years ago* src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c
twisti [Mon, 12 Mar 2007 10:11:33 +0000 (10:11 +0000)]
* src/native/vm/cldc1.1/com_sun_cldc_io_ResourceInputStream.c
(vm/vm.h): Added.
(open): Call vm_abort.

* src/native/vm/cldc1.1/com_sun_cldc_io_j2me_socket_Protocol.c
(unistd.h): Added.
(readByte): New function.
(writeBuf): Likewise.
(available0): Likewise.
(close0): Likewise.

17 years ago* tests/regression/resolving (svn:ignore): Added.
twisti [Fri, 9 Mar 2007 21:26:48 +0000 (21:26 +0000)]
* tests/regression/resolving (svn:ignore): Added.
* tests/regression/resolving/classes1: Likewise.
* tests/regression/resolving/classes2: Likewise.
* tests/regression/resolving/classes3: Likewise.