summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-05-21 14:55:19 +0000
committerLex Spoon <lex@lexspoon.org>2007-05-21 14:55:19 +0000
commit0be9c5a52c4343ee14813fa565c8c751140c2e9e (patch)
treec4d7a9051b248319bcda14e832ccb4872fb361b8
parent34289c430a15419220a17441b9fde829921ae8c2 (diff)
downloadscala-0be9c5a52c4343ee14813fa565c8c751140c2e9e.tar.gz
scala-0be9c5a52c4343ee14813fa565c8c751140c2e9e.tar.bz2
scala-0be9c5a52c4343ee14813fa565c8c751140c2e9e.zip
-rw-r--r--src/library/scala/inline.scala21
-rw-r--r--src/library/scala/noinline.scala22
2 files changed, 43 insertions, 0 deletions
diff --git a/src/library/scala/inline.scala b/src/library/scala/inline.scala
new file mode 100644
index 0000000000..de3de3b453
--- /dev/null
+++ b/src/library/scala/inline.scala
@@ -0,0 +1,21 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+// $Id$
+
+
+package scala
+
+/**
+ * An annotation on methods that requests that the compiler should
+ * try especially hard to inline the annotated method.
+ *
+ * @author Lex Spoon
+ * @version 1.0, 2007-5-21
+ */
+class inline extends StaticAnnotation {}
diff --git a/src/library/scala/noinline.scala b/src/library/scala/noinline.scala
new file mode 100644
index 0000000000..232de52f9d
--- /dev/null
+++ b/src/library/scala/noinline.scala
@@ -0,0 +1,22 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+// $Id$
+
+
+package scala
+
+/**
+ * An annotation on methods that forbids the compiler to
+ * inline the method, no matter how safe the inlining appears
+ * to be.
+ *
+ * @author Lex Spoon
+ * @version 1.0, 2007-5-21
+ */
+class noinline extends StaticAnnotation {}