Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolved.java Mon Aug 16 20:00:59 2010 -0700 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolved.java Tue Aug 17 17:34:25 2010 -0700 @@ -35,6 +35,7 @@ private Boolean isArrayClass; private Boolean isInstanceClass; private Boolean isInterface; + private long instanceSize; public HotSpotTypeResolved(long vmId, String name) { this.vmId = vmId; @@ -172,4 +173,11 @@ return vmId; } + public long instanceSize() { + if (instanceSize == 0) { + instanceSize = Compiler.getVMEntries().RiType_instanceSize(vmId); + } + return instanceSize; + } + }