All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.ASET

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

public class ASET
extends Quad
ASET represents an array element assignment.

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

Variable Index

 o index
The Temp holding the index of the element to get.
 o objectref
The array reference
 o src
The new value for the array element.

Constructor Index

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

Method Index

 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 objectref
 public Temp objectref
The array reference

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

 o src
 public Temp src
The new value for the array element.

Constructors

 o ASET
 public ASET(HCodeElement source,
             Temp objectref,
             Temp index,
             Temp src)
Creates an ASET object.

Methods

 o use
 public Temp[] use()
Returns all the Temps used by this quad.

Returns:
the objectref, index, and src 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