[kaffe] CVS kaffe (guilhem): New internal test.
Kaffe CVS
cvs-commits at kaffe.org
Mon Aug 1 14:00:42 PDT 2005
PatchSet 6774
Date: 2005/08/01 20:50:51
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
New internal test.
2005-08-01 Guilhem Lavaux <guilhem at kaffe.org>
* test/internal/VirtualMethod.java: New test.
* test/internal/Makefile.am: Added the test.
* test/internal/Makefile.in: Regenerated.
Members:
ChangeLog:1.4299->1.4300
test/internal/Makefile.am:1.19->1.20
test/internal/Makefile.in:1.107->1.108
test/internal/VirtualMethod.java:INITIAL->1.1
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4299 kaffe/ChangeLog:1.4300
--- kaffe/ChangeLog:1.4299 Sun Jul 31 15:18:47 2005
+++ kaffe/ChangeLog Mon Aug 1 20:50:51 2005
@@ -1,3 +1,11 @@
+2005-08-01 Guilhem Lavaux <guilhem at kaffe.org>
+
+ * test/internal/VirtualMethod.java: New test.
+
+ * test/internal/Makefile.am: Added the test.
+
+ * test/internal/Makefile.in: Regenerated.
+
2005-07-31 Guilhem Lavaux <guilhem at kaffe.org>
Riccardo Mottola <multix at gmail.com>
Index: kaffe/test/internal/Makefile.am
diff -u kaffe/test/internal/Makefile.am:1.19 kaffe/test/internal/Makefile.am:1.20
--- kaffe/test/internal/Makefile.am:1.19 Tue May 17 10:20:18 2005
+++ kaffe/test/internal/Makefile.am Mon Aug 1 20:50:54 2005
@@ -81,7 +81,8 @@
ObjectFields.class \
MethodOptimizations.class \
NativeMethodCall.class \
- Exceptions.class
+ Exceptions.class \
+ VirtualMethod.class
TESTS_ENVIRONMENT = env TEST_CLASSES="$(JAVA_CLASSES)" `BOOTCLASSPATH="."; export BOOTCLASSPATH; . $(top_builddir)/BUILD_ENVIRONMENT; sed 's/.*export \(.*\)/echo \1=$$\1/' < $(top_builddir)/BUILD_ENVIRONMENT | sh`
@@ -132,6 +133,9 @@
Exceptions.class: $(srcdir)/Exceptions.java
$(JIKES) -g -classpath $(CPATH) -d . $(srcdir)/Exceptions.java
+
+VirtualMethod.class: $(srcdir)/VirtualMethod.java
+ $(JIKES) -g -classpath $(CPATH) -d . $(srcdir)/VirtualMethod.java
jit_stub.o: java/lang/System.class java/lang/VMSystem.class $(JAVA_CLASSES)
@@ -155,6 +159,7 @@
MethodOptimizations.java \
NativeMethodCall.java \
Exceptions.java \
+ VirtualMethod.java \
java/lang/System.java \
java/lang/VMSystem.java
Index: kaffe/test/internal/Makefile.in
diff -u kaffe/test/internal/Makefile.in:1.107 kaffe/test/internal/Makefile.in:1.108
--- kaffe/test/internal/Makefile.in:1.107 Tue Jul 19 01:16:53 2005
+++ kaffe/test/internal/Makefile.in Mon Aug 1 20:50:54 2005
@@ -437,7 +437,8 @@
ObjectFields.class \
MethodOptimizations.class \
NativeMethodCall.class \
- Exceptions.class
+ Exceptions.class \
+ VirtualMethod.class
TESTS_ENVIRONMENT = env TEST_CLASSES="$(JAVA_CLASSES)" `BOOTCLASSPATH="."; export BOOTCLASSPATH; . $(top_builddir)/BUILD_ENVIRONMENT; sed 's/.*export \(.*\)/echo \1=$$\1/' < $(top_builddir)/BUILD_ENVIRONMENT | sh`
CPATH = .:$(top_builddir)/libraries/javalib/rt.jar
@@ -459,6 +460,7 @@
MethodOptimizations.java \
NativeMethodCall.java \
Exceptions.java \
+ VirtualMethod.java \
java/lang/System.java \
java/lang/VMSystem.java
@@ -852,6 +854,9 @@
Exceptions.class: $(srcdir)/Exceptions.java
$(JIKES) -g -classpath $(CPATH) -d . $(srcdir)/Exceptions.java
+
+VirtualMethod.class: $(srcdir)/VirtualMethod.java
+ $(JIKES) -g -classpath $(CPATH) -d . $(srcdir)/VirtualMethod.java
jit_stub.o: java/lang/System.class java/lang/VMSystem.class $(JAVA_CLASSES)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
===================================================================
Checking out kaffe/test/internal/VirtualMethod.java
RCS: /home/cvs/kaffe/kaffe/test/internal/VirtualMethod.java,v
VERS: 1.1
***************
--- /dev/null Sun Aug 4 19:57:58 2002
+++ kaffe/test/internal/VirtualMethod.java Mon Aug 1 21:00:41 2005
@@ -0,0 +1,24 @@
+public class VirtualMethod
+{
+ public static final int test_0__base_fact = 1;
+ public static final int test_1__base_fact = 1;
+ public static final int test_2__base_fact = 2;
+ public static final int test_3__base_fact = 6;
+ public static final int test_4__base_fact = 24;
+ public static final int test_5__base_fact = 120;
+
+ public int fact(int i)
+ {
+ if (i == 1 || i == 0)
+ return 1;
+
+ return fact(i-1) * i;
+ }
+
+ public static int base_fact(int i)
+ {
+ VirtualMethod m = new VirtualMethod();
+
+ return m.fact(i);
+ }
+}
More information about the kaffe
mailing list