[JS IR] Update IC depends graph after intrinsics loading
- Remove unused params from compilerWithIC wrapper. - Move JsIrBackendContext creation logic into separate function - Introduce and use compiler interface for IC infrastructure On dirty rebuild we may reload IR from stdlib, such reloading may affect files with intrinsics and builtins. As soon as we load only exported symbols, we must track dependencies for files with intrinsics or builtins as for others. This patch implements the logic which updates dependencies for the stdlib files after loading of intrinsics and builtins. ^KT-54323 Fixed
This commit is contained in:
committed by
Space Team
parent
31ba1f1534
commit
7b2c125754
+15
@@ -0,0 +1,15 @@
|
||||
fun box(stepId: Int): String {
|
||||
when (stepId) {
|
||||
0, 2, 4, 6, 7 -> if (qux() != stepId) return "Fail"
|
||||
1, 3, 5, 8 -> {
|
||||
try {
|
||||
val r = qux()
|
||||
return "Fail, got $r"
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
else -> return "Unknown"
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
STEP 0:
|
||||
dependencies: lib1, lib2
|
||||
added file: m.kt
|
||||
STEP 1..8:
|
||||
dependencies: lib1, lib2
|
||||
Reference in New Issue
Block a user