Mercurial > hg > graal-jvmci-8
changeset 9732:1a5fbe41b8d4
made identityHashCode, javaTimeMillis and javaTimeNanos be CRuntimeCalls instead of RuntimeCallNodes
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 15 May 2013 21:51:12 +0200 |
parents | f7bd4594cbbf |
children | b88f69f80681 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotReplacementsUtil.java graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemSubstitutions.java |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotReplacementsUtil.java Wed May 15 21:37:25 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotReplacementsUtil.java Wed May 15 21:51:12 2013 +0200 @@ -674,7 +674,7 @@ } @SuppressWarnings("unused") - @NodeIntrinsic(RuntimeCallNode.class) + @NodeIntrinsic(CRuntimeCall.class) public static int identityHashCode(@ConstantNodeParameter Descriptor descriptor, Object object) { return System.identityHashCode(object); }
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemSubstitutions.java Wed May 15 21:37:25 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemSubstitutions.java Wed May 15 21:51:12 2013 +0200 @@ -29,7 +29,7 @@ import com.oracle.graal.api.replacements.*; import com.oracle.graal.graph.Node.ConstantNodeParameter; import com.oracle.graal.graph.Node.NodeIntrinsic; -import com.oracle.graal.nodes.extended.*; +import com.oracle.graal.hotspot.nodes.*; import com.oracle.graal.nodes.spi.*; /** @@ -63,7 +63,7 @@ return computeHashCode(x); } - @NodeIntrinsic(value = RuntimeCallNode.class, setStampFromReturnType = true) + @NodeIntrinsic(value = CRuntimeCall.class, setStampFromReturnType = true) public static long callLong(@ConstantNodeParameter Descriptor descriptor) { if (descriptor == JAVA_TIME_MILLIS) { return System.currentTimeMillis();