diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2015-08-26 11:30:10 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2015-08-28 13:24:02 +0200 |
commit | da8f263208f8934650d3900793a4115ff1751310 (patch) | |
tree | 0900b101ec247913916a100f1c3f3f9e22c97a34 /test | |
parent | 9fc684b3cacdc008507a1e32cdab4408a080e60d (diff) | |
download | scala-da8f263208f8934650d3900793a4115ff1751310.tar.gz scala-da8f263208f8934650d3900793a4115ff1751310.tar.bz2 scala-da8f263208f8934650d3900793a4115ff1751310.zip |
Include information about higher-order methods in the call graph
For higher order methods, the call graph contains a map from
parameter positions to SAM types.
Diffstat (limited to 'test')
-rw-r--r-- | test/junit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/junit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala b/test/junit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala index d727951a6b..135ebe9a78 100644 --- a/test/junit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala +++ b/test/junit/scala/tools/nsc/backend/jvm/opt/InlinerTest.scala @@ -6,6 +6,7 @@ import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.junit.Test import scala.collection.generic.Clearable +import scala.collection.immutable.IntMap import scala.collection.mutable.ListBuffer import scala.reflect.internal.util.{NoPosition, BatchSourceFile} import scala.tools.asm.Opcodes._ @@ -95,7 +96,7 @@ class InlinerTest extends ClearAfterClass { callsiteInstruction = callsiteInstruction, callsiteMethod = callsiteMethod, callsiteClass = callsiteClass, - callee = Right(callGraph.Callee(callee = callee, calleeDeclarationClass = calleeDeclarationClass, safeToInline = true, safeToRewrite = false, annotatedInline = false, annotatedNoInline = false, calleeInfoWarning = None)), + callee = Right(callGraph.Callee(callee = callee, calleeDeclarationClass = calleeDeclarationClass, safeToInline = true, safeToRewrite = false, annotatedInline = false, annotatedNoInline = false, higherOrderParams = IntMap.empty, calleeInfoWarning = None)), argInfos = Nil, callsiteStackHeight = callsiteStackHeight, receiverKnownNotNull = receiverKnownNotNull, |