Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerAsserts.java @ 19625:98d7ecef3657
New Truffle API method CompilerAsserts#partialEvaluationConstant(Object).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 27 Feb 2015 13:54:05 +0100 |
parents | 9c4168877444 |
children | 2bad5984e4fe |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerAsserts.java Fri Feb 27 12:49:59 2015 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerAsserts.java Fri Feb 27 13:54:05 2015 +0100 @@ -64,4 +64,13 @@ neverPartOfCompilation("Value is not compilation constant"); } } + + /** + * Assertion that the corresponding value is reduced to a constant during the initial partial + * evaluation phase. + * + * @param value the value that must be constant during compilation + */ + public static <T> void partialEvaluationConstant(Object value) { + } }