public final class DalvInsnList extends FixedSizeList
DalvInsn instances.| Constructor and Description |
|---|
DalvInsnList(int size,
int regCount)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
codeSize()
Gets the size of this instance, in 16-bit code units.
|
void |
debugPrint(java.io.OutputStream out,
java.lang.String prefix,
boolean verbose)
Does a human-friendly dump of this instance.
|
void |
debugPrint(java.io.Writer out,
java.lang.String prefix,
boolean verbose)
Does a human-friendly dump of this instance.
|
DalvInsn |
get(int n)
Gets the element at the given index.
|
int |
getOutsSize()
Gets the size of the outgoing arguments area required by this
method.
|
int |
getRegistersSize()
Gets the minimum required register count implied by this
instance.
|
static DalvInsnList |
makeImmutable(java.util.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.
|
void |
set(int n,
DalvInsn insn)
Sets the instruction at the given index.
|
void |
writeTo(AnnotatedOutput out)
Writes all the instructions in this instance to the given output
destination.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic DalvInsnList(int size,
int regCount)
null.size - the size of the listregCount - count, in register-units, of the number of registers
this code block requires.public static DalvInsnList makeImmutable(java.util.ArrayList<DalvInsn> list, int regCount)
list - non-null; the list to use for elementsregCount - count, in register-units, of the number of registers
this code block requires.non-null; an appropriately-constructed instance of this
classpublic DalvInsn get(int n)
NullPointerException.n - >= 0, < size(); which indexnon-null; element at that indexpublic void set(int n,
DalvInsn insn)
n - >= 0, < size(); which indexinsn - non-null; the instruction to set at npublic int codeSize()
>= 0; the sizepublic void writeTo(AnnotatedOutput out)
out - non-null; where to write topublic int getRegistersSize()
>= 0; the required registers sizepublic int getOutsSize()
>= 0; the required outgoing arguments sizepublic void debugPrint(java.io.Writer out,
java.lang.String prefix,
boolean verbose)
out - non-null; where to dumpprefix - non-null; prefix to attach to each line of outputverbose - whether to be verbose; verbose output includes
lines for zero-size instructions and explicit constant pool indicespublic void debugPrint(java.io.OutputStream out,
java.lang.String prefix,
boolean verbose)
out - non-null; where to dumpprefix - non-null; prefix to attach to each line of outputverbose - whether to be verbose; verbose output includes
lines for zero-size instructionsCopyright © 2020. All Rights Reserved.