src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/ArrayCopyIntrinsificationTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/ArrayCopyIntrinsificationTest.java
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/ArrayCopyIntrinsificationTest.java
Print this page
*** 24,43 ****
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashMap;
- import org.junit.Assert;
- import org.junit.Test;
-
import org.graalvm.compiler.core.test.GraalCompilerTest;
import org.graalvm.compiler.graph.Node;
import org.graalvm.compiler.hotspot.replacements.arraycopy.ArrayCopySnippets;
import org.graalvm.compiler.nodes.DirectCallTargetNode;
import org.graalvm.compiler.nodes.Invoke;
import org.graalvm.compiler.nodes.LoweredCallTargetNode;
import org.graalvm.compiler.nodes.StructuredGraph;
import jdk.vm.ci.code.InstalledCode;
import jdk.vm.ci.meta.JavaMethod;
import jdk.vm.ci.meta.ResolvedJavaMethod;
--- 24,43 ----
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashMap;
import org.graalvm.compiler.core.test.GraalCompilerTest;
import org.graalvm.compiler.graph.Node;
import org.graalvm.compiler.hotspot.replacements.arraycopy.ArrayCopySnippets;
import org.graalvm.compiler.nodes.DirectCallTargetNode;
import org.graalvm.compiler.nodes.Invoke;
import org.graalvm.compiler.nodes.LoweredCallTargetNode;
import org.graalvm.compiler.nodes.StructuredGraph;
+ import org.graalvm.compiler.options.OptionValues;
+ import org.junit.Assert;
+ import org.junit.Test;
import jdk.vm.ci.code.InstalledCode;
import jdk.vm.ci.meta.JavaMethod;
import jdk.vm.ci.meta.ResolvedJavaMethod;
*** 45,58 ****
* Tests intrinsification of {@link System#arraycopy(Object, int, Object, int, int)}.
*/
public class ArrayCopyIntrinsificationTest extends GraalCompilerTest {
@Override
! protected InstalledCode getCode(ResolvedJavaMethod method, StructuredGraph g) {
StructuredGraph graph = g == null ? parseForCompile(method) : g;
int nodeCount = graph.getNodeCount();
! InstalledCode result = super.getCode(method, graph);
boolean graphWasProcessed = nodeCount != graph.getNodeCount();
if (graphWasProcessed) {
if (mustIntrinsify) {
for (Node node : graph.getNodes()) {
if (node instanceof Invoke) {
--- 45,58 ----
* Tests intrinsification of {@link System#arraycopy(Object, int, Object, int, int)}.
*/
public class ArrayCopyIntrinsificationTest extends GraalCompilerTest {
@Override
! protected InstalledCode getCode(ResolvedJavaMethod method, StructuredGraph g, boolean forceCompile, boolean installAsDefault, OptionValues options) {
StructuredGraph graph = g == null ? parseForCompile(method) : g;
int nodeCount = graph.getNodeCount();
! InstalledCode result = super.getCode(method, graph, forceCompile, installAsDefault, options);
boolean graphWasProcessed = nodeCount != graph.getNodeCount();
if (graphWasProcessed) {
if (mustIntrinsify) {
for (Node node : graph.getNodes()) {
if (node instanceof Invoke) {
*** 158,168 ****
Object[] src = {"one", "two", "three", new ArrayList<>(), new HashMap<>()};
testHelper("objectArraycopy", src);
}
/**
! * Tests {@link ArrayCopySnippets#checkcastArraycopyWork(Object, int, Object, int, int)}.
*/
@Test
public void testArrayStoreException() {
Object[] src = {"one", "two", "three", new ArrayList<>(), new HashMap<>()};
Object[] dst = new CharSequence[src.length];
--- 158,168 ----
Object[] src = {"one", "two", "three", new ArrayList<>(), new HashMap<>()};
testHelper("objectArraycopy", src);
}
/**
! * Tests {@link ArrayCopySnippets#checkcastArraycopyWork}.
*/
@Test
public void testArrayStoreException() {
Object[] src = {"one", "two", "three", new ArrayList<>(), new HashMap<>()};
Object[] dst = new CharSequence[src.length];
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/ArrayCopyIntrinsificationTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File