changeset 18281:cffcb119fdba

added PureFunction annotation
author Doug Simon <doug.simon@oracle.com>
date Thu, 06 Nov 2014 13:22:00 +0100
parents c7e0405a35d8
children ecf3de366ecc
files graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Remote.java
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Remote.java	Thu Nov 06 13:19:25 2014 +0100
+++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Remote.java	Thu Nov 06 13:22:00 2014 +0100
@@ -22,9 +22,19 @@
  */
 package com.oracle.graal.api.meta;
 
+import java.lang.annotation.*;
+
 /**
  * Marker interface for classes whose values are proxied during replay compilation capture or remote
  * compilation.
  */
 public interface Remote {
+
+    /**
+     * Denotes a method whose return value is determined solely by its parameter values.
+     */
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target(ElementType.METHOD)
+    public @interface PureFunction {
+    }
 }