comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeResolvedImpl.java @ 2289:6190d20bd6d6

merge
author Lukas Stadler <lukas.stadler@jku.at>
date Mon, 11 Apr 2011 11:25:06 +0200
parents 762de4b26788
children e3c42b8de67e
comparison
equal deleted inserted replaced
2288:8c426c2891c8 2289:6190d20bd6d6
125 public boolean isInitialized() { 125 public boolean isInitialized() {
126 return isInitialized; 126 return isInitialized;
127 } 127 }
128 128
129 @Override 129 @Override
130 public boolean isInstance(Object obj) { 130 public boolean isInstance(CiConstant obj) {
131 return javaMirror.isInstance(obj); 131 return javaMirror.isInstance(obj);
132 } 132 }
133 133
134 @Override 134 @Override
135 public boolean isInstanceClass() { 135 public boolean isInstanceClass() {
146 return true; 146 return true;
147 } 147 }
148 148
149 @Override 149 @Override
150 public boolean isSubtypeOf(RiType other) { 150 public boolean isSubtypeOf(RiType other) {
151 if (other.isResolved()) { 151 if (other instanceof HotSpotTypeResolved) {
152 return compiler.getVMEntries().RiType_isSubtypeOf(this, other); 152 return compiler.getVMEntries().RiType_isSubtypeOf(this, other);
153 } 153 }
154 // No resolved type is a subtype of an unresolved type. 154 // No resolved type is a subtype of an unresolved type.
155 return false; 155 return false;
156 } 156 }