[JVM] Implement new inlined variable naming format
^KT-65478 fixed
This commit is contained in:
committed by
Alexander Udalov
parent
9ea775cbed
commit
407448d8e3
@@ -0,0 +1,25 @@
|
||||
public final class DeepInlineKt : java/lang/Object {
|
||||
public final static void block(kotlin.jvm.functions.Function1 block) {
|
||||
Local variables:
|
||||
1 $i$f$block: I
|
||||
0 block: Lkotlin/jvm/functions/Function1;
|
||||
}
|
||||
|
||||
public final static void foo(java.lang.String $this$foo, int count) {
|
||||
Local variables:
|
||||
16 $i$a$-block-DeepInlineKt$foo$1$1$1\6\23\4: I
|
||||
14 $this$foo_u24lambda_u242_u24lambda_u241_u24lambda_u240\6: J
|
||||
13 $i$f$block\5\12: I
|
||||
11 $i$a$-block-DeepInlineKt$foo$1$1\4\22\2: I
|
||||
12 z\4: Z
|
||||
9 $this$foo_u24lambda_u242_u24lambda_u241\4: J
|
||||
8 $i$f$block\3\10: I
|
||||
6 $i$a$-block-DeepInlineKt$foo$1\2\21\0: I
|
||||
7 y\2: Z
|
||||
4 $this$foo_u24lambda_u242\2: J
|
||||
3 $i$f$block\1\8: I
|
||||
2 x: Z
|
||||
0 $this$foo: Ljava/lang/String;
|
||||
1 count: I
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
// IR_DIFFERENCE
|
||||
// INLINE_SCOPES_DIFFERENCE
|
||||
// LOCAL_VARIABLE_TABLE
|
||||
|
||||
fun String.foo(count: Int) {
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
public final class DeepInlineWithLabelsKt : java/lang/Object {
|
||||
public final static void block(kotlin.jvm.functions.Function1 block) {
|
||||
Local variables:
|
||||
1 $i$f$block: I
|
||||
0 block: Lkotlin/jvm/functions/Function1;
|
||||
}
|
||||
|
||||
public final static void foo(java.lang.String $this$foo, int count) {
|
||||
Local variables:
|
||||
16 $i$a$-block-DeepInlineWithLabelsKt$foo$1$1$1\6\23\4: I
|
||||
14 $this$foo_u24lambda_u242_u24lambda_u241_u24lambda_u240\6: J
|
||||
13 $i$f$block\5\12: I
|
||||
11 $i$a$-block-DeepInlineWithLabelsKt$foo$1$1\4\22\2: I
|
||||
12 z\4: Z
|
||||
9 $this$foo_u24lambda_u242_u24lambda_u241\4: J
|
||||
8 $i$f$block\3\10: I
|
||||
6 $i$a$-block-DeepInlineWithLabelsKt$foo$1\2\21\0: I
|
||||
7 y\2: Z
|
||||
4 $this$foo_u24lambda_u242\2: J
|
||||
3 $i$f$block\1\8: I
|
||||
2 x: Z
|
||||
0 $this$foo: Ljava/lang/String;
|
||||
1 count: I
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
// IR_DIFFERENCE
|
||||
// INLINE_SCOPES_DIFFERENCE
|
||||
// LOCAL_VARIABLE_TABLE
|
||||
|
||||
fun String.foo(count: Int) {
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
public final class Foo$Bar : java/lang/Object {
|
||||
final Foo this$0
|
||||
|
||||
public void <init>(Foo this$0) {
|
||||
Local variables:
|
||||
0 this: LFoo$Bar;
|
||||
1 this$0: LFoo;
|
||||
}
|
||||
|
||||
public final void bar() {
|
||||
Local variables:
|
||||
4 $i$a$-block-Foo$Bar$bar$1$1\4\30\2: I
|
||||
3 $i$f$block\3\18: I
|
||||
2 $i$a$-block-Foo$Bar$bar$1\2\29\0: I
|
||||
1 $i$f$block\1\14: I
|
||||
0 this: LFoo$Bar;
|
||||
}
|
||||
}
|
||||
|
||||
public final class Foo : java/lang/Object {
|
||||
public void <init>() {
|
||||
Local variables:
|
||||
0 this: LFoo;
|
||||
}
|
||||
|
||||
public final void foo() {
|
||||
Local variables:
|
||||
2 $i$a$-block-Foo$foo$1\2\29\0: I
|
||||
1 $i$f$block\1\7: I
|
||||
0 this: LFoo;
|
||||
}
|
||||
}
|
||||
|
||||
public final class InlineClassCaptureKt : java/lang/Object {
|
||||
public final static void block(kotlin.jvm.functions.Function0 block) {
|
||||
Local variables:
|
||||
1 $i$f$block: I
|
||||
0 block: Lkotlin/jvm/functions/Function0;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
// IR_DIFFERENCE
|
||||
// INLINE_SCOPES_DIFFERENCE
|
||||
// LOCAL_VARIABLE_TABLE
|
||||
|
||||
class Foo {
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
public final class InlineReceiversKt : java/lang/Object {
|
||||
public final static void block(kotlin.jvm.functions.Function1 block) {
|
||||
Local variables:
|
||||
1 $i$f$block: I
|
||||
0 block: Lkotlin/jvm/functions/Function1;
|
||||
}
|
||||
|
||||
public final static void foo(java.lang.String $this$foo, int count) {
|
||||
Local variables:
|
||||
6 $i$a$-block-InlineReceiversKt$foo$1\2\15\0: I
|
||||
4 $this$foo_u24lambda_u240\2: J
|
||||
3 $i$f$block\1\8: I
|
||||
2 x: Z
|
||||
0 $this$foo: Ljava/lang/String;
|
||||
1 count: I
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
// IR_DIFFERENCE
|
||||
// INLINE_SCOPES_DIFFERENCE
|
||||
// LOCAL_VARIABLE_TABLE
|
||||
|
||||
fun String.foo(count: Int) {
|
||||
|
||||
Reference in New Issue
Block a user