harpoon.Analysis
Class AllocationInformationMap<HCE extends HCodeElement>

java.lang.Object
  extended by harpoon.Analysis.AllocationInformationMap<HCE>
All Implemented Interfaces:
AllocationInformation<HCE>, Serializable
Direct Known Subclasses:
DefaultAllocationInformationMap

public class AllocationInformationMap<HCE extends HCodeElement>
extends Object
implements AllocationInformation<HCE>, Serializable

An AllocationInformationMap makes it easy to create a map-based AllocationInformation structure. It also contains methods to facilitate transferring allocation information from a different AllocationInformation object.

Version:
$Id: AllocationInformationMap.java,v 1.9 2003/03/11 17:49:48 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Serialized Form

Nested Class Summary
static class AllocationInformationMap.AllocationPropertiesImpl
          A simple implementation of AllocationProperties.
 
Nested classes/interfaces inherited from interface harpoon.Analysis.Maps.AllocationInformation
AllocationInformation.AllocationProperties
 
Constructor Summary
AllocationInformationMap()
          Creates a AllocationInformationMap.
 
Method Summary
 void associate(HCE allocationSite, AllocationInformation.AllocationProperties ap)
          Associate the given allocationSite with the specified AllocationProperties.
 AllocationInformation.AllocationProperties query(HCE allocationSite)
          Return the AllocationProperties for the given allocationSite.
<HCE2 extends HCodeElement>
void
transfer(HCE newallocsite, HCE2 oldallocsite, TempMap tm, AllocationInformation<HCE2> ai)
          Transfer allocation information from the oldallocsite to newallocsite using the specified TempMap and old AllocationInformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllocationInformationMap

public AllocationInformationMap()
Creates a AllocationInformationMap.

Method Detail

query

public AllocationInformation.AllocationProperties query(HCE allocationSite)
Return the AllocationProperties for the given allocationSite.

Specified by:
query in interface AllocationInformation<HCE extends HCodeElement>

associate

public void associate(HCE allocationSite,
                      AllocationInformation.AllocationProperties ap)
Associate the given allocationSite with the specified AllocationProperties.


transfer

public <HCE2 extends HCodeElement> void transfer(HCE newallocsite,
                                                 HCE2 oldallocsite,
                                                 TempMap tm,
                                                 AllocationInformation<HCE2> ai)
Transfer allocation information from the oldallocsite to newallocsite using the specified TempMap and old AllocationInformation.