# HG changeset patch # User Doug Simon # Date 1415276520 -3600 # Node ID cffcb119fdbae9f5a5f44e6084d624967b2f1244 # Parent c7e0405a35d83e256c63f306fef45d8e2e743cec added PureFunction annotation diff -r c7e0405a35d8 -r cffcb119fdba graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Remote.java --- 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 { + } }