DalvInsn instances.
| Modifier and Type | Field and Description |
|---|---|
| private final int | regCount
The amount of register space, in register units, required for this code block. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | debugPrint(Writer
non-null; where to dumpnon-null; prefix to attach to each line of outputwhether to be verbose; verbose output includes
lines for zero-size instructions and explicit constant pool indices verbose)Does a human-friendly dump of this instance. |
| public void | debugPrint(OutputStream
non-null; where to dumpnon-null; prefix to attach to each line of outputwhether to be verbose; verbose output includes
lines for zero-size instructions verbose)Does a human-friendly dump of this instance. |
| public DalvInsn | Returns: non-null; element at that index>= 0, < size(); which indexGets the element at the given index. |
| public int | Returns: >= 0; the required outgoing arguments sizeGets the size of the outgoing arguments area required by this method. |
| public int | Returns: >= 0; the required registers sizeGets the minimum required register count implied by this instance. |
| public static DalvInsnList | Returns: non-null; an appropriately-constructed instance of this
classnon-null; the list to use for elementscount, in register-units, of the number of registers
this code block requires. regCount)Constructs and returns an immutable instance whose elements are identical to the ones in the given list, in the same order. |
| public void | |
| public void | writeTo(AnnotatedOutput
non-null; where to write toWrites all the instructions in this instance to the given output destination. |
| regCount | back to summary |
|---|---|
| private final int regCount The amount of register space, in register units, required for this code block. This may be greater than the largest observed register+ category because the method this code block exists in may specify arguments that are unused by the method. | |
| DalvInsnList | back to summary |
|---|---|
| public DalvInsnList(int size, int regCount) Constructs an instance. All indices initially contain
| |
| codeSize | back to summary |
|---|---|
| public int codeSize() Gets the size of this instance, in 16-bit code units. This will only return a meaningful result if the instructions in this instance all have valid addresses.
| |
| debugPrint | back to summary |
|---|---|
| public void debugPrint(Writer out, String prefix, boolean verbose) Does a human-friendly dump of this instance. | |
| debugPrint | back to summary |
|---|---|
| public void debugPrint(OutputStream out, String prefix, boolean verbose) Does a human-friendly dump of this instance.
| |
| get | back to summary |
|---|---|
| public DalvInsn get(int n) Gets the element at the given index. It is an error to call
this with the index for an element which was never set; if you
do that, this will throw
| |
| getOutsSize | back to summary |
|---|---|
| public int getOutsSize() Gets the size of the outgoing arguments area required by this method. This is equal to the largest argument word count of any method referred to by this instance.
| |
| getRegistersSize | back to summary |
|---|---|
| public int getRegistersSize() Gets the minimum required register count implied by this instance. This includes any unused parameters that could potentially be at the top of the register space.
| |
| makeImmutable | back to summary |
|---|---|
| public static DalvInsnList makeImmutable(ArrayList<DalvInsn> list, int regCount) Constructs and returns an immutable instance whose elements are identical to the ones in the given list, in the same order.
| |
| set | back to summary |
|---|---|
| public void set(int n, DalvInsn insn) Sets the instruction at the given index.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(AnnotatedOutput out) Writes all the instructions in this instance to the given output destination.
| |