twisti [Fri, 18 Nov 2005 00:53:01 +0000 (00:53 +0000)]
* patcher_builtin_new, patcher_builtin_newarray,
patcher_builtin_arrayinstanceof: Removed due to Java 1.5 changes.
* patcher_aconst: Added.
twisti [Fri, 18 Nov 2005 00:52:13 +0000 (00:52 +0000)]
* Removed empty line.
twisti [Fri, 18 Nov 2005 00:41:29 +0000 (00:41 +0000)]
* jumptable_int, jumptable_long: Defined.
twisti [Fri, 18 Nov 2005 00:30:10 +0000 (00:30 +0000)]
* patcher_builtin_arraycheckcast: Don't set BUILTIN_arraycheckcast.
twisti [Fri, 18 Nov 2005 00:11:55 +0000 (00:11 +0000)]
* asm_calljavafunction: Set noreorder so computing pv is correct.
* asm_calljavafunction2: Likewise and added missing nops.
twisti [Thu, 17 Nov 2005 22:30:41 +0000 (22:30 +0000)]
* asm_calljavafunction2: Load address for jumptables correctly for darwin.
twisti [Thu, 17 Nov 2005 19:28:47 +0000 (19:28 +0000)]
* Users should not need to generate these.
twisti [Thu, 17 Nov 2005 19:06:35 +0000 (19:06 +0000)]
* asm_calljavafunction: Fixed -O2 problem, we have to save itmp3 since it's
a callee saved register.
* asm_calljavafunction2: Likewise and started to implement argument passing
correctly with jump tables.
twisti [Thu, 17 Nov 2005 19:01:00 +0000 (19:01 +0000)]
* var_to_reg_int_{low,high} renamed to var_to_reg_lng_{low,high}
* Smaller changes.
twisti [Thu, 17 Nov 2005 19:00:29 +0000 (19:00 +0000)]
* var_to_reg_int_{low,high} renamed to var_to_reg_lng_{low,high}
* ICMD_IF_Lxx: Implemented.
* ICMD_IF_LCMPxx: Likewise.
twisti [Thu, 17 Nov 2005 18:57:34 +0000 (18:57 +0000)]
* SUPPORT_LONG_CMP_CONST: Added.
twisti [Thu, 17 Nov 2005 18:53:38 +0000 (18:53 +0000)]
* SUPPORT_LONG_CMP_CONST: Added.
* NOLONG_CONDITIONAL: Removed.
twisti [Thu, 17 Nov 2005 18:53:07 +0000 (18:53 +0000)]
* NOLONG_CONDITIONAL renamed to SUPPORT_LONG_CMP_CONST.
twisti [Thu, 17 Nov 2005 18:40:04 +0000 (18:40 +0000)]
* Really support build dirs.
twisti [Thu, 17 Nov 2005 18:33:50 +0000 (18:33 +0000)]
* Build dir support.
twisti [Thu, 17 Nov 2005 16:58:31 +0000 (16:58 +0000)]
* SAVE_TEMPORARY_REGISTERS, RESTORE_TEMPORARY_REGISTERS: Removed t7.
twisti [Thu, 17 Nov 2005 13:47:58 +0000 (13:47 +0000)]
* string_init: Added.
* literalstring_u2: Added string hashtable lock.
twisti [Thu, 17 Nov 2005 13:47:28 +0000 (13:47 +0000)]
* string_init: Added.
twisti [Thu, 17 Nov 2005 13:46:59 +0000 (13:46 +0000)]
* main: Call string_init.
twisti [Thu, 17 Nov 2005 13:35:49 +0000 (13:35 +0000)]
* finalizer_add: Removed.
* finalizer_notify, finalizer_run: Added.
* finalizer_thread: Removed list stuff since this was wrong, we need to
call the finalizers immediately. We do this now with
gc_invoke_finalizers.
twisti [Thu, 17 Nov 2005 13:34:13 +0000 (13:34 +0000)]
* gc_init: Set GC_java_finalization, GC_finalize_on_demand and
GC_finalizer_notifier.
twisti [Thu, 17 Nov 2005 10:23:11 +0000 (10:23 +0000)]
* M_LST_IMM32, M_AST_IMM32: Added.
twisti [Thu, 17 Nov 2005 10:22:35 +0000 (10:22 +0000)]
* createnativestub: Don't save return value for void functions.
twisti [Thu, 17 Nov 2005 10:21:35 +0000 (10:21 +0000)]
* intern: Reformatted for better debugability.
edwin [Wed, 16 Nov 2005 19:13:37 +0000 (19:13 +0000)]
make twisti's debug code a bit more compiler friendly
(it did not compile with the mips compiler)
twisti [Wed, 16 Nov 2005 13:29:58 +0000 (13:29 +0000)]
* gnu_classpath_Pointer.h: Removed.
twisti [Wed, 16 Nov 2005 13:28:59 +0000 (13:28 +0000)]
* link_array: Replaced utf_new_intern with utf_new.
twisti [Wed, 16 Nov 2005 13:28:33 +0000 (13:28 +0000)]
* load_constantpool, load_newly_created_array: Replaced utf_new_intern with
utf_new.
twisti [Wed, 16 Nov 2005 13:27:46 +0000 (13:27 +0000)]
* utf_new_intern: Removed.
* utf_new: Added hashtable locking (from utf_new_intern).
twisti [Wed, 16 Nov 2005 13:15:29 +0000 (13:15 +0000)]
* gnu_classpath_Pointer.h: Removed, not required anymore during libvm.
twisti [Wed, 16 Nov 2005 12:13:47 +0000 (12:13 +0000)]
* config.h, vm/types.h: Added.
* lock_classcache_hashtable: Likewise.
* classcache_init: Changed return type to bool, initialize
lock_classcache_hashtable.
* CLASSCACHE_LOCK, CLASSCACHE_UNLOCK: Use builtin_monitorenter/exit instead
of crappy tables_lock/unlock.
twisti [Wed, 16 Nov 2005 12:12:29 +0000 (12:12 +0000)]
* classcache_init: Changed return type to bool.
twisti [Wed, 16 Nov 2005 12:12:02 +0000 (12:12 +0000)]
* tables_init: Changed return type to bool, removed call to
classcache_init: now done in cacao.c (main).
twisti [Wed, 16 Nov 2005 12:11:22 +0000 (12:11 +0000)]
* tables_init: Changed return type to bool.
twisti [Wed, 16 Nov 2005 12:10:43 +0000 (12:10 +0000)]
* lock_utf_hashtable: Added.
* utf8_init: Changed return type to bool, initialize lock_utf_hashtable.
* utf_new: Use builtin_monitorenter/exit instead of crappy tables_lock.
twisti [Wed, 16 Nov 2005 12:09:48 +0000 (12:09 +0000)]
* config.h, vm/types.h: Added.
* utf8_init: Changed return type to bool.
twisti [Wed, 16 Nov 2005 12:08:42 +0000 (12:08 +0000)]
* main: Initialize subsystems in correct order, added classcache_init.
twisti [Wed, 16 Nov 2005 12:03:58 +0000 (12:03 +0000)]
* Initialize subsystems in correct order.
twisti [Wed, 16 Nov 2005 12:03:38 +0000 (12:03 +0000)]
* throw_main_exception_exit: Added.
twisti [Tue, 15 Nov 2005 23:43:17 +0000 (23:43 +0000)]
* set: Handle value == NULL correctly.
twisti [Tue, 15 Nov 2005 21:13:09 +0000 (21:13 +0000)]
* Added long corner case for 32-bit archs.
twisti [Tue, 15 Nov 2005 00:26:07 +0000 (00:26 +0000)]
* BUILT_SOURCES: Added offsets.h.
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.