[JS IR] IC improvements

- Reuse a built fragment
  - Use cache for saving built JS code
This commit is contained in:
Alexander Korepanov
2022-03-30 18:19:28 +03:00
committed by Space
parent f8ae097e50
commit 9952d43252
137 changed files with 1280 additions and 899 deletions
@@ -1,2 +1,6 @@
fun box() = qux0() + qux1()
fun box(): String {
if (qux0() != 42) return "Fail"
if (qux1() != 24) return "Fail"
return "OK"
}
@@ -1,2 +1,5 @@
fun box() = qux0()
fun box(): String {
if (qux0() != 42) return "Fail"
return "OK"
}
@@ -1,9 +1,8 @@
STEP 0:
dependencies: stdlib, lib1, lib2
dirty: m.kt
STEP 1:
dependencies: stdlib, lib1, lib2
modifications:
U : m.kt.new -> m.kt
dirty: m.kt
dirty: m.kt