harpoon.Backend.Runtime1
Class AppelAllocationStrategy

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

public class AppelAllocationStrategy
extends AllocationStrategy

A simple-minded version of Appel's fast-allocation strategy

Version:
$Id: AppelAllocationStrategy.java,v 1.2 2002/02/25 21:02:19 cananian Exp $
Author:
Duncan Bryce <duncan@lcs.mit.edu>
See Also:
Serialized Form

Constructor Summary
AppelAllocationStrategy(Frame frame)
           
 
Method Summary
 Exp memAlloc(TreeFactory tf, HCodeElement src, DerivationGenerator dg, AllocationInformation.AllocationProperties ap, Exp size)
          Returns a Stm object which allocates a block of memory of the specified size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppelAllocationStrategy

public AppelAllocationStrategy(Frame frame)
Method Detail

memAlloc

public Exp memAlloc(TreeFactory tf,
                    HCodeElement src,
                    DerivationGenerator dg,
                    AllocationInformation.AllocationProperties ap,
                    Exp size)
Returns a Stm object which allocates a block of memory of the specified size.

Specified by:
memAlloc in class AllocationStrategy