diff c1x4hotspotsrc/HotSpotTest/src/C1XTest.java @ 1423:760213a60e8b

* rewrite of the code installation * partial support for safepoints * macro-based CiTargetMethod interface * code stub support
author Lukas Stadler <lukas.stadler@oracle.com>
date Mon, 16 Aug 2010 18:59:36 -0700
parents
children efba53f86c4f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/c1x4hotspotsrc/HotSpotTest/src/C1XTest.java	Mon Aug 16 18:59:36 2010 -0700
@@ -0,0 +1,23 @@
+import java.io.IOException;
+
+public class C1XTest {
+
+	public static void main(String[] args) throws IOException {
+		/*
+		 * new C1XCompiledTest.C(); System.out.println("--- instanceof A");
+		 * System.out.println(new C1XCompiledTest().doCalc(10, 3,
+		 * C1XTest.class)); System.out.println("B instanceof A");
+		 * System.out.println(new C1XCompiledTest().doCalc(10, 3, new
+		 * C1XCompiledTest.B())); System.out.println("A instanceof A");
+		 * System.out.println(new C1XCompiledTest().doCalc(10, 3, new
+		 * C1XCompiledTest.A())); System.out.println("end");
+		 */
+		new C1XCompiledTest.B();
+		System.out.println(new C1XCompiledTest().doCalc(10, 3, C1XTest.class));
+		/*
+		 * for (int l = 0; l < 4; l++) { try { System.out.println(new
+		 * C1XCompiledTest().doCalc(new int[l])); } catch (Throwable t) {
+		 * t.printStackTrace(); }}
+		 */
+	}
+}