comparison 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
comparison
equal deleted inserted replaced
19624:1ae2bbd0fc07 19625:98d7ecef3657
62 public static <T> void compilationConstant(Object value) { 62 public static <T> void compilationConstant(Object value) {
63 if (!CompilerDirectives.isCompilationConstant(value)) { 63 if (!CompilerDirectives.isCompilationConstant(value)) {
64 neverPartOfCompilation("Value is not compilation constant"); 64 neverPartOfCompilation("Value is not compilation constant");
65 } 65 }
66 } 66 }
67
68 /**
69 * Assertion that the corresponding value is reduced to a constant during the initial partial
70 * evaluation phase.
71 *
72 * @param value the value that must be constant during compilation
73 */
74 public static <T> void partialEvaluationConstant(Object value) {
75 }
67 } 76 }