[JS IR] Fix IC invalidation for fake override inline functions
The patch enables the direct dependency between fake override inline function and its implementation from the base class. Because klibs do not keep a signature of fake override implementation, incremental cache can not use the signature index, therefore the signature is serialized to a cache file as is. ^KT-51896 Fixed
This commit is contained in:
committed by
Space
parent
c6299ee277
commit
644447db84
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
class ClassABC: AbstractClassC() {
|
||||
inline fun testA() = funA()
|
||||
inline fun testB() = funB()
|
||||
inline fun testC() = funC()
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
fun box(stepId: Int): String {
|
||||
val a = ClassABC()
|
||||
when (stepId) {
|
||||
0, 4 -> {
|
||||
if (a.testA() != "a-0") return "Fail testA()"
|
||||
if (a.testB() != "b-0 a-0") return "Fail testB()"
|
||||
if (a.testC() != "c-0 b-0 a-0") return "Fail testC()"
|
||||
}
|
||||
1, 5 -> {
|
||||
if (a.testA() != "a-1") return "Fail testA()"
|
||||
if (a.testB() != "b-0 a-1") return "Fail testB()"
|
||||
if (a.testC() != "c-0 b-0 a-1") return "Fail testC()"
|
||||
}
|
||||
2 -> {
|
||||
if (a.testA() != "a-1") return "Fail testA()"
|
||||
if (a.testB() != "b-2") return "Fail testB()"
|
||||
if (a.testC() != "c-0 b-2") return "Fail testC()"
|
||||
}
|
||||
3 -> {
|
||||
if (a.testA() != "a-0") return "Fail testA()"
|
||||
if (a.testB() != "b-2") return "Fail testB()"
|
||||
if (a.testC() != "c-0 b-2") return "Fail testC()"
|
||||
}
|
||||
else -> return "Unknown"
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
STEP 0:
|
||||
dependencies: lib1
|
||||
added file: m.kt, classABC.kt
|
||||
STEP 1..5:
|
||||
dependencies: lib1
|
||||
updated inline imports: m.kt, classABC.kt
|
||||
Reference in New Issue
Block a user