All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.IR.QuadSSA.GET
java.lang.Object
|
+----harpoon.IR.QuadSSA.Quad
|
+----harpoon.IR.QuadSSA.GET
- public class GET
- extends Quad
GET
represent field access (get) operations.
The objectref
is null if the field is static.
- Version:
- $Id: GET.java,v 1.19 1998/10/11 02:37:56 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
-
dst
- Temp in which to store the fetched field contents.
-
field
- The field desciption.
-
objectref
- Reference to the object containing the field.
-
GET(HCodeElement, Temp, HField)
- Creates a
GET
for a static field.
-
GET(HCodeElement, Temp, HField, Temp)
- Creates a
GET
for a non-static field.
-
def()
- Returns the Temp defined by this Quad.
-
isStatic()
- Determines whether the GET 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 human-readable representation.
-
use()
- Returns the Temp used by this Quad.
-
visit(QuadVisitor)
- Accept a visitor.
dst
public Temp dst
- Temp in which to store the fetched field contents.
field
public HField field
- The field desciption.
objectref
public Temp objectref
- Reference to the object containing the field.
null
if field is static.
GET
public GET(HCodeElement source,
Temp dst,
HField field,
Temp objectref)
- Creates a
GET
for a non-static field.
GET
public GET(HCodeElement source,
Temp dst,
HField field)
- Creates a
GET
for a static field.
use
public Temp[] use()
- Returns the Temp used by this Quad.
- Returns:
- the
objectref
field.
- Overrides:
- use in class Quad
def
public Temp[] def()
- Returns the Temp defined by this Quad.
- Returns:
- the
dst
field.
- 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 human-readable representation.
- Overrides:
- toString in class Quad
isStatic
public boolean isStatic()
- Determines whether the GET is of a static field.
All Packages Class Hierarchy This Package Previous Next Index