diff 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
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Tue Jul 09 22:05:40 2013 +0200
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Wed Jul 10 05:26:50 2013 +0200
@@ -139,4 +139,12 @@
     public static <T> T unsafeCast(Object value, Class<T> clazz) {
         return (T) value;
     }
+
+    /**
+     * Marks methods that are considered slowpath and should therefore not be inlined by default.
+     */
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ElementType.METHOD})
+    public @interface SlowPath {
+    }
 }