aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-26 10:01:57 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-26 11:03:20 +0100
commit311136b60d2de17f46b643d84a949b8f77411c0f (patch)
tree22aa6be9a313c22c7f60ac880a3da4a4f6f3157c /src/dotty/tools/dotc/core/Denotations.scala
parent6029c748f1dc086d058d6b5fd3d37c04c08318b3 (diff)
downloaddotty-311136b60d2de17f46b643d84a949b8f77411c0f.tar.gz
dotty-311136b60d2de17f46b643d84a949b8f77411c0f.tar.bz2
dotty-311136b60d2de17f46b643d84a949b8f77411c0f.zip
Performance improvements: Split long TypeMap#mapOver and move hot fields into locals.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 823c23841..137bbed34 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -575,6 +575,7 @@ object Denotations {
type AsSeenFromResult = SingleDenotation
protected def computeAsSeenFrom(pre: Type)(implicit ctx: Context): SingleDenotation = {
+ val symbol = this.symbol
val owner = this match {
case thisd: SymDenotation => thisd.owner
case _ => if (symbol.exists) symbol.owner else NoSymbol