# HG changeset patch # User Doug Simon # Date 1364204103 -3600 # Node ID 68b04162180ec3b93e46971bb23fe2d4880effe1 # Parent d815f0ac9ed3fde2086748f8573bc4ad0b3d0d9e made node intrinsic interpretable: SystemSubstitutions.callLong() diff -r d815f0ac9ed3 -r 68b04162180e graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemSubstitutions.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemSubstitutions.java Fri Mar 22 19:50:51 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/SystemSubstitutions.java Mon Mar 25 10:35:03 2013 +0100 @@ -65,5 +65,11 @@ } @NodeIntrinsic(value = RuntimeCallNode.class, setStampFromReturnType = true) - public static native long callLong(@ConstantNodeParameter Descriptor descriptor); + public static long callLong(@ConstantNodeParameter Descriptor descriptor) { + if (descriptor == JAVA_TIME_MILLIS) { + return System.currentTimeMillis(); + } + assert descriptor == JAVA_TIME_NANOS; + return System.nanoTime(); + } }