[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
@@ -0,0 +1,6 @@
fun foo() = 42
fun bar() = 24
fun baz(s: String) = s.length
fun baz(i: Int) = i + 2
fun baz(b: Boolean) = if (b) 10 else 1
@@ -0,0 +1,6 @@
STEP 0:
dependencies: stdlib
dirty: l1.kt
STEP 1..6:
dependencies: stdlib
flags: FP