Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 10687:d2055a110396
Introduce CompilerDirectives.SlowPath annotation.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 10 Jul 2013 05:26:50 +0200 |
parents | b6e46324233f |
children | f00c85ee46a2 |
comparison
equal
deleted
inserted
replaced
10683:ae4c79ee71d1 | 10687:d2055a110396 |
---|---|
137 @SuppressWarnings("unchecked") | 137 @SuppressWarnings("unchecked") |
138 @Unsafe | 138 @Unsafe |
139 public static <T> T unsafeCast(Object value, Class<T> clazz) { | 139 public static <T> T unsafeCast(Object value, Class<T> clazz) { |
140 return (T) value; | 140 return (T) value; |
141 } | 141 } |
142 | |
143 /** | |
144 * Marks methods that are considered slowpath and should therefore not be inlined by default. | |
145 */ | |
146 @Retention(RetentionPolicy.RUNTIME) | |
147 @Target({ElementType.METHOD}) | |
148 public @interface SlowPath { | |
149 } | |
142 } | 150 } |