Revert "Add a key to enable spilling of all variables in a suspending context"

This reverts commit 38d97d0621.
This commit is contained in:
Nikolay Krasko
2022-07-05 11:26:09 +02:00
committed by teamcity
parent d080297c20
commit c6299ee277
5 changed files with 9 additions and 31 deletions
@@ -511,13 +511,6 @@ Also sets `-jvm-target` value equal to the selected JDK version"""
)
var linkViaSignatures: Boolean by FreezableVar(false)
@Argument(
value = "-Xdebug",
description = "Enable debug mode for compilation.\n" +
"Currently this includes spilling all variables in a suspending context regardless their liveness."
)
var enableDebugMode: Boolean by FreezableVar(false)
override fun configureAnalysisFlags(collector: MessageCollector, languageVersion: LanguageVersion): MutableMap<AnalysisFlag<*>, Any> {
val result = super.configureAnalysisFlags(collector, languageVersion)
result[JvmAnalysisFlags.strictMetadataVersionSemantics] = strictMetadataVersionSemantics
@@ -310,8 +310,6 @@ fun CompilerConfiguration.configureAdvancedJvmOptions(arguments: K2JVMCompilerAr
put(JVMConfigurationKeys.LINK_VIA_SIGNATURES, arguments.linkViaSignatures)
put(JVMConfigurationKeys.ENABLE_DEBUG_MODE, arguments.enableDebugMode)
val assertionsMode =
JVMAssertionsMode.fromStringOrNull(arguments.assertionsMode)
if (assertionsMode == null) {