view c1x4hotspotsrc/HotSpotTest/src/C1XCompiledTest.java @ 1444:c0e244017dad

Corrections of oop map generation.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Tue, 09 Nov 2010 12:30:21 +0100
parents 760213a60e8b
children
line wrap: on
line source

public class C1XCompiledTest {

	static class A {
		int j;
	}

	static class B extends A {
		int k;
	}

	static class C extends B {
		int l;
	}

	static long c = 5;
	static long j = 1000;

	public long doCalc(int[] a) {
		return a.length;
	}

	public long doCalc(int a, int b, Object o) {
		if (o instanceof A) {
			return 0;
		} else {
			long k = 5;
			for (int i = 0; i < 10; i++) {
				k += c;
			}
			j += k;
			return a + b + k;
		}
	}
}