Package jminusminus
Class NLIRInvoke
java.lang.Object
jminusminus.NLIRInstruction
jminusminus.NLIRInvoke
LIR instruction representing method invocation instructions in JVM.
- 
Field SummaryFields inherited from class jminusminus.NLIRInstructionblock, id, lirMnemonic, reads, write
- 
Constructor SummaryConstructorsConstructorDescriptionNLIRInvoke(NBasicBlock block, int id, int opcode, String target, String name, ArrayList<NRegister> arguments, String sType, String lType) Constructs an NHIRInvoke object.
- 
Method SummaryModifier and TypeMethodDescriptionvoidReplace references to virtual registers in this LIR instruction with references to physical registers.voidtoSpim(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.
- 
Constructor Details- 
NLIRInvokepublic NLIRInvoke(NBasicBlock block, int id, int opcode, String target, String name, ArrayList<NRegister> arguments, String sType, String lType) Constructs an NHIRInvoke object.- Parameters:
- block- enclosing block.
- id- identifier of the instruction.
- opcode- opcode of the JVM instruction.
- target- target of the method.
- name- name of the method.
- arguments- list of register storing the of arguments for the method.
- sType- return type (short name) of the method.
- lType- return type (long name) of the method.
 
 
- 
- 
Method Details- 
allocatePhysicalRegisterspublic void allocatePhysicalRegisters()Replace references to virtual registers in this LIR instruction with references to physical registers.- Overrides:
- allocatePhysicalRegistersin class- NLIRInstruction
 
- 
toSpimTranslates this LIR instruction into SPIM and writes it out to the specified output stream.- Overrides:
- toSpimin class- NLIRInstruction
- Parameters:
- out- output stream for SPIM code.
 
- 
toStringReturns a string representation of this instruction.- Overrides:
- toStringin class- NLIRInstruction
- Returns:
- a string representation of this instruction.
 
 
-