[JS IR] IC improvements
- Reuse a built fragment - Use cache for saving built JS code
This commit is contained in:
committed by
Space
parent
f8ae097e50
commit
9952d43252
@@ -1 +1 @@
|
||||
fun foo() = 42
|
||||
fun foo() = 42
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
fun foo() = 33
|
||||
@@ -0,0 +1 @@
|
||||
fun foo() = 33
|
||||
@@ -4,5 +4,5 @@ STEP 0:
|
||||
STEP 1:
|
||||
dependencies: stdlib
|
||||
modifications:
|
||||
U : l1.kt.1 -> l1.kt
|
||||
U : l1.kt.1.txt -> l1.kt
|
||||
dirty: l1.kt
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
STEP 0:
|
||||
dependencies: stdlib, lib1
|
||||
dirty: l2.kt
|
||||
|
||||
STEP 1:
|
||||
dependencies: stdlib, lib1
|
||||
dirty:
|
||||
@@ -1,2 +1,9 @@
|
||||
|
||||
fun box() = qux()
|
||||
fun box(stepId: Int): String {
|
||||
when (stepId) {
|
||||
0 -> if (qux() != 42) return "Fail"
|
||||
1 -> if (qux() != 33) return "Fail"
|
||||
else -> return "Unknown"
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
STEP 0:
|
||||
dependencies: stdlib, lib1, lib2
|
||||
dirty: m.kt
|
||||
|
||||
STEP 1:
|
||||
dependencies: stdlib, lib1, lib2
|
||||
dependencies: stdlib, lib1, lib2
|
||||
|
||||
@@ -2,6 +2,7 @@ MODULES: lib1, lib2, main
|
||||
|
||||
STEP 0:
|
||||
libs: lib1, lib2, main
|
||||
|
||||
dirty js: stdlib, lib1, lib2, main
|
||||
STEP 1:
|
||||
libs: lib1, lib2, main
|
||||
libs: lib1, lib2, main
|
||||
dirty js: lib1
|
||||
|
||||
Reference in New Issue
Block a user