Class FieldForPcodeOp

java.lang.Object
ghidra.pcode.emu.jit.gen.FieldForPcodeOp
All Implemented Interfaces:
FieldReq<Types.TRef<PcodeOp>>, StaticFieldReq<Types.TRef<PcodeOp>>

public class FieldForPcodeOp extends Object implements StaticFieldReq<Types.TRef<PcodeOp>>
  • Constructor Details

  • Method Details

    • name

      public String name()
      Description copied from interface: FieldReq
      Derive a suitable name for the field
      Specified by:
      name in interface FieldReq<Types.TRef<PcodeOp>>
      Returns:
      the name
    • genClInitCode

      public <N extends Emitter.Next> Emitter<N> genClInitCode(Emitter<N> em, JitCodeGenerator<?> gen, org.objectweb.asm.ClassVisitor cv)
      Description copied from interface: StaticFieldReq
      Emit the field declaration and its initialization bytecode

      The declaration is emitted into the class definition, and the initialization code is emitted into the class initializer.

      Specified by:
      genClInitCode in interface StaticFieldReq<Types.TRef<PcodeOp>>
      Type Parameters:
      N - the incoming stack
      Parameters:
      em - the emitter typed with the incoming stack
      gen - the code generator
      cv - the visitor for the class definition
      Returns:
      the emitter typed with the incoming stack
    • genLoad

      public <N extends Emitter.Next> Emitter<Emitter.Ent<N,Types.TRef<PcodeOp>>> genLoad(Emitter<N> em, JitCodeGenerator<?> gen)
      Description copied from interface: StaticFieldReq
      Emit code to load the field onto the JVM stack
      Specified by:
      genLoad in interface StaticFieldReq<Types.TRef<PcodeOp>>
      Type Parameters:
      N - the incoming stack
      Parameters:
      em - the emitter typed with the incoming stack
      gen - the code generator
      Returns:
      the emitter typed with the resulting stack, i.e., having pushed the value