Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ResolvedJavaType.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 | 7716c6993546 |
children | e8c54fd622a4 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ResolvedJavaType.java Fri Sep 19 09:59:56 2014 +0200 +++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/ResolvedJavaType.java Thu Sep 18 17:42:46 2014 +0200 @@ -336,4 +336,10 @@ * method is similar to {@link Array#newInstance(Class, int)}. */ Constant newArray(int length); + + /** + * Returns true if this type represents and interface and it should be trusted even in places + * where the JVM verifier would not give any guarantees other than {@link Object}. + */ + boolean isTrustedInterfaceType(); }