Class LocalRangeAccessor

java.lang.Object
com.oracle.truffle.api.bytecode.LocalRangeAccessor

public final class LocalRangeAccessor extends Object
Operation parameter that allows an operation to get, set, or clear locals declared in a contiguous range.

To use a local range accessor, declare a ConstantOperand on the operation. The corresponding builder method for the operation will take a BytecodeLocal array argument for the locals to be accessed. These locals must be allocated sequentially during building. At run time, a LocalRangeAccessor for the locals will be supplied as a parameter to the operation.

All of the accessor methods take a BytecodeNode, the current Frame, and an offset. The offset should be a valid compilation-final index into the array of locals. See the LocalAccessor javadoc for restrictions on the other parameters and usage recommendations.

Since:
24.2