Skip to content

Commit c272732

Browse files
authored
Merge pull request #3393 from dotty-staging/optimize-megaphase-1
Optimize MegaPhase
2 parents a15a7f6 + a7c34ec commit c272732

File tree

6 files changed

+694
-1760
lines changed

6 files changed

+694
-1760
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ class Compiler {
9797
List(new LinkScala2Impls, // Redirect calls to trait methods defined by Scala 2.x, so that they now go to their implementations
9898
new LambdaLift, // Lifts out nested functions to class scope, storing free variables in environments
9999
// Note: in this mini-phase block scopes are incorrect. No phases that rely on scopes should be here
100-
new ElimStaticThis), // Replace `this` references to static objects by global identifiers
100+
new ElimStaticThis), // Replace `this` references to static objects by global identifiers
101101
List(new Flatten, // Lift all inner classes to package scope
102-
new RestoreScopes, // Repair scopes rendered invalid by moving definitions in prior phases of the group
102+
new RestoreScopes, // Repair scopes rendered invalid by moving definitions in prior phases of the group
103103
new RenameLifted, // Renames lifted classes to local numbering scheme
104104
new TransformWildcards, // Replace wildcards with default values
105105
new MoveStatics, // Move static methods to companion classes

0 commit comments

Comments
 (0)