Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedObjectType.java @ 17156:ac6e25901d62
Add trusted interface concept and use it for WordBase, fix a NPE and some tests
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 18 Sep 2014 17:42:46 +0200 |
parents | 3812931f9350 |
children | 2bf5ea10eea7 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedObjectType.java Fri Sep 19 09:59:56 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotResolvedObjectType.java Thu Sep 18 17:42:46 2014 +0200 @@ -853,4 +853,11 @@ public String toString() { return "HotSpotType<" + getName() + ", resolved>"; } + + private static final ResolvedJavaType trustedInterfaceType = fromClass(TrustedInterface.class); + + @Override + public boolean isTrustedInterfaceType() { + return trustedInterfaceType.isAssignableFrom(this); + } }