harpoon.Backend.Runtime1
Class NullAllocationStrategy

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

public class NullAllocationStrategy
extends AllocationStrategy

NullAllocationStrategy just returns a null pointer when asked for memory. It's just a stub, really.

Version:
$Id: NullAllocationStrategy.java,v 1.2 2002/02/25 21:02:20 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Serialized Form

Constructor Summary
NullAllocationStrategy()
          Creates a NullAllocationStrategy.
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullAllocationStrategy

public NullAllocationStrategy()
Creates a NullAllocationStrategy.

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.

Specified by:
memAlloc in class AllocationStrategy