diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-19 19:31:11 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-19 19:31:11 +0000 |
commit | b2f1b874686ea0d1aca5aca9b187998372970e61 (patch) | |
tree | f5d1c38da171f9cb5a5c0aa88b4a2aaaaa3934a4 /src/compiler/scala/reflect/internal/Types.scala | |
parent | 970d4132b66eb77fa0c3d1d2626a1e377bea6ad4 (diff) | |
download | scala-b2f1b874686ea0d1aca5aca9b187998372970e61.tar.gz scala-b2f1b874686ea0d1aca5aca9b187998372970e61.tar.bz2 scala-b2f1b874686ea0d1aca5aca9b187998372970e61.zip |
Sprinkled some quiet dust on the compiler.
I think it a reasonable goal that one should be able to do the following
and have some chance of seeing anomalies before firing up advanced text
processing tools:
scalac -Ylog:all a.scala
At least until/unless we have some way of generating output in between
"user-level visible warnings" and "notice of interest once you're
peeking under the hood." As a rule of thumb, any code which echoes a
thousand lines when compiling HelloWorld should be gently shoved into
debuglog. (Or anything which is sure to print for every classfile,
every method, etc. etc.) Especially, any code which is going to simply
reference Tuple2 and then echo a line for every specialized variation of
that class is being unreasonably taxed.
While I was quietizing, I changed various 'if (settings.debug.value)
log' usages to call debuglog. Hey everyone, you can do this without
penalty now, the inliner turns around and inlines the same code, and
it's so much less unsightly. No review.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Types.scala')
-rw-r--r-- | src/compiler/scala/reflect/internal/Types.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/internal/Types.scala b/src/compiler/scala/reflect/internal/Types.scala index 3395787d08..358258390f 100644 --- a/src/compiler/scala/reflect/internal/Types.scala +++ b/src/compiler/scala/reflect/internal/Types.scala @@ -5940,7 +5940,7 @@ A type's typeSymbol should never be inspected directly. } val errors = new ListBuffer[(Type, Symbol, List[(Symbol, Symbol)], List[(Symbol, Symbol)], List[(Symbol, Symbol)])] - if (tparams.nonEmpty || targs.nonEmpty) + if (settings.debug.value &&(tparams.nonEmpty || targs.nonEmpty)) log("checkKindBounds0(" + tparams + ", " + targs + ", " + pre + ", " + owner + ", " + explainErrors + ")") for { |