summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/backend/opt/Inliners.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-22 12:04:27 -0800
committerPaul Phillips <paulp@improving.org>2012-02-22 12:26:32 -0800
commit455129b32d8634856917f9ecf67987567fb46723 (patch)
tree61ec41d4a08227d20f6425577862ed0ce43d8db5 /src/compiler/scala/tools/nsc/backend/opt/Inliners.scala
parent031dbf4276971e108fb01699c0bf65eb85b2e1ff (diff)
downloadscala-455129b32d8634856917f9ecf67987567fb46723.tar.gz
scala-455129b32d8634856917f9ecf67987567fb46723.tar.bz2
scala-455129b32d8634856917f9ecf67987567fb46723.zip
More use of perRunCaches.
In SpecializeTypes and beyond. It is hard for me to say with confidence what might affect the IDE for the worse, but this is all intended for the IDE's benefit (if only in terms of insurance) and hopefully intention matches reality.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/opt/Inliners.scala')
-rw-r--r--src/compiler/scala/tools/nsc/backend/opt/Inliners.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/opt/Inliners.scala b/src/compiler/scala/tools/nsc/backend/opt/Inliners.scala
index 3d7f08cebe..a3a19868e0 100644
--- a/src/compiler/scala/tools/nsc/backend/opt/Inliners.scala
+++ b/src/compiler/scala/tools/nsc/backend/opt/Inliners.scala
@@ -550,9 +550,9 @@ abstract class Inliners extends SubComponent {
val activeHandlers = caller.handlers filter (_ covered block)
/* Map 'original' blocks to the ones inlined in the caller. */
- val inlinedBlock: mutable.Map[BasicBlock, BasicBlock] = new mutable.HashMap
+ val inlinedBlock = mutable.Map[BasicBlock, BasicBlock]()
- val varsInScope: mutable.Set[Local] = mutable.HashSet() ++= block.varsInScope
+ val varsInScope = mutable.HashSet[Local]() ++= block.varsInScope
/** Side effects varsInScope when it sees SCOPE_ENTERs. */
def instrBeforeFilter(i: Instruction): Boolean = {