Interface FieldReq

All Known Subinterfaces:
InstanceFieldReq, StaticFieldReq
All Known Implementing Classes:
FieldForArrDirect, FieldForExitSlot, FieldForSpaceIndirect, FieldForUserop, FieldForVarnode

public interface FieldReq
A field request for a pre-fetched or pre-constructed element
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generateLoadCode(JitCodeGenerator gen, org.objectweb.asm.MethodVisitor rv)
    Emit code to load the field onto the JVM stack
    Derive a suitable name for the field
  • Method Details

    • name

      String name()
      Derive a suitable name for the field
      Returns:
      the name
    • generateLoadCode

      void generateLoadCode(JitCodeGenerator gen, org.objectweb.asm.MethodVisitor rv)
      Emit code to load the field onto the JVM stack
      Parameters:
      gen - the code generator
      rv - the visitor often for the run method, but could be the static initializer or constructor