diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2015-09-17 20:18:01 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2015-09-17 22:05:04 +0200 |
commit | a477c40f13644dbd596126c238dbdc262639b002 (patch) | |
tree | fedf3ec8aba6abe021b62a129a8b6ed684e579a0 /src/compiler/scala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala | |
parent | fef4b3dd5c330f1c2f18604e231ef7c45ac14d70 (diff) | |
download | scala-a477c40f13644dbd596126c238dbdc262639b002.tar.gz scala-a477c40f13644dbd596126c238dbdc262639b002.tar.bz2 scala-a477c40f13644dbd596126c238dbdc262639b002.zip |
In the call graph, rename higherOrderParams to samParamTypes
Because that's what the field holds: the parameter types that are SAM
types.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala b/src/compiler/scala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala index 7cfc797317..cd10094204 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/opt/InlinerHeuristics.scala @@ -67,24 +67,6 @@ class InlinerHeuristics[BT <: BTypes](val bTypes: BT) { }).filterNot(_._2.isEmpty).toMap } - def higherOrderParams(methodNode: MethodNode, receiverType: ClassBType): IntMap[ClassBType] = { - var res = IntMap.empty[ClassBType] - val paramTypes = { - val params = Type.getMethodType(methodNode.desc).getArgumentTypes.map(t => bTypeForDescriptorOrInternalNameFromClassfile(t.getDescriptor)) - val isStatic = BytecodeUtils.isStaticMethod(methodNode) - if (isStatic) params else receiverType +: params - } - for (i <- paramTypes.indices) { - paramTypes(i) match { - case c: ClassBType => - if (c.info.get.inlineInfo.sam.isDefined) res = res.updated(i, c) - - case _ => - } - } - res - } - /** * Returns the inline request for a callsite if the callsite should be inlined according to the * current heuristics (`-Yopt-inline-heuristics`). |