diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-08-13 10:30:27 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-08-19 17:54:22 +0200 |
commit | 22295833c33298064b40469a1ff0e491be5f80a1 (patch) | |
tree | 4da665cca0e30334aa855f20fd5799c56298aebf /src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala | |
parent | 53437e61305d656c115c94b25845c8f8dd7342ca (diff) | |
download | scala-22295833c33298064b40469a1ff0e491be5f80a1.tar.gz scala-22295833c33298064b40469a1ff0e491be5f80a1.tar.bz2 scala-22295833c33298064b40469a1ff0e491be5f80a1.zip |
Integrate CoreBTypes by composition (not inheritance), non-var fields
Make the fields of CoreBTypes non-variable. Instead, replace the
CoreBTypes instance on each compiler run. That results in fewer
variables, and the initialization code is directly where the fields
are declared, instead of an init method.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala index 480767f407..0a7c894a69 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala @@ -47,6 +47,7 @@ abstract class GenBCode extends BCodeSyncAndTry { import global._ import bTypes._ + import coreBTypes._ val phaseName = "jvm" |