All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.IR.QuadSSA.SET
java.lang.Object
|
+----harpoon.IR.QuadSSA.Quad
|
+----harpoon.IR.QuadSSA.SET
- public class SET
- extends Quad
SET
represents field assignment-to operations.
The objectref
is null if the field is static.
- Version:
- $Id: SET.java,v 1.17 1998/10/11 02:37:57 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
-
field
- The field description.
-
objectref
- Reference to the object containing the field.
-
src
- Temp containing the desired new value of the field.
-
SET(HCodeElement, HField, Temp)
- Creates a
SET
for a static field.
-
SET(HCodeElement, HField, Temp, Temp)
- Creates a
SET
for a non-static field.
-
isStatic()
- Determines whether the SET is of a static field.
-
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 Temps used by this Quad.
-
visit(QuadVisitor)
- Accept a visitor.
field
public HField field
- The field description.
objectref
public Temp objectref
- Reference to the object containing the field.
null
if the field is static.
src
public Temp src
- Temp containing the desired new value of the field.
SET
public SET(HCodeElement source,
HField field,
Temp objectref,
Temp src)
- Creates a
SET
for a non-static field.
SET
public SET(HCodeElement source,
HField field,
Temp src)
- Creates a
SET
for a static field.
use
public Temp[] use()
- Returns the Temps used by this Quad.
- Returns:
- the
objectref
and src
fields.
- Overrides:
- use 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
isStatic
public boolean isStatic()
- Determines whether the SET is of a static field.
All Packages Class Hierarchy This Package Previous Next Index