aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2016-03-23 18:40:10 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2016-04-18 14:46:57 +0200
commit3f41bd6a4c525eb7c40fd96aba7997c4dcfb8b86 (patch)
treec03bb132727ff91364d7631744a90aa0c5b44e54 /src/dotty/tools/backend/jvm/DottyBackendInterface.scala
parent7e2352ac7a5968958156c5fdab54b3e9e9f2808f (diff)
downloaddotty-3f41bd6a4c525eb7c40fd96aba7997c4dcfb8b86.tar.gz
dotty-3f41bd6a4c525eb7c40fd96aba7997c4dcfb8b86.tar.bz2
dotty-3f41bd6a4c525eb7c40fd96aba7997c4dcfb8b86.zip
Update to new version of DottyBackendInterface.
That knows that there exists only single magical array method.
Diffstat (limited to 'src/dotty/tools/backend/jvm/DottyBackendInterface.scala')
-rw-r--r--src/dotty/tools/backend/jvm/DottyBackendInterface.scala9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index 6e4431b1a..a64ce5900 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -153,15 +153,8 @@ class DottyBackendInterface(outputDirectory: AbstractFile)(implicit ctx: Context
}.toMap
def unboxMethods: Map[Symbol, Symbol] = defn.ScalaValueClasses().map(x => (x, Erasure.Boxing.unboxMethod(x.asClass))).toMap
- private val mkArrayNames: Set[Name] = Set("Byte", "Float", "Char", "Double", "Boolean", "Unit", "Long", "Int", "Short"/*, "Ref"*/).map{ x=>
- ("new" + x + "Array").toTermName
- }
-
- val dottyArraysModuleClass = toDenot(defn.DottyArraysModule).moduleClass.asClass
-
-
override def isSyntheticArrayConstructor(s: Symbol) = {
- (toDenot(s).maybeOwner eq dottyArraysModuleClass) && mkArrayNames.contains(s.name)
+ s eq defn.newArrayMethod
}
def isBox(sym: Symbol): Boolean = Erasure.Boxing.isBox(sym)