[FIR] Optimization & checking fix: remove usage of dispatchReceiverValue

This commit is contained in:
simon.ogorodnik
2019-12-25 17:23:44 +03:00
committed by Mikhail Glukhikh
parent 686965c0d3
commit 5e426fdc71
114 changed files with 268 additions and 302 deletions
@@ -5,8 +5,8 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
lval x: R|kotlin/String| = this@R|/Annotated|.R|/Annotated.foo|(String(123))
lval y: R|kotlin/String| = this@R|/Annotated|.R|/Annotated.foo|(Null(null))
lval x: R|kotlin/String| = this@R|/User|.R|/Annotated.foo|(String(123))
lval y: R|kotlin/String| = this@R|/User|.R|/Annotated.foo|(Null(null))
}
}
@@ -5,8 +5,8 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
lval x: R|kotlin/String| = this@R|/AnnotatedDerived|.R|/AnnotatedDerived.foo|(String(123))
lval y: R|kotlin/String| = this@R|/AnnotatedDerived|.R|/AnnotatedDerived.foo|(Null(null))
lval x: R|kotlin/String| = this@R|/User|.R|/AnnotatedDerived.foo|(String(123))
lval y: R|kotlin/String| = this@R|/User|.R|/AnnotatedDerived.foo|(Null(null))
}
}
@@ -11,7 +11,7 @@ FILE: simpleFakeOverride.kt
}
public final fun test(): R|kotlin/Unit| {
this@R|/A|.R|FakeOverride</A.foo: R|ft<Some, Some?>!|>|(R|/Some.Some|())
this@R|/B|.R|FakeOverride</A.foo: R|ft<Some, Some?>!|>|(R|/Some.Some|())
}
}
@@ -5,9 +5,9 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
lval res1: R|kotlin/Boolean| = this@R|/Some|.R|/Some.foo|(Int(1))
lval res2: R|kotlin/Boolean| = this@R|/Some|.R|/Some.foo|(Int(1).R|kotlin/Int.unaryMinus|())
lval res3: R|ft<kotlin/Array<ft<kotlin/String, kotlin/String?>!>, kotlin/Array<out ft<kotlin/String, kotlin/String?>!>?>!| = this@R|/Some|.R|/Some.bar|(R|kotlin/intArrayOf|(Int(0), Int(2), Int(2).R|kotlin/Int.unaryMinus|()))
lval res1: R|kotlin/Boolean| = this@R|/A|.R|/Some.foo|(Int(1))
lval res2: R|kotlin/Boolean| = this@R|/A|.R|/Some.foo|(Int(1).R|kotlin/Int.unaryMinus|())
lval res3: R|ft<kotlin/Array<ft<kotlin/String, kotlin/String?>!>, kotlin/Array<out ft<kotlin/String, kotlin/String?>!>?>!| = this@R|/A|.R|/Some.bar|(R|kotlin/intArrayOf|(Int(0), Int(2), Int(2).R|kotlin/Int.unaryMinus|()))
}
}
@@ -5,11 +5,11 @@ FILE: Derived.kt
}
public final fun getValue(): R|kotlin/Int| {
^getValue this@R|/Base|.R|/Base.value|
^getValue this@R|/Derived|.R|/Base.value|
}
public final fun foo(): R|kotlin/Int| {
^foo this@R|/Base|.R|/Base.value|
^foo this@R|/Derived|.R|/Base.value|
}
}
@@ -5,7 +5,7 @@ FILE: Test.kt
}
public final fun test(): R|kotlin/Unit| {
(this@R|/Inheritor|, this@R|/Tester|).R|/Inheritor.foo|(String(abc), Int(456))
(this@R|/Tester|, this@R|/Tester|).R|/Inheritor.foo|(String(abc), Int(456))
}
}
@@ -5,7 +5,7 @@ FILE: Test.kt
}
public final fun test(): R|kotlin/Int| {
^test this@R|/Inheritor|.R|/Inheritor.x|
^test this@R|/Tester|.R|/Inheritor.x|
}
}
+3 -3
View File
@@ -22,9 +22,9 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
this@R|/A|.R|FakeOverride</A.foo: R|kotlin/Unit|>|(String())
this@R|/C|.R|/C.bar|(String())
this@R|/A|.R|FakeOverride</A.baz: R|kotlin/String|>|(String())
this@R|/D|.R|FakeOverride</A.foo: R|kotlin/Unit|>|(String())
this@R|/D|.R|/C.bar|(String())
this@R|/D|.R|FakeOverride</A.baz: R|kotlin/String|>|(String())
}
}
+4 -4
View File
@@ -18,8 +18,8 @@ FILE: jvm.kt
}
public final fun useMember(): R|kotlin/Unit| {
this@R|/MyList|.R|/MyList.get|(Int(1))
this@R|/MyList|.R|/MyList.set|(Int(2), Int(3))
this@R|/DerivedList|.R|/MyList.get|(Int(1))
this@R|/DerivedList|.R|/MyList.set|(Int(2), Int(3))
}
}
@@ -33,8 +33,8 @@ FILE: jvm.kt
}
public final fun use(): R|kotlin/Unit| {
this@R|/Wrapper|.R|/Wrapper.list|.R|/MyList.get|(Int(1))
this@R|/Wrapper|.R|/Wrapper.list|.R|/MyList.set|(Int(2), Int(3))
this@R|/DerivedWrapper|.R|/Wrapper.list|.R|/MyList.get|(Int(1))
this@R|/DerivedWrapper|.R|/Wrapper.list|.R|/MyList.set|(Int(2), Int(3))
}
}
+4 -4
View File
@@ -17,8 +17,8 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
this@R|/A|.R|/A.foo|()
this@R|/A|.R|/A.bar|()
this@R|/C|.R|/A.foo|()
this@R|/C|.R|/A.bar|()
}
}
@@ -28,8 +28,8 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
this@R|/A|.R|/A.foo|()
this@R|/A|.R|/A.bar|()
this@R|/D|.R|/A.foo|()
this@R|/D|.R|/A.bar|()
}
}
+6 -6
View File
@@ -28,9 +28,9 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
this@R|/A|.R|/A.foo|()
this@R|/X|.R|/X.bar|()
this@R|/Y|.R|/Y.baz|()
this@R|/C|.R|/A.foo|()
this@R|/C|.R|/X.bar|()
this@R|/C|.R|/Y.baz|()
}
}
@@ -40,9 +40,9 @@ FILE: jvm.kt
}
public final fun test(): R|kotlin/Unit| {
this@R|/A|.R|/A.foo|()
this@R|/X|.R|/X.bar|()
this@R|/Y|.R|/Y.baz|()
this@R|/D|.R|/A.foo|()
this@R|/D|.R|/X.bar|()
this@R|/D|.R|/Y.baz|()
}
}