Class InstructionDescriptor.ArgumentDescriptor
java.lang.Object
com.oracle.truffle.api.bytecode.InstructionDescriptor.ArgumentDescriptor
- Enclosing class:
InstructionDescriptor
Descriptor for a single immediate argument of an instruction. Captures kind, name and encoded
width of the argument.
- Since:
- 25.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArgumentDescriptor(Object token) Internal constructor for generated code. -
Method Summary
Modifier and TypeMethodDescriptionabstract Instruction.Argument.KindgetKind()Returns theInstruction.Argument.Kindof this argument descriptor.abstract intReturns width in bytes.abstract StringgetName()Returns a human readable name for this argument.toString()
-
Constructor Details
-
ArgumentDescriptor
Internal constructor for generated code. Do not use.- Since:
- 25.1
-
-
Method Details
-
getKind
Returns theInstruction.Argument.Kindof this argument descriptor.- Since:
- 25.1
-
getName
Returns a human readable name for this argument. This could be for example"localOffset"for a local variable access instruction. Arguments with the samegetKind()may have differentnames. A name is typically more descriptive than just the kind and should be preferred over the kind for debug output.- Since:
- 25.1
-
getLength
public abstract int getLength()Returns width in bytes.- Since:
- 25.1
-
toString
-