Mercurial > hg > graal-jvmci-8
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java @ 1465:2c754f3a2722
Inlining of static final field values. Java mirror instead of VmID. Support for PrintMetrics option.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Thu, 18 Nov 2010 17:27:43 +0100 |
parents | 572d4c6d6ce6 |
children | ef7761803480 |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java Mon Nov 15 11:06:38 2010 +0100 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java Thu Nov 18 17:27:43 2010 +0100 @@ -139,10 +139,7 @@ @Override public RiType getRiType(Class<?> javaClass) { - if (javaClass == Object[].class || javaClass == Long.class || javaClass == Integer.class || javaClass == Throwable.class) { - return Compiler.getVMEntries().getType(javaClass); - } - throw new UnsupportedOperationException("unexpected class in getRiType: " + javaClass); + return Compiler.getVMEntries().getType(javaClass); } @Override @@ -208,14 +205,7 @@ @Override public boolean compareConstantObjects(Object x, Object y) { - if (x == null && y == null) { - return true; - } else if (x == null || y == null) { - return false; - } else if (x instanceof Long && y instanceof Long) { - return (Long) x == (long) (Long) y; - } - throw new UnsupportedOperationException("compareConstantObjects: " + x + ", " + y); + return x == y; } @Override