Enum Class DoubleAccessGen

java.lang.Object
java.lang.Enum<DoubleAccessGen>
ghidra.pcode.emu.jit.gen.access.DoubleAccessGen
All Implemented Interfaces:
AccessGen<JitType.DoubleJitType>, SimpleAccessGen<Types.TDouble,JitType.DoubleJitType>, Serializable, Comparable<DoubleAccessGen>, Constable

public enum DoubleAccessGen extends Enum<DoubleAccessGen> implements SimpleAccessGen<Types.TDouble,JitType.DoubleJitType>
The generator for accessing doubles

This is accomplished by delegating to the long access generator with type conversion.

  • Enum Constant Details

  • Method Details

    • values

      public static DoubleAccessGen[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DoubleAccessGen valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • genReadToStack

      public <THIS extends JitCompiledPassage, N extends Emitter.Next> Emitter<Emitter.Ent<N,Types.TDouble>> genReadToStack(Emitter<N> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, Varnode vn)
      Description copied from interface: SimpleAccessGen
      Emit code to read a varnode

      If the varnode fits completely in the block (the common case), then this accesses the bytes from the one block, using the method chosen by size. If the varnode extends into the next block, then this will split the varnode into two portions according to machine byte order. Each portion is accessed using the method for the size of that portion. The results are reassembled into a single operand.

      Specified by:
      genReadToStack in interface SimpleAccessGen<Types.TDouble,JitType.DoubleJitType>
      Type Parameters:
      N - the incoming stack
      Parameters:
      em - the emitter typed with the incoming stack
      localThis - a handle to the local holding the this reference
      gen - the code generator
      vn - the varnode
      Returns:
      the code generator with the resulting stack, i.e., having pushed the value
    • genWriteFromStack

      public <THIS extends JitCompiledPassage, N1 extends Emitter.Next, N0 extends Emitter.Ent<N1, Types.TDouble>> Emitter<N1> genWriteFromStack(Emitter<N0> em, Local<Types.TRef<THIS>> localThis, JitCodeGenerator<THIS> gen, Varnode vn)
      Description copied from interface: SimpleAccessGen
      Emit code to write a varnode

      If the varnode fits completely in the block (the common case), then this accesses the bytes from the one block, using the method chosen by size. If the varnode extends into the next block, then this will split the varnode into two portions according to machine byte order. Each portion is accessed using the method for the size of that portion.

      Specified by:
      genWriteFromStack in interface SimpleAccessGen<Types.TDouble,JitType.DoubleJitType>
      Type Parameters:
      N1 - the tail of the incoming stack
      N0 - the incoming stack having the value on top
      Parameters:
      em - the emitter typed with the incoming stack
      localThis - a handle to the local holding the this reference
      gen - the code generator
      vn - the varnode
      Returns:
      the code generator with the resulting stack, i.e., having popped the value