Package jminusminus

Class NHIRPutField


class NHIRPutField extends NHIRInstruction
HIR instruction representing JVM (put) field instructions.
  • Constructor Details

    • NHIRPutField

      public NHIRPutField(NBasicBlock block, int id, int opcode, String target, String name, String sType, String lType, int value)
      Constructs an NHIRPutField object.
      Parameters:
      block - enclosing block.
      id - identifier of the instruction.
      opcode - JVM opcode for the 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 - HIR id of the value of the field.
  • Method Details

    • toLir

      public NLIRInstruction 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 class NHIRInstruction
      Returns:
      the LIR instruction corresponding to this HIR instruction.
    • toString

      public String toString()
      Returns a string representation of this instruction.
      Overrides:
      toString in class NHIRInstruction
      Returns:
      a string representation of this instruction.