harpoon.Analysis.Quads
Class SmallMethodInliner
java.lang.Object
harpoon.Analysis.Quads.MethodInliningCodeFactory
harpoon.Analysis.Quads.SmallMethodInliner
- All Implemented Interfaces:
- HCodeFactory
- Direct Known Subclasses:
- ArrayCopyInliner
public class SmallMethodInliner
- extends MethodInliningCodeFactory
SmallMethodInliner
will inline small methods until
the code is bloated by the specified amount.
- Version:
- $Id: SmallMethodInliner.java,v 1.7 2004/02/08 03:20:10 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmallMethodInliner
public SmallMethodInliner(HCodeFactory hcf,
ClassHierarchy ch)
- Creates a
SmallMethodInliner
.
score
protected int score(HMethod hm,
SmallMethodInliner.IntMap methodSize,
MultiMap callSites)
- Override this if you want to define your own scoring function
for inlining methods.