Package jminusminus
Class NHIRAStore
java.lang.Object
jminusminus.NHIRInstruction
jminusminus.NHIRAStore
HIR instruction representing JVM array store instructions.
-
Field Summary
Fields inherited from class jminusminus.NHIRInstruction
block, hirMnemonic, id, lir, lType, sType
-
Constructor Summary
ConstructorDescriptionNHIRAStore
(NBasicBlock block, int id, int opcode, int arrayRef, int index, int value, String sType, String lType) Constructs an NHIRAStore object. -
Method Summary
Methods inherited from class jminusminus.NHIRInstruction
equals, id
-
Constructor Details
-
NHIRAStore
public NHIRAStore(NBasicBlock block, int id, int opcode, int arrayRef, int index, int value, String sType, String lType) Constructs an NHIRAStore object.- Parameters:
block
- enclosing block.id
- identifier of the instruction.opcode
- JVM opcode for the instruction.arrayRef
- HIR id of the array reference.index
- HIR id of the array index.value
- HIR id of the value to store.sType
- type (short name) of the array.lType
- type (long name) of the array.
-
-
Method Details
-
toLir
Converts and returns a low-level representation (LIR) of this HIR instruction. Also adds the returned LIR instruction to the list of LIR instructions for the block containing this instruction, along with any other intermediate LIR instructions needed.- Overrides:
toLir
in classNHIRInstruction
- Returns:
- the LIR instruction corresponding to this HIR instruction.
-
toString
Returns a string representation of this instruction.- Overrides:
toString
in classNHIRInstruction
- Returns:
- a string representation of this instruction.
-