Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
1463:7bc14f75a077 | 1465:2c754f3a2722 |
---|---|
137 return null; | 137 return null; |
138 } | 138 } |
139 | 139 |
140 @Override | 140 @Override |
141 public RiType getRiType(Class<?> javaClass) { | 141 public RiType getRiType(Class<?> javaClass) { |
142 if (javaClass == Object[].class || javaClass == Long.class || javaClass == Integer.class || javaClass == Throwable.class) { | 142 return Compiler.getVMEntries().getType(javaClass); |
143 return Compiler.getVMEntries().getType(javaClass); | |
144 } | |
145 throw new UnsupportedOperationException("unexpected class in getRiType: " + javaClass); | |
146 } | 143 } |
147 | 144 |
148 @Override | 145 @Override |
149 public RiSnippets getSnippets() { | 146 public RiSnippets getSnippets() { |
150 throw new UnsupportedOperationException("getSnippets"); | 147 throw new UnsupportedOperationException("getSnippets"); |
206 throw new UnsupportedOperationException("foldWordOperation"); | 203 throw new UnsupportedOperationException("foldWordOperation"); |
207 } | 204 } |
208 | 205 |
209 @Override | 206 @Override |
210 public boolean compareConstantObjects(Object x, Object y) { | 207 public boolean compareConstantObjects(Object x, Object y) { |
211 if (x == null && y == null) { | 208 return x == y; |
212 return true; | |
213 } else if (x == null || y == null) { | |
214 return false; | |
215 } else if (x instanceof Long && y instanceof Long) { | |
216 return (Long) x == (long) (Long) y; | |
217 } | |
218 throw new UnsupportedOperationException("compareConstantObjects: " + x + ", " + y); | |
219 } | 209 } |
220 | 210 |
221 @Override | 211 @Override |
222 public boolean recordLeafMethodAssumption(RiMethod method) { | 212 public boolean recordLeafMethodAssumption(RiMethod method) { |
223 return false; | 213 return false; |