[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,6 +1,8 @@
suspend fun box(): Int {
suspend fun suspendBox(): Int {
val x = fooX()
val y = fooY()
return x + y
}
fun box() = "OK"
@@ -2,7 +2,10 @@ MODULES: lib1, main
STEP 0:
libs: lib1, main
dirty js: stdlib, lib1, main
STEP 1:
libs: lib1, main
dirty js: lib1, main
STEP 2:
libs: lib1, main
dirty js: stdlib, lib1, main