Mercurial > hg > truffle
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolved.java @ 2284:569d3fe7d65c
non-static VMEntries and VMExits, CompilationServer simplifications
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 07 Apr 2011 15:32:25 +0200 |
parents | 231bf6b9f5ad |
children | 762de4b26788 |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolved.java Mon Apr 04 21:02:45 2011 +0200 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolved.java Thu Apr 07 15:32:25 2011 +0200 @@ -48,6 +48,10 @@ private HashMap<Integer, RiField> fieldCache; private RiConstantPool pool; + private HotSpotTypeResolved() { + super(null); + } + @Override public int accessFlags() { return accessFlags; @@ -55,17 +59,17 @@ @Override public RiType arrayOf() { - return Compiler.getVMEntries().RiType_arrayOf(this); + return compiler.getVMEntries().RiType_arrayOf(this); } @Override public RiType componentType() { - return Compiler.getVMEntries().RiType_componentType(this); + return compiler.getVMEntries().RiType_componentType(this); } @Override public RiType uniqueConcreteSubtype() { - return Compiler.getVMEntries().RiType_uniqueConcreteSubtype(this); + return compiler.getVMEntries().RiType_uniqueConcreteSubtype(this); } @Override @@ -145,7 +149,7 @@ @Override public boolean isSubtypeOf(RiType other) { if (other instanceof HotSpotTypeResolved) { - return Compiler.getVMEntries().RiType_isSubtypeOf(this, other); + return compiler.getVMEntries().RiType_isSubtypeOf(this, other); } // No resolved type is a subtype of an unresolved type. return false; @@ -164,7 +168,7 @@ @Override public RiMethod resolveMethodImpl(RiMethod method) { assert method instanceof HotSpotMethod; - return Compiler.getVMEntries().RiType_resolveMethodImpl(this, method.name(), method.signature().asString()); + return compiler.getVMEntries().RiType_resolveMethodImpl(this, method.name(), method.signature().asString()); } @Override @@ -174,7 +178,7 @@ public RiConstantPool constantPool() { // TODO: Implement constant pool without the need for VmId and cache the constant pool. - return Compiler.getVMEntries().RiType_constantPool(this); + return compiler.getVMEntries().RiType_constantPool(this); } public int instanceSize() { @@ -192,7 +196,7 @@ } if (result == null) { - result = new HotSpotField(this, name, type, offset); + result = new HotSpotField(compiler, this, name, type, offset); fieldCache.put(offset, result); }