comparison c1x4hotspotsrc/HotSpotTest/src/C1XCompiledTest.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
comparison
equal deleted inserted replaced
1422:3483ec571caf 1423:760213a60e8b
1 public class C1XCompiledTest {
2
3 static class A {
4 int j;
5 }
6
7 static class B extends A {
8 int k;
9 }
10
11 static class C extends B {
12 int l;
13 }
14
15 static long c = 5;
16 static long j = 1000;
17
18 public long doCalc(int[] a) {
19 return a.length;
20 }
21
22 public long doCalc(int a, int b, Object o) {
23 if (o instanceof A) {
24 return 0;
25 } else {
26 long k = 5;
27 for (int i = 0; i < 10; i++) {
28 k += c;
29 }
30 j += k;
31 return a + b + k;
32 }
33 }
34 }