coins.ssa
クラス SsaSymTab

java.lang.Object
  |
  +--coins.ssa.SsaSymTab

class SsaSymTab
extends java.lang.Object

The symbol table of SSA variables.


コンストラクタの概要
(パッケージプライベート) SsaSymTab(SsaEnvironment e, Function f)
          Constructor
Create a new symbol table in the SSA form.
 
メソッドの概要
(パッケージプライベート)  int compare(Symbol s1, Symbol s2)
          Compare the specified two symbols.
(パッケージプライベート)  Symbol currentAddressSymbol(Symbol s)
          Get the current symbol of the FRAME or the STATIC node.
(パッケージプライベート)  Symbol newAddressSymbol(Symbol s)
          Get a new symbol of the FRAME node or the STATIC node.
(パッケージプライベート)  Symbol newSsaSymbol(java.lang.String name, int type)
          Get a new symbol of the SSA variable.
(パッケージプライベート)  Symbol newSsaSymbol(Symbol s)
          Get a new symbol of the SSA variable.
(パッケージプライベート)  Symbol orgSym(Symbol s)
          Get the original symbol of the specified symbol.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SsaSymTab

SsaSymTab(SsaEnvironment e,
          Function f)
Constructor
Create a new symbol table in the SSA form. Initialize all local variables in the current function.

パラメータ:
e - The environment of the SSA module
f - The current function
メソッドの詳細

compare

int compare(Symbol s1,
            Symbol s2)
Compare the specified two symbols.

パラメータ:
s1 - The first specified symbol
s2 - The second specified symbol
戻り値:
If s1 and s2 are the same, return 0. If s1 has the large suffix number, then return 1. Otherwise return -1.

orgSym

Symbol orgSym(Symbol s)
Get the original symbol of the specified symbol.

パラメータ:
s - The specified symbol
戻り値:
Original symbol of the specified one

newAddressSymbol

Symbol newAddressSymbol(Symbol s)
Get a new symbol of the FRAME node or the STATIC node.

パラメータ:
s - The old symbol
戻り値:
A new symbol

currentAddressSymbol

Symbol currentAddressSymbol(Symbol s)
Get the current symbol of the FRAME or the STATIC node.

パラメータ:
s - The specified symbol
戻り値:
The current symbol for the specified symbol

newSsaSymbol

Symbol newSsaSymbol(Symbol s)
Get a new symbol of the SSA variable.

パラメータ:
s - The old symbol
戻り値:
A new symbol of the SSA variable

newSsaSymbol

Symbol newSsaSymbol(java.lang.String name,
                    int type)
Get a new symbol of the SSA variable.

パラメータ:
name - The base name of the symbol
type - The type of the symbol
戻り値:
A new symbol of the SSA variable