Remove obsolete -X compiler arguments for JVM backend

-Xno-exception-on-explicit-equals-for-boxed-null
-Xstrict-java-nullability-assertions
-Xuse-old-spilled-var-type-analysis
-Xpolymorphic-signature
This commit is contained in:
Alexander Udalov
2021-09-02 02:23:01 +02:00
parent 1864716c83
commit 0a10cec579
15 changed files with 6 additions and 312 deletions
@@ -142,12 +142,6 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
)
var inlineClasses: Boolean by FreezableVar(false)
@Argument(
value = "-Xpolymorphic-signature",
description = "Enable experimental support for @PolymorphicSignature (MethodHandle/VarHandle)"
)
var polymorphicSignature: Boolean by FreezableVar(false)
@Argument(
value = "-Xlegacy-smart-cast-after-try",
description = "Allow var smart casts despite assignment in try block"
@@ -443,10 +437,6 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
put(LanguageFeature.InlineClasses, LanguageFeature.State.ENABLED)
}
if (polymorphicSignature) {
put(LanguageFeature.PolymorphicSignature, LanguageFeature.State.ENABLED)
}
if (legacySmartCastAfterTry) {
put(LanguageFeature.SoundSmartCastsAfterTry, LanguageFeature.State.DISABLED)
}
@@ -166,9 +166,6 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
)
var noParamAssertions: Boolean by FreezableVar(false)
@Argument(value = "-Xstrict-java-nullability-assertions", description = "Generate nullability assertions for non-null Java expressions")
var strictJavaNullabilityAssertions: Boolean by FreezableVar(false)
@Argument(value = "-Xno-optimize", description = "Disable optimizations")
var noOptimize: Boolean by FreezableVar(false)
@@ -311,12 +308,6 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
)
var jspecifyAnnotations: String? by FreezableVar(null)
@Argument(
value = "-Xno-exception-on-explicit-equals-for-boxed-null",
description = "Do not throw NPE on explicit 'equals' call for null receiver of platform boxed primitive type"
)
var noExceptionOnExplicitEqualsForBoxedNull by FreezableVar(false)
@Argument(
value = "-Xjvm-default",
valueDescription = "{all|all-compatibility|disable|enable|compatibility}",
@@ -468,12 +459,6 @@ default: `indy-with-constants` for JVM target 9 or greater, `inline` otherwise""
)
var repeatCompileModules: String? by NullableStringFreezableVar(null)
@Argument(
value = "-Xuse-old-spilled-var-type-analysis",
description = "Use old, SourceInterpreter-based analysis for fields, used for spilled variables in coroutines"
)
var useOldSpilledVarTypeAnalysis: Boolean by FreezableVar(false)
@Argument(
value = "-Xuse-14-inline-classes-mangling-scheme",
description = "Use 1.4 inline classes mangling scheme instead of 1.4.30 one"
@@ -544,9 +529,6 @@ default: `indy-with-constants` for JVM target 9 or greater, `inline` otherwise""
override fun configureLanguageFeatures(collector: MessageCollector): MutableMap<LanguageFeature, LanguageFeature.State> {
val result = super.configureLanguageFeatures(collector)
if (strictJavaNullabilityAssertions) {
result[LanguageFeature.StrictJavaNullabilityAssertions] = LanguageFeature.State.ENABLED
}
if (typeEnhancementImprovementsInStrictMode) {
result[LanguageFeature.TypeEnhancementImprovementsInStrictMode] = LanguageFeature.State.ENABLED
}