harpoon.Analysis.SizeOpt
Class MZFCompressor

java.lang.Object
  extended by harpoon.Analysis.SizeOpt.MZFCompressor

public class MZFCompressor
extends Object

The MZFCompressor class implements a class transformation aimed at eliminating "mostly-zero" (or "mostly (any constant)") fields from classes (thus reducing memory consumption). Each class is transformed into several, each with one additional field added. Thus we only need allocate fields that this particular instance will actually use.

Version:
$Id: MZFCompressor.java,v 1.9 2004/02/08 03:20:22 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
MZFCompressor(Frame frame, HCodeFactory hcf, ClassHierarchy ch, String resourcePath)
          Creates a MZFCompressor, using the field profiling information found in the resource at resourcePath.
 
Method Summary
 HCodeFactory codeFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MZFCompressor

public MZFCompressor(Frame frame,
                     HCodeFactory hcf,
                     ClassHierarchy ch,
                     String resourcePath)
Creates a MZFCompressor, using the field profiling information found in the resource at resourcePath. This resource should be a unprocessed file in the format output by the SizeCounters package.

Method Detail

codeFactory

public HCodeFactory codeFactory()