public class Inline
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CALLEE_SIZE
Size of the largest method that can be inlined
|
static boolean |
DEBUG |
| Constructor and Description |
|---|
Inline(InlineContext context,
int maxCodeSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
inline(MethodEditor method)
Scans a method and inlines non-virtual method calls according to this
Inline's metrics.
|
void |
setInlineExceptions(boolean inlineExceptions)
Sets whether or not methods that may throw exceptions (that is, have a
non-empty "throws" declaration) are inlined.
|
void |
setMaxCallDepth(int maxCallDepth)
Sets the maximum number of nested calls we inline.
|
void |
setMaxInlineSize(int maxInlineSize)
Sets the maximum of size of a method that will be inlined.
|
public static boolean DEBUG
public static int CALLEE_SIZE
public Inline(InlineContext context, int maxCodeSize)
maxCodeSize - The maximum number of instructions a method can grow to.public void setMaxInlineSize(int maxInlineSize)
public void setMaxCallDepth(int maxCallDepth)
public void setInlineExceptions(boolean inlineExceptions)
public void inline(MethodEditor method)