diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIntrinsics.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIntrinsics.kt index 1820215231f..ff0c1ec70f6 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIntrinsics.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIntrinsics.kt @@ -148,8 +148,8 @@ class JsIntrinsics(private val irBuiltIns: IrBuiltIns, val context: JsIrBackendC val jsNumberRangeToNumber = getInternalFunction("numberRangeToNumber") val jsNumberRangeToLong = getInternalFunction("numberRangeToLong") - val longConstructor = - context.symbolTable.referenceConstructor(context.getClass(FqName("kotlin.Long")).constructors.single()) + val longClassSymbol = getInternalClassWithoutPackage("kotlin.Long") + val longToDouble = context.symbolTable.referenceSimpleFunction( context.getClass(FqName("kotlin.Long")).unsubstitutedMemberScope.findSingleFunction( Name.identifier("toDouble") @@ -161,7 +161,12 @@ class JsIntrinsics(private val irBuiltIns: IrBuiltIns, val context: JsIrBackendC ) ) - val charConstructor = context.symbolTable.referenceConstructor(context.getClass(KotlinBuiltIns.FQ_NAMES._char.toSafe()).constructors.single()) + val charClassSymbol = getInternalClassWithoutPackage("kotlin.Char") + + val uByteClassSymbol = getInternalClassWithoutPackage("kotlin.UByte") + val uShortClassSymbol = getInternalClassWithoutPackage("kotlin.UShort") + val uIntClassSymbol = getInternalClassWithoutPackage("kotlin.UInt") + val uLongClassSymbol = getInternalClassWithoutPackage("kotlin.ULong") val unreachable = defineUnreachableIntrinsic() @@ -222,6 +227,9 @@ class JsIntrinsics(private val irBuiltIns: IrBuiltIns, val context: JsIrBackendC private fun getInternalWithoutPackage(name: String) = context.symbolTable.referenceSimpleFunction(context.getFunctions(FqName(name)).single()) + private fun getInternalClassWithoutPackage(fqName: String) = + context.symbolTable.referenceClass(context.getClass(FqName(fqName))) + // TODO: unify how we create intrinsic symbols private fun defineObjectCreateIntrinsic() = JsIrBuilder.buildFunction("Object\$create", isInline = true, origin = JsLoweredDeclarationOrigin.JS_INTRINSICS_STUB).also { diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt index 6daef8c61c2..c087142892c 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt @@ -23,6 +23,7 @@ import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction import org.jetbrains.kotlin.ir.declarations.* import org.jetbrains.kotlin.ir.expressions.* import org.jetbrains.kotlin.ir.expressions.impl.IrCallImpl +import org.jetbrains.kotlin.ir.expressions.impl.IrConstImpl import org.jetbrains.kotlin.ir.symbols.IrClassSymbol import org.jetbrains.kotlin.ir.symbols.IrFunctionSymbol import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol @@ -189,18 +190,13 @@ class IntrinsicifyCallsLowering(private val context: JsIrBackendContext) : FileL for (type in arrayOf(irBuiltIns.byteType, irBuiltIns.intType)) { op(type, ConversionNames.TO_CHAR) { - irCall(it, intrinsics.charConstructor, dispatchReceiverAsFirstArgument = true) + irCall(it, intrinsics.charClassSymbol.constructors.single(), dispatchReceiverAsFirstArgument = true) } } for (type in arrayOf(irBuiltIns.floatType, irBuiltIns.doubleType)) { op(type, ConversionNames.TO_CHAR) { - IrCallImpl( - it.startOffset, - it.endOffset, - irBuiltIns.charType, - intrinsics.charConstructor - ).apply { + JsIrBuilder.buildCall(intrinsics.charClassSymbol.constructors.single()).apply { putValueArgument(0, irCall(it, intrinsics.jsNumberToInt, dispatchReceiverAsFirstArgument = true)) } } @@ -306,42 +302,47 @@ class IntrinsicifyCallsLowering(private val context: JsIrBackendContext) : FileL } } - private fun lowerLongConst(value: Long, startOffset: Int = UNDEFINED_OFFSET, endOffset: Int = UNDEFINED_OFFSET): IrExpression { - val high = (value shr 32).toInt() - val low = value.toInt() - return IrCallImpl( - startOffset, - endOffset, - irBuiltIns.longType, - context.intrinsics.longConstructor - ).apply { - putValueArgument(0, JsIrBuilder.buildInt(context.irBuiltIns.intType, low)) - putValueArgument(1, JsIrBuilder.buildInt(context.irBuiltIns.intType, high)) - } - } - - private fun lowerCharConst(value: Char, startOffset: Int = UNDEFINED_OFFSET, endOffset: Int = UNDEFINED_OFFSET): IrExpression { - return IrCallImpl( - startOffset, - endOffset, - irBuiltIns.charType, - context.intrinsics.charConstructor - ).apply { - putValueArgument(0, JsIrBuilder.buildInt(context.irBuiltIns.intType, value.toInt())) - } - } - override fun lower(irFile: IrFile) { irFile.transform(object : IrElementTransformerVoid() { + private fun lowerConst( + irClass: IrClassSymbol, + carrierFactory: (Int, Int, IrType, C) -> IrExpression, + vararg args: C + ): IrExpression { + val constructor = irClass.constructors.single() + val argType = constructor.owner.valueParameters.first().type + return JsIrBuilder.buildCall(constructor).apply { + for (i in args.indices) { + putValueArgument(i, carrierFactory(UNDEFINED_OFFSET, UNDEFINED_OFFSET, argType, args[i])) + } + } + } + + private fun createLong(v: Long): IrExpression = lowerConst(context.intrinsics.longClassSymbol, IrConstImpl<*>::int, v.toInt(), (v shr 32).toInt()) // TODO should this be a separate lowering? override fun visitConst(expression: IrConst): IrExpression { - if (expression.kind is IrConstKind.Long) { - return lowerLongConst(IrConstKind.Long.valueOf(expression), expression.startOffset, expression.endOffset) - } else if (expression.kind is IrConstKind.Char) { - return lowerCharConst(IrConstKind.Char.valueOf(expression), expression.startOffset, expression.endOffset) + with(context.intrinsics) { + return when (expression.type.classifierOrNull) { + uByteClassSymbol -> lowerConst(uByteClassSymbol, IrConstImpl<*>::byte, IrConstKind.Byte.valueOf(expression)) + + uShortClassSymbol -> lowerConst(uShortClassSymbol, IrConstImpl<*>::short, IrConstKind.Short.valueOf(expression)) + + uIntClassSymbol -> lowerConst(uIntClassSymbol, IrConstImpl<*>::int, IrConstKind.Int.valueOf(expression)) + + uLongClassSymbol -> lowerConst(uLongClassSymbol, { _, _, _, v -> createLong(v) }, IrConstKind.Long.valueOf(expression)) + + else -> when { + expression.kind is IrConstKind.Char -> + lowerConst(charClassSymbol, IrConstImpl<*>::int, IrConstKind.Char.valueOf(expression).toInt()) + + expression.kind is IrConstKind.Long -> + createLong(IrConstKind.Long.valueOf(expression)) + + else -> super.visitConst(expression) + } + } } - return super.visitConst(expression) } override fun visitCall(expression: IrCall): IrExpression { diff --git a/compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt b/compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt index 8e770e2730c..a873b47654a 100644 --- a/compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt +++ b/compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR val xs = Array(2) { 42u } diff --git a/compiler/testData/codegen/box/ranges/expression/emptyDownto.kt b/compiler/testData/codegen/box/ranges/expression/emptyDownto.kt index 676e3390a3f..d1175ddc353 100644 --- a/compiler/testData/codegen/box/ranges/expression/emptyDownto.kt +++ b/compiler/testData/codegen/box/ranges/expression/emptyDownto.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/emptyRange.kt b/compiler/testData/codegen/box/ranges/expression/emptyRange.kt index 90d35ca873c..ac4c66a7678 100644 --- a/compiler/testData/codegen/box/ranges/expression/emptyRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/emptyRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt index e146534d02e..821996b64af 100644 --- a/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/inexactDownToMinValue.kt @@ -1,9 +1,9 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR +// TODO: muted automatically, investigate should it be ran for JS_IR or not +// IGNORE_BACKEND: JS_IR + // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/inexactSteppedDownTo.kt b/compiler/testData/codegen/box/ranges/expression/inexactSteppedDownTo.kt index ff082a4d829..527fc5e4e71 100644 --- a/compiler/testData/codegen/box/ranges/expression/inexactSteppedDownTo.kt +++ b/compiler/testData/codegen/box/ranges/expression/inexactSteppedDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/inexactSteppedRange.kt b/compiler/testData/codegen/box/ranges/expression/inexactSteppedRange.kt index 7ba59168a47..2612a2bfb49 100644 --- a/compiler/testData/codegen/box/ranges/expression/inexactSteppedRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/inexactSteppedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt index 74099b5ee8c..d89015b209b 100644 --- a/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/inexactToMaxValue.kt @@ -1,9 +1,9 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR +// TODO: muted automatically, investigate should it be ran for JS_IR or not +// IGNORE_BACKEND: JS_IR + // 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 9551ccf9531..d2917ec234b 100644 --- a/compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/maxValueMinusTwoToMaxValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt index a3bb6020037..d29d8ac9985 100644 --- a/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/maxValueToMaxValue.kt @@ -1,5 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt index 8847c6cc0e5..cd02cc7801d 100644 --- a/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/maxValueToMinValue.kt @@ -1,5 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/oneElementDownTo.kt b/compiler/testData/codegen/box/ranges/expression/oneElementDownTo.kt index aa71c78bb2e..324534b2c83 100644 --- a/compiler/testData/codegen/box/ranges/expression/oneElementDownTo.kt +++ b/compiler/testData/codegen/box/ranges/expression/oneElementDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/oneElementRange.kt b/compiler/testData/codegen/box/ranges/expression/oneElementRange.kt index 40460d60b8f..5364fa72fbc 100644 --- a/compiler/testData/codegen/box/ranges/expression/oneElementRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/oneElementRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/openRange.kt b/compiler/testData/codegen/box/ranges/expression/openRange.kt index cd1b50b4f96..3f963163fb4 100644 --- a/compiler/testData/codegen/box/ranges/expression/openRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/openRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt index 2ae112052c3..7af329851d0 100644 --- a/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/overflowZeroDownToMaxValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt index a6fef4623ff..bff4ac7142a 100644 --- a/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/overflowZeroToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt index 51cef35724d..031b500c538 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionDownToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt index 38b5e2a65c0..a047d798697 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueMinusTwoToMaxValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt index dfb0160a940..500dd236cc5 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMaxValue.kt @@ -1,5 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt index 4945139fcad..8612a911eb9 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMaxValueToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt b/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt index 21cf7f4af01..9fdef2140ef 100644 --- a/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/expression/progressionMinValueToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/reversedBackSequence.kt b/compiler/testData/codegen/box/ranges/expression/reversedBackSequence.kt index 86d29b0a6a5..6f578b97db4 100644 --- a/compiler/testData/codegen/box/ranges/expression/reversedBackSequence.kt +++ b/compiler/testData/codegen/box/ranges/expression/reversedBackSequence.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/reversedEmptyBackSequence.kt b/compiler/testData/codegen/box/ranges/expression/reversedEmptyBackSequence.kt index 0e48e2a7a0e..275f0a9465f 100644 --- a/compiler/testData/codegen/box/ranges/expression/reversedEmptyBackSequence.kt +++ b/compiler/testData/codegen/box/ranges/expression/reversedEmptyBackSequence.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/reversedEmptyRange.kt b/compiler/testData/codegen/box/ranges/expression/reversedEmptyRange.kt index 038ebce08a3..d000a9409a2 100644 --- a/compiler/testData/codegen/box/ranges/expression/reversedEmptyRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/reversedEmptyRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/reversedInexactSteppedDownTo.kt b/compiler/testData/codegen/box/ranges/expression/reversedInexactSteppedDownTo.kt index 4e692c527cf..71fae483a10 100644 --- a/compiler/testData/codegen/box/ranges/expression/reversedInexactSteppedDownTo.kt +++ b/compiler/testData/codegen/box/ranges/expression/reversedInexactSteppedDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/reversedRange.kt b/compiler/testData/codegen/box/ranges/expression/reversedRange.kt index 3c05c4ec436..79a46c6e52b 100644 --- a/compiler/testData/codegen/box/ranges/expression/reversedRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/reversedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/reversedSimpleSteppedRange.kt b/compiler/testData/codegen/box/ranges/expression/reversedSimpleSteppedRange.kt index 2ca41ad5494..274ed6c9ad2 100644 --- a/compiler/testData/codegen/box/ranges/expression/reversedSimpleSteppedRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/reversedSimpleSteppedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/simpleDownTo.kt b/compiler/testData/codegen/box/ranges/expression/simpleDownTo.kt index 7c17e8f3824..36a8bd70166 100644 --- a/compiler/testData/codegen/box/ranges/expression/simpleDownTo.kt +++ b/compiler/testData/codegen/box/ranges/expression/simpleDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/simpleRange.kt b/compiler/testData/codegen/box/ranges/expression/simpleRange.kt index c9a2fb6ccf1..99198bef906 100644 --- a/compiler/testData/codegen/box/ranges/expression/simpleRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/simpleRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/simpleRangeWithNonConstantEnds.kt b/compiler/testData/codegen/box/ranges/expression/simpleRangeWithNonConstantEnds.kt index 7e0917ab832..402cf5cb712 100644 --- a/compiler/testData/codegen/box/ranges/expression/simpleRangeWithNonConstantEnds.kt +++ b/compiler/testData/codegen/box/ranges/expression/simpleRangeWithNonConstantEnds.kt @@ -1,9 +1,9 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR +// TODO: muted automatically, investigate should it be ran for JS_IR or not +// IGNORE_BACKEND: JS_IR + // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/expression/simpleSteppedDownTo.kt b/compiler/testData/codegen/box/ranges/expression/simpleSteppedDownTo.kt index 303dcb45b69..c18026145fa 100644 --- a/compiler/testData/codegen/box/ranges/expression/simpleSteppedDownTo.kt +++ b/compiler/testData/codegen/box/ranges/expression/simpleSteppedDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/expression/simpleSteppedRange.kt b/compiler/testData/codegen/box/ranges/expression/simpleSteppedRange.kt index d7ad9b5a894..a35ff2a83a2 100644 --- a/compiler/testData/codegen/box/ranges/expression/simpleSteppedRange.kt +++ b/compiler/testData/codegen/box/ranges/expression/simpleSteppedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/emptyDownto.kt b/compiler/testData/codegen/box/ranges/literal/emptyDownto.kt index 4f77f3a3d50..66f002bac45 100644 --- a/compiler/testData/codegen/box/ranges/literal/emptyDownto.kt +++ b/compiler/testData/codegen/box/ranges/literal/emptyDownto.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/emptyRange.kt b/compiler/testData/codegen/box/ranges/literal/emptyRange.kt index 0d6381c685b..fcc2c2202f4 100644 --- a/compiler/testData/codegen/box/ranges/literal/emptyRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/emptyRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt index 5c3c903806d..eb4cee7bdfe 100644 --- a/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/inexactDownToMinValue.kt @@ -1,9 +1,9 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR +// TODO: muted automatically, investigate should it be ran for JS_IR or not +// IGNORE_BACKEND: JS_IR + // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/inexactSteppedDownTo.kt b/compiler/testData/codegen/box/ranges/literal/inexactSteppedDownTo.kt index eefb1dc7607..e0e9162f0db 100644 --- a/compiler/testData/codegen/box/ranges/literal/inexactSteppedDownTo.kt +++ b/compiler/testData/codegen/box/ranges/literal/inexactSteppedDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/inexactSteppedRange.kt b/compiler/testData/codegen/box/ranges/literal/inexactSteppedRange.kt index 881b1b1c45d..e2a08761baf 100644 --- a/compiler/testData/codegen/box/ranges/literal/inexactSteppedRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/inexactSteppedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt index d65eba48651..82e19137b89 100644 --- a/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/inexactToMaxValue.kt @@ -1,9 +1,9 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR +// TODO: muted automatically, investigate should it be ran for JS_IR or not +// IGNORE_BACKEND: JS_IR + // 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 506ec4a7f1d..4099957bec1 100644 --- a/compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/maxValueMinusTwoToMaxValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt index 3952bef6a75..79bc05f1ed0 100644 --- a/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/maxValueToMaxValue.kt @@ -1,5 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt index 007826dffee..c11bf9d6025 100644 --- a/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/maxValueToMinValue.kt @@ -1,5 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/oneElementDownTo.kt b/compiler/testData/codegen/box/ranges/literal/oneElementDownTo.kt index 3f2ed575777..13bc2decfcf 100644 --- a/compiler/testData/codegen/box/ranges/literal/oneElementDownTo.kt +++ b/compiler/testData/codegen/box/ranges/literal/oneElementDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/oneElementRange.kt b/compiler/testData/codegen/box/ranges/literal/oneElementRange.kt index 35282c0146b..7e0b1fb1417 100644 --- a/compiler/testData/codegen/box/ranges/literal/oneElementRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/oneElementRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/openRange.kt b/compiler/testData/codegen/box/ranges/literal/openRange.kt index 7d755b1ee7f..4992ef4ae07 100644 --- a/compiler/testData/codegen/box/ranges/literal/openRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/openRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt index c34ee8264bc..24cad8504f0 100644 --- a/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/overflowZeroDownToMaxValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt index 0a82d4f3c7d..cb0e8e0a1a9 100644 --- a/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/overflowZeroToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt index f7a16c80114..0a4d83e90ed 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionDownToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt index a4841f9ebe9..ed1d58fbba1 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueMinusTwoToMaxValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt index e3a42220969..6269d4a9a8c 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMaxValue.kt @@ -1,5 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt index 9c23ae71d0d..895897a0e76 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMaxValueToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt b/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt index 6b2c6f31697..9159deff373 100644 --- a/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt +++ b/compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/reversedBackSequence.kt b/compiler/testData/codegen/box/ranges/literal/reversedBackSequence.kt index 2afe50ed762..713937883c3 100644 --- a/compiler/testData/codegen/box/ranges/literal/reversedBackSequence.kt +++ b/compiler/testData/codegen/box/ranges/literal/reversedBackSequence.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/reversedEmptyBackSequence.kt b/compiler/testData/codegen/box/ranges/literal/reversedEmptyBackSequence.kt index ec67083004c..c0ec9b72800 100644 --- a/compiler/testData/codegen/box/ranges/literal/reversedEmptyBackSequence.kt +++ b/compiler/testData/codegen/box/ranges/literal/reversedEmptyBackSequence.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/reversedEmptyRange.kt b/compiler/testData/codegen/box/ranges/literal/reversedEmptyRange.kt index afd9c689c33..534eed0bf51 100644 --- a/compiler/testData/codegen/box/ranges/literal/reversedEmptyRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/reversedEmptyRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/reversedInexactSteppedDownTo.kt b/compiler/testData/codegen/box/ranges/literal/reversedInexactSteppedDownTo.kt index 8396bf0f958..2b286141a6c 100644 --- a/compiler/testData/codegen/box/ranges/literal/reversedInexactSteppedDownTo.kt +++ b/compiler/testData/codegen/box/ranges/literal/reversedInexactSteppedDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/reversedRange.kt b/compiler/testData/codegen/box/ranges/literal/reversedRange.kt index 6173cf10da9..f72d266189c 100644 --- a/compiler/testData/codegen/box/ranges/literal/reversedRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/reversedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/reversedSimpleSteppedRange.kt b/compiler/testData/codegen/box/ranges/literal/reversedSimpleSteppedRange.kt index f2c0db938fc..0846765bd7e 100644 --- a/compiler/testData/codegen/box/ranges/literal/reversedSimpleSteppedRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/reversedSimpleSteppedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/simpleDownTo.kt b/compiler/testData/codegen/box/ranges/literal/simpleDownTo.kt index 1f5b1eb874d..a32ae5b24bc 100644 --- a/compiler/testData/codegen/box/ranges/literal/simpleDownTo.kt +++ b/compiler/testData/codegen/box/ranges/literal/simpleDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/simpleRange.kt b/compiler/testData/codegen/box/ranges/literal/simpleRange.kt index 7a44f916ee0..4aea30fc673 100644 --- a/compiler/testData/codegen/box/ranges/literal/simpleRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/simpleRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/simpleRangeWithNonConstantEnds.kt b/compiler/testData/codegen/box/ranges/literal/simpleRangeWithNonConstantEnds.kt index a91faa152ec..db6ae1bbd0a 100644 --- a/compiler/testData/codegen/box/ranges/literal/simpleRangeWithNonConstantEnds.kt +++ b/compiler/testData/codegen/box/ranges/literal/simpleRangeWithNonConstantEnds.kt @@ -1,9 +1,9 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR +// TODO: muted automatically, investigate should it be ran for JS_IR or not +// IGNORE_BACKEND: JS_IR + // Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT! // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/literal/simpleSteppedDownTo.kt b/compiler/testData/codegen/box/ranges/literal/simpleSteppedDownTo.kt index bd410e26e8a..f997f2b6205 100644 --- a/compiler/testData/codegen/box/ranges/literal/simpleSteppedDownTo.kt +++ b/compiler/testData/codegen/box/ranges/literal/simpleSteppedDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/ranges/literal/simpleSteppedRange.kt b/compiler/testData/codegen/box/ranges/literal/simpleSteppedRange.kt index 9f407ee2624..dd4a1378e9e 100644 --- a/compiler/testData/codegen/box/ranges/literal/simpleSteppedRange.kt +++ b/compiler/testData/codegen/box/ranges/literal/simpleSteppedRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS_IR or not -// IGNORE_BACKEND: JS_IR - // TODO: muted automatically, investigate should it be ran for JVM_IR or not // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/codegen/box/unsignedTypes/boxConstValOfUnsignedType.kt b/compiler/testData/codegen/box/unsignedTypes/boxConstValOfUnsignedType.kt index d7e628521b5..09102834186 100644 --- a/compiler/testData/codegen/box/unsignedTypes/boxConstValOfUnsignedType.kt +++ b/compiler/testData/codegen/box/unsignedTypes/boxConstValOfUnsignedType.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR const val maxUByte: UByte = 0xFFu diff --git a/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt b/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt index 0a6059b2425..fbe82a8e427 100644 --- a/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt +++ b/compiler/testData/codegen/box/unsignedTypes/checkBasicUnsignedLiterals.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR fun box(): String { val good = 42.toUInt() diff --git a/compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt b/compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt index 1c10448a212..007916a9145 100644 --- a/compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt +++ b/compiler/testData/codegen/box/unsignedTypes/forEachIndexedInListOfUInts.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR // WITH_UNSIGNED fun box(): String { diff --git a/compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt b/compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt index 014bc3c460d..f1c7130cdbb 100644 --- a/compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt +++ b/compiler/testData/codegen/box/unsignedTypes/iterateOverListOfBoxedUnsignedValues.kt @@ -1,6 +1,5 @@ // WITH_UNSIGNED // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR fun box(): String { var sum = 0u diff --git a/compiler/testData/codegen/box/unsignedTypes/kt25784.kt b/compiler/testData/codegen/box/unsignedTypes/kt25784.kt index e265730e4cf..d6f87686d16 100644 --- a/compiler/testData/codegen/box/unsignedTypes/kt25784.kt +++ b/compiler/testData/codegen/box/unsignedTypes/kt25784.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR import kotlin.reflect.KProperty import kotlin.reflect.KProperty0 diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt index 9c2b1771f7f..54f328847ff 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsForMaxLongValue.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR fun box(): String { val maxULong = 0xFFFF_FFFF_FFFF_FFFFuL diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt index a954056131b..07a36fea49a 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedLiteralsWithSignedOverflow.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR fun box(): String { val u1: UByte = 255u diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt index d5b30db8f91..8d6f15a738e 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JS_IR, JVM_IR +// IGNORE_BACKEND: JVM_IR fun prefixDecrementUByteLocal(): Any? { var a: UByte = 0u diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt index 954913034a2..6008d89a6f9 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt @@ -1,5 +1,5 @@ // WITH_UNSIGNED -// IGNORE_BACKEND: JVM_IR, JS_IR +// IGNORE_BACKEND: JVM_IR const val MAX_BYTE: UByte = 0xFFu const val HUNDRED: UByte = 100u diff --git a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java index 7f1b92432ae..8c1e8ae073c 100644 --- a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java +++ b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateRangesCodegenTestData.java @@ -121,6 +121,10 @@ public class GenerateRangesCodegenTestData { private static final List IGNORED_FOR_JS_BACKEND = Collections.emptyList(); + private static final List IGNORED_FOR_JS_IR_BACKEND = Arrays.asList("inexactDownToMinValue.kt", + "inexactToMaxValue.kt", + "simpleRangeWithNonConstantEnds.kt"); + private static final List IGNORED_FOR_NATIVE_BACKEND = Collections.emptyList(); private static void writeIgnoreBackendDirective(PrintWriter out, String backendName) { @@ -138,13 +142,15 @@ public class GenerateRangesCodegenTestData { throw new AssertionError(e); } - // Ranges are not supported in JS_IR, JVM_IR yet - writeIgnoreBackendDirective(out, "JS_IR"); + // Ranges are not supported in JVM_IR yet writeIgnoreBackendDirective(out, "JVM_IR"); if (IGNORED_FOR_JS_BACKEND.contains(file.getName())) { writeIgnoreBackendDirective(out, "JS"); } + if (IGNORED_FOR_JS_IR_BACKEND.contains(file.getName())) { + writeIgnoreBackendDirective(out, "JS_IR"); + } if (IGNORED_FOR_NATIVE_BACKEND.contains(file.getName())) { writeIgnoreBackendDirective(out, "NATIVE"); }