Enum Class DoubleWriteGen

java.lang.Object
java.lang.Enum<DoubleWriteGen>
ghidra.pcode.emu.jit.gen.type.DoubleWriteGen
All Implemented Interfaces:
TypedAccessGen, Serializable, Comparable<DoubleWriteGen>, Constable

public enum DoubleWriteGen extends Enum<DoubleWriteGen> implements TypedAccessGen
The generator for writing doubles

This is accomplished by converting to a long and then writing it.

  • Enum Constant Details

  • Method Details

    • values

      public static DoubleWriteGen[] 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 DoubleWriteGen 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
    • generateCode

      public void generateCode(JitCodeGenerator gen, Varnode vn, org.objectweb.asm.MethodVisitor rv)
      Description copied from interface: TypedAccessGen
      Emit code to access a varnode.

      If reading, the result is placed on the JVM stack. If writing, the value is popped from the JVM stack.

      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. If reading, the results are reassembled into a single value and pushed onto the JVM stack.

      Specified by:
      generateCode in interface TypedAccessGen
      Parameters:
      gen - the code generator
      vn - the varnode
      rv - the method visitor