edwin [Wed, 5 Oct 2005 21:47:53 +0000 (21:47 +0000)]
verify invocations of generic builtin methods
edwin [Wed, 5 Oct 2005 17:52:08 +0000 (17:52 +0000)]
code cleanup, moved some code into separate functions
twisti [Wed, 5 Oct 2005 16:12:00 +0000 (16:12 +0000)]
* Changed # comments to /* */, so we can compile with -ansi -pendantic.
twisti [Wed, 5 Oct 2005 16:05:04 +0000 (16:05 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* ICMD_BUILTIN, ICMD_INVOKE*: Use md->paramcount instead of iptr->op1.
* ICMD_BUILTIN: Check for exception if iptr->op1 == true (mauve fix).
* ICMD_MULTIANEWARRAY: Check for exception (mauve fix).
* Removed NegativeArraySizeException stubs.
* createnativestub: Smaller code.
twisti [Wed, 5 Oct 2005 16:04:28 +0000 (16:04 +0000)]
* is_valid_utf: Don't print Overlong UTF-8 sequence warning.
twisti [Wed, 5 Oct 2005 15:44:40 +0000 (15:44 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* ICMD_BUILTIN, ICMD_INVOKE*: Use md->paramcount instead of iptr->op1.
* ICMD_BUILTIN: Check for exception if iptr->op1 == true (mauve fix).
* ICMD_MULTIANEWARRAY: Check for exception (mauve fix).
* Removed NegativeArraySizeException stubs.
* createnativestub: Smaller code.
twisti [Wed, 5 Oct 2005 14:16:57 +0000 (14:16 +0000)]
* analyse_stack: Set iptr->op1 to false for automatic builtins.
edwin [Wed, 5 Oct 2005 13:30:10 +0000 (13:30 +0000)]
verify that abstract classes are not instantiated
edwin [Wed, 5 Oct 2005 12:28:42 +0000 (12:28 +0000)]
verify that the right <init> is called for uninitialized references
edwin [Wed, 5 Oct 2005 11:53:28 +0000 (11:53 +0000)]
cache self-reference of class in link_class_intern
verify that the right <init> method is called in <init> methods
twisti [Wed, 5 Oct 2005 11:15:05 +0000 (11:15 +0000)]
* show_icmd: Print string or classname for ACONSTs.
twisti [Wed, 5 Oct 2005 10:37:00 +0000 (10:37 +0000)]
* literalstring_u2: Bugfix when reorganizing the string hashtable, the
pointer to the current string was used as temp variable.
edwin [Wed, 5 Oct 2005 09:20:30 +0000 (09:20 +0000)]
for INVOKESPECIAL: check that it may only call <init>, a method of the
current class, or a method of a super class of the current class
edwin [Wed, 5 Oct 2005 00:33:09 +0000 (00:33 +0000)]
fix checking of protected members (removed bogus test in resolve_method
and skip array types in resolve_and_check_subtype_set)
edwin [Tue, 4 Oct 2005 22:41:23 +0000 (22:41 +0000)]
implement special lookup for INVOKESPECIAL and super.* methods
twisti [Tue, 4 Oct 2005 22:14:53 +0000 (22:14 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* ICMD_BUILTIN, ICMD_INVOKE*: Use md->paramcount instead of iptr->op1.
* ICMD_BUILTIN: Check for exception if iptr->op1 == true (mauve fix).
* ICMD_MULTIANEWARRAY: Check for exception (mauve fix).
* Removed NegativeArraySizeException stubs.
* createnativestub: Smaller code.
twisti [Tue, 4 Oct 2005 21:54:28 +0000 (21:54 +0000)]
* config.h, types.h: Added.
* link_class_intern: Removed resolving of thrown exceptions. This is not
required here, native.c (native_get_exceptiontypes) does this on request
(fixes jetty). Normal exceptions are still left.
twisti [Tue, 4 Oct 2005 21:40:09 +0000 (21:40 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* ICMD_BUILTIN, ICMD_INVOKE*: Use md->paramcount instead of iptr->op1.
* ICMD_BUILTIN: Check for exception if iptr->op1 == true (mauve fix).
* ICMD_MULTIANEWARRAY: Check for exception (mauve fix).
* Removed NegativeArraySizeException stubs.
* createnativestub: Smaller code.
twisti [Tue, 4 Oct 2005 21:36:45 +0000 (21:36 +0000)]
* M_BNE: Added.
twisti [Tue, 4 Oct 2005 21:13:52 +0000 (21:13 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
twisti [Tue, 4 Oct 2005 20:19:37 +0000 (20:19 +0000)]
* Include cacao/cacao.h for cacao_exit.
twisti [Tue, 4 Oct 2005 20:19:11 +0000 (20:19 +0000)]
* initialize_class_intern: Removed unused variable i.
twisti [Tue, 4 Oct 2005 19:38:56 +0000 (19:38 +0000)]
* Adapted output.
twisti [Tue, 4 Oct 2005 19:38:35 +0000 (19:38 +0000)]
* Print exception in catch.
twisti [Tue, 4 Oct 2005 19:36:30 +0000 (19:36 +0000)]
* Changed and added NegativeArraySizeException tests.
edwin [Tue, 4 Oct 2005 19:03:52 +0000 (19:03 +0000)]
added a large comment explaining the typechecker
twisti [Tue, 4 Oct 2005 18:57:46 +0000 (18:57 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* ICMD_BUILTIN, ICMD_INVOKE*: Use md->paramcount instead of iptr->op1.
* ICMD_BUILTIN: Check for exception if iptr->op1 == true (mauve fix).
* ICMD_MULTIANEWARRAY: Check for exception (mauve fix).
* Removed NegativeArraySizeException stubs.
* createnativestub: Smaller code.
twisti [Tue, 4 Oct 2005 18:55:12 +0000 (18:55 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
twisti [Tue, 4 Oct 2005 18:54:57 +0000 (18:54 +0000)]
* ICMD_BUILTIN, ICMD_INVOKE*: Use md->paramcount instead of iptr->op1.
twisti [Tue, 4 Oct 2005 18:54:33 +0000 (18:54 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* ICMD_BUILTIN, ICMD_INVOKE*: Use md->paramcount instead of iptr->op1.
twisti [Tue, 4 Oct 2005 18:52:44 +0000 (18:52 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* BUILTIN: Set iptr->op1 to true if we have to check for an exception.
twisti [Tue, 4 Oct 2005 18:51:47 +0000 (18:51 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* Added an #error for the iptr->op1 changes, i don't know if lsra compiles
or even works, so...
twisti [Tue, 4 Oct 2005 18:50:07 +0000 (18:50 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
twisti [Tue, 4 Oct 2005 18:49:56 +0000 (18:49 +0000)]
* ICMD_CHECKASIZE, ICMD_CHECKEXCEPTION: Removed.
* Compile warning fix.
twisti [Tue, 4 Oct 2005 18:47:36 +0000 (18:47 +0000)]
* OP, OP1, OP2I: Reformatted.
twisti [Tue, 4 Oct 2005 18:45:58 +0000 (18:45 +0000)]
* stacktrace_inline_negativearraysizeexception: Removed.
twisti [Tue, 4 Oct 2005 18:45:11 +0000 (18:45 +0000)]
* M_XOR, M_BNE: Added.
twisti [Tue, 4 Oct 2005 18:33:30 +0000 (18:33 +0000)]
* types.h: Include path fixes.
twisti [Tue, 4 Oct 2005 18:31:47 +0000 (18:31 +0000)]
* asmoffsets.h, types.h: Removed.
twisti [Tue, 4 Oct 2005 10:00:21 +0000 (10:00 +0000)]
* initialize_class_intern: Do not initialize interfaces implemented
(VM Spec 2.17.4 and mauve test).
twisti [Fri, 30 Sep 2005 12:16:40 +0000 (12:16 +0000)]
* Forgot to prefix the java files with $(top_srcdir)/src/lib/.
twisti [Fri, 30 Sep 2005 11:17:05 +0000 (11:17 +0000)]
* setenvinstalled, setenvsource: Added.
twisti [Fri, 30 Sep 2005 11:16:47 +0000 (11:16 +0000)]
* debugSetPathes: Removed.
* setenvinstalled, setenvsource: Added, set the environment variables for
both cases: GNU classpath and CACAO not installed (setenvsource) and
GNU classpath installed, but CACAO's not (setenvinstalled).
twisti [Thu, 29 Sep 2005 14:46:20 +0000 (14:46 +0000)]
* Added *.class
twisti [Thu, 29 Sep 2005 14:38:21 +0000 (14:38 +0000)]
* Now in regression.
twisti [Thu, 29 Sep 2005 14:36:31 +0000 (14:36 +0000)]
* GNU classpath removal changes.
twisti [Thu, 29 Sep 2005 14:36:16 +0000 (14:36 +0000)]
* Added *.class
twisti [Thu, 29 Sep 2005 14:31:21 +0000 (14:31 +0000)]
* GNU classpath removal changes.
twisti [Thu, 29 Sep 2005 14:29:31 +0000 (14:29 +0000)]
* DIST_SUBDIRS: Removed arm.
twisti [Thu, 29 Sep 2005 14:28:32 +0000 (14:28 +0000)]
* loader_load_all_classes: Also skip *.png files.
twisti [Thu, 29 Sep 2005 14:23:32 +0000 (14:23 +0000)]
* Taken from GNU classpath for stuff we need in our configure too.
twisti [Thu, 29 Sep 2005 14:22:55 +0000 (14:22 +0000)]
* GNU classpath removal changes.
twisti [Thu, 29 Sep 2005 14:22:49 +0000 (14:22 +0000)]
* types.h: Path fix.
twisti [Thu, 29 Sep 2005 14:13:17 +0000 (14:13 +0000)]
* Removed src/classpath.
twisti [Thu, 29 Sep 2005 14:13:00 +0000 (14:13 +0000)]
* Changes related to GNU classpath removal.
twisti [Thu, 29 Sep 2005 14:12:23 +0000 (14:12 +0000)]
* ACLOCAL_AMFLAGS: Removed -I src/classpath/m4.
twisti [Thu, 29 Sep 2005 13:08:31 +0000 (13:08 +0000)]
* classpath: Removed.
* fdlibm: Added.
twisti [Thu, 29 Sep 2005 13:07:57 +0000 (13:07 +0000)]
* JAVA_VM_FILES: Fixed pathes.
* vm.zip: Install in pkgdata directory.
twisti [Thu, 29 Sep 2005 13:06:21 +0000 (13:06 +0000)]
* VM interface classes, copied from src/classpath.
twisti [Thu, 29 Sep 2005 13:01:43 +0000 (13:01 +0000)]
* cacaoh: Added.
twisti [Thu, 29 Sep 2005 13:01:05 +0000 (13:01 +0000)]
* cacao: Added.
twisti [Thu, 29 Sep 2005 12:16:48 +0000 (12:16 +0000)]
* Slim fdlibm version from GNU classpath, we need these functions (finite,
fmod, copysign) since on some OSs the fmod does not work like java would
like to have it (e.g. IRIX). So we do not link against the system libm,
but this one.
twisti [Thu, 29 Sep 2005 12:04:08 +0000 (12:04 +0000)]
* offsets.h: Added.
twisti [Thu, 29 Sep 2005 12:01:43 +0000 (12:01 +0000)]
* createnativestub: Renamed _exceptionptr to _no_threads_exceptionptr,
fixed compile warnings with --disable-threads.
twisti [Wed, 28 Sep 2005 14:04:56 +0000 (14:04 +0000)]
* src/scripts/kjc, src/vm/jit/arm/Makefile: Removed.
twisti [Wed, 28 Sep 2005 14:03:06 +0000 (14:03 +0000)]
* kjc: Removed.
twisti [Wed, 28 Sep 2005 14:01:22 +0000 (14:01 +0000)]
* java-getopt, kjc: Removed, since debian does not accept binary stuff.
twisti [Wed, 28 Sep 2005 12:10:56 +0000 (12:10 +0000)]
* Added armv4tl.
twisti [Wed, 28 Sep 2005 10:36:34 +0000 (10:36 +0000)]
* class_java_lang_Thread, class_java_lang_VMThread: Added.
twisti [Tue, 27 Sep 2005 23:04:32 +0000 (23:04 +0000)]
* methodindent: Made it an s4, caused a problem on 32-bit (i386).
twisti [Tue, 27 Sep 2005 23:03:15 +0000 (23:03 +0000)]
* signal_handler_sigint: Added, exits properly on <ctrl>-c.
twisti [Tue, 27 Sep 2005 22:40:12 +0000 (22:40 +0000)]
* We don't need it.
twisti [Tue, 27 Sep 2005 22:39:36 +0000 (22:39 +0000)]
* Debian does not allow binary stuff, so we just remove it. And i think we
don't need it actually.
twisti [Tue, 27 Sep 2005 22:11:19 +0000 (22:11 +0000)]
* getDeclaredMethods: Removed setfield_critical, set instance fields
directly; fixed code indent.
* getModifiers: Implemented correctly, return the inner class flags. Mauve
test and tomcat 4 are ok.
twisti [Tue, 27 Sep 2005 22:07:36 +0000 (22:07 +0000)]
* asm_calljavafunction2: Fixed stackframe size bug.
* Fixed code indent.
twisti [Tue, 27 Sep 2005 14:12:36 +0000 (14:12 +0000)]
* types.h: Include fixes.
twisti [Tue, 27 Sep 2005 14:08:21 +0000 (14:08 +0000)]
* createnativestub: Fixed stackframeinfo offset.
* Include fixes.
twisti [Tue, 27 Sep 2005 14:05:09 +0000 (14:05 +0000)]
* types.h: Fixed include path.
twisti [Tue, 27 Sep 2005 14:03:51 +0000 (14:03 +0000)]
* types.h: Removed.
twisti [Sat, 24 Sep 2005 22:52:44 +0000 (22:52 +0000)]
* builtin_throw: Don't pass line to builtin_trace_exception.
twisti [Wed, 21 Sep 2005 23:10:16 +0000 (23:10 +0000)]
* java_nio_DirectByteBufferImpl.h: Added.
twisti [Wed, 21 Sep 2005 23:06:00 +0000 (23:06 +0000)]
* callLongMethod: Fixed argcount.
* cacao_jni_CallVoidMethod: Added.
* NewObject: Use cacao_jni_CallVoidMethod and support varargs.
* GetPrimitiveArrayCritical, ReleasePrimitiveArrayCritical: Implemented.
* NewDirectByteBuffer, GetDirectBufferAddress, GetDirectBufferCapacity:
Likewise.
twisti [Wed, 21 Sep 2005 21:25:14 +0000 (21:25 +0000)]
* new_classnotfoundexception: Added.
twisti [Wed, 21 Sep 2005 21:24:54 +0000 (21:24 +0000)]
* Renamed verboseexception to opt_verboseexception.
twisti [Wed, 21 Sep 2005 21:20:11 +0000 (21:20 +0000)]
* Renamed _exceptionptr to _no_threads_exceptionptr.
* asm_handle_exception: Pass indent flag correctly to
builtin_trace_exception.
* asm_wrapper_patcher: Changes stackframe size due to size change of
stackframeinfo.
twisti [Wed, 21 Sep 2005 21:18:35 +0000 (21:18 +0000)]
* types.h include fixes.
twisti [Wed, 21 Sep 2005 21:17:28 +0000 (21:17 +0000)]
* libffi: Added.
twisti [Wed, 21 Sep 2005 21:14:01 +0000 (21:14 +0000)]
* types.h: Removed.
twisti [Wed, 21 Sep 2005 21:13:47 +0000 (21:13 +0000)]
* Includes fixed.
* addi-lea optimization added, but not enabled.
twisti [Wed, 21 Sep 2005 21:12:59 +0000 (21:12 +0000)]
* Include fixes.
twisti [Wed, 21 Sep 2005 20:24:11 +0000 (20:24 +0000)]
* Renamed verboseexception to opt_verboseexception.
twisti [Wed, 21 Sep 2005 20:23:47 +0000 (20:23 +0000)]
* Mauve test fixes: check for bad array name and stuff like that.
* Started to remove LOADER_INC/LOADER_DEC, i don't think this is required
anymore and pollutes the code.
twisti [Wed, 21 Sep 2005 20:22:18 +0000 (20:22 +0000)]
* config.h, vm/types.h: Added.
twisti [Wed, 21 Sep 2005 20:21:48 +0000 (20:21 +0000)]
* link_primitivetype_table: Set correct flags (taken from jamvm, maybe
without ACC_ABSTRACT, not mentioned in VM Spec), don't add primitives to
the classcache, throw exception instead of an assert (mauve test).
twisti [Wed, 21 Sep 2005 20:20:48 +0000 (20:20 +0000)]
* Added comments.
twisti [Wed, 21 Sep 2005 20:19:47 +0000 (20:19 +0000)]
* builtin_trace_exception: Don't pass line, renamed noindent to indent,
check for opt_verboseexception and print stacktrace. TODO: print
stacktrace in C code.
twisti [Wed, 21 Sep 2005 20:18:24 +0000 (20:18 +0000)]
* new_classnotfoundexception: Added.
twisti [Wed, 21 Sep 2005 20:18:03 +0000 (20:18 +0000)]
* classcache_lookup_name, classcache_new_name: Speed up lookup in external
chain.
* Some reformatting.
twisti [Wed, 21 Sep 2005 20:02:49 +0000 (20:02 +0000)]
* utf_add: Added.
twisti [Wed, 21 Sep 2005 20:01:15 +0000 (20:01 +0000)]
* nativeLoad: Use lt_dlopen instead of lt_dlopenext.
* mapLibraryName: Append platform specific suffix.