aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-13 14:58:26 +0100
committerMartin Odersky <odersky@gmail.com>2016-12-17 18:34:27 +0100
commit6eb1a72bce041d4fd8519713031894dac3192025 (patch)
tree61909b6fcab49b310b9d4f3f82e66fe82f772798 /compiler/src/dotty/tools/dotc/Compiler.scala
parent5e2f7d18d711814cecce62a4bd7315a26a5efb87 (diff)
downloaddotty-6eb1a72bce041d4fd8519713031894dac3192025.tar.gz
dotty-6eb1a72bce041d4fd8519713031894dac3192025.tar.bz2
dotty-6eb1a72bce041d4fd8519713031894dac3192025.zip
New ShortcutImplicits phase
Optimizes implicit closures by avoiding closure creation where possible.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/Compiler.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/Compiler.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/Compiler.scala b/compiler/src/dotty/tools/dotc/Compiler.scala
index ad3249be2..900d2b0e3 100644
--- a/compiler/src/dotty/tools/dotc/Compiler.scala
+++ b/compiler/src/dotty/tools/dotc/Compiler.scala
@@ -61,6 +61,7 @@ class Compiler {
new PatternMatcher, // Compile pattern matches
new ExplicitOuter, // Add accessors to outer classes from nested ones.
new ExplicitSelf, // Make references to non-trivial self types explicit as casts
+ new ShortcutImplicits, // Allow implicit functions without creating closures
new CrossCastAnd, // Normalize selections involving intersection types.
new Splitter), // Expand selections involving union types into conditionals
List(new VCInlineMethods, // Inlines calls to value class methods