use of org.graalvm.compiler.replacements.nodes.BasicArrayCopyNode in project graal by oracle.
the class PointstoGraphBuilderPlugins method registerSystemPlugins.
public static void registerSystemPlugins(InvocationPlugins plugins) {
Registration r = new Registration(plugins, System.class).setAllowOverwrite(true);
r.register5("arraycopy", Object.class, int.class, Object.class, int.class, int.class, new InvocationPlugin() {
@Override
public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver, ValueNode src, ValueNode srcPos, ValueNode dest, ValueNode destPos, ValueNode length) {
b.add(new BasicArrayCopyNode(BasicArrayCopyNode.TYPE, src, srcPos, dest, destPos, length, null, b.bci()));
return true;
}
});
}
Aggregations