harpoon.Analysis.SizeOpt
Class MostlyZeroFinder

java.lang.Object
  extended by harpoon.Analysis.Transformation.MethodMutator<Quad>
      extended by harpoon.Analysis.SizeOpt.MostlyZeroFinder
All Implemented Interfaces:
Serializable

public class MostlyZeroFinder
extends MethodMutator<Quad>

The MostlyZeroFinder will add counters to find fields which are mostly zero (or mostly 1, 2, etc).

Version:
$Id: MostlyZeroFinder.java,v 1.10 2004/07/02 00:08:47 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Serialized Form

Constructor Summary
MostlyZeroFinder(HCodeFactory parent, ClassHierarchy ch, Frame frame)
          Creates a MostlyZeroFinder using the given code factory, class hierarchy, and frame.
 
Method Summary
protected  HCode<Quad> mutateHCode(HCodeAndMaps<Quad> input)
          Override this method to effect transformations on split methods.
 
Methods inherited from class harpoon.Analysis.Transformation.MethodMutator
cloneHCode, codeFactory, mutateCodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MostlyZeroFinder

public MostlyZeroFinder(HCodeFactory parent,
                        ClassHierarchy ch,
                        Frame frame)
Creates a MostlyZeroFinder using the given code factory, class hierarchy, and frame.

Method Detail

mutateHCode

protected HCode<Quad> mutateHCode(HCodeAndMaps<Quad> input)
Description copied from class: MethodMutator
Override this method to effect transformations on split methods.

Overrides:
mutateHCode in class MethodMutator<Quad>