aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Contexts.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-19 15:45:36 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-19 15:45:36 +0100
commit7aa65416ea09470ae24353c36a51f07c5fc1e8a6 (patch)
tree4870ac5d26c0e49e04e0f915f27e5c8b5446dc61 /src/dotty/tools/dotc/core/Contexts.scala
parentd28125447f734560b3738a2642a29157e8830169 (diff)
downloaddotty-7aa65416ea09470ae24353c36a51f07c5fc1e8a6.tar.gz
dotty-7aa65416ea09470ae24353c36a51f07c5fc1e8a6.tar.bz2
dotty-7aa65416ea09470ae24353c36a51f07c5fc1e8a6.zip
Allow disabling squarshing
Do not die if phases aren't squashed
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r--src/dotty/tools/dotc/core/Contexts.scala9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala
index b11e77ef2..bd7de6bb5 100644
--- a/src/dotty/tools/dotc/core/Contexts.scala
+++ b/src/dotty/tools/dotc/core/Contexts.scala
@@ -487,13 +487,13 @@ object Contexts {
def rootLoader(root: TermSymbol)(implicit ctx: Context): SymbolLoader = platform.rootLoader(root)
// Set up some phases to get started */
- usePhases(List(List(SomePhase)))
+ usePhases(List(SomePhase))
/** The standard definitions */
val definitions = new Definitions
def squashed(p: Phase): Phase = {
- squashedPhases.find(_.period.containsPhaseId(p.id)).getOrElse(NoPhase)
+ allPhases.find(_.period.containsPhaseId(p.id)).getOrElse(NoPhase)
}
}
@@ -560,11 +560,14 @@ object Contexts {
* of underlying during a controlled operation exists. */
private[core] val pendingUnderlying = new mutable.HashSet[Type]
+
+ private [core] var phasesPlan: List[List[Phase]] = _
+
// Phases state
/** Phases by id */
private[core] var phases: Array[Phase] = _
- /** Phases with consecutive Transforms groupped into a single phase */
+ /** Phases with consecutive Transforms groupped into a single phase, null if squashing is disabled */
private [core] var squashedPhases: Array[Phase] = _
/** Next denotation transformer id */