harpoon.Backend.Runtime1
Class AppelAllocationStrategy
java.lang.Object
harpoon.Backend.Runtime1.AllocationStrategy
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppelAllocationStrategy
public AppelAllocationStrategy(Frame frame)
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