
jdk.graal.compiler.replacements.arraycopy.PluginFactory_ArrayCopyCallNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
The GraalVM compiler and the Graal-truffle optimizer.
The newest version!
// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// GENERATORS: jdk.graal.compiler.replacements.processor.ReplacementsAnnotationProcessor, jdk.graal.compiler.replacements.processor.PluginGenerator
package jdk.graal.compiler.replacements.arraycopy;
import java.lang.annotation.Annotation;
import jdk.graal.compiler.core.common.type.Stamp;
import jdk.graal.compiler.graph.NodeInputList;
import jdk.graal.compiler.nodes.PluginReplacementNode;
import jdk.graal.compiler.nodes.ValueNode;
import jdk.graal.compiler.nodes.graphbuilderconf.GeneratedNodeIntrinsicInvocationPlugin;
import jdk.graal.compiler.nodes.graphbuilderconf.GeneratedPluginFactory;
import jdk.graal.compiler.nodes.graphbuilderconf.GeneratedPluginInjectionProvider;
import jdk.graal.compiler.nodes.graphbuilderconf.GraphBuilderContext;
import jdk.graal.compiler.nodes.graphbuilderconf.InvocationPlugin;
import jdk.graal.compiler.nodes.graphbuilderconf.InvocationPlugins;
import jdk.graal.compiler.nodes.spi.Replacements;
import jdk.graal.compiler.options.ExcludeFromJacocoGeneratedReport;
import jdk.vm.ci.meta.ResolvedJavaMethod;
// class: jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode
// method: arraycopy(java.lang.Object,int,java.lang.Object,int,int,jdk.vm.ci.meta.JavaKind,boolean,boolean,boolean,int)
// generated-by: jdk.graal.compiler.replacements.processor.GeneratedNodeIntrinsicPlugin$ConstructorPlugin
final class Plugin_ArrayCopyCallNode_arraycopy__0 extends GeneratedNodeIntrinsicInvocationPlugin {
@Override
public boolean execute(GraphBuilderContext b, ResolvedJavaMethod targetMethod, InvocationPlugin.Receiver receiver, ValueNode[] args) {
if (!b.isPluginEnabled(this)) {
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls arg0 = injectedArrayCopyForeignCalls;
jdk.graal.compiler.word.WordTypes arg1 = injectedWordTypes;
ValueNode arg2 = args[0];
ValueNode arg3 = args[1];
ValueNode arg4 = args[2];
ValueNode arg5 = args[3];
ValueNode arg6 = args[4];
jdk.vm.ci.meta.JavaKind arg7;
if (args[5].isConstant()) {
arg7 = snippetReflection/* A SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args[5].asJavaConstant());
assert arg7 != null;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__0.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[5];
return false;
}
boolean arg8;
if (args[6].isConstant()) {
arg8 = args[6].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__0.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[6];
return false;
}
boolean arg9;
if (args[7].isConstant()) {
arg9 = args[7].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__0.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[7];
return false;
}
boolean arg10;
if (args[8].isConstant()) {
arg10 = args[8].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__0.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[8];
return false;
}
int arg11;
if (args[9].isConstant()) {
arg11 = args[9].asJavaConstant().asInt();
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__0.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[9];
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode node = new jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
b.add(node);
return true;
}
@Override
public Class extends Annotation> getSource() {
return jdk.graal.compiler.graph.Node.NodeIntrinsic.class;
}
private final jdk.graal.compiler.word.WordTypes injectedWordTypes;
private final jdk.graal.compiler.api.replacements.SnippetReflectionProvider snippetReflection;
private final jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls injectedArrayCopyForeignCalls;
Plugin_ArrayCopyCallNode_arraycopy__0(GeneratedPluginInjectionProvider injection) {
super("arraycopy", java.lang.Object.class, int.class, java.lang.Object.class, int.class, int.class, jdk.vm.ci.meta.JavaKind.class, boolean.class, boolean.class, boolean.class, int.class);
this.injectedWordTypes = injection.getInjectedArgument(jdk.graal.compiler.word.WordTypes.class);
this.snippetReflection = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class);
this.injectedArrayCopyForeignCalls = injection.getInjectedArgument(jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls.class);
}
}
// class: jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode
// method: arraycopy(java.lang.Object,int,java.lang.Object,int,int,jdk.vm.ci.meta.JavaKind,boolean,boolean,boolean,int)
// generated-by: jdk.graal.compiler.replacements.processor.GeneratedNodeIntrinsicPlugin$ConstructorPlugin
@ExcludeFromJacocoGeneratedReport("deferred plugin support that is only called in libgraal")
final class PluginReplacementNode_ArrayCopyCallNode_arraycopy__0 implements PluginReplacementNode.ReplacementFunction {
static PluginReplacementNode.ReplacementFunction FUNCTION = new PluginReplacementNode_ArrayCopyCallNode_arraycopy__0();
@Override
public boolean replace(GraphBuilderContext b, Replacements injection, Stamp stamp, NodeInputList args) {
jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls arg0 = injection.getInjectedArgument(jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls.class);
jdk.graal.compiler.word.WordTypes arg1 = injection.getInjectedArgument(jdk.graal.compiler.word.WordTypes.class);
ValueNode arg2 = args.get(0);
ValueNode arg3 = args.get(1);
ValueNode arg4 = args.get(2);
ValueNode arg5 = args.get(3);
ValueNode arg6 = args.get(4);
jdk.vm.ci.meta.JavaKind arg7;
if (args.get(5).isConstant()) {
arg7 = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class)/* B SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args.get(5).asJavaConstant());
assert arg7 != null;
} else {
return false;
}
boolean arg8;
if (args.get(6).isConstant()) {
arg8 = args.get(6).asJavaConstant().asInt() != 0;
} else {
return false;
}
boolean arg9;
if (args.get(7).isConstant()) {
arg9 = args.get(7).asJavaConstant().asInt() != 0;
} else {
return false;
}
boolean arg10;
if (args.get(8).isConstant()) {
arg10 = args.get(8).asJavaConstant().asInt() != 0;
} else {
return false;
}
int arg11;
if (args.get(9).isConstant()) {
arg11 = args.get(9).asJavaConstant().asInt();
} else {
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode node = new jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
b.add(node);
return true;
}
}
// class: jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode
// method: arraycopy(java.lang.Object,int,java.lang.Object,int,int,jdk.vm.ci.meta.JavaKind,jdk.vm.ci.meta.JavaKind,jdk.vm.ci.meta.JavaKind,boolean,boolean,boolean,int)
// generated-by: jdk.graal.compiler.replacements.processor.GeneratedNodeIntrinsicPlugin$ConstructorPlugin
final class Plugin_ArrayCopyCallNode_arraycopy__1 extends GeneratedNodeIntrinsicInvocationPlugin {
@Override
public boolean execute(GraphBuilderContext b, ResolvedJavaMethod targetMethod, InvocationPlugin.Receiver receiver, ValueNode[] args) {
if (!b.isPluginEnabled(this)) {
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls arg0 = injectedArrayCopyForeignCalls;
jdk.graal.compiler.word.WordTypes arg1 = injectedWordTypes;
ValueNode arg2 = args[0];
ValueNode arg3 = args[1];
ValueNode arg4 = args[2];
ValueNode arg5 = args[3];
ValueNode arg6 = args[4];
jdk.vm.ci.meta.JavaKind arg7;
if (args[5].isConstant()) {
arg7 = snippetReflection/* A SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args[5].asJavaConstant());
assert arg7 != null;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__1.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[5];
return false;
}
jdk.vm.ci.meta.JavaKind arg8;
if (args[6].isConstant()) {
arg8 = snippetReflection/* A SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args[6].asJavaConstant());
assert arg8 != null;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__1.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[6];
return false;
}
jdk.vm.ci.meta.JavaKind arg9;
if (args[7].isConstant()) {
arg9 = snippetReflection/* A SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args[7].asJavaConstant());
assert arg9 != null;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__1.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[7];
return false;
}
boolean arg10;
if (args[8].isConstant()) {
arg10 = args[8].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__1.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[8];
return false;
}
boolean arg11;
if (args[9].isConstant()) {
arg11 = args[9].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__1.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[9];
return false;
}
boolean arg12;
if (args[10].isConstant()) {
arg12 = args[10].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__1.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[10];
return false;
}
int arg13;
if (args[11].isConstant()) {
arg13 = args[11].asJavaConstant().asInt();
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__1.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[11];
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode node = new jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13);
b.add(node);
return true;
}
@Override
public Class extends Annotation> getSource() {
return jdk.graal.compiler.graph.Node.NodeIntrinsic.class;
}
private final jdk.graal.compiler.word.WordTypes injectedWordTypes;
private final jdk.graal.compiler.api.replacements.SnippetReflectionProvider snippetReflection;
private final jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls injectedArrayCopyForeignCalls;
Plugin_ArrayCopyCallNode_arraycopy__1(GeneratedPluginInjectionProvider injection) {
super("arraycopy", java.lang.Object.class, int.class, java.lang.Object.class, int.class, int.class, jdk.vm.ci.meta.JavaKind.class, jdk.vm.ci.meta.JavaKind.class, jdk.vm.ci.meta.JavaKind.class, boolean.class, boolean.class, boolean.class, int.class);
this.injectedWordTypes = injection.getInjectedArgument(jdk.graal.compiler.word.WordTypes.class);
this.snippetReflection = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class);
this.injectedArrayCopyForeignCalls = injection.getInjectedArgument(jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls.class);
}
}
// class: jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode
// method: arraycopy(java.lang.Object,int,java.lang.Object,int,int,jdk.vm.ci.meta.JavaKind,jdk.vm.ci.meta.JavaKind,jdk.vm.ci.meta.JavaKind,boolean,boolean,boolean,int)
// generated-by: jdk.graal.compiler.replacements.processor.GeneratedNodeIntrinsicPlugin$ConstructorPlugin
@ExcludeFromJacocoGeneratedReport("deferred plugin support that is only called in libgraal")
final class PluginReplacementNode_ArrayCopyCallNode_arraycopy__1 implements PluginReplacementNode.ReplacementFunction {
static PluginReplacementNode.ReplacementFunction FUNCTION = new PluginReplacementNode_ArrayCopyCallNode_arraycopy__1();
@Override
public boolean replace(GraphBuilderContext b, Replacements injection, Stamp stamp, NodeInputList args) {
jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls arg0 = injection.getInjectedArgument(jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls.class);
jdk.graal.compiler.word.WordTypes arg1 = injection.getInjectedArgument(jdk.graal.compiler.word.WordTypes.class);
ValueNode arg2 = args.get(0);
ValueNode arg3 = args.get(1);
ValueNode arg4 = args.get(2);
ValueNode arg5 = args.get(3);
ValueNode arg6 = args.get(4);
jdk.vm.ci.meta.JavaKind arg7;
if (args.get(5).isConstant()) {
arg7 = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class)/* B SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args.get(5).asJavaConstant());
assert arg7 != null;
} else {
return false;
}
jdk.vm.ci.meta.JavaKind arg8;
if (args.get(6).isConstant()) {
arg8 = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class)/* B SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args.get(6).asJavaConstant());
assert arg8 != null;
} else {
return false;
}
jdk.vm.ci.meta.JavaKind arg9;
if (args.get(7).isConstant()) {
arg9 = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class)/* B SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args.get(7).asJavaConstant());
assert arg9 != null;
} else {
return false;
}
boolean arg10;
if (args.get(8).isConstant()) {
arg10 = args.get(8).asJavaConstant().asInt() != 0;
} else {
return false;
}
boolean arg11;
if (args.get(9).isConstant()) {
arg11 = args.get(9).asJavaConstant().asInt() != 0;
} else {
return false;
}
boolean arg12;
if (args.get(10).isConstant()) {
arg12 = args.get(10).asJavaConstant().asInt() != 0;
} else {
return false;
}
int arg13;
if (args.get(11).isConstant()) {
arg13 = args.get(11).asJavaConstant().asInt();
} else {
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode node = new jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13);
b.add(node);
return true;
}
}
// class: jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode
// method: arraycopy(java.lang.Object,int,java.lang.Object,int,int,jdk.vm.ci.meta.JavaKind,org.graalvm.word.LocationIdentity,boolean,boolean,boolean,int)
// generated-by: jdk.graal.compiler.replacements.processor.GeneratedNodeIntrinsicPlugin$ConstructorPlugin
final class Plugin_ArrayCopyCallNode_arraycopy__2 extends GeneratedNodeIntrinsicInvocationPlugin {
@Override
public boolean execute(GraphBuilderContext b, ResolvedJavaMethod targetMethod, InvocationPlugin.Receiver receiver, ValueNode[] args) {
if (!b.isPluginEnabled(this)) {
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls arg0 = injectedArrayCopyForeignCalls;
jdk.graal.compiler.word.WordTypes arg1 = injectedWordTypes;
ValueNode arg2 = args[0];
ValueNode arg3 = args[1];
ValueNode arg4 = args[2];
ValueNode arg5 = args[3];
ValueNode arg6 = args[4];
jdk.vm.ci.meta.JavaKind arg7;
if (args[5].isConstant()) {
arg7 = snippetReflection/* A SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args[5].asJavaConstant());
assert arg7 != null;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__2.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[5];
return false;
}
org.graalvm.word.LocationIdentity arg8;
if (args[6].isConstant()) {
arg8 = snippetReflection/* A SNIPPET_REFLECTION */.asObject(org.graalvm.word.LocationIdentity.class, args[6].asJavaConstant());
assert arg8 != null;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__2.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[6];
return false;
}
boolean arg9;
if (args[7].isConstant()) {
arg9 = args[7].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__2.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[7];
return false;
}
boolean arg10;
if (args[8].isConstant()) {
arg10 = args[8].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__2.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[8];
return false;
}
boolean arg11;
if (args[9].isConstant()) {
arg11 = args[9].asJavaConstant().asInt() != 0;
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__2.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[9];
return false;
}
int arg12;
if (args[10].isConstant()) {
arg12 = args[10].asJavaConstant().asInt();
} else {
if (b.shouldDeferPlugin(this)) {
b.replacePlugin(this, targetMethod, args, PluginReplacementNode_ArrayCopyCallNode_arraycopy__2.FUNCTION);
return true;
}
assert b.canDeferPlugin(this) : b.getClass().toString() + " " + args[10];
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode node = new jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
b.add(node);
return true;
}
@Override
public Class extends Annotation> getSource() {
return jdk.graal.compiler.graph.Node.NodeIntrinsic.class;
}
private final jdk.graal.compiler.word.WordTypes injectedWordTypes;
private final jdk.graal.compiler.api.replacements.SnippetReflectionProvider snippetReflection;
private final jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls injectedArrayCopyForeignCalls;
Plugin_ArrayCopyCallNode_arraycopy__2(GeneratedPluginInjectionProvider injection) {
super("arraycopy", java.lang.Object.class, int.class, java.lang.Object.class, int.class, int.class, jdk.vm.ci.meta.JavaKind.class, org.graalvm.word.LocationIdentity.class, boolean.class, boolean.class, boolean.class, int.class);
this.injectedWordTypes = injection.getInjectedArgument(jdk.graal.compiler.word.WordTypes.class);
this.snippetReflection = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class);
this.injectedArrayCopyForeignCalls = injection.getInjectedArgument(jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls.class);
}
}
// class: jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode
// method: arraycopy(java.lang.Object,int,java.lang.Object,int,int,jdk.vm.ci.meta.JavaKind,org.graalvm.word.LocationIdentity,boolean,boolean,boolean,int)
// generated-by: jdk.graal.compiler.replacements.processor.GeneratedNodeIntrinsicPlugin$ConstructorPlugin
@ExcludeFromJacocoGeneratedReport("deferred plugin support that is only called in libgraal")
final class PluginReplacementNode_ArrayCopyCallNode_arraycopy__2 implements PluginReplacementNode.ReplacementFunction {
static PluginReplacementNode.ReplacementFunction FUNCTION = new PluginReplacementNode_ArrayCopyCallNode_arraycopy__2();
@Override
public boolean replace(GraphBuilderContext b, Replacements injection, Stamp stamp, NodeInputList args) {
jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls arg0 = injection.getInjectedArgument(jdk.graal.compiler.replacements.arraycopy.ArrayCopyForeignCalls.class);
jdk.graal.compiler.word.WordTypes arg1 = injection.getInjectedArgument(jdk.graal.compiler.word.WordTypes.class);
ValueNode arg2 = args.get(0);
ValueNode arg3 = args.get(1);
ValueNode arg4 = args.get(2);
ValueNode arg5 = args.get(3);
ValueNode arg6 = args.get(4);
jdk.vm.ci.meta.JavaKind arg7;
if (args.get(5).isConstant()) {
arg7 = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class)/* B SNIPPET_REFLECTION */.asObject(jdk.vm.ci.meta.JavaKind.class, args.get(5).asJavaConstant());
assert arg7 != null;
} else {
return false;
}
org.graalvm.word.LocationIdentity arg8;
if (args.get(6).isConstant()) {
arg8 = injection.getInjectedArgument(jdk.graal.compiler.api.replacements.SnippetReflectionProvider.class)/* B SNIPPET_REFLECTION */.asObject(org.graalvm.word.LocationIdentity.class, args.get(6).asJavaConstant());
assert arg8 != null;
} else {
return false;
}
boolean arg9;
if (args.get(7).isConstant()) {
arg9 = args.get(7).asJavaConstant().asInt() != 0;
} else {
return false;
}
boolean arg10;
if (args.get(8).isConstant()) {
arg10 = args.get(8).asJavaConstant().asInt() != 0;
} else {
return false;
}
boolean arg11;
if (args.get(9).isConstant()) {
arg11 = args.get(9).asJavaConstant().asInt() != 0;
} else {
return false;
}
int arg12;
if (args.get(10).isConstant()) {
arg12 = args.get(10).asJavaConstant().asInt();
} else {
return false;
}
jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode node = new jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
b.add(node);
return true;
}
}
public class PluginFactory_ArrayCopyCallNode implements GeneratedPluginFactory {
@Override
public void registerPlugins(InvocationPlugins plugins, GeneratedPluginInjectionProvider injection) {
plugins.register(jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode.class, new Plugin_ArrayCopyCallNode_arraycopy__0(injection));
plugins.register(jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode.class, new Plugin_ArrayCopyCallNode_arraycopy__1(injection));
plugins.register(jdk.graal.compiler.replacements.arraycopy.ArrayCopyCallNode.class, new Plugin_ArrayCopyCallNode_arraycopy__2(injection));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy