diff options
author | Paul Phillips <paulp@improving.org> | 2011-06-13 18:04:20 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-06-13 18:04:20 +0000 |
commit | 21584ed38ea6cbb8932206608ce47d975a127d8d (patch) | |
tree | 8a63b78349e3668ea21c8b6afb66a1260b40c5f6 /src/compiler/scala/tools/nsc/transform/UnCurry.scala | |
parent | f44c01eab212e3ab518880500953f485b49a2eee (diff) | |
download | scala-21584ed38ea6cbb8932206608ce47d975a127d8d.tar.gz scala-21584ed38ea6cbb8932206608ce47d975a127d8d.tar.bz2 scala-21584ed38ea6cbb8932206608ce47d975a127d8d.zip |
Marked some more by-name-argument-using methods...
Marked some more by-name-argument-using methods with final @inline to
make possible and then encourage their inlining. Knocked almost 300 more
classfiles and 200K off the compiler jar. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/UnCurry.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/UnCurry.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala index 04752c5fd7..b62b2aa2a8 100644 --- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala +++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala @@ -468,8 +468,7 @@ abstract class UnCurry extends InfoTransform with TypingTransformers with ast.Tr // ------ The tree transformers -------------------------------------------------------- def mainTransform(tree: Tree): Tree = { - - def withNeedLift(needLift: Boolean)(f: => Tree): Tree = { + @inline def withNeedLift(needLift: Boolean)(f: => Tree): Tree = { val saved = needTryLift needTryLift = needLift try f |