JVM_IR. Support inlining of bound CR
This commit is contained in:
@@ -438,7 +438,10 @@ class MethodInliner(
|
||||
private fun getNewIndex(`var`: Int): Int {
|
||||
val lambdaInfo = inliningContext.lambdaInfo
|
||||
if (reorderIrLambdaParameters && lambdaInfo is IrExpressionLambda) {
|
||||
val extensionSize = if (lambdaInfo.isExtensionLambda) lambdaInfo.invokeMethod.argumentTypes[0].size else 0
|
||||
val extensionSize =
|
||||
if (lambdaInfo.isExtensionLambda && !lambdaInfo.isBoundCallableReference)
|
||||
lambdaInfo.invokeMethod.argumentTypes[0].size
|
||||
else 0
|
||||
return when {
|
||||
// v-- extensionSize v-- argsSizeOnStack
|
||||
// |- extension -|- captured -|- real -|- locals -| old descriptor
|
||||
|
||||
Reference in New Issue
Block a user