All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.IR.QuadSSA.INSTANCEOF
java.lang.Object
|
+----harpoon.IR.QuadSSA.Quad
|
+----harpoon.IR.QuadSSA.INSTANCEOF
- public class INSTANCEOF
- extends Quad
INSTANCEOF
objects represent an 'instanceof' evaluation.
INSTANCEOF
assigns a boolean value to a temporary after
evaluating whether a certain temporary is an instance of a given
class type.
It is a semantic error for the src
Temp to be able to
have the value null
at run-time. A separate
null-pointer test should always precede the INSTANCEOF
quad if src may be null at run-time. Standard java
instanceof
returns true
given a
null
source object.
- Version:
- $Id: INSTANCEOF.java,v 1.9 1998/10/11 02:37:56 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
-
dst
- The temp in which to store the result of the evaluation.
-
hclass
- The class in which
src
is tested for membership.
-
src
- The temp to evaluate.
-
INSTANCEOF(HCodeElement, Temp, Temp, HClass)
- Creates a
INSTANCEOF
.
-
def()
- Returns the
Temp
s defined by this quad.
-
renameDefs(TempMap)
- Rename all defined variables in this Quad according to a mapping.
-
renameUses(TempMap)
- Rename all used variables in this Quad according to a mapping.
-
toString()
- Returns a human-readable representation of this Quad.
-
use()
- Returns the
Temp
s used by this quad.
-
visit(QuadVisitor)
- Accept a visitor.
dst
public Temp dst
- The temp in which to store the result of the evaluation.
src
public Temp src
- The temp to evaluate.
hclass
public HClass hclass
- The class in which
src
is tested for membership.
INSTANCEOF
public INSTANCEOF(HCodeElement source,
Temp dst,
Temp src,
HClass hclass)
- Creates a
INSTANCEOF
.
use
public Temp[] use()
- Returns the
Temp
s used by this quad.
- Overrides:
- use in class Quad
def
public Temp[] def()
- Returns the
Temp
s defined by this quad.
- Overrides:
- def in class Quad
renameUses
public void renameUses(TempMap tm)
- Rename all used variables in this Quad according to a mapping.
- Overrides:
- renameUses in class Quad
renameDefs
public void renameDefs(TempMap tm)
- Rename all defined variables in this Quad according to a mapping.
- Overrides:
- renameDefs in class Quad
visit
public void visit(QuadVisitor v)
- Accept a visitor.
- Overrides:
- visit in class Quad
toString
public String toString()
- Returns a human-readable representation of this Quad.
- Overrides:
- toString in class Quad
All Packages Class Hierarchy This Package Previous Next Index