comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolved.java @ 2062:231bf6b9f5ad

Added caching for constant pool entries.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Sat, 22 Jan 2011 17:31:11 +0100
parents 9508a52cbd32
children f21664b3dd1c 569d3fe7d65c
comparison
equal deleted inserted replaced
2061:c0b1d6a44a02 2062:231bf6b9f5ad
44 private boolean isInstanceClass; 44 private boolean isInstanceClass;
45 private boolean isInterface; 45 private boolean isInterface;
46 private int instanceSize; 46 private int instanceSize;
47 private RiType componentType; 47 private RiType componentType;
48 private HashMap<Integer, RiField> fieldCache; 48 private HashMap<Integer, RiField> fieldCache;
49 private RiConstantPool pool;
49 50
50 @Override 51 @Override
51 public int accessFlags() { 52 public int accessFlags() {
52 return accessFlags; 53 return accessFlags;
53 } 54 }
170 public String toString() { 171 public String toString() {
171 return "HotSpotType<" + simpleName + ", resolved>"; 172 return "HotSpotType<" + simpleName + ", resolved>";
172 } 173 }
173 174
174 public RiConstantPool constantPool() { 175 public RiConstantPool constantPool() {
176 // TODO: Implement constant pool without the need for VmId and cache the constant pool.
175 return Compiler.getVMEntries().RiType_constantPool(this); 177 return Compiler.getVMEntries().RiType_constantPool(this);
176 } 178 }
177 179
178 public int instanceSize() { 180 public int instanceSize() {
179 return instanceSize; 181 return instanceSize;