[kaffe] CVS kaffe (hkraemer): added some more internal tests for the jit engine

Kaffe CVS cvs-commits at kaffe.org
Tue Jul 27 13:54:09 PDT 2004


PatchSet 5022 
Date: 2004/07/27 15:29:45
Author: hkraemer
Branch: HEAD
Tag: (none) 
Log:
added some more internal tests for the jit engine

Members: 
	ChangeLog:1.2580->1.2581 
	test/internal/ControlFlowMethods.java:1.1->1.2 
	test/internal/jit_stub.c:1.8->1.9 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2580 kaffe/ChangeLog:1.2581
--- kaffe/ChangeLog:1.2580	Mon Jul 26 21:13:39 2004
+++ kaffe/ChangeLog	Tue Jul 27 15:29:45 2004
@@ -1,3 +1,12 @@
+2004-07-27  Helmer Kraemer  <hkraemer at freenet.de>
+
+	* test/internal/jit_stub.c (main): GC_init has become KGC_init
+
+	* test/internal/ControlFlowMethods.java (int_exception,
+	int_exception0, int_exception1, int_exception2, int_exception3):
+	new tests to check that local variables are properly saved on the
+	stack when an exception is thrown
+
 2004-07-26  Dalibor Topic  <robilad at kaffe.org>
 
         * libraries/javalib/gnu/java/nio/VMPipe.java,
Index: kaffe/test/internal/ControlFlowMethods.java
diff -u kaffe/test/internal/ControlFlowMethods.java:1.1 kaffe/test/internal/ControlFlowMethods.java:1.2
--- kaffe/test/internal/ControlFlowMethods.java:1.1	Fri Apr 25 21:35:34 2003
+++ kaffe/test/internal/ControlFlowMethods.java	Tue Jul 27 15:29:56 2004
@@ -20,7 +20,93 @@
 	}
 	return retval;
     }
-    
+
+
+    public static final int test_0__int_exception = 1;
+
+    public static int int_exception(int a)
+    {
+	try
+	{
+	    throw new Throwable();
+	}
+	catch(Throwable th)
+	{
+	    a++;
+	}
+	return a;
+    }
+
+
+    public static final int test_0__int_exception0 = 1;
+
+    public static int int_exception0(int a)
+    {
+	try
+	{
+	    a++;
+	    throw new Throwable();
+	}
+	catch(Throwable th)
+	{}
+
+	return a;
+    }
+
+   
+    public static final int test_0__int_exception1 = 2;
+
+    public static int int_exception1(int a)
+    {
+	a++;
+
+	try
+	{
+	    a++;
+	    throw new Throwable ();
+	}
+	catch (Throwable th)
+	{}
+
+	return a;
+    }
+
+
+    public static final int test_0__int_exception2 = 2;
+
+    public static int int_exception2(int a)
+    {
+	a++;
+	try
+	{
+	    throw new Throwable ();
+	}
+	catch (Throwable th)
+	{
+	    a++;
+	}
+
+	return a;
+    }
+
+
+    public static final int test_0__int_exception3 = 2;
+
+    public static int int_exception3(int a)
+    {
+	try
+	{
+	    a++;
+	    throw new Throwable ();
+	}
+	catch (Throwable th)
+	{
+	    a++;
+	}
+	return a;
+    }
+
+  
     public static final int test_1__int_if_int = 2;
     public static final int test_4__int_if_int = 144;
     public static final int test_5__int_if_int = 0;
Index: kaffe/test/internal/jit_stub.c
diff -u kaffe/test/internal/jit_stub.c:1.8 kaffe/test/internal/jit_stub.c:1.9
--- kaffe/test/internal/jit_stub.c:1.8	Thu Jul 15 10:29:37 2004
+++ kaffe/test/internal/jit_stub.c	Tue Jul 27 15:29:56 2004
@@ -101,7 +101,7 @@
 	
 	/* Register allocation types with gc subsystem */
 	main_collector = initCollector();
-	GC_init(main_collector);
+	KGC_init(main_collector);
 
 	/* Initialise the (native) threading system */
 	initNativeThreads(threadStackSize);




More information about the kaffe mailing list