All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.AGET

java.lang.Object
   |
   +----harpoon.IR.QuadSSA.Quad
           |
           +----harpoon.IR.QuadSSA.AGET

public class AGET
extends Quad
AGET represents an element fetch from an array object.

Version:
$Id: AGET.java,v 1.9 1998/10/11 02:37:56 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ANEW, ASET, ALENGTH

Variable Index

 o dst
The Temp in which to store the fetched element.
 o index
The Temp holding the index of the element to get.
 o objectref
The array reference.

Constructor Index

 o AGET(HCodeElement, Temp, Temp, Temp)
Creates an AGET object.

Method Index

 o def()
Returns the Temp defined by this quad.
 o renameDefs(TempMap)
Rename all defined variables in this Quad according to a mapping.
 o renameUses(TempMap)
Rename all used variables in this Quad according to a mapping.
 o toString()
Returns a human-readable representation of this quad.
 o use()
Returns all the Temps used by this quad.
 o visit(QuadVisitor)
Accept a visitor.

Variables

 o dst
 public Temp dst
The Temp in which to store the fetched element.

 o objectref
 public Temp objectref
The array reference.

 o index
 public Temp index
The Temp holding the index of the element to get.

Constructors

 o AGET
 public AGET(HCodeElement source,
             Temp dst,
             Temp objectref,
             Temp index)
Creates an AGET object.

Methods

 o def
 public Temp[] def()
Returns the Temp defined by this quad.

Returns:
the dst field.
Overrides:
def in class Quad
 o use
 public Temp[] use()
Returns all the Temps used by this quad.

Returns:
the objectref and index fields.
Overrides:
use in class Quad
 o renameUses
 public void renameUses(TempMap tm)
Rename all used variables in this Quad according to a mapping.

Overrides:
renameUses in class Quad
 o renameDefs
 public void renameDefs(TempMap tm)
Rename all defined variables in this Quad according to a mapping.

Overrides:
renameDefs in class Quad
 o visit
 public void visit(QuadVisitor v)
Accept a visitor.

Overrides:
visit in class Quad
 o 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