| java.lang.Object EDU.purdue.cs.bloat.inline.Inline
Inline | public class Inline (Code) | | Inlines the code of non-virtual method call sites. These sites include calls
to static methods and certain uses of the invokespecial method.
There are certain metrics that can be set to effect where and how inlining is
performed.
|
Method Summary | |
public void | inline(MethodEditor method) Scans a method and inlines non-virtual method calls according to this
Inline's metrics. | public void | setInlineExceptions(boolean inlineExceptions) Sets whether or not methods that may throw exceptions (that is, have a
non-empty "throws" declaration) are inlined. | public void | setMaxCallDepth(int maxCallDepth) Sets the maximum number of nested calls we inline. | public void | setMaxInlineSize(int maxInlineSize) Sets the maximum of size of a method that will be inlined. |
CALLEE_SIZE | public static int CALLEE_SIZE(Code) | | Size of the largest method that can be inlined
|
DEBUG | public static boolean DEBUG(Code) | | |
Inline | public Inline(InlineContext context, int maxCodeSize)(Code) | | Constructor. By default the first-level calls are only inlined one level
deep, there is no max size on methods to inline, and methods that may
throw exceptions are inlined.
Parameters: maxCodeSize - The maximum number of instructions a method can grow to. |
inline | public void inline(MethodEditor method)(Code) | | Scans a method and inlines non-virtual method calls according to this
Inline's metrics.
|
setInlineExceptions | public void setInlineExceptions(boolean inlineExceptions)(Code) | | Sets whether or not methods that may throw exceptions (that is, have a
non-empty "throws" declaration) are inlined.
|
setMaxCallDepth | public void setMaxCallDepth(int maxCallDepth)(Code) | | Sets the maximum number of nested calls we inline.
|
setMaxInlineSize | public void setMaxInlineSize(int maxInlineSize)(Code) | | Sets the maximum of size of a method that will be inlined. No method
larger than this will be inlined.
|
|
|