summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-11-06 12:04:53 -0800
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-11-06 12:04:53 -0800
commit9d265965294e65c8f20a027254042c9468af83d9 (patch)
tree40d43067ae2b17417b0d5bcb1d3cf49b9192edb2 /src/library
parent757a3a738cbb373f8f10fdc1f01e9ab6176a7076 (diff)
parent46fc45e62a1f4ae5a17f5abcb346ff49cff5a7ea (diff)
downloadscala-9d265965294e65c8f20a027254042c9468af83d9.tar.gz
scala-9d265965294e65c8f20a027254042c9468af83d9.tar.bz2
scala-9d265965294e65c8f20a027254042c9468af83d9.zip
Merge pull request #1582 from retronym/ticket/revert-primitive-array-opt
Ticket/revert primitive array opt
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Array.scala10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/library/scala/Array.scala b/src/library/scala/Array.scala
index 514844a5fa..0b8550be37 100644
--- a/src/library/scala/Array.scala
+++ b/src/library/scala/Array.scala
@@ -115,8 +115,6 @@ object Array extends FallbackArrayBuilding {
* @param xs the elements to put in the array
* @return an array containing all elements from xs.
*/
- // Subject to a compiler optimization in Cleanup.
- // Array(e0, ..., en) is translated to { val a = new Array(3); a(i) = ei; a }
def apply[T: ClassTag](xs: T*): Array[T] = {
val array = new Array[T](xs.length)
var i = 0
@@ -125,7 +123,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Boolean` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Boolean, xs: Boolean*): Array[Boolean] = {
val array = new Array[Boolean](xs.length + 1)
array(0) = x
@@ -135,7 +132,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Byte` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Byte, xs: Byte*): Array[Byte] = {
val array = new Array[Byte](xs.length + 1)
array(0) = x
@@ -145,7 +141,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Short` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Short, xs: Short*): Array[Short] = {
val array = new Array[Short](xs.length + 1)
array(0) = x
@@ -155,7 +150,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Char` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Char, xs: Char*): Array[Char] = {
val array = new Array[Char](xs.length + 1)
array(0) = x
@@ -165,7 +159,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Int` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Int, xs: Int*): Array[Int] = {
val array = new Array[Int](xs.length + 1)
array(0) = x
@@ -175,7 +168,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Long` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Long, xs: Long*): Array[Long] = {
val array = new Array[Long](xs.length + 1)
array(0) = x
@@ -185,7 +177,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Float` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Float, xs: Float*): Array[Float] = {
val array = new Array[Float](xs.length + 1)
array(0) = x
@@ -195,7 +186,6 @@ object Array extends FallbackArrayBuilding {
}
/** Creates an array of `Double` objects */
- // Subject to a compiler optimization in Cleanup, see above.
def apply(x: Double, xs: Double*): Array[Double] = {
val array = new Array[Double](xs.length + 1)
array(0) = x