harpoon.Backend.Maps
Class DefaultInlineMap

java.lang.Object
  extended by harpoon.Backend.Maps.InlineMap
      extended by harpoon.Backend.Maps.DefaultInlineMap

public final class DefaultInlineMap
extends InlineMap

A DefaultInlineMap returns the conservate answer that we can't inline anything.

Version:
$Id: DefaultInlineMap.java,v 1.2 2002/02/25 21:01:57 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
DefaultInlineMap()
          Creates a DefaultInlineMap.
 
Method Summary
 boolean canInline1(HField hf)
           
 boolean canInline2(HField hf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInlineMap

public DefaultInlineMap()
Creates a DefaultInlineMap. Doesn't need any arguments to the constructor, because it is very stupid.

Method Detail

canInline1

public boolean canInline1(HField hf)
Specified by:
canInline1 in class InlineMap
Returns:
true if the HField can be inlined using type 1 inlining (the class descriptor for the inlined object is preserved). This can be done even if the field escapes, as long as it is a final field.

canInline2

public boolean canInline2(HField hf)
Specified by:
canInline2 in class InlineMap
Returns:
true if the HField should be inlined using type 2 inlining (the class descriptor for the inlined object is omitted). This can only be done if the field doesn't escape. Returning true implies shouldInline1() returns true, too.