Mercurial > hg > truffle
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotType.java @ 1416:1b41af477605
Added HotSpotVM project Java source files.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Wed, 23 Jun 2010 16:36:58 +0200 |
parents | |
children | 44efca8a02d6 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotType.java Wed Jun 23 16:36:58 2010 +0200 @@ -0,0 +1,130 @@ +package com.sun.hotspot.c1x; + +import com.sun.cri.ci.CiConstant; +import com.sun.cri.ci.CiKind; +import com.sun.cri.ri.*; + +public class HotSpotType implements RiType { + + final Object klassOop; + + public HotSpotType(Object o) { + this.klassOop = o; + assert klassOop != null; + } + + @Override + public int accessFlags() { + // TODO Auto-generated method stub + return 0; + } + + @Override + public RiType arrayOf() { + // TODO Auto-generated method stub + return null; + } + + @Override + public RiType componentType() { + // TODO Auto-generated method stub + return null; + } + + @Override + public RiType exactType() { + // TODO Auto-generated method stub + return null; + } + + @Override + public CiConstant getEncoding(Representation r) { + // TODO Auto-generated method stub + return null; + } + + @Override + public CiKind getRepresentationKind(Representation r) { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean hasFinalizableSubclass() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean hasFinalizer() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean hasSubclass() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isArrayClass() { + System.out.println("Checking for array class " + name()); + return VMEntries.RiType_isArrayClass(klassOop); + } + + @Override + public boolean isInitialized() { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isInstance(Object obj) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean isInstanceClass() { + return VMEntries.RiType_isInstanceClass(klassOop); + } + + @Override + public boolean isInterface() { + return VMEntries.RiType_isInterface(klassOop); + } + + @Override + public boolean isResolved() { + return true; + } + + @Override + public boolean isSubtypeOf(RiType other) { + // TODO Auto-generated method stub + return false; + } + + @Override + public Class<?> javaClass() { + return VMEntries.RiType_javaClass(klassOop); + } + + @Override + public CiKind kind() { + return CiKind.Object; + } + + @Override + public String name() { + return VMEntries.RiType_name(klassOop); + } + + @Override + public RiMethod resolveMethodImpl(RiMethod method) { + // TODO Auto-generated method stub + return null; + } + +}