From 7ff290c43f9c25db803983f88bddff7dd7d84360 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 13 Jul 2009 10:38:37 +0000 Subject: Trying to make typechecker faster by (1) new su... Trying to make typechecker faster by (1) new subtyping (2) better implicit caches. Disallowed '42 as a symbol. Added cache method to Mutable Maps. Better complietion in interactive. --- src/compiler/scala/tools/nsc/Global.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/compiler/scala/tools/nsc/Global.scala') diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 51a8495ece..c4ce109946 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -103,6 +103,8 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable val global: Global.this.type = Global.this } with Statistics + util.Statistics.enabled = settings.Ystatistics.value + /** Computing pairs of overriding/overridden symbols */ object overridingPairs extends { val global: Global.this.type = Global.this @@ -641,6 +643,8 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable */ class Run { + var isDefined = false + private val firstPhase = { // ----------- Initialization code ------------------------- curRunId += 1 @@ -731,6 +735,8 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable val mixinPhase = phaseNamed("mixin") val icodePhase = phaseNamed("icode") + isDefined = true + /** A test whether compilation should stop at phase with given name */ protected def stopPhase(name : String) = settings.stop.contains(name) @@ -800,7 +806,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable warning("It is not possible to check the result of the "+globalPhase.name+" phase") } } - if (settings.statistics.value) statistics.print(phase) + if (settings.Ystatistics.value) statistics.print(phase) advancePhase } -- cgit v1.2.3