Enum Class JitConfiguration.Opt
- All Implemented Interfaces:
Serializable, Comparable<JitConfiguration.Opt>, Constable
- Enclosing class:
JitConfiguration
Fluent specifiers for the boolean options of
JitConfiguration-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCauses the translator to emit a call toJitPcodeThread.count(int, int)at the start of each basic block.Attempt to fold constants.Causes the translator to emit code to print a stack trace in its exception handlers.Remove p-code basic blocks that cannot be reached.Some p-code ops produce outputs that are never used later. -
Method Summary
Modifier and TypeMethodDescriptionstatic JitConfiguration.OptReturns the enum constant of this class with the specified name.static JitConfiguration.Opt[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOLD_CONSTANTS
Attempt to fold constants. This will re-write ops that output a folded constant as acopy, and any op that takes a folded constant input as taking that const directly. To see benefits, this should be used withREMOVE_UNUSED_OPERATIONS. -
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
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
Causes the translator to emit a call toJitPcodeThread.count(int, int)at the start of each basic block. -
LOG_STACK_TRACES
Causes the translator to emit code to print a stack trace in its exception handlers.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-