coins.ssa
Class SsaEnvironment

java.lang.Object
  extended bycoins.ssa.SsaEnvironment

class SsaEnvironment
extends java.lang.Object

The environment of the SSA module.


Field Summary
static int AllThr
          The threshold of the debug print
 IoRoot ioRoot
          The root of IO in COINS
 LirFactory lir
          The factory of LIR
static int MinThr
          The threshold of the debug print
 Module module
          The current compile module
 java.lang.String MODULENAME
          The name of this module
static int MsgThr
          The threshold of the debug print
 CoinsOptions opt
          The options to the COINS compiler driver
static int OptThr
          The threshold of the debug print
 java.io.PrintWriter output
          The output stream of the compiler
 CompileSpecification spec
          The specification of the COINS compiler driver
static int SsaThr
          The threshold of the debug print
 Trace trace
          The trace object of the compiler
 
Constructor Summary
(package private) SsaEnvironment(Module m, CompileSpecification coinsSpec, IoRoot io)
          Constructor
 
Method Summary
(package private)  void print(java.lang.String str, int threshold)
          Debug print out.
(package private)  void println(java.lang.String str, int threshold)
          Debug print out.
(package private)  boolean shouldDo(int threshold)
          If the value of threshold is lower than specified by the options to the COINS compiler driver, return TRUE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MsgThr

public static final int MsgThr
The threshold of the debug print

See Also:
Constant Field Values

MinThr

public static final int MinThr
The threshold of the debug print

See Also:
Constant Field Values

SsaThr

public static final int SsaThr
The threshold of the debug print

See Also:
Constant Field Values

OptThr

public static final int OptThr
The threshold of the debug print

See Also:
Constant Field Values

AllThr

public static final int AllThr
The threshold of the debug print

See Also:
Constant Field Values

output

public final java.io.PrintWriter output
The output stream of the compiler


spec

public final CompileSpecification spec
The specification of the COINS compiler driver


opt

public final CoinsOptions opt
The options to the COINS compiler driver


trace

public final Trace trace
The trace object of the compiler


MODULENAME

public final java.lang.String MODULENAME
The name of this module

See Also:
Constant Field Values

module

public final Module module
The current compile module


lir

public final LirFactory lir
The factory of LIR


ioRoot

public final IoRoot ioRoot
The root of IO in COINS

Constructor Detail

SsaEnvironment

SsaEnvironment(Module m,
               CompileSpecification coinsSpec,
               IoRoot io)
Constructor

Parameters:
m - The current compile module
coinsSpec - The specification of the COINS compiler driver
io - The input/output of the compiler
Method Detail

shouldDo

boolean shouldDo(int threshold)
If the value of threshold is lower than specified by the options to the COINS compiler driver, return TRUE.

Parameters:
threshold - The value which is checked if it is lower than threshold
Returns:
True if the value `threshold' is lower than threshold

println

void println(java.lang.String str,
             int threshold)
Debug print out. If the value of `threshold' is lower than the threshold print out `str' as a debug message. This method prints the carriage return at the end of the message.

Parameters:
str - The debug message
threshold - The threshold of the debug message

print

void print(java.lang.String str,
           int threshold)
Debug print out. If the value of `threshold' is lower than the threshold print out `str' as a debug message.

Parameters:
str - The debug message
threshold - The threshold of the debug message