harpoon.Analysis.Quads
Class SmallMethodInliner

java.lang.Object
  extended by harpoon.Analysis.Quads.MethodInliningCodeFactory
      extended by 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>

Nested Class Summary
protected static class SmallMethodInliner.IntMap
           
 
Constructor Summary
SmallMethodInliner(HCodeFactory hcf, ClassHierarchy ch)
          Creates a SmallMethodInliner.
 
Method Summary
protected  int score(HMethod hm, SmallMethodInliner.IntMap methodSize, MultiMap callSites)
          Override this if you want to define your own scoring function for inlining methods.
 
Methods inherited from class harpoon.Analysis.Quads.MethodInliningCodeFactory
clear, convert, getCodeName, inline, uninline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmallMethodInliner

public SmallMethodInliner(HCodeFactory hcf,
                          ClassHierarchy ch)
Creates a SmallMethodInliner.

Method Detail

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.