Mercurial > hg > graal-compiler
changeset 7934:6b3c05de9521
Fix array copy intrinsification test.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 05 Mar 2013 17:22:05 +0100 |
parents | 85bd81dba8fc |
children | 0799a7efbe7b |
files | graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/ArrayCopyIntrinsificationTest.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/ArrayCopyIntrinsificationTest.java Tue Mar 05 17:21:54 2013 +0100 +++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/ArrayCopyIntrinsificationTest.java Tue Mar 05 17:22:05 2013 +0100 @@ -51,7 +51,7 @@ if (node instanceof Invoke) { Invoke invoke = (Invoke) node; Assert.assertTrue(invoke.callTarget() instanceof DirectCallTargetNode); - DirectCallTargetNode directCall = (DirectCallTargetNode) invoke.callTarget(); + AbstractCallTargetNode directCall = (AbstractCallTargetNode) invoke.callTarget(); Assert.assertTrue(directCall.target() instanceof JavaMethod); JavaMethod callee = (JavaMethod) directCall.target(); Assert.assertTrue(callee.getName().equals("<init>")); @@ -64,7 +64,7 @@ for (Node node : graph.getNodes()) { if (node instanceof Invoke) { Invoke invoke = (Invoke) node; - DirectCallTargetNode directCall = (DirectCallTargetNode) invoke.callTarget(); + AbstractCallTargetNode directCall = (AbstractCallTargetNode) invoke.callTarget(); JavaMethod callee = (JavaMethod) directCall.target(); if (callee.getDeclaringClass().equals(runtime.lookupJavaType(System.class)) && callee.getName().equals("arraycopy")) { found = true;