harpoon.Backend.Runtime1
Class NiftyAllocationStrategy

java.lang.Object
  |
  +--harpoon.Backend.Runtime1.AllocationStrategy
        |
        +--harpoon.Backend.Runtime1.MallocAllocationStrategy
              |
              +--harpoon.Backend.Runtime1.NiftyAllocationStrategy
Direct Known Subclasses:
PGCNiftyAllocationStrategy

public class NiftyAllocationStrategy
extends MallocAllocationStrategy

NiftyAllocationStrategy implements stack- and thread-clustered-allocation strategies.

Version:
$Id: NiftyAllocationStrategy.java,v 1.3 2002/02/26 22:44:31 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
 
Fields inherited from class harpoon.Backend.Runtime1.MallocAllocationStrategy
frame
 
Constructor Summary
NiftyAllocationStrategy(Frame f)
          Creates a NiftyAllocationStrategy.
 
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

NiftyAllocationStrategy

public NiftyAllocationStrategy(Frame f)
Creates a NiftyAllocationStrategy.

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