aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2016-03-23 18:37:30 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2016-04-18 14:46:57 +0200
commit7e2352ac7a5968958156c5fdab54b3e9e9f2808f (patch)
tree8fe6f927cc0c22e4a702a0ffc2de2401edd5db42 /src/dotty/tools/dotc/Compiler.scala
parent0211e56d104934188007e3c02eac131b81460100 (diff)
downloaddotty-7e2352ac7a5968958156c5fdab54b3e9e9f2808f.tar.gz
dotty-7e2352ac7a5968958156c5fdab54b3e9e9f2808f.tar.bz2
dotty-7e2352ac7a5968958156c5fdab54b3e9e9f2808f.zip
Decouple handling array constructors from typer.
It's done in a separate ArrayConstructors phase now.
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r--src/dotty/tools/dotc/Compiler.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala
index fe48ac30e..f1a3c526b 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -66,7 +66,8 @@ class Compiler {
new Getters, // Replace non-private vals and vars with getter defs (fields are added later)
new ElimByName, // Expand by-name parameters and arguments
new AugmentScala2Traits, // Expand traits defined in Scala 2.11 to simulate old-style rewritings
- new ResolveSuper), // Implement super accessors and add forwarders to trait methods
+ new ResolveSuper, // Implement super accessors and add forwarders to trait methods
+ new ArrayConstructors) // Intercept creation of (non-generic) arrays and intrinsify.
List(new Erasure), // Rewrite types to JVM model, erasing all type parameters, abstract types and refinements.
List(new ElimErasedValueType, // Expand erased value types to their underlying implmementation types
new VCElideAllocations, // Peep-hole optimization to eliminate unnecessary value class allocations