lots of JIT bugfixes and cleanups

This commit is contained in:
Joel Dice
2007-12-15 17:24:15 -07:00
parent 924a588cdf
commit 796a64a426
6 changed files with 480 additions and 307 deletions

View File

@ -1,6 +1,7 @@
public class Misc {
private static int alpha;
private static int beta;
private int gamma;
private String foo(String s) {
return s;
@ -13,11 +14,15 @@ public class Misc {
private static String baz(String s) {
return s;
}
private static void expect(boolean v) {
if (! v) throw new RuntimeException();
}
public static void main(String[] args) {
boolean v = Boolean.valueOf("true");
// ClassLoader.getSystemClassLoader().toString();
ClassLoader.getSystemClassLoader().toString();
int a = 2;
int b = 2;
@ -29,10 +34,15 @@ public class Misc {
m.bar(s);
baz(s);
// int d = alpha;
// beta = 42;
// alpha = 43;
// int e = beta;
// int f = alpha;
int d = alpha;
beta = 42;
alpha = 43;
int e = beta;
int f = alpha;
m.gamma = 44;
expect(beta == 42);
expect(alpha == 43);
expect(m.gamma == 44);
}
}