Package com.oracle.truffle.api.bytecode
Enum Class Instruction.Argument.Kind
- All Implemented Interfaces:
Serializable,Comparable<Instruction.Argument.Kind>,Constable
- Enclosing class:
Instruction.Argument
Represents kind of an
Instruction.Argument.- Since:
- 24.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA branch profile argument to the instruction.A bytecode index argument to the instruction.A constant argument to the instruction.A integer argument to the instruction.A localIndex argument to the instruction.A localOffset argument to the instruction.A node profile argument to the instruction. -
Method Summary
Modifier and TypeMethodDescriptionstatic Instruction.Argument.KindReturns the enum constant of this class with the specified name.static Instruction.Argument.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSTANT
A constant argument to the instruction. Typically constants are used to encodeConstantOperandand loadConstant builtin operations.- Since:
- 24.2
- See Also:
-
BYTECODE_INDEX
A bytecode index argument to the instruction. Typically a bytecode indices are used to encode branch targets.- Since:
- 24.2
- See Also:
-
INTEGER
A integer argument to the instruction. Typically a integer arguments are used to encode argument indices and other constants.- Since:
- 24.2
- See Also:
-
LOCAL_OFFSET
A localOffset argument to the instruction. Typically a localOffset arguments are used to encode arguments of load local builtin instructions.- Since:
- 24.2
- See Also:
-
LOCAL_INDEX
A localIndex argument to the instruction. Typically a localIndex arguments are used to encode arguments of load local builtin instructions.- Since:
- 24.2
- See Also:
-
NODE_PROFILE
A node profile argument to the instruction. Typically a node profile arguments are used to encode cached nodes.- Since:
- 24.2
- See Also:
-
BRANCH_PROFILE
A branch profile argument to the instruction. Typically a branch profile is used for branch instructions.- Since:
- 24.2
- See Also:
-
TAG_NODE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-