[K/JS] Rework IR deserialization and lowering phases to consume less memory

This commit is contained in:
Artem Kobzar
2023-04-19 13:10:19 +00:00
committed by Space Team
parent 1ee2d0814c
commit 33c5068b79
134 changed files with 964 additions and 616 deletions
@@ -560,6 +560,7 @@ class GenerateIrRuntime {
.generateUnboundSymbolsAsDependencies()
jsLinker.postProcess(inOrAfterLinkageStep = true)
jsLinker.clear()
moduleFragment.patchDeclarationParents()
@@ -586,6 +587,7 @@ class GenerateIrRuntime {
.generateUnboundSymbolsAsDependencies()
jsLinker.postProcess(inOrAfterLinkageStep = true)
jsLinker.clear()
moduleFragment.patchDeclarationParents()
@@ -27,7 +27,7 @@ import org.jetbrains.kotlin.test.model.TestModule
import org.jetbrains.kotlin.test.services.*
import org.jetbrains.kotlin.test.services.configuration.JsEnvironmentConfigurator
import org.jetbrains.kotlin.test.services.configuration.JsEnvironmentConfigurator.Companion.getMainModule
import org.jetbrains.kotlin.util.collectionUtils.filterIsInstanceAnd
import org.jetbrains.kotlin.utils.filterIsInstanceAnd
import java.io.File
const val MODULE_EMULATION_FILE = "${JsEnvironmentConfigurator.TEST_DATA_DIR_PATH}/moduleEmulation.js"