Mercurial > hg > truffle
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotField.java @ 2295:160aacf936ad
removed last instances of RiType.javaClass, small changes to InvocationSocket and ReplacingStreams to make remote compilation work
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 12 Apr 2011 16:58:56 +0200 |
parents | 6190d20bd6d6 |
children |
comparison
equal
deleted
inserted
replaced
2294:0eb807bd8942 | 2295:160aacf936ad |
---|---|
57 } | 57 } |
58 | 58 |
59 @Override | 59 @Override |
60 public CiConstant constantValue(CiConstant receiver) { | 60 public CiConstant constantValue(CiConstant receiver) { |
61 if (receiver == null) { | 61 if (receiver == null) { |
62 if (constant == null && holder.isResolved() && holder.javaClass() == C1XOptions.class) { | 62 if (constant == null && holder.isResolved() && holder.isSubtypeOf(compiler.getVMEntries().getType(C1XOptions.class))) { |
63 Field f; | 63 Field f; |
64 try { | 64 try { |
65 f = C1XOptions.class.getField(name); | 65 f = C1XOptions.class.getField(name); |
66 } catch (SecurityException e1) { | 66 } catch (SecurityException e1) { |
67 return null; | 67 return null; |