twisti [Tue, 15 Nov 2005 00:18:01 +0000 (00:18 +0000)]
2005-11-14 Tom Tromey <tromey@redhat.com>
* .cvsignore: Updated.
* .cdtproject, .project: New files.
* .externalToolBuilders/CacaoAutogen.launch: New file.
* .externalToolBuilders/CacaoConfigure.launch: New file.
* configure.in: Added --with-flat-classpath option, new subst GLIBJZ,
new define GLIBJZ_STRING.
* tests/regression/Makefile.am (JAVAC): Use GLIBJZ.
* tests/native/Makefile.am (JAVAC): Use GLIBJZ.
* src/vm/global.h (CLASSPATH_GLIBJ_ZIP_PATH): Use GLIBJZ_STRING.
* src/vm/jit/i386/Makefile.am (BUILT_SOURCES): New variable.
* src/native/Makefile.am (nativetable.inc): Use GLIBJZ.
* src/native/include/Makefile.am (GLIBJ_ZIP): Use GLIBJZ.
* src/lib/Makefile.am (GLIBJ_ZIP): Use GLIBJZ.
twisti [Mon, 14 Nov 2005 19:48:30 +0000 (19:48 +0000)]
* Get<Type>Field: Big-endian fixes for boolean, byte, char, short versions.
* Set<Type>Field: Likewise.
twisti [Mon, 14 Nov 2005 19:47:26 +0000 (19:47 +0000)]
* createnativestub: Some fixes, don't save return value for void functions.
twisti [Fri, 11 Nov 2005 21:58:18 +0000 (21:58 +0000)]
* preInit: Set java.library.path to "" to be compatible to other JVMs.
twisti [Fri, 11 Nov 2005 14:42:26 +0000 (14:42 +0000)]
* codegen: Changed return value to bool, throw InternalError for unknown
ICMD.
twisti [Fri, 11 Nov 2005 14:27:09 +0000 (14:27 +0000)]
* codegen: Changed return value to bool, throw InternalError for unknown
ICMD.
twisti [Fri, 11 Nov 2005 14:06:36 +0000 (14:06 +0000)]
* setfield_critical: Removed.
* getFieldID_critical: Likewise.
twisti [Fri, 11 Nov 2005 14:05:31 +0000 (14:05 +0000)]
* analyse_stack: Pass opcode to InternalError.
twisti [Fri, 11 Nov 2005 14:02:45 +0000 (14:02 +0000)]
* codegen: Changed return value to bool, throw InternalError for unknown
ICMD.
twisti [Fri, 11 Nov 2005 12:00:46 +0000 (12:00 +0000)]
* Java 1.5 support changes.
* codegen: Return bool value to signal an exception.
* Fix line number problem in exception stubs: we can't reuse an exception
stub since we get always the last exception pc.
* Changed MCODECHECK size in stubs to 100, just to be sure.
twisti [Fri, 11 Nov 2005 11:59:05 +0000 (11:59 +0000)]
* patcher_builtin_new: Removed due to Java 1.5 support changes.
* patcher_builtin_newarray: Likewise.
* patcher_builtin_arrayinstanceof: Likewise.
* patcher_aconst: Added.
twisti [Fri, 11 Nov 2005 11:57:07 +0000 (11:57 +0000)]
* main: Check for compiler error with compileall and print out some
warning.
twisti [Fri, 11 Nov 2005 11:39:39 +0000 (11:39 +0000)]
* exceptions_print_exception: Added.
* stacktrace_print_trace: Likewise.
twisti [Fri, 11 Nov 2005 11:38:55 +0000 (11:38 +0000)]
* jit_compile_intern: Check return value of codegen.
twisti [Fri, 11 Nov 2005 11:37:04 +0000 (11:37 +0000)]
* codegen: Changed return type from void to bool.
twisti [Fri, 11 Nov 2005 11:17:33 +0000 (11:17 +0000)]
* java_lang_Throwable.h, java_lang_VMThrowable.h: Removed.
* builtin_trace_exception: Call exceptions_print_exception and
stacktrace_print_trace.
twisti [Fri, 11 Nov 2005 11:16:42 +0000 (11:16 +0000)]
* exceptions_print_exception: Added.
twisti [Fri, 11 Nov 2005 11:14:31 +0000 (11:14 +0000)]
* java_lang_Throwable.h, java_lang_VMThrowable.h: Added.
* cacao_stacktrace_fillInStackTrace: Print ra, sp, framesize in debug mode.
* stacktrace_print_trace_from_buffer: Added.
* stacktrace_dump_trace: Call stacktrace_print_trace_from_buffer.
* stacktrace_print_trace: Changed argument type and call
stacktrace_print_trace_from_buffer.
twisti [Fri, 11 Nov 2005 11:13:01 +0000 (11:13 +0000)]
* stacktrace_print_trace: Changed argument type to java_objectheader*.
twisti [Fri, 11 Nov 2005 10:13:25 +0000 (10:13 +0000)]
* java_lang_Math.h: Removed.
twisti [Thu, 10 Nov 2005 22:05:22 +0000 (22:05 +0000)]
* getClassLoader: Restructured for better debugability.
* isInstance: Likewise.
* getComponentType: Restructured.
* getInterfaces: Likewise.
* getDeclaredConstructors: Better code.
* getDeclaredFields: Likewise.
* cacao_getField0: Removed.
* getBeautifiedName: Likewise.
* getName: Renamed that to klass.
* getSuperclass: Likewise.
* isArray: Likewise.
* isInterface: Likewise.
edwin [Wed, 9 Nov 2005 21:40:47 +0000 (21:40 +0000)]
removed obsolete test files [ABab].java
christian [Wed, 9 Nov 2005 21:40:39 +0000 (21:40 +0000)]
Working lsra Version
christian [Wed, 9 Nov 2005 21:40:15 +0000 (21:40 +0000)]
Max Lifetimecount Correction for lsra
edwin [Wed, 9 Nov 2005 19:33:45 +0000 (19:33 +0000)]
mark statistics on primitive loads as "currently not counted"
edwin [Wed, 9 Nov 2005 19:32:03 +0000 (19:32 +0000)]
save a function call in typecheck.c (without using a macro :)
twisti [Tue, 8 Nov 2005 20:54:36 +0000 (20:54 +0000)]
* ICMD_FRETURN, ICMD_DRETURN: In monitorexit we have to use the pop
instructions, otherwise the fpu stack gets an overflow after 8
monitorexits.
edwin [Tue, 8 Nov 2005 19:01:17 +0000 (19:01 +0000)]
typeinfo.h: rewrote some macros as functions
twisti [Tue, 8 Nov 2005 17:27:29 +0000 (17:27 +0000)]
* exceptions_new_nosuchmethoderror: Added.
twisti [Tue, 8 Nov 2005 17:24:37 +0000 (17:24 +0000)]
* GetMethodID, GetStaticMethodID: Use exceptions_new_nosuchmethoderror.
twisti [Tue, 8 Nov 2005 17:21:37 +0000 (17:21 +0000)]
* exceptions_new_nosuchmethoderror: Added.
twisti [Tue, 8 Nov 2005 17:21:11 +0000 (17:21 +0000)]
* class_java_lang_NoSuchMethodError: Added.
* class_resolveclassmethod, class_resolveinterfacemethod: Use
exceptions_new_nosuchmethoderror.
twisti [Tue, 8 Nov 2005 17:19:52 +0000 (17:19 +0000)]
* utf_java_lang_NoSuchMethodError: Added.
twisti [Tue, 8 Nov 2005 17:00:15 +0000 (17:00 +0000)]
* CLASS_VERSION: Defined to "49.0".
twisti [Tue, 8 Nov 2005 16:59:55 +0000 (16:59 +0000)]
* preInit: Set java.class.version to CLASS_VERSION.
twisti [Tue, 8 Nov 2005 10:58:18 +0000 (10:58 +0000)]
* Java 1.5 support changes.
twisti [Tue, 8 Nov 2005 10:58:04 +0000 (10:58 +0000)]
* patcher_builtin_new, patcher_builtin_newarray,
patcher_builtin_arrayinstanceof: Removed due to Java 1.5 changes.
* patcher_aconst: Added.
twisti [Tue, 8 Nov 2005 08:58:30 +0000 (08:58 +0000)]
* Changed float to print.
twisti [Tue, 8 Nov 2005 08:57:57 +0000 (08:57 +0000)]
* Initial commit.
twisti [Tue, 8 Nov 2005 08:57:21 +0000 (08:57 +0000)]
* LoadDisplacementOverflow, FieldDisplacementOverflow: Added.
edwin [Tue, 8 Nov 2005 01:40:34 +0000 (01:40 +0000)]
typecheck.c: rewrote some macros as functions
edwin [Mon, 7 Nov 2005 23:22:38 +0000 (23:22 +0000)]
adapt verifier to java 1.5 changes (ACONSTs are now used differently when
passing class references to builtin functions, LDC may create java.lang.Class
objects).
twisti [Mon, 7 Nov 2005 22:31:17 +0000 (22:31 +0000)]
* Java 1.5 support changes.
twisti [Mon, 7 Nov 2005 22:31:03 +0000 (22:31 +0000)]
* patcher_builtin_new, patcher_builtin_newarray,
patcher_builtin_arrayinstanceof: Removed due to Java 1.5 support changes.
* patcher_aconst: Added.
twisti [Mon, 7 Nov 2005 21:26:59 +0000 (21:26 +0000)]
* INCLUDES: Added OS_DIR.
twisti [Mon, 7 Nov 2005 21:12:29 +0000 (21:12 +0000)]
* Java 1.5 support changes.
twisti [Mon, 7 Nov 2005 21:12:01 +0000 (21:12 +0000)]
* patcher_builtin_new, patcher_builtin_newarray,
patcher_builtin_arrayinstanceof: Removed due to Java 1.5 support changes.
* patcher_aconst: Added.
twisti [Mon, 7 Nov 2005 18:49:17 +0000 (18:49 +0000)]
* PATCHER_builtin_new, PATCHER_builtin_newarray,
PATCHER_builtin_arrayinstanceof: Removed due to Java 1.5 support changes.
twisti [Mon, 7 Nov 2005 18:48:16 +0000 (18:48 +0000)]
* Java 1.5 support changes.
* Fix line number problem in exception stubs: we can't reuse an exception
stub since we get always the last exception pc.
twisti [Mon, 7 Nov 2005 18:45:19 +0000 (18:45 +0000)]
* M_LSUB, M_LSUB_IMM32, M_AND, M_IAND, M_IAND_IMM, M_IXOR, M_BLE, M_BA:
Added.
twisti [Mon, 7 Nov 2005 18:44:32 +0000 (18:44 +0000)]
* patcher_builtin_new, patcher_builtin_newarray,
patcher_builtin_arrayinstanceof: Removed due to Java 1.5 changes.
* patcher_aconst: Added.
twisti [Mon, 7 Nov 2005 18:43:33 +0000 (18:43 +0000)]
* Java 1.5 support changes.
twisti [Mon, 7 Nov 2005 18:39:10 +0000 (18:39 +0000)]
* ICMD_ARRAYCHECKCAST: Removed due to Java 1.5 changes.
twisti [Mon, 7 Nov 2005 18:32:36 +0000 (18:32 +0000)]
* OP*: Macros reformatted.
twisti [Mon, 7 Nov 2005 18:22:11 +0000 (18:22 +0000)]
* Java 1.5 support changes.
twisti [Mon, 7 Nov 2005 18:20:48 +0000 (18:20 +0000)]
* LOADCONST_A_CLASS: Added.
* LOADCONST_A_BUILTIN: Also set iptr->target.
twisti [Mon, 7 Nov 2005 17:57:56 +0000 (17:57 +0000)]
* builtin_canstore: Some reformatting.
twisti [Mon, 7 Nov 2005 17:47:49 +0000 (17:47 +0000)]
* exceptions_throw_outofmemory_exit: Added.
* new_verifyerror: Handle m == NULL case.
twisti [Mon, 7 Nov 2005 17:47:09 +0000 (17:47 +0000)]
* exceptions_throw_outofmemory_exit: Added.
twisti [Mon, 7 Nov 2005 17:44:54 +0000 (17:44 +0000)]
* memory_checked_alloc, mem_realloc: Use exceptions_throw_outofmemory_exit
instead of throw_cacao_exception_exit.
twisti [Mon, 7 Nov 2005 17:44:28 +0000 (17:44 +0000)]
* gc_out_of_memory: Use exceptions_throw_outofmemory_exit instead of
throw_cacao_exception_exit.
twisti [Mon, 7 Nov 2005 17:37:47 +0000 (17:37 +0000)]
* MAJOR_VERSION: Updated to 49.
christian [Mon, 7 Nov 2005 16:38:07 +0000 (16:38 +0000)]
Comment added why integer return register is not precoloured
twisti [Mon, 7 Nov 2005 16:26:51 +0000 (16:26 +0000)]
* DISABLE_GC: Defined.
twisti [Mon, 7 Nov 2005 16:15:33 +0000 (16:15 +0000)]
* asm_call_jit_compiler: Argument save/restore offsets fixed for darwin.
twisti [Mon, 7 Nov 2005 11:59:33 +0000 (11:59 +0000)]
* get: Warning fix.
twisti [Mon, 7 Nov 2005 11:53:28 +0000 (11:53 +0000)]
* DIST_SUBDIRS, SUBDIRS: Moved to top.
twisti [Mon, 7 Nov 2005 11:52:41 +0000 (11:52 +0000)]
* DIST_SUBDIRS: Added.
twisti [Sun, 6 Nov 2005 21:51:11 +0000 (21:51 +0000)]
* Fix line number problem in exception stubs: we can't reuse an exception
stub since we get always the last exception pc.
* Changed MCODECHECK size in stubs to 100, just to be sure.
twisti [Sun, 6 Nov 2005 21:24:30 +0000 (21:24 +0000)]
* Fix line number problem in exception stubs: we can't reuse an exception
stub since we get always the last exception pc.
* Changed MCODECHECK size in stubs to 512, just to be sure.
twisti [Sun, 6 Nov 2005 20:28:40 +0000 (20:28 +0000)]
* Fix line number problem in exception stubs: we can't reuse an exception
stub since we get always the last exception pc.
* Changed MCODECHECK size in stubs to 100, just to be sure.
twisti [Sun, 6 Nov 2005 20:20:02 +0000 (20:20 +0000)]
* darwin: Fixed small typo.
motse [Sun, 6 Nov 2005 16:41:06 +0000 (16:41 +0000)]
forgot to include a few header files
twisti [Sun, 6 Nov 2005 16:32:15 +0000 (16:32 +0000)]
* GEN_JVMTI_HEADER_FILES: Added, fixed small type, add to DO_HEADER_FILES
only if ENABLE_JVMTI.
twisti [Sun, 6 Nov 2005 16:27:32 +0000 (16:27 +0000)]
* VMFrame.c, VMVirtualMachine.c: Added, compile only with ENABLE_JVMTI.
motse [Sun, 6 Nov 2005 16:21:03 +0000 (16:21 +0000)]
add check for ENABLE_JVMTI
motse [Sun, 6 Nov 2005 16:16:07 +0000 (16:16 +0000)]
split VMjvmti.c in VMVirtualMachine.c and VMFrame.c
motse [Sun, 6 Nov 2005 16:05:30 +0000 (16:05 +0000)]
ignore for jvmti header files added
twisti [Sun, 6 Nov 2005 14:47:18 +0000 (14:47 +0000)]
* x86_64_emit_ishift, x86_64_emit_lshift: Bugfix where s1 maybe equal to
RCX.
twisti [Sun, 6 Nov 2005 14:46:37 +0000 (14:46 +0000)]
* asm_wrapper_patcher: We now use %rbp to address the patcher stub
variables and align %rsp to 16-bytes. This is necessary for leaf methods
and the infamous printf-movaps bug.
twisti [Sun, 6 Nov 2005 14:44:42 +0000 (14:44 +0000)]
* bp: Defined.
motse [Sun, 6 Nov 2005 14:01:10 +0000 (14:01 +0000)]
VMjdwp/VMjvmti new makefile entries
twisti [Sat, 5 Nov 2005 23:42:13 +0000 (23:42 +0000)]
* codegen_findmethod: Use structure in local stackframe instead of
allocating each time on the heap.
twisti [Sat, 5 Nov 2005 22:32:38 +0000 (22:32 +0000)]
* main: Call nogc_init at the very beginning for DISABLE_GC.
twisti [Sat, 5 Nov 2005 22:32:07 +0000 (22:32 +0000)]
* nogc_init, nogc_realloc: Added for DISABLE_GC.
twisti [Sat, 5 Nov 2005 22:31:49 +0000 (22:31 +0000)]
* nogc_realloc, heap_free, nogc_init: Added.
twisti [Sat, 5 Nov 2005 22:30:59 +0000 (22:30 +0000)]
* Define some macros differently for DISABLE_GC, allocate always from the
heap.
twisti [Sat, 5 Nov 2005 19:51:18 +0000 (19:51 +0000)]
* builtin_new: Check for java.lang.InstantiationError.
twisti [Sat, 5 Nov 2005 19:44:38 +0000 (19:44 +0000)]
* string_java_lang_InstantiationError: Added.
twisti [Sat, 5 Nov 2005 17:57:09 +0000 (17:57 +0000)]
* show_icmd: Fixed ICMD_ARRAYCHECKCAST output.
twisti [Sat, 5 Nov 2005 16:33:53 +0000 (16:33 +0000)]
* asm_call_jit_compiler: Renamed _exceptionptr to _no_threads_exceptionptr.
* asm_wrapper_patcher: Added athrow/areturn support, the wrapper can now
handle leaf methods.
twisti [Sat, 5 Nov 2005 16:31:41 +0000 (16:31 +0000)]
* createnativestub: Renamed _exceptionptr to _no_threads_exceptionptr.
twisti [Sat, 5 Nov 2005 16:30:33 +0000 (16:30 +0000)]
* JAVA_GET/PUT*: Removed __POWERPC__ define, since we can now handle lazy
loading in leafs.
twisti [Sat, 5 Nov 2005 16:29:36 +0000 (16:29 +0000)]
* JAVA_GET/PUT*, JAVA_CHECKCAST, JAVA_INSTANCEOF: Removed __POWERPC__
define, since we can now handle lazy loading in leafs.
twisti [Sat, 5 Nov 2005 16:26:56 +0000 (16:26 +0000)]
* currentThread: Assign return value to variable, this removes a compiler
warning and eases debugging.
twisti [Sat, 5 Nov 2005 16:13:34 +0000 (16:13 +0000)]
* Only added some debug output for mips and powerpc, this should be remove
asap.
twisti [Sat, 5 Nov 2005 11:10:42 +0000 (11:10 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
twisti [Fri, 4 Nov 2005 17:49:54 +0000 (17:49 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
twisti [Fri, 4 Nov 2005 17:17:36 +0000 (17:17 +0000)]
* patcher_builtin_newarray, patcher_builtin_multianewarray,
patcher_builtin_arraycheckcast, patcher_builtin_arrayinstanceof: Patch
classinfo instead of vftbl.
motse [Fri, 4 Nov 2005 16:58:36 +0000 (16:58 +0000)]
almost all required function implemented - first integration with jdwp - nothing tested