harpoon.Backend.Runtime1
Class HeapStatsAllocationStrategy

java.lang.Object
  extended by harpoon.Backend.Runtime1.AllocationStrategy
      extended by harpoon.Backend.Runtime1.MallocAllocationStrategy
          extended by harpoon.Backend.Runtime1.HeapStatsAllocationStrategy
All Implemented Interfaces:
Serializable

public class HeapStatsAllocationStrategy
extends MallocAllocationStrategy

HeapStatsAllocationStrategy calls the appropriate C functions in the --with-live-heap-statistics runtime code to collect statistics for objects and arrays allocated.

Version:
$Id: HeapStatsAllocationStrategy.java,v 1.2 2002/04/10 03:03:20 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Serialized Form

Field Summary
 
Fields inherited from class harpoon.Backend.Runtime1.MallocAllocationStrategy
frame
 
Constructor Summary
HeapStatsAllocationStrategy(Frame f)
          Creates a HeapStatsAllocationStrategy.
 
Method Summary
 Exp memAlloc(TreeFactory tf, HCodeElement source, DerivationGenerator dg, AllocationInformation.AllocationProperties ap, Exp length)
          Return a Tree.Exp created with the given TreeFactory that returns a pointer to a piece of memory length bytes long.
 
Methods inherited from class harpoon.Backend.Runtime1.MallocAllocationStrategy
buildAllocCall, DECLARE, DECLARE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapStatsAllocationStrategy

public HeapStatsAllocationStrategy(Frame f)
Creates a HeapStatsAllocationStrategy.

Method Detail

memAlloc

public Exp memAlloc(TreeFactory tf,
                    HCodeElement source,
                    DerivationGenerator dg,
                    AllocationInformation.AllocationProperties ap,
                    Exp length)
Description copied from class: AllocationStrategy
Return a Tree.Exp created with the given TreeFactory that returns a pointer to a piece of memory length bytes long.

Overrides:
memAlloc in class MallocAllocationStrategy