Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLNanoTimeBuiltin.java @ 16512:abe7128ca473
SL: upgrade source attribution
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Mon, 14 Jul 2014 16:51:41 -0700 |
parents | b16ec83edc73 |
children |
comparison
equal
deleted
inserted
replaced
16511:aee02665e505 | 16512:abe7128ca473 |
---|---|
22 */ | 22 */ |
23 package com.oracle.truffle.sl.builtins; | 23 package com.oracle.truffle.sl.builtins; |
24 | 24 |
25 import com.oracle.truffle.api.dsl.*; | 25 import com.oracle.truffle.api.dsl.*; |
26 import com.oracle.truffle.api.nodes.*; | 26 import com.oracle.truffle.api.nodes.*; |
27 import com.oracle.truffle.api.source.*; | |
27 | 28 |
28 /** | 29 /** |
29 * Builtin function that returns the value of a high-resolution time, in nanoseconds. | 30 * Builtin function that returns the value of a high-resolution time, in nanoseconds. |
30 */ | 31 */ |
31 @NodeInfo(shortName = "nanoTime") | 32 @NodeInfo(shortName = "nanoTime") |
32 public abstract class SLNanoTimeBuiltin extends SLBuiltinNode { | 33 public abstract class SLNanoTimeBuiltin extends SLBuiltinNode { |
33 | 34 |
35 public SLNanoTimeBuiltin() { | |
36 super(new NullSourceSection("SL builtin", "nanoTime")); | |
37 } | |
38 | |
34 @Specialization | 39 @Specialization |
35 public long nanoTime() { | 40 public long nanoTime() { |
36 return System.nanoTime(); | 41 return System.nanoTime(); |
37 } | 42 } |
38 } | 43 } |