use of org.graalvm.compiler.core.common.type.ObjectStamp 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