Mercurial > hg > truffle
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypePrimitive.java @ 2058:8f033d37798a
Better support for array types.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Tue, 18 Jan 2011 10:19:59 +0100 |
parents | 99ad52189524 |
children | f21664b3dd1c 569d3fe7d65c |
comparison
equal
deleted
inserted
replaced
2057:89bf01e6b049 | 2058:8f033d37798a |
---|---|
18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open | 18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open |
19 * Company, Ltd. | 19 * Company, Ltd. |
20 */ | 20 */ |
21 package com.sun.hotspot.c1x; | 21 package com.sun.hotspot.c1x; |
22 | 22 |
23 import com.sun.c1x.util.*; | |
23 import com.sun.cri.ci.*; | 24 import com.sun.cri.ci.*; |
24 import com.sun.cri.ri.*; | 25 import com.sun.cri.ri.*; |
25 | 26 |
26 /** | 27 /** |
27 * Implementation of RiType for primitive HotSpot types. | 28 * Implementation of RiType for primitive HotSpot types. |
47 this.name = kind.toString(); | 48 this.name = kind.toString(); |
48 } | 49 } |
49 | 50 |
50 @Override | 51 @Override |
51 public int accessFlags() { | 52 public int accessFlags() { |
52 // TODO Auto-generated method stub | 53 return javaClass().getModifiers(); |
53 return 0; | |
54 } | 54 } |
55 | 55 |
56 @Override | 56 @Override |
57 public RiType arrayOf() { | 57 public RiType arrayOf() { |
58 // TODO Auto-generated method stub | 58 return Compiler.getVMEntries().getPrimitiveArrayType(kind); |
59 return null; | |
60 } | 59 } |
61 | 60 |
62 @Override | 61 @Override |
63 public RiType componentType() { | 62 public RiType componentType() { |
64 return null; | 63 return null; |
69 return this; | 68 return this; |
70 } | 69 } |
71 | 70 |
72 @Override | 71 @Override |
73 public CiConstant getEncoding(Representation r) { | 72 public CiConstant getEncoding(Representation r) { |
74 // TODO Auto-generated method stub | 73 throw Util.unimplemented("HotSpotTypePrimitive.getEncoding"); |
75 | |
76 return null; | |
77 } | 74 } |
78 | 75 |
79 @Override | 76 @Override |
80 public CiKind getRepresentationKind(Representation r) { | 77 public CiKind getRepresentationKind(Representation r) { |
81 return kind; | 78 return kind; |