Package jminusminus
Class NLIRAStore
java.lang.Object
jminusminus.NLIRInstruction
jminusminus.NLIRAStore
LIR instruction representing JVM array store instructions.
-
Field Summary
Fields inherited from class jminusminus.NLIRInstruction
block, id, lirMnemonic, reads, write
-
Constructor Summary
ConstructorDescriptionNLIRAStore
(NBasicBlock block, int id, int opcode, NLIRInstruction arrayRef, NLIRInstruction index, NLIRInstruction value, String sType, String lType) Constructs an NLIRAStore object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
toSpim
(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
-
NLIRAStore
public NLIRAStore(NBasicBlock block, int id, int opcode, NLIRInstruction arrayRef, NLIRInstruction index, NLIRInstruction value, String sType, String lType) Constructs an NLIRAStore object.- Parameters:
block
- enclosing block.id
- identifier of the instruction.opcode
- JVM opcode for the instruction.arrayRef
- LIR of the array reference.index
- LIR of the array index.value
- LIR of the value to store.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:
toSpim
in classNLIRInstruction
- Parameters:
out
- output stream for SPIM code.
-
toString
Returns a string representation of this instruction.- Overrides:
toString
in classNLIRInstruction
- Returns:
- a string representation of this instruction.
-