comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolved.java @ 1425:98fffb304868

tlab-allocated "new instance", invokespecial, support for static fields in COMPILER_CLASSES_DO
author Lukas Stadler <lukas.stadler@oracle.com>
date Tue, 17 Aug 2010 17:34:25 -0700
parents 760213a60e8b
children abc670a709dc
comparison
equal deleted inserted replaced
1424:1ea65e9d943c 1425:98fffb304868
33 33
34 // cached values 34 // cached values
35 private Boolean isArrayClass; 35 private Boolean isArrayClass;
36 private Boolean isInstanceClass; 36 private Boolean isInstanceClass;
37 private Boolean isInterface; 37 private Boolean isInterface;
38 private long instanceSize;
38 39
39 public HotSpotTypeResolved(long vmId, String name) { 40 public HotSpotTypeResolved(long vmId, String name) {
40 this.vmId = vmId; 41 this.vmId = vmId;
41 this.name = name; 42 this.name = name;
42 } 43 }
170 171
171 public long getVmId() { 172 public long getVmId() {
172 return vmId; 173 return vmId;
173 } 174 }
174 175
176 public long instanceSize() {
177 if (instanceSize == 0) {
178 instanceSize = Compiler.getVMEntries().RiType_instanceSize(vmId);
179 }
180 return instanceSize;
181 }
182
175 } 183 }