From 882e6931d6d8262e432f07acfb41873df2b94e4b Mon Sep 17 00:00:00 2001 From: Juan Chen Date: Mon, 6 Apr 2020 10:22:54 +0300 Subject: [PATCH] [FIR] Add backing fields to const properties during Fir2Ir translation --- .../kotlin/fir/backend/ConversionUtils.kt | 27 +++++++++++++++++++ .../fir/backend/Fir2IrDeclarationStorage.kt | 8 ++++++ .../kotlin/fir/backend/Fir2IrVisitor.kt | 25 ++--------------- .../AbstractAnnotationDeserializer.kt | 2 +- .../deserialization/FirMemberDeserializer.kt | 6 +++++ .../codegen/box/binaryOp/overflowChar.kt | 1 - .../codegen/box/binaryOp/overflowInt.kt | 1 - .../codegen/box/binaryOp/overflowLong.kt | 1 - .../box/intrinsics/defaultObjectMapping.kt | 1 - .../codegen/box/intrinsics/kt12125.kt | 1 - .../codegen/box/intrinsics/kt12125_inc.kt | 1 - .../testData/codegen/box/intrinsics/kt8666.kt | 1 - .../primitiveCompanion/byteCompanionObject.kt | 1 - .../primitiveCompanion/charCompanionObject.kt | 1 - .../primitiveCompanion/intCompanionObject.kt | 1 - .../primitiveCompanion/longCompanionObject.kt | 1 - .../shortCompanionObject.kt | 1 - .../ranges/contains/inOptimizableIntRange.kt | 1 - .../ranges/contains/inOptimizableLongRange.kt | 1 - .../expression/inexactDownToMinValue.kt | 1 - .../ranges/expression/inexactToMaxValue.kt | 1 - .../expression/maxValueMinusTwoToMaxValue.kt | 1 - .../ranges/expression/maxValueToMaxValue.kt | 1 - .../ranges/expression/maxValueToMinValue.kt | 1 - .../expression/overflowZeroDownToMaxValue.kt | 1 - .../expression/overflowZeroToMinValue.kt | 1 - .../expression/progressionDownToMinValue.kt | 1 - .../progressionMaxValueMinusTwoToMaxValue.kt | 1 - .../progressionMaxValueToMaxValue.kt | 1 - .../progressionMaxValueToMinValue.kt | 1 - .../progressionMinValueToMinValue.kt | 1 - .../forInUntil/forInUntilCharMaxValue.kt | 1 - .../forInUntil/forInUntilCharMinValue.kt | 1 - .../forInUntilCharMinValueNonConst.kt | 1 - .../forInUntil/forInUntilIntMaxValue.kt | 1 - .../forInUntil/forInUntilIntMinValue.kt | 1 - .../forInUntilIntMinValueNonConst.kt | 1 - .../forInUntil/forInUntilLongMaxValue.kt | 1 - .../forInUntil/forInUntilLongMinValue.kt | 1 - .../forInUntilLongMinValueNonConst.kt | 1 - .../forInDownToCharMinValue.kt | 1 - .../forInDownToCharMinValueReversed.kt | 1 - .../forInDownToIntMinValue.kt | 1 - .../forInDownToIntMinValueReversed.kt | 1 - .../forInDownToLongMinValue.kt | 1 - .../forInDownToLongMinValueReversed.kt | 1 - .../forInRangeToCharMaxValue.kt | 1 - .../forInRangeToCharMaxValueReversed.kt | 1 - .../forInRangeToIntMaxValue.kt | 1 - .../forInRangeToIntMaxValueReversed.kt | 1 - .../forInRangeToLongMaxValue.kt | 1 - .../forInRangeToLongMaxValueReversed.kt | 1 - .../forInUntilIntMinValueReversed.kt | 1 - .../ranges/literal/inexactDownToMinValue.kt | 1 - .../box/ranges/literal/inexactToMaxValue.kt | 1 - .../literal/maxValueMinusTwoToMaxValue.kt | 1 - .../box/ranges/literal/maxValueToMaxValue.kt | 1 - .../box/ranges/literal/maxValueToMinValue.kt | 1 - .../literal/overflowZeroDownToMaxValue.kt | 1 - .../ranges/literal/overflowZeroToMinValue.kt | 1 - .../literal/progressionDownToMinValue.kt | 1 - .../progressionMaxValueMinusTwoToMaxValue.kt | 1 - .../literal/progressionMaxValueToMaxValue.kt | 1 - .../literal/progressionMaxValueToMinValue.kt | 1 - .../literal/progressionMinValueToMinValue.kt | 1 - .../downTo/maxValueToMinValueStepMaxValue.kt | 1 - .../downTo/maxValueToOneStepMaxValue.kt | 1 - .../downTo/maxValueToZeroStepMaxValue.kt | 1 - .../rangeTo/minValueToMaxValueStepMaxValue.kt | 1 - .../rangeTo/oneToMaxValueStepMaxValue.kt | 1 - .../rangeTo/zeroToMaxValueStepMaxValue.kt | 1 - .../until/emptyProgressionToMinValue.kt | 1 - .../until/minValueToMaxValueStepMaxValue.kt | 1 - .../until/zeroToMaxValueStepMaxValue.kt | 1 - .../downTo/maxValueToMinValueStepMaxValue.kt | 1 - .../downTo/maxValueToOneStepMaxValue.kt | 1 - .../downTo/maxValueToZeroStepMaxValue.kt | 1 - .../rangeTo/minValueToMaxValueStepMaxValue.kt | 1 - .../rangeTo/oneToMaxValueStepMaxValue.kt | 1 - .../rangeTo/zeroToMaxValueStepMaxValue.kt | 1 - .../until/emptyProgressionToMinValue.kt | 1 - .../until/minValueToMaxValueStepMaxValue.kt | 1 - .../until/zeroToMaxValueStepMaxValue.kt | 1 - .../checkBasicUnsignedLiterals.kt | 1 - .../testData/codegen/box/when/edgeCases.kt | 1 - 85 files changed, 44 insertions(+), 104 deletions(-) diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt index a49de37b9af..1bdd90214c9 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt @@ -27,10 +27,13 @@ import org.jetbrains.kotlin.fir.symbols.impl.* import org.jetbrains.kotlin.fir.types.* import org.jetbrains.kotlin.ir.IrElement import org.jetbrains.kotlin.ir.declarations.IrProperty +import org.jetbrains.kotlin.ir.expressions.IrConst import org.jetbrains.kotlin.ir.expressions.IrConstKind import org.jetbrains.kotlin.ir.expressions.IrStatementOrigin +import org.jetbrains.kotlin.ir.expressions.impl.IrConstImpl import org.jetbrains.kotlin.ir.symbols.* import org.jetbrains.kotlin.ir.types.IrErrorType +import org.jetbrains.kotlin.ir.types.IrType import org.jetbrains.kotlin.ir.types.impl.IrErrorTypeImpl import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.psi.psiUtil.endOffset @@ -147,6 +150,30 @@ fun FirConstExpression<*>.getIrConstKind(): IrConstKind<*> = when (kind) { else -> kind.toIrConstKind() } +fun FirConstExpression.toIrConst(irType: IrType): IrConst { + return convertWithOffsets { startOffset, endOffset -> + @Suppress("UNCHECKED_CAST") + val kind = getIrConstKind() as IrConstKind + + @Suppress("UNCHECKED_CAST") + val value = (value as? Long)?.let { + when (kind) { + IrConstKind.Byte -> it.toByte() + IrConstKind.Short -> it.toShort() + IrConstKind.Int -> it.toInt() + IrConstKind.Float -> it.toFloat() + IrConstKind.Double -> it.toDouble() + else -> it + } + } as T ?: value + IrConstImpl( + startOffset, endOffset, + irType, + kind, value + ) + } +} + private fun FirConstKind<*>.toIrConstKind(): IrConstKind<*> = when (this) { FirConstKind.Null -> IrConstKind.Null FirConstKind.Boolean -> IrConstKind.Boolean diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt index d40acc5ddc2..aef3b333da3 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertySetter import org.jetbrains.kotlin.fir.descriptors.FirBuiltInsPackageFragment import org.jetbrains.kotlin.fir.descriptors.FirModuleDescriptor import org.jetbrains.kotlin.fir.descriptors.FirPackageFragmentDescriptor +import org.jetbrains.kotlin.fir.expressions.FirConstExpression import org.jetbrains.kotlin.fir.expressions.impl.FirExpressionStub import org.jetbrains.kotlin.fir.psi import org.jetbrains.kotlin.fir.render @@ -595,6 +596,13 @@ class Fir2IrDeclarationStorage( parent = irParent } val type = property.returnTypeRef.toIrType() + val initializer = property.initializer + if (property.isConst && initializer is FirConstExpression<*>) { + backingField = IrFieldImpl(startOffset, endOffset, origin, descriptor, type).also { + it.initializer = IrExpressionBodyImpl(initializer.toIrConst(type)) + it.correspondingPropertySymbol = symbol + } + } getter = createIrPropertyAccessor( property.getter, property, this, type, irParent, false, when { diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt index e8192312dbc..c6685361163 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt @@ -340,29 +340,8 @@ class Fir2IrVisitor( return callGenerator.convertToIrSetCall(variableAssignment) } - override fun visitConstExpression(constExpression: FirConstExpression, data: Any?): IrElement { - return constExpression.convertWithOffsets { startOffset, endOffset -> - @Suppress("UNCHECKED_CAST") - val kind = constExpression.getIrConstKind() as IrConstKind - - @Suppress("UNCHECKED_CAST") - val value = (constExpression.value as? Long)?.let { - when (kind) { - IrConstKind.Byte -> it.toByte() - IrConstKind.Short -> it.toShort() - IrConstKind.Int -> it.toInt() - IrConstKind.Float -> it.toFloat() - IrConstKind.Double -> it.toDouble() - else -> it - } - } as T ?: constExpression.value - IrConstImpl( - startOffset, endOffset, - constExpression.typeRef.toIrType(), - kind, value - ) - } - } + override fun visitConstExpression(constExpression: FirConstExpression, data: Any?): IrElement = + constExpression.toIrConst(constExpression.typeRef.toIrType()) // ================================================================================== diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/AbstractAnnotationDeserializer.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/AbstractAnnotationDeserializer.kt index e97d856903f..9bd94eb6895 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/AbstractAnnotationDeserializer.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/AbstractAnnotationDeserializer.kt @@ -107,7 +107,7 @@ abstract class AbstractAnnotationDeserializer( } } - private fun resolveValue( + fun resolveValue( expectedType: FirTypeRef, value: ProtoBuf.Annotation.Argument.Value, nameResolver: NameResolver ): FirExpression? { // TODO: val isUnsigned = Flags.IS_UNSIGNED.get(value.flags) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/FirMemberDeserializer.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/FirMemberDeserializer.kt index 2930c4b7c4a..9f0f007d837 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/FirMemberDeserializer.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/deserialization/FirMemberDeserializer.kt @@ -25,6 +25,7 @@ import org.jetbrains.kotlin.metadata.deserialization.* import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.name.FqName import org.jetbrains.kotlin.serialization.deserialization.ProtoEnumFlags +import org.jetbrains.kotlin.serialization.deserialization.builtins.BuiltInSerializerProtocol import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.serialization.deserialization.getName @@ -193,6 +194,11 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) { FirDefaultPropertySetter(null, c.session, returnTypeRef, ProtoEnumFlags.visibility(Flags.VISIBILITY.get(setterFlags))) } else null this.containerSource = c.containerSource + this.initializer = if (Flags.HAS_CONSTANT.get(flags)) { + proto.getExtensionOrNull(BuiltInSerializerProtocol.compileTimeValue)?.let { + c.annotationDeserializer.resolveValue(returnTypeRef, it, c.nameResolver) + } + } else null } } diff --git a/compiler/testData/codegen/box/binaryOp/overflowChar.kt b/compiler/testData/codegen/box/binaryOp/overflowChar.kt index 3401ad46a6d..9fc3a9adc82 100644 --- a/compiler/testData/codegen/box/binaryOp/overflowChar.kt +++ b/compiler/testData/codegen/box/binaryOp/overflowChar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun box(): String { val c1: Char = Char.MIN_VALUE val c2 = c1 - 1 diff --git a/compiler/testData/codegen/box/binaryOp/overflowInt.kt b/compiler/testData/codegen/box/binaryOp/overflowInt.kt index 4f138fb7e30..4d5b899987f 100644 --- a/compiler/testData/codegen/box/binaryOp/overflowInt.kt +++ b/compiler/testData/codegen/box/binaryOp/overflowInt.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun box(): String { val i1: Int = Int.MAX_VALUE val i2 = i1 + 1 diff --git a/compiler/testData/codegen/box/binaryOp/overflowLong.kt b/compiler/testData/codegen/box/binaryOp/overflowLong.kt index fb121008dff..28d37ab1c12 100644 --- a/compiler/testData/codegen/box/binaryOp/overflowLong.kt +++ b/compiler/testData/codegen/box/binaryOp/overflowLong.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun box(): String { val a: Long = 2147483647 + 1 if (a != -2147483648L) return "fail: in this case we should add to ints and than cast the result to long - overflow expected" diff --git a/compiler/testData/codegen/box/intrinsics/defaultObjectMapping.kt b/compiler/testData/codegen/box/intrinsics/defaultObjectMapping.kt index 3141eddc059..05d67ca4839 100644 --- a/compiler/testData/codegen/box/intrinsics/defaultObjectMapping.kt +++ b/compiler/testData/codegen/box/intrinsics/defaultObjectMapping.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/intrinsics/kt12125.kt b/compiler/testData/codegen/box/intrinsics/kt12125.kt index 2bc87f4f2d3..c45ffb3f57c 100644 --- a/compiler/testData/codegen/box/intrinsics/kt12125.kt +++ b/compiler/testData/codegen/box/intrinsics/kt12125.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun test(i: Int): Int { return i } diff --git a/compiler/testData/codegen/box/intrinsics/kt12125_inc.kt b/compiler/testData/codegen/box/intrinsics/kt12125_inc.kt index 15aadf61657..f531e713ef5 100644 --- a/compiler/testData/codegen/box/intrinsics/kt12125_inc.kt +++ b/compiler/testData/codegen/box/intrinsics/kt12125_inc.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun test(i: Int): Int { return i } diff --git a/compiler/testData/codegen/box/intrinsics/kt8666.kt b/compiler/testData/codegen/box/intrinsics/kt8666.kt index 93dbd6cd672..babdea592d3 100644 --- a/compiler/testData/codegen/box/intrinsics/kt8666.kt +++ b/compiler/testData/codegen/box/intrinsics/kt8666.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: JS_IR val MAX_LONG = "9223372036854775807" val PREFIX = "max = " diff --git a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/byteCompanionObject.kt b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/byteCompanionObject.kt index 73838f5be1c..1e539afbceb 100644 --- a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/byteCompanionObject.kt +++ b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/byteCompanionObject.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun assertEquals(a: T, b: T) { if (a != b) throw AssertionError("$a != $b") } diff --git a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/charCompanionObject.kt b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/charCompanionObject.kt index 6718e5af6f7..31e55f43f32 100644 --- a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/charCompanionObject.kt +++ b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/charCompanionObject.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun assertEquals(a: T, b: T) { if (a != b) throw AssertionError("$a != $b") } diff --git a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/intCompanionObject.kt b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/intCompanionObject.kt index 5bc912c8b80..79aeca44f55 100644 --- a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/intCompanionObject.kt +++ b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/intCompanionObject.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun assertEquals(a: T, b: T) { if (a != b) throw AssertionError("$a != $b") } diff --git a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/longCompanionObject.kt b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/longCompanionObject.kt index b7523b484c8..a40231e5241 100644 --- a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/longCompanionObject.kt +++ b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/longCompanionObject.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun assertEquals(a: T, b: T) { if (a != b) throw AssertionError("$a != $b") } diff --git a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/shortCompanionObject.kt b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/shortCompanionObject.kt index 74075b2967c..63f4a386e11 100644 --- a/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/shortCompanionObject.kt +++ b/compiler/testData/codegen/box/objects/companionObjectAccess/primitiveCompanion/shortCompanionObject.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun assertEquals(a: T, b: T) { if (a != b) throw AssertionError("$a != $b") } diff --git a/compiler/testData/codegen/box/ranges/contains/inOptimizableIntRange.kt b/compiler/testData/codegen/box/ranges/contains/inOptimizableIntRange.kt index 3595ad8c7a8..f43735658c2 100644 --- a/compiler/testData/codegen/box/ranges/contains/inOptimizableIntRange.kt +++ b/compiler/testData/codegen/box/ranges/contains/inOptimizableIntRange.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: JS_IR // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS diff --git a/compiler/testData/codegen/box/ranges/contains/inOptimizableLongRange.kt b/compiler/testData/codegen/box/ranges/contains/inOptimizableLongRange.kt index b38f6f1d1d4..9efa1bf15a9 100644 --- a/compiler/testData/codegen/box/ranges/contains/inOptimizableLongRange.kt +++ b/compiler/testData/codegen/box/ranges/contains/inOptimizableLongRange.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: JS_IR // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS diff --git a/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt index 78d621cfed8..a592036e53f 100644 --- a/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt index 3b542c6c2f0..ae54707d932 100644 --- a/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt index ba49b1495c0..c293d3290ad 100644 --- a/compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt index a77724615de..3e9d5db76b2 100644 --- a/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt index 7abdc2a39e4..d6d328d3d54 100644 --- a/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt index 8e5175ebc90..4bea53e1dce 100644 --- a/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt index 53a96ca428c..c8114c1f0e5 100644 --- a/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt index b45edea8daa..197e3b9821e 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt index 7d09cbd5467..d0a1626c111 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt index 60c90f79349..358bf03cd83 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt index 0641d4e5e54..6d35923a49e 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt index c5b634572e3..527d1b71135 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMaxValue.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMaxValue.kt index bdef0d8b22e..3aabce5cc85 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValue.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValue.kt index d51f7c4f18c..3771a28b0aa 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValue.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValueNonConst.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValueNonConst.kt index 164b3122669..1e1590e66ef 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValueNonConst.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilCharMinValueNonConst.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMaxValue.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMaxValue.kt index 88471bcedfb..bf012c8d0ff 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValue.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValue.kt index 1249c82371e..31ae7acede2 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValue.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValueNonConst.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValueNonConst.kt index 3deae7a00dc..c57d55a4b43 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValueNonConst.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilIntMinValueNonConst.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMaxValue.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMaxValue.kt index f98fed999fb..902452e4a34 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValue.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValue.kt index 7eaa76056df..b44b7f9f440 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValue.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValueNonConst.kt b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValueNonConst.kt index f66a9cd88a1..9d770d043a8 100644 --- a/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValueNonConst.kt +++ b/compiler/testData/codegen/box/ranges/forInUntil/forInUntilLongMinValueNonConst.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValue.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValue.kt index 1d857f4143f..2a70ba6b146 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValue.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Char.MIN_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValueReversed.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValueReversed.kt index 869194a8eed..9c129160c66 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValueReversed.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToCharMinValueReversed.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Char.MIN_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValue.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValue.kt index 3ecf39acb90..901769c7ef4 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValue.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Int.MIN_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValueReversed.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValueReversed.kt index bb4ec853516..e7d894ec0c1 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValueReversed.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToIntMinValueReversed.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Int.MIN_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValue.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValue.kt index 4a8c0e28b33..451ba31d1db 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValue.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Long.MIN_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValueReversed.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValueReversed.kt index 185a1614ab4..94e3d184771 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValueReversed.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInDownToLongMinValueReversed.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Long.MIN_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValue.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValue.kt index a9ec5ab7917..e11176265bc 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR const val M = Char.MAX_VALUE fun box(): String { diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValueReversed.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValueReversed.kt index b7a702680fd..5de30bd36af 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValueReversed.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToCharMaxValueReversed.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Char.MAX_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValue.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValue.kt index 7b897e13996..b5cce712005 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR const val M = Int.MAX_VALUE fun box(): String { diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValueReversed.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValueReversed.kt index af4e2229b31..8e98a8c48a6 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValueReversed.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToIntMaxValueReversed.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Int.MAX_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValue.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValue.kt index 933869f02ce..5f0b3f77c9c 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR const val M = Long.MAX_VALUE fun box(): String { diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValueReversed.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValueReversed.kt index 26f75bfecf8..b06b2417660 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValueReversed.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInRangeToLongMaxValueReversed.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Long.MAX_VALUE diff --git a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInUntilIntMinValueReversed.kt b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInUntilIntMinValueReversed.kt index 1e78b4f2067..bd269a4fb79 100644 --- a/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInUntilIntMinValueReversed.kt +++ b/compiler/testData/codegen/box/ranges/forWithPossibleOverflow/forInUntilIntMinValueReversed.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME const val M = Int.MIN_VALUE diff --git a/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt index 4d83bfdee29..608831ca053 100644 --- a/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt index ed550940f85..d6818e904fc 100644 --- a/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt index 3d7adce8049..48174dad262 100644 --- a/compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt index bd10709ec88..f2d801eff52 100644 --- a/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt index f69e487dde9..2c72366d82c 100644 --- a/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt index 025fac84b11..ab5e0a6d267 100644 --- a/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt index af939287d46..f6b979cfb03 100644 --- a/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt index cd3d66cc25a..5accc82a5df 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt index e9c612b3f88..b49cb72beba 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt index bc6f997d786..b7a4918f2be 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt index f40c16bfd79..4f0f6db2a29 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt index 58cc177f9e7..8b552bd79b1 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToMinValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToMinValueStepMaxValue.kt index 3aa63815895..8afc4ddd45f 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToMinValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToMinValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToOneStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToOneStepMaxValue.kt index 5021458345d..071bd39161c 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToOneStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToOneStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToZeroStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToZeroStepMaxValue.kt index f9e29662a03..72e798d2533 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToZeroStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/downTo/maxValueToZeroStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/minValueToMaxValueStepMaxValue.kt index 87bf6bfab24..ae8588bfc30 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/oneToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/oneToMaxValueStepMaxValue.kt index d5171c10deb..75534998b14 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/oneToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/oneToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/zeroToMaxValueStepMaxValue.kt index 744331a52db..a9961799e03 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/rangeTo/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgressionToMinValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgressionToMinValue.kt index d25401a0916..1f6de2f61e5 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgressionToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/until/emptyProgressionToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/until/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/until/minValueToMaxValueStepMaxValue.kt index f2a08799dcc..7a47e95b19f 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/until/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/until/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/expression/until/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/expression/until/zeroToMaxValueStepMaxValue.kt index ac09110f16a..726f3fe9f03 100644 --- a/compiler/testData/codegen/box/ranges/stepped/expression/until/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/expression/until/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToMinValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToMinValueStepMaxValue.kt index 470dd8b8724..b7a64c00a7c 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToMinValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToMinValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToOneStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToOneStepMaxValue.kt index 4cf5098bd02..e6d93a96a39 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToOneStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToOneStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToZeroStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToZeroStepMaxValue.kt index 2c30ef93b0b..22f66590857 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToZeroStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/downTo/maxValueToZeroStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/minValueToMaxValueStepMaxValue.kt index d56f65dd4a6..88027551d59 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/oneToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/oneToMaxValueStepMaxValue.kt index f12d460557f..d79493b8bab 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/oneToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/oneToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/zeroToMaxValueStepMaxValue.kt index 9e885d858d2..376e1f67463 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/rangeTo/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgressionToMinValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgressionToMinValue.kt index ab87535a94b..95ccbeeb8ff 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgressionToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/until/emptyProgressionToMinValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/until/minValueToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/until/minValueToMaxValueStepMaxValue.kt index 31f5863cbd3..8176a766ef3 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/until/minValueToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/until/minValueToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/stepped/literal/until/zeroToMaxValueStepMaxValue.kt b/compiler/testData/codegen/box/ranges/stepped/literal/until/zeroToMaxValueStepMaxValue.kt index d32da7de43b..3998f56dacf 100644 --- a/compiler/testData/codegen/box/ranges/stepped/literal/until/zeroToMaxValueStepMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/stepped/literal/until/zeroToMaxValueStepMaxValue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // Auto-generated by GenerateSteppedRangesCodegenTestData. Do not edit! // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt b/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt index 5fc0590c647..0950cc04632 100644 --- a/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt +++ b/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/when/edgeCases.kt b/compiler/testData/codegen/box/when/edgeCases.kt index c5f078e9f8c..df5289d5a5a 100644 --- a/compiler/testData/codegen/box/when/edgeCases.kt +++ b/compiler/testData/codegen/box/when/edgeCases.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND_FIR: JVM_IR fun foo(x: Int): String { return when (x) { 2_147_483_647 -> "MAX"