Enum Class JitConfiguration.Opt

java.lang.Object
java.lang.Enum<JitConfiguration.Opt>
ghidra.pcode.emu.jit.JitConfiguration.Opt
All Implemented Interfaces:
Serializable, Comparable<JitConfiguration.Opt>, Constable
Enclosing class:
JitConfiguration

public static enum JitConfiguration.Opt extends Enum<JitConfiguration.Opt>
Fluent specifiers for the boolean options of JitConfiguration
  • Enum Constant Details

    • FOLD_CONSTANTS

      public static final JitConfiguration.Opt FOLD_CONSTANTS
      Attempt to fold constants. This will re-write ops that output a folded constant as a copy, and any op that takes a folded constant input as taking that const directly. To see benefits, this should be used with REMOVE_UNUSED_OPERATIONS.
    • REMOVE_UNREACHABLE_BLOCKS

      public static final JitConfiguration.Opt REMOVE_UNREACHABLE_BLOCKS
      Remove p-code basic blocks that cannot be reached. The ASM library or classfile API may remove unreachable blocks on its own, regardless of this option. If this option is enabled, the JIT compiler will remove unreachable blocks, before analyzing for unused operations, permitting more code removal.
    • REMOVE_UNUSED_OPERATIONS

      public static final JitConfiguration.Opt REMOVE_UNUSED_OPERATIONS
      Some p-code ops produce outputs that are never used later. One common case is flags computed from arithmetic operations. If this option is enabled, the JIT compiler will remove those p-code ops.
    • EMIT_COUNTERS

      public static final JitConfiguration.Opt EMIT_COUNTERS
      Causes the translator to emit a call to JitPcodeThread.count(int, int) at the start of each basic block.
    • LOG_STACK_TRACES

      public static final JitConfiguration.Opt LOG_STACK_TRACES
      Causes the translator to emit code to print a stack trace in its exception handlers.
  • Method Details

    • values

      public static JitConfiguration.Opt[] 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 JitConfiguration.Opt 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