public abstract class InstrumentPhase extends BasePhase<TruffleTierContext>
| Modifier and Type | Class and Description |
|---|---|
static class |
InstrumentPhase.Instrumentation |
static class |
InstrumentPhase.InstrumentationConfiguration |
static class |
InstrumentPhase.Point |
BasePhase.ApplyScope, BasePhase.BasePhaseStatistics, BasePhase.PhaseOptions, BasePhase.SharedGlobalPhaseState| Modifier and Type | Field and Description |
|---|---|
protected SnippetReflectionProvider |
snippetReflection |
| Constructor and Description |
|---|
InstrumentPhase(SnippetReflectionProvider snippetReflection,
InstrumentPhase.Instrumentation instrumentation) |
| Modifier and Type | Method and Description |
|---|---|
float |
codeSizeIncrease()
Returns a factor
>=1 that determines what the final code size in terms of the sum of
the node code sizes NodeSize of all nodes is. |
protected abstract InstrumentPhase.Point |
createPoint(int id,
int startIndex,
Node n) |
InstrumentPhase.Instrumentation |
getInstrumentation() |
InstrumentPhase.Point |
getOrCreatePoint(Node n,
MethodFilter methodFilter) |
protected static void |
insertCounter(StructuredGraph graph,
TruffleTierContext context,
JavaConstant tableConstant,
FixedWithNextNode targetNode,
int slotIndex) |
protected String |
instrumentationFilter(org.graalvm.options.OptionValues options) |
protected abstract int |
instrumentationPointSlotCount() |
protected abstract void |
instrumentGraph(StructuredGraph graph,
TruffleTierContext context,
JavaConstant tableConstant) |
protected abstract boolean |
instrumentPerInlineSite() |
protected MethodFilter |
methodFilter(TruffleTierContext context) |
protected void |
run(StructuredGraph graph,
TruffleTierContext context) |
apply, apply, applyScope, contractorName, equals, getName, hashCode, shouldDumpAfterAtBasicLevel, shouldDumpBeforeAtBasicLevelclone, getClass, notify, notifyAll, toString, wait, wait, waitcheckContractprotected final SnippetReflectionProvider snippetReflection
public InstrumentPhase(SnippetReflectionProvider snippetReflection, InstrumentPhase.Instrumentation instrumentation)
public InstrumentPhase.Instrumentation getInstrumentation()
protected String instrumentationFilter(org.graalvm.options.OptionValues options)
protected static void insertCounter(StructuredGraph graph, TruffleTierContext context, JavaConstant tableConstant, FixedWithNextNode targetNode, int slotIndex)
public float codeSizeIncrease()
PhaseSizeContract>=1 that determines what the final code size in terms of the sum of
the node code sizes NodeSize of all nodes is.codeSizeIncrease in interface PhaseSizeContractcodeSizeIncrease in class BasePhase<TruffleTierContext>protected void run(StructuredGraph graph, TruffleTierContext context)
run in class BasePhase<TruffleTierContext>protected MethodFilter methodFilter(TruffleTierContext context)
protected abstract void instrumentGraph(StructuredGraph graph, TruffleTierContext context, JavaConstant tableConstant)
protected abstract int instrumentationPointSlotCount()
protected abstract boolean instrumentPerInlineSite()
protected abstract InstrumentPhase.Point createPoint(int id, int startIndex, Node n)
public InstrumentPhase.Point getOrCreatePoint(Node n, MethodFilter methodFilter)