public class UseTrappingNullChecksPhase extends BasePhase<LowTierContext>
Modifier and Type | Field and Description |
---|---|
private static DebugMetric |
metricTrappingNullCheck |
private static DebugMetric |
metricTrappingNullCheckDynamicDeoptimize |
private static DebugMetric |
metricTrappingNullCheckUnreached |
BEFORE_PHASE_DUMP_LEVEL, PHASE_DUMP_LEVEL
Constructor and Description |
---|
UseTrappingNullChecksPhase() |
Modifier and Type | Method and Description |
---|---|
private static void |
checkPredecessor(AbstractDeoptimizeNode deopt,
Node predecessor,
DeoptimizationReason deoptimizationReason) |
private static void |
replaceWithTrappingNullCheck(AbstractDeoptimizeNode deopt,
IfNode ifNode,
LogicNode condition,
DeoptimizationReason deoptimizationReason) |
protected void |
run(StructuredGraph graph,
LowTierContext context) |
private static void |
tryUseTrappingNullCheck(AbstractDeoptimizeNode deopt,
Node predecessor,
DeoptimizationReason deoptimizationReason,
JavaConstant speculation) |
private static void |
tryUseTrappingNullCheck(MetaAccessProvider metaAccessProvider,
DynamicDeoptimizeNode deopt) |
apply, apply, createName, getName
private static final DebugMetric metricTrappingNullCheck
private static final DebugMetric metricTrappingNullCheckUnreached
private static final DebugMetric metricTrappingNullCheckDynamicDeoptimize
public UseTrappingNullChecksPhase()
protected void run(StructuredGraph graph, LowTierContext context)
run
in class BasePhase<LowTierContext>
private static void tryUseTrappingNullCheck(MetaAccessProvider metaAccessProvider, DynamicDeoptimizeNode deopt)
private static void tryUseTrappingNullCheck(AbstractDeoptimizeNode deopt, Node predecessor, DeoptimizationReason deoptimizationReason, JavaConstant speculation)
private static void checkPredecessor(AbstractDeoptimizeNode deopt, Node predecessor, DeoptimizationReason deoptimizationReason)
private static void replaceWithTrappingNullCheck(AbstractDeoptimizeNode deopt, IfNode ifNode, LogicNode condition, DeoptimizationReason deoptimizationReason)