Mercurial > hg > graal-jvmci-8
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypePrimitive.java @ 2055:99ad52189524
Refactorings to get towards less CRI overhead.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Thu, 13 Jan 2011 17:45:17 +0100 |
parents | 3c0a889a176b |
children | 8f033d37798a |
comparison
equal
deleted
inserted
replaced
2054:3c0a889a176b | 2055:99ad52189524 |
---|---|
26 /** | 26 /** |
27 * Implementation of RiType for primitive HotSpot types. | 27 * Implementation of RiType for primitive HotSpot types. |
28 * | 28 * |
29 * @author Thomas Wuerthinger, Lukas Stadler | 29 * @author Thomas Wuerthinger, Lukas Stadler |
30 */ | 30 */ |
31 public final class HotSpotTypePrimitive extends CompilerObject implements HotSpotType { | 31 public final class HotSpotTypePrimitive extends HotSpotType { |
32 | 32 |
33 private CiKind kind; | 33 private CiKind kind; |
34 | 34 |
35 public static final HotSpotTypePrimitive Boolean = new HotSpotTypePrimitive(CiKind.Boolean); | 35 public static final HotSpotTypePrimitive Boolean = new HotSpotTypePrimitive(CiKind.Boolean); |
36 public static final HotSpotTypePrimitive Char = new HotSpotTypePrimitive(CiKind.Char); | 36 public static final HotSpotTypePrimitive Char = new HotSpotTypePrimitive(CiKind.Char); |
42 public static final HotSpotTypePrimitive Long = new HotSpotTypePrimitive(CiKind.Long); | 42 public static final HotSpotTypePrimitive Long = new HotSpotTypePrimitive(CiKind.Long); |
43 public static final HotSpotTypePrimitive Void = new HotSpotTypePrimitive(CiKind.Void); | 43 public static final HotSpotTypePrimitive Void = new HotSpotTypePrimitive(CiKind.Void); |
44 | 44 |
45 private HotSpotTypePrimitive(CiKind kind) { | 45 private HotSpotTypePrimitive(CiKind kind) { |
46 this.kind = kind; | 46 this.kind = kind; |
47 this.name = kind.toString(); | |
47 } | 48 } |
48 | 49 |
49 @Override | 50 @Override |
50 public int accessFlags() { | 51 public int accessFlags() { |
51 // TODO Auto-generated method stub | 52 // TODO Auto-generated method stub |
139 public CiKind kind() { | 140 public CiKind kind() { |
140 return kind; | 141 return kind; |
141 } | 142 } |
142 | 143 |
143 @Override | 144 @Override |
144 public String name() { | |
145 return kind.toString(); | |
146 } | |
147 | |
148 @Override | |
149 public String simpleName() { | |
150 return kind.toString(); | |
151 } | |
152 | |
153 @Override | |
154 public RiMethod resolveMethodImpl(RiMethod method) { | 145 public RiMethod resolveMethodImpl(RiMethod method) { |
155 return null; | 146 return null; |
156 } | 147 } |
157 | 148 |
158 @Override | 149 @Override |