From 22295833c33298064b40469a1ff0e491be5f80a1 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 13 Aug 2014 10:30:27 +0200 Subject: 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. --- src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler/scala/tools/nsc/backend/jvm/GenBCode.scala') 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" -- cgit v1.2.3