class NLIRNewArray extends NLIRInstruction
| Modifier and Type | Field and Description |
|---|---|
int |
dim
Dimension of the array.
|
int |
opcode
Opcode of the JVM instruction.
|
block, id, lirMnemonic, reads, write| Constructor and Description |
|---|
NLIRNewArray(NBasicBlock block,
int id,
int opcode,
int dim,
String sType,
String lType)
Construct an NLIRNewArray instruction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
toSpim(PrintWriter out)
Translate this LIR instruction into SPIM and write it out to the
specified output stream.
|
String |
toString()
Return a string representation of this instruction.
|
allocatePhysicalRegisterspublic int opcode
public int dim
public NLIRNewArray(NBasicBlock block, int id, int opcode, int dim, String sType, String lType)
block - enclosing block.id - identifier of the instruction.opcode - JVM opcode for the instruction.dim - dimension of the array.sType - type (short name) of the array.lType - type (long name) of the array.public void toSpim(PrintWriter out)
NLIRInstructiontoSpim in class NLIRInstructionout - output stream for SPIM code.public String toString()
NLIRInstructiontoString in class NLIRInstruction