[JS IR] Check all signatures of dependent file in IC graph

It is important to check all signatures, because signatures
 can be simultaneously moved between files and modified.
This commit is contained in:
Alexander Korepanov
2022-12-09 16:22:59 +01:00
committed by Space Team
parent 04fcf25ae0
commit 4136189114
12 changed files with 75 additions and 7 deletions
@@ -0,0 +1 @@
inline fun inlineFun() = 0
@@ -0,0 +1 @@
inline fun inlineFun() = 1
@@ -0,0 +1,11 @@
STEP 0:
modifications:
U : l1a.0.kt -> l1a.kt
U : l1b.0.kt -> l1b.kt
added file: l1a.kt, l1b.kt, test.kt
STEP 1:
modifications:
U : l1a.1.kt -> l1a.kt
U : l1b.1.kt -> l1b.kt
modified ir: l1a.kt, l1b.kt
updated imports: test.kt
@@ -0,0 +1 @@
fun test() = inlineFun()
@@ -0,0 +1,7 @@
fun box(stepId: Int): String {
val x = test()
if (x != stepId) {
return "Fail: $x != $stepId"
}
return "OK"
}
@@ -0,0 +1,5 @@
STEP 0:
dependencies: lib1
added file: m.kt
STEP 1:
dependencies: lib1
@@ -0,0 +1,8 @@
MODULES: lib1, main
STEP 0:
libs: lib1, main
dirty js: lib1, main
STEP 1:
libs: lib1, main
dirty js: lib1