Package jminusminus
Class NLIRNewArray
java.lang.Object
jminusminus.NLIRInstruction
jminusminus.NLIRNewArray
LIR instruction representing JVM array creation instructions.
-
Field Summary
Fields inherited from class jminusminus.NLIRInstruction
block, id, lirMnemonic, reads, write -
Constructor Summary
ConstructorsConstructorDescriptionNLIRNewArray(NBasicBlock block, int id, int opcode, int dim, String sType, String lType) Constructs an NLIRNewArray object. -
Method Summary
Modifier and TypeMethodDescriptionvoidtoSpim(PrintWriter out) Translates this LIR instruction into SPIM and writes it out to the specified output stream.toString()Returns a string representation of this instruction.Methods inherited from class jminusminus.NLIRInstruction
allocatePhysicalRegisters
-
Constructor Details
-
NLIRNewArray
Constructs an NLIRNewArray object.- Parameters:
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.
-
-
Method Details
-
toSpim
Translates this LIR instruction into SPIM and writes it out to the specified output stream.- Overrides:
toSpimin classNLIRInstruction- Parameters:
out- output stream for SPIM code.
-
toString
Returns a string representation of this instruction.- Overrides:
toStringin classNLIRInstruction- Returns:
- a string representation of this instruction.
-