public class Inliner extends Object
InlineDecision
,
GenerationContext
Modifier and Type | Field and Description |
---|---|
private static boolean |
COUNT_FAILED_GUARDS
The following flag enables debug counters and requires an adaptive boot
image and flag "INSERT_DEBUGGING_COUNTERS" to be true.
|
Constructor and Description |
---|
Inliner() |
Modifier and Type | Method and Description |
---|---|
static GenerationContext |
execute(InlineDecision inlDec,
GenerationContext parent,
ExceptionHandlerBasicBlockBag ebag,
Instruction callSite)
Return a generation context that represents the
execution of inlDec in the context
<parent,ebag> for
the call instruction callSite. |
static void |
execute(InlineDecision inlDec,
IR ir,
Instruction callSite)
Execute an inlining decision inlDec for the CALL instruction
callSite that is contained in ir.
|
private static final boolean COUNT_FAILED_GUARDS
public Inliner()
public static void execute(InlineDecision inlDec, IR ir, Instruction callSite)
inlDec
- the inlining decision to executeir
- the governing IRcallSite
- the call site to inlinepublic static GenerationContext execute(InlineDecision inlDec, GenerationContext parent, ExceptionHandlerBasicBlockBag ebag, Instruction callSite)
<parent,ebag>
for
the call instruction callSite.
PRECONDITION: inlDec.isYes()
POSTCONDITIONS: Let gc be the returned generation context.
inlDec
- the inlining decision to executeparent
- the caller generation contextebag
- exception handler scope for the callercallSite
- the callsite to execute