org.jikesrvm.compilers.baseline
Class BaselineOptions

java.lang.Object
  extended by org.jikesrvm.compilers.baseline.BaselineOptions
All Implemented Interfaces:
Cloneable

public final class BaselineOptions
extends Object
implements Cloneable

Class to handle command-line arguments and options for the baseline compiler.

Note: This file is mechanically generated from BaselineOptions.template and MasterOptions.template

Note: Boolean options are defined in /home/dgrove/rvm-trunk/rvm/src-generated/options/BooleanOptions.baseline.dat /home/dgrove/rvm-trunk/rvm/src-generated/options/SharedBooleanOptions.dat All other options are defined in /home/dgrove/rvm-trunk/rvm/src-generated/options/ValueOptions.baseline.dat /home/dgrove/rvm-trunk/rvm/src-generated/options/SharedValueOptions.dat (value, enumeration, bitmask)


Field Summary
 boolean INVOCATION_COUNTERS
          Select methods for optimized recompilation by using invocation counters
private  HashSet<String> METHOD_TO_PRINT
          Only apply print options against methods whose name contains this string
 boolean PRINT_MACHINECODE
          Print final machine code
 boolean PRINT_METHOD
          Print method name at start of compilation
 String PROFILE_EDGE_COUNTER_FILE
          File into which to dump edge counter data
 boolean PROFILE_EDGE_COUNTERS
          Insert edge counters on all bytecode-level conditional branches
 
Constructor Summary
BaselineOptions()
           
 
Method Summary
 Object clone()
           
 BaselineOptions dup()
           
 boolean fuzzyMatchMETHOD_TO_PRINT(String q)
          Does the given parameter appear within a set the String of one of the options?
 Iterator<String> getMETHOD_TO_PRINTs()
          Return an iterator over the items in METHOD_TO_PRINT
 boolean hasMETHOD_TO_PRINT()
          Have any items been placed in the set METHOD_TO_PRINT?
private static void instancePrintHelpFooter(String prefix)
           
private static void instancePrintHelpHeader(String prefix)
           
private  boolean instanceProcessAsOption(String arg)
           
 boolean isMETHOD_TO_PRINT(String q)
          Has the given parameter been added to METHOD_TO_PRINT set of options?
static void printHelp(String prefix)
          Print a short description of every option
 void printOptions()
          print a String value of this options object
private  void printOptionsHeader()
           
 boolean processAsOption(String prefix, String arg)
          Take a string (most likely a command-line argument) and try to proccess it as an option command.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROFILE_EDGE_COUNTERS

public boolean PROFILE_EDGE_COUNTERS
Insert edge counters on all bytecode-level conditional branches


INVOCATION_COUNTERS

public boolean INVOCATION_COUNTERS
Select methods for optimized recompilation by using invocation counters


PRINT_METHOD

public boolean PRINT_METHOD
Print method name at start of compilation


PRINT_MACHINECODE

public boolean PRINT_MACHINECODE
Print final machine code


PROFILE_EDGE_COUNTER_FILE

public String PROFILE_EDGE_COUNTER_FILE
File into which to dump edge counter data


METHOD_TO_PRINT

private HashSet<String> METHOD_TO_PRINT
Only apply print options against methods whose name contains this string

Constructor Detail

BaselineOptions

public BaselineOptions()
Method Detail

printOptionsHeader

private void printOptionsHeader()

isMETHOD_TO_PRINT

public boolean isMETHOD_TO_PRINT(String q)
Has the given parameter been added to METHOD_TO_PRINT set of options?


fuzzyMatchMETHOD_TO_PRINT

public boolean fuzzyMatchMETHOD_TO_PRINT(String q)
Does the given parameter appear within a set the String of one of the options?


hasMETHOD_TO_PRINT

public boolean hasMETHOD_TO_PRINT()
Have any items been placed in the set METHOD_TO_PRINT?


getMETHOD_TO_PRINTs

public Iterator<String> getMETHOD_TO_PRINTs()
Return an iterator over the items in METHOD_TO_PRINT


clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

dup

public BaselineOptions dup()

processAsOption

public boolean processAsOption(String prefix,
                               String arg)
Take a string (most likely a command-line argument) and try to proccess it as an option command. Return true if the string was understood, false otherwise.

Parameters:
prefix - a Sring to use as a command prefix when printing help.
arg - a String to try to process as an option command
Returns:
true if successful, false otherwise

printHelp

public static void printHelp(String prefix)
Print a short description of every option


toString

public String toString()
Overrides:
toString in class Object
Returns:
a String representing the options values

printOptions

public void printOptions()
print a String value of this options object


instanceProcessAsOption

private boolean instanceProcessAsOption(String arg)

instancePrintHelpHeader

private static void instancePrintHelpHeader(String prefix)

instancePrintHelpFooter

private static void instancePrintHelpFooter(String prefix)