use of org.graalvm.compiler.nodes.ParameterNode in project graal by oracle.
the class NonNullParametersPhase method run.
@Override
protected void run(StructuredGraph graph) {
Stamp nonNull = StampFactory.objectNonNull();
for (ParameterNode param : graph.getNodes(ParameterNode.TYPE)) {
if (param.stamp(NodeView.DEFAULT) instanceof ObjectStamp) {
ObjectStamp paramStamp = (ObjectStamp) param.stamp(NodeView.DEFAULT);
param.setStamp(paramStamp.join(nonNull));
}
}
}
Aggregations