harpoon.Analysis.SizeOpt
Class FieldReducer
java.lang.Object
|
+--harpoon.Analysis.Transformation.MethodMutator
|
+--harpoon.Analysis.SizeOpt.FieldReducer
- All Implemented Interfaces:
- Serializable
- public class FieldReducer
- extends MethodMutator
The FieldReducer
code factory uses the results of a
BitWidthAnalysis
to shrink field types and eliminate
unused and constant fields from objects.
- Version:
- $Id: FieldReducer.java,v 1.3 2002/02/26 22:42:23 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldReducer
public FieldReducer(HCodeFactory parent,
Frame frame,
ClassHierarchy ch,
Set roots,
String fieldRootResourceName)
- Creates a
FieldReducer
.
codeFactory
public HCodeFactory codeFactory()
- Description copied from class:
MethodMutator
- Returns a
HCodeFactory
containing representations for
the methods altered by the MethodMutator
.
- Overrides:
codeFactory
in class MethodMutator
mutateHCode
protected HCode mutateHCode(HCodeAndMaps input)
- Description copied from class:
MethodMutator
- Override this method to effect transformations on split
methods.
- Overrides:
mutateHCode
in class MethodMutator