Skip to content

Commit 622e779

Browse files
authored
Merge branch 'JetBrains:master' into zip-cache
2 parents 19a054f + 8630e10 commit 622e779

File tree

76 files changed

+977
-479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+977
-479
lines changed

analysis/low-level-api-fir/tests-gen/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLBlackBoxTestGenerated.java

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/low-level-api-fir/tests-gen/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLReversedBlackBoxTestGenerated.java

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/arguments/resources/kotlin-compiler-arguments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8129,7 +8129,7 @@
81298129
"introducedVersion": "1.1.3",
81308130
"stabilizedVersion": null,
81318131
"deprecatedVersion": "2.1.0",
8132-
"removedVersion": null
8132+
"removedVersion": "2.3.0"
81338133
}
81348134
},
81358135
{

compiler/arguments/src/org/jetbrains/kotlin/arguments/description/JsCompilerArguments.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,6 @@ val actualJsArguments by compilerArgumentsLevel(CompilerArgumentsLevelNames.jsAr
539539
It is deprecated and will be removed in a future release.""".asReleaseDependent()
540540
valueType = BooleanType.defaultFalse
541541

542-
additionalAnnotations(
543-
Deprecated("It is senseless to use with IR compiler. Only for compatibility."),
544-
)
545542
additionalMetadata(
546543
GradleOption(
547544
value = DefaultValue.BOOLEAN_FALSE_DEFAULT,
@@ -558,6 +555,7 @@ It is deprecated and will be removed in a future release.""".asReleaseDependent(
558555
lifecycle(
559556
introducedVersion = KotlinReleaseVersion.v1_1_3,
560557
deprecatedVersion = KotlinReleaseVersion.v2_1_0,
558+
removedVersion = KotlinReleaseVersion.v2_3_0,
561559
)
562560
}
563561

compiler/backend/src/org/jetbrains/kotlin/codegen/DescriptorAsmUtil.java

Lines changed: 0 additions & 96 deletions
This file was deleted.

compiler/backend/src/org/jetbrains/kotlin/codegen/inline/AnonymousObjectTransformer.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ class AnonymousObjectTransformer(
253253
}
254254
return@action
255255
}
256-
DescriptorAsmUtil.writeAnnotationData(av, newProto, newStringTable)
256+
AsmUtil.writeAnnotationData(
257+
av, JvmProtoBufUtil.writeData(newProto, newStringTable), ArrayUtil.toStringArray(newStringTable.strings),
258+
)
257259
}
258260
}
259261

compiler/backend/src/org/jetbrains/kotlin/codegen/intrinsics/HashCode.kt

Lines changed: 0 additions & 37 deletions
This file was deleted.

compiler/backend/src/org/jetbrains/kotlin/codegen/state/StaticTypeMapperForOldBackend.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package org.jetbrains.kotlin.codegen.state
77

8+
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
89
import org.jetbrains.kotlin.codegen.signature.AsmTypeFactory
910
import org.jetbrains.kotlin.descriptors.ClassDescriptor
1011
import org.jetbrains.kotlin.descriptors.ClassifierDescriptor
@@ -18,6 +19,7 @@ import org.jetbrains.kotlin.types.KotlinType
1819
import org.jetbrains.kotlin.types.TypeSystemCommonBackendContext
1920
import org.jetbrains.kotlin.types.checker.SimpleClassicTypeSystemContext
2021
import org.jetbrains.kotlin.types.model.KotlinTypeMarker
22+
import org.jetbrains.kotlin.types.typeUtil.builtIns
2123
import org.jetbrains.org.objectweb.asm.Type
2224

2325
// This class exists only because it's used to box/unbox inline classes in the static method StackValue.coerce in the old backend, which
@@ -26,7 +28,7 @@ object StaticTypeMapperForOldBackend : KotlinTypeMapperBase() {
2628
override val typeSystem: TypeSystemCommonBackendContext
2729
get() = SimpleClassicTypeSystemContext
2830

29-
private val staticTypeMappingConfiguration = object : TypeMappingConfiguration<Type> {
31+
private class Configuration(override val builtIns: KotlinBuiltIns) : TypeMappingConfiguration<Type> {
3032
override fun commonSupertype(types: Collection<KotlinType>): KotlinType {
3133
return CommonSupertypes.commonSupertype(types)
3234
}
@@ -51,7 +53,7 @@ object StaticTypeMapperForOldBackend : KotlinTypeMapperBase() {
5153
override fun mapClass(classifier: ClassifierDescriptor): Type = TODO("Should not be called")
5254

5355
override fun mapTypeCommon(type: KotlinTypeMarker, mode: TypeMappingMode): Type {
54-
return mapType(type as KotlinType, AsmTypeFactory, mode, staticTypeMappingConfiguration, null)
56+
return mapType(type as KotlinType, AsmTypeFactory, mode, Configuration(type.builtIns), null)
5557
}
5658

5759
private fun generateErrorMessageForErrorType(type: KotlinType, descriptor: DeclarationDescriptor): String {

compiler/build-tools/kotlin-build-tools-api/gen/org/jetbrains/kotlin/buildtools/api/arguments/JsArguments.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,6 @@ public interface JsArguments : WasmArguments {
356356
@ExperimentalCompilerArgument
357357
public val X_ES_LONG_AS_BIGINT: JsArgument<Boolean?> = JsArgument("X_ES_LONG_AS_BIGINT")
358358

359-
/**
360-
* This option does nothing and is left for compatibility with the legacy backend.
361-
* It is deprecated and will be removed in a future release.
362-
*
363-
* WARNING: this option is EXPERIMENTAL and it may be changed in the future without notice or may be removed entirely.
364-
*/
365-
@JvmField
366-
@ExperimentalCompilerArgument
367-
public val X_TYPED_ARRAYS: JsArgument<Boolean> = JsArgument("X_TYPED_ARRAYS")
368-
369359
/**
370360
* Disable internal declaration export.
371361
*

compiler/build-tools/kotlin-build-tools-impl/gen/org/jetbrains/kotlin/buildtools/internal/arguments/JsArgumentsImpl.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ import org.jetbrains.kotlin.buildtools.api.arguments.JsArguments.Companion.X_IR_
5656
import org.jetbrains.kotlin.buildtools.api.arguments.JsArguments.Companion.X_OPTIMIZE_GENERATED_JS
5757
import org.jetbrains.kotlin.buildtools.api.arguments.JsArguments.Companion.X_PLATFORM_ARGUMENTS_IN_MAIN_FUNCTION
5858
import org.jetbrains.kotlin.buildtools.api.arguments.JsArguments.Companion.X_STRICT_IMPLICIT_EXPORT_TYPES
59-
import org.jetbrains.kotlin.buildtools.api.arguments.JsArguments.Companion.X_TYPED_ARRAYS
6059
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments
6160

6261
public class JsArgumentsImpl : WasmArgumentsImpl(), JsArguments {
@@ -110,7 +109,6 @@ public class JsArgumentsImpl : WasmArgumentsImpl(), JsArguments {
110109
if ("X_ES_GENERATORS" in optionsMap) { arguments.useEsGenerators = get(X_ES_GENERATORS) }
111110
if ("X_ES_ARROW_FUNCTIONS" in optionsMap) { arguments.useEsArrowFunctions = get(X_ES_ARROW_FUNCTIONS) }
112111
if ("X_ES_LONG_AS_BIGINT" in optionsMap) { arguments.compileLongAsBigInt = get(X_ES_LONG_AS_BIGINT) }
113-
if ("X_TYPED_ARRAYS" in optionsMap) { arguments.typedArrays = get(X_TYPED_ARRAYS) }
114112
if ("X_FRIEND_MODULES_DISABLED" in optionsMap) { arguments.friendModulesDisabled = get(X_FRIEND_MODULES_DISABLED) }
115113
if ("X_FRIEND_MODULES" in optionsMap) { arguments.friendModules = get(X_FRIEND_MODULES) }
116114
if ("X_ENABLE_EXTENSION_FUNCTIONS_IN_EXTERNALS" in optionsMap) { arguments.extensionFunctionsInExternals = get(X_ENABLE_EXTENSION_FUNCTIONS_IN_EXTERNALS) }

0 commit comments

Comments
 (0)