|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.Maps.DefaultMap<HCE>
public class DefaultMap<HCE extends HCodeElement>
A DefaultMap
returns conservative values for
const and exec information: namely that no temp corresponds
to a constant and that every node and edge is potentially
executable.
Constructor Summary | |
---|---|
DefaultMap()
|
Method Summary | |
---|---|
Object |
constMap(HCE hce,
Temp t)
Determine the constant value of a given temporary in the context of a specific definition. |
boolean |
execMap(HCE node)
Returns the executable status of an HCodeElement . |
boolean |
execMap(HCodeEdge<HCE> edge)
Returns the executable status of an HCodeEdge . |
boolean |
isConst(HCE hce,
Temp t)
Determine whether a given temporary has a constant value at the specified definition point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMap()
Method Detail |
---|
public boolean isConst(HCE hce, Temp t)
ConstMap
isConst
in interface ConstMap<HCE extends HCodeElement>
hce
- the definition point.t
- the Temp
to be examined.
true
is the given definition point can
be proven to give the specified Temp
a
constant value, false
otherwise.public Object constMap(HCE hce, Temp t)
ConstMap
constMap
in interface ConstMap<HCE extends HCodeElement>
hce
- the definition point.t
- the temporary to be examined.
public boolean execMap(HCE node)
ExecMap
HCodeElement
.
execMap
in interface ExecMap<HCE extends HCodeElement>
node
- The HCodeElement
to examine.
true
if it is possible to execute this
HCodeElement
; or false
if
it can be proved that this HCodeElement
will never be executed.public boolean execMap(HCodeEdge<HCE> edge)
ExecMap
HCodeEdge
.
execMap
in interface ExecMap<HCE extends HCodeElement>
edge
- An edge between two HCodeElement
s in
some HCode
.
true
if it is possible to traverse this
edge during execution, or false
if it
can be proved that this edge will never be followed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |