Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 11495:3662471dcfaa
Introduce CompilerDirectives.ValueType annotation in Truffle API.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 01 Sep 2013 19:39:06 +0200 |
parents | 760e838b3560 |
children | 992508ee13b6 |
comparison
equal
deleted
inserted
replaced
11494:96e4e5333a25 | 11495:3662471dcfaa |
---|---|
203 */ | 203 */ |
204 @Retention(RetentionPolicy.RUNTIME) | 204 @Retention(RetentionPolicy.RUNTIME) |
205 @Target({ElementType.METHOD}) | 205 @Target({ElementType.METHOD}) |
206 public @interface SlowPath { | 206 public @interface SlowPath { |
207 } | 207 } |
208 | |
209 /** | |
210 * Marks classes as value types. Reference comparisons (==) between instances of those classes | |
211 * have undefined semantics and can either return true or false. | |
212 */ | |
213 @Retention(RetentionPolicy.RUNTIME) | |
214 @Target({ElementType.TYPE}) | |
215 public @interface ValueType { | |
216 } | |
208 } | 217 } |