public final class CompilerAsserts extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
compilationConstant(Object value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static void |
neverPartOfCompilation()
Assertion that this code position should never be reached during compilation.
|
static void |
neverPartOfCompilation(String message)
Assertion that this code position should never be reached during compilation.
|
static <T> void |
partialEvaluationConstant(Object value)
Assertion that the corresponding value is reduced to a constant during the initial partial
evaluation phase.
|
public static void neverPartOfCompilation()
CompilerDirectives.transferToInterpreter() for the corresponding compiler
directive.public static void neverPartOfCompilation(String message)
CompilerDirectives.transferToInterpreter() for the corresponding compiler
directive.message - text associated with the bailout exceptionpublic static <T> void compilationConstant(Object value)
value - the value that must be constant during compilationpublic static <T> void partialEvaluationConstant(Object value)
value - the value that must be constant during compilation