All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.CONST

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

public class CONST
extends Quad
CONST objects represent an assignment of a constant value to a compiler temporary.

The type field of a CONST must be one of: String, int, long, float, double or voidvoid type corresponds to a null literal constant, and in this case the value field will be null. In all other cases, value will contain an object of the specified type; values of primitive types will use the standard wrapper class. An example may clarify:

Version:
$Id: CONST.java,v 1.14 1998/10/12 00:44:10 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Variable Index

 o dst
 o type
 o value

Constructor Index

 o CONST(HCodeElement, Temp, Object, HClass)
Creates a CONST from a destination temporary, and object value and its class type.

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 visit(QuadVisitor)
Accept a visitor.

Variables

 o dst
 public Temp dst
 o value
 public Object value
 o type
 public HClass type

Constructors

 o CONST
 public CONST(HCodeElement source,
              Temp dst,
              Object value,
              HClass type)
Creates a CONST from a destination temporary, and object value and its class type.

Methods

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

Returns:
The dst field.
Overrides:
def 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