Package com.oracle.truffle.api.bytecode
Annotation Interface GenerateBytecodeTestVariants
This annotation should only be used for testing to generate multiple variants of the interpreter
with slightly different
configurations.
Importantly, all of the variants' Builders share a common superclass, which allows us to write
tests once and run them on multiple configurations.
In order for the variants and their Builders to be compatible, the configurations must agree on
specific fields. In particular, the GenerateBytecode.languageClass() must match, and fields
that generate new builder methods (e.g. GenerateBytecode.enableYield()) must agree. These
properties are checked by the Bytecode DSL.- Since:
- 24.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceThe annotation used to declare a variant. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe variants to generate.
-
Element Details
-
value
The variants to generate.- Since:
- 24.2
-