Package jminusminus
Class NLIRPutField
java.lang.Object
jminusminus.NLIRInstruction
jminusminus.NLIRPutField
LIR instruction representing JVM (put) field instructions.
-
Field Summary
Fields inherited from class jminusminus.NLIRInstruction
block, id, lirMnemonic, reads, write
-
Constructor Summary
ConstructorDescriptionNLIRPutField
(NBasicBlock block, int id, int opcode, String target, String name, String sType, String lType, NLIRInstruction value) Constructs an NLIRPutField 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
-
NLIRPutField
public NLIRPutField(NBasicBlock block, int id, int opcode, String target, String name, String sType, String lType, NLIRInstruction value) Constructs an NLIRPutField object.- Parameters:
block
- enclosing block.id
- identifier of the instruction.opcode
- JVM opcode for the return instruction.target
- target for the field.name
- name of the field.sType
- type (short name) of the field.lType
- type (long name) of the field.value
- LIR of the value of the field.
-
-
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.
-