diff --git a/compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt b/compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt index cee2efdf235..4a7d83c589e 100644 --- a/compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt +++ b/compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME operator fun ArrayList.get(index1: Int, index2: Int) = this[index1 + index2] operator fun ArrayList.set(index1: Int, index2: Int, elem: String) { diff --git a/compiler/testData/codegen/box/arrays/collectionGetMultiIndex.kt b/compiler/testData/codegen/box/arrays/collectionGetMultiIndex.kt index eebe23c527b..4cc8a004134 100644 --- a/compiler/testData/codegen/box/arrays/collectionGetMultiIndex.kt +++ b/compiler/testData/codegen/box/arrays/collectionGetMultiIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME operator fun ArrayList.get(index1: Int, index2: Int) = this[index1 + index2] operator fun ArrayList.set(index1: Int, index2: Int, elem: String) { diff --git a/compiler/testData/codegen/box/arrays/forInReversed/reversedOriginalUpdatedInLoopBody.kt b/compiler/testData/codegen/box/arrays/forInReversed/reversedOriginalUpdatedInLoopBody.kt index 6d92e42b8ef..e51e49904fc 100644 --- a/compiler/testData/codegen/box/arrays/forInReversed/reversedOriginalUpdatedInLoopBody.kt +++ b/compiler/testData/codegen/box/arrays/forInReversed/reversedOriginalUpdatedInLoopBody.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/arrays/forInReversed/reversedReversedOriginalUpdatedInLoopBody.kt b/compiler/testData/codegen/box/arrays/forInReversed/reversedReversedOriginalUpdatedInLoopBody.kt index 3aaefffebeb..44a2264c2f1 100644 --- a/compiler/testData/codegen/box/arrays/forInReversed/reversedReversedOriginalUpdatedInLoopBody.kt +++ b/compiler/testData/codegen/box/arrays/forInReversed/reversedReversedOriginalUpdatedInLoopBody.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/arrays/hashMap.kt b/compiler/testData/codegen/box/arrays/hashMap.kt index 5a92b3da0dc..38316baee5e 100644 --- a/compiler/testData/codegen/box/arrays/hashMap.kt +++ b/compiler/testData/codegen/box/arrays/hashMap.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME operator fun HashMap.set(index: String, elem: Int?) { this.put(index, elem) diff --git a/compiler/testData/codegen/box/arrays/kt33.kt b/compiler/testData/codegen/box/arrays/kt33.kt index c3dec3c39e2..d97102bf8ff 100644 --- a/compiler/testData/codegen/box/arrays/kt33.kt +++ b/compiler/testData/codegen/box/arrays/kt33.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box() : String { diff --git a/compiler/testData/codegen/box/arrays/kt950.kt b/compiler/testData/codegen/box/arrays/kt950.kt index a37f06f0794..ca832fd2ad9 100644 --- a/compiler/testData/codegen/box/arrays/kt950.kt +++ b/compiler/testData/codegen/box/arrays/kt950.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME operator fun MutableMap.set(k : K, v : V) = put(k, v) diff --git a/compiler/testData/codegen/box/boxingOptimization/kt6842.kt b/compiler/testData/codegen/box/boxingOptimization/kt6842.kt index 13daa41befb..9f52810a009 100644 --- a/compiler/testData/codegen/box/boxingOptimization/kt6842.kt +++ b/compiler/testData/codegen/box/boxingOptimization/kt6842.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/boxingOptimization/progressions.kt b/compiler/testData/codegen/box/boxingOptimization/progressions.kt index 92181f07fa7..5ea2b777575 100644 --- a/compiler/testData/codegen/box/boxingOptimization/progressions.kt +++ b/compiler/testData/codegen/box/boxingOptimization/progressions.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/bridges/kt2498.kt b/compiler/testData/codegen/box/bridges/kt2498.kt index 9b91ed788f4..21622aa2930 100644 --- a/compiler/testData/codegen/box/bridges/kt2498.kt +++ b/compiler/testData/codegen/box/bridges/kt2498.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt index 412f82c0753..ba7fdde2891 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // TARGET_BACKEND: JVM import java.util.AbstractList diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt index 0447f569b20..c8bb76a50ba 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // TARGET_BACKEND: JVM import java.util.AbstractMap diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt index 35220c7c15b..a76efff603e 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE class A : HashSet() diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/arrayList.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/arrayList.kt index 2b9587cfbd7..5f15f6262cb 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/arrayList.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/arrayList.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // KT-6042 java.lang.UnsupportedOperationException with ArrayList // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt index 87117ba74a9..a6568f6394c 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashMap.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE class A : HashMap() diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt index 35220c7c15b..a76efff603e 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/hashSet.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE class A : HashSet() diff --git a/compiler/testData/codegen/box/callableReference/function/kt21787.kt b/compiler/testData/codegen/box/callableReference/function/kt21787.kt index 5fbd1988e8c..5f8e82ca648 100644 --- a/compiler/testData/codegen/box/callableReference/function/kt21787.kt +++ b/compiler/testData/codegen/box/callableReference/function/kt21787.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME class Container { diff --git a/compiler/testData/codegen/box/callableReference/function/sortListOfStrings.kt b/compiler/testData/codegen/box/callableReference/function/sortListOfStrings.kt index 59c30191889..9da2bed592d 100644 --- a/compiler/testData/codegen/box/callableReference/function/sortListOfStrings.kt +++ b/compiler/testData/codegen/box/callableReference/function/sortListOfStrings.kt @@ -1,5 +1,5 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: SAM_CONVERSIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME // SKIP_DCE_DRIVEN diff --git a/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt index 6c19c0914be..7ad3361d29a 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt @@ -1,8 +1,8 @@ +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: TYPE_OPERATORS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt index b2ffe6cbfcc..f3f382bde0c 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt index ef88f0776e4..691abdb8658 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt @@ -1,8 +1,8 @@ +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: TYPE_OPERATORS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt index ff3224b7b73..812b77298a0 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt index 6d522250346..1aa7960aa91 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt @@ -1,8 +1,8 @@ +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: TYPE_OPERATORS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt b/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt index fcac852c4fe..e2bca5b4157 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/safeAsWithMutable.kt @@ -1,8 +1,8 @@ +// IGNORE_BACKEND: WASM +// WASM_MUTE_REASON: TYPE_OPERATORS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS class Itr : Iterator by ArrayList().iterator() class MItr : MutableIterator by ArrayList().iterator() diff --git a/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt b/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt index d9aef2015c8..f62ddf2dce5 100644 --- a/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt +++ b/compiler/testData/codegen/box/classes/inheritSetAndHashSet.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/classes/initializerBlockDImpl.kt b/compiler/testData/codegen/box/classes/initializerBlockDImpl.kt index c88fb09fd15..60f1d9f24c1 100644 --- a/compiler/testData/codegen/box/classes/initializerBlockDImpl.kt +++ b/compiler/testData/codegen/box/classes/initializerBlockDImpl.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME class World() { diff --git a/compiler/testData/codegen/box/classes/innerClass.kt b/compiler/testData/codegen/box/classes/innerClass.kt index ba19311d923..a63de25fbed 100644 --- a/compiler/testData/codegen/box/classes/innerClass.kt +++ b/compiler/testData/codegen/box/classes/innerClass.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_TEXT // KJS_WITH_FULL_RUNTIME class Outer(val foo: StringBuilder) { inner class Inner() { diff --git a/compiler/testData/codegen/box/classes/kt1980.kt b/compiler/testData/codegen/box/classes/kt1980.kt index 11a6a417507..e237e4c8b9b 100644 --- a/compiler/testData/codegen/box/classes/kt1980.kt +++ b/compiler/testData/codegen/box/classes/kt1980.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME public inline fun Int.times(body : () -> Unit) { var count = this; diff --git a/compiler/testData/codegen/box/classes/kt2391.kt b/compiler/testData/codegen/box/classes/kt2391.kt index ae1f70bd643..f3826f81a2f 100644 --- a/compiler/testData/codegen/box/classes/kt2391.kt +++ b/compiler/testData/codegen/box/classes/kt2391.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME public interface LoggerAware { public val logger: StringBuilder diff --git a/compiler/testData/codegen/box/classes/kt2417.kt b/compiler/testData/codegen/box/classes/kt2417.kt index d820f8e9e22..c72d216109e 100644 --- a/compiler/testData/codegen/box/classes/kt2417.kt +++ b/compiler/testData/codegen/box/classes/kt2417.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box() : String{ val set = HashSet() diff --git a/compiler/testData/codegen/box/classes/kt343.kt b/compiler/testData/codegen/box/classes/kt343.kt index ff7e6d329c0..9bf3a3f0957 100644 --- a/compiler/testData/codegen/box/classes/kt343.kt +++ b/compiler/testData/codegen/box/classes/kt343.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun launch(f : () -> Unit) { f() diff --git a/compiler/testData/codegen/box/classes/kt508.kt b/compiler/testData/codegen/box/classes/kt508.kt index 80fe2e32cfd..2f985304586 100644 --- a/compiler/testData/codegen/box/classes/kt508.kt +++ b/compiler/testData/codegen/box/classes/kt508.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME operator fun MutableMap.set(key : K, value : V) = put(key, value) diff --git a/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt b/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt index 756c19fa3e0..91ec4e1c307 100644 --- a/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt +++ b/compiler/testData/codegen/box/classes/overloadBinaryOperator.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadPlusAssign.kt b/compiler/testData/codegen/box/classes/overloadPlusAssign.kt index 22b433345cf..7ed86497c80 100644 --- a/compiler/testData/codegen/box/classes/overloadPlusAssign.kt +++ b/compiler/testData/codegen/box/classes/overloadPlusAssign.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt b/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt index c63c226cfe3..6d0747891b8 100644 --- a/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt +++ b/compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt b/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt index c63c226cfe3..6d0747891b8 100644 --- a/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt +++ b/compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class ArrayWrapper() { val contents = ArrayList() diff --git a/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt b/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt index 7eb57014a10..f1751827e0c 100644 --- a/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt +++ b/compiler/testData/codegen/box/classes/overloadUnaryOperator.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME class ArrayWrapper() { diff --git a/compiler/testData/codegen/box/closures/closureInsideClosure/propertyAndFunctionNameClash.kt b/compiler/testData/codegen/box/closures/closureInsideClosure/propertyAndFunctionNameClash.kt index ed99663c597..9287967d5ea 100644 --- a/compiler/testData/codegen/box/closures/closureInsideClosure/propertyAndFunctionNameClash.kt +++ b/compiler/testData/codegen/box/closures/closureInsideClosure/propertyAndFunctionNameClash.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME package d diff --git a/compiler/testData/codegen/box/collections/inSetWithSmartCast.kt b/compiler/testData/codegen/box/collections/inSetWithSmartCast.kt index 054207b10bb..e5a490931a5 100644 --- a/compiler/testData/codegen/box/collections/inSetWithSmartCast.kt +++ b/compiler/testData/codegen/box/collections/inSetWithSmartCast.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt b/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt index d590f6490c2..b92c8cbb986 100644 --- a/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt +++ b/compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt @@ -1,5 +1,4 @@ // WITH_RUNTIME -// IGNORE_BACKEND: WASM abstract class A : AbstractMutableList() diff --git a/compiler/testData/codegen/box/collections/kt41123.kt b/compiler/testData/codegen/box/collections/kt41123.kt index e112466aad0..def41d54db3 100644 --- a/compiler/testData/codegen/box/collections/kt41123.kt +++ b/compiler/testData/codegen/box/collections/kt41123.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/continueInFor.kt b/compiler/testData/codegen/box/controlStructures/continueInFor.kt index e886cd79ea2..7ca3279026b 100644 --- a/compiler/testData/codegen/box/controlStructures/continueInFor.kt +++ b/compiler/testData/codegen/box/controlStructures/continueInFor.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun for_int_range(): Int { var c = 0 diff --git a/compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt b/compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt index e9cc56aaf13..0942c5725e0 100644 --- a/compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt +++ b/compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun for_int_range(): Int { var c = 0 diff --git a/compiler/testData/codegen/box/controlStructures/forArrayList.kt b/compiler/testData/codegen/box/controlStructures/forArrayList.kt index 2cdd964d72c..7986a79f79e 100644 --- a/compiler/testData/codegen/box/controlStructures/forArrayList.kt +++ b/compiler/testData/codegen/box/controlStructures/forArrayList.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME val alist = arrayListOf(1, 2, 3) // : j.u.ArrayList diff --git a/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt b/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt index 6aed25ada8e..350b71d9a59 100644 --- a/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt +++ b/compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfObjectArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfObjectArrayWithIndex.kt index b895e3a1a43..d587ae7db3a 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfObjectArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfObjectArrayWithIndex.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt index b6aabf32568..c47698a44c5 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexBreakAndContinue.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexBreakAndContinue.kt index c22ee205791..1eadf7ee1c2 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexBreakAndContinue.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexBreakAndContinue.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt index 03c6d926822..27ebd2d5101 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt index ca7fb53b3f3..3b4321724de 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt index a6bf664852a..004a37109c3 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt index 5fa7d93ab51..f319dae335a 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt index 5694a9fb16b..7335bf456e0 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndex.kt index daf87d95cd8..87d6b9dcb76 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndexWithSmartCast.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndexWithSmartCast.kt index 06f0acb89d2..9bd16e039fa 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndexWithSmartCast.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndexWithSmartCast.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInEmptyArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInEmptyArrayWithIndex.kt index e26668b047b..61e44061ca8 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInEmptyArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInEmptyArrayWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndex.kt index 5c6286b5eef..a4d8e55b3bd 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndexWithSmartCast.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndexWithSmartCast.kt index e6bb67b0e8c..5ed671d0e57 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndexWithSmartCast.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndexWithSmartCast.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayWithIndex.kt index d8294b3d486..ffaf44d3ab2 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndex.kt index 553af33ee5e..cf0effa84ee 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndexWithSmartCast.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndexWithSmartCast.kt index fd9c3851d04..aebc5a2a99c 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndexWithSmartCast.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndexWithSmartCast.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInObjectArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInObjectArrayWithIndex.kt index b6483b4ec72..e72e16840a3 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInObjectArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInObjectArrayWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndex.kt index 05732881e0b..19995aa89cf 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndexWithSmartCast.kt b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndexWithSmartCast.kt index 687955e1b96..8e10ffcd0b6 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndexWithSmartCast.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndexWithSmartCast.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequence.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequence.kt index b9b43faae5a..b4c2c150cb6 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequence.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequence.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_TEXT // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceTypeParameterWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceTypeParameterWithIndex.kt index 6ab738aaf0f..bdd9bd933ae 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceTypeParameterWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceTypeParameterWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt index 17a000db604..bd00dc12b86 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexBreakAndContinue.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexBreakAndContinue.kt index 0ad50f31fd7..d47402ffc6d 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexBreakAndContinue.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexBreakAndContinue.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexCheckSideEffects.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexCheckSideEffects.kt index bd8ace2f2f4..b708614dbb8 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexCheckSideEffects.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexCheckSideEffects.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt index dabfeaf9238..f345d5d2511 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt index b146139d95b..d0f9c59103a 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndex.kt index 4ddbcf33a3b..833686f56b9 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt index bbf491b7fbb..bba925f536a 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt index 64638c97403..ce450aaeaf5 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt index ace944d988f..2eaeb1faf32 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt index 1d35dbe112c..0d9bd7e3a61 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt index 32e0d895bcf..f2111a4e9b1 100644 --- a/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt +++ b/compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInEmptyListWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInEmptyListWithIndex.kt index 77a7b38f14f..326076d5975 100644 --- a/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInEmptyListWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInEmptyListWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt b/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt index 78f119e0595..16647498f74 100644 --- a/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt +++ b/compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/controlStructures/kt910.kt b/compiler/testData/codegen/box/controlStructures/kt910.kt index e62aadc3ece..a0ab4fab34b 100644 --- a/compiler/testData/codegen/box/controlStructures/kt910.kt +++ b/compiler/testData/codegen/box/controlStructures/kt910.kt @@ -1,8 +1,5 @@ // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS - fun foo() : Int = try { 2 diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt index 003cd194f83..31113d3f344 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt @@ -1,7 +1,5 @@ // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS fun box(): String { val a = arrayListOf() diff --git a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringEscape.kt b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringEscape.kt index 1227319496f..958549b3308 100644 --- a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringEscape.kt +++ b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringEscape.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // DONT_RUN_GENERATED_CODE: JS diff --git a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt index 582cae0626a..9b58c22110c 100644 --- a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt +++ b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // DONT_RUN_GENERATED_CODE: JS diff --git a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt index 6b3da285c1c..53cd5e78da9 100644 --- a/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt +++ b/compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt @@ -1,5 +1,5 @@ // KT-14961 -// IGNORE_BACKEND: JVM, JS_IR, WASM +// IGNORE_BACKEND: JVM, JS_IR // WITH_RUNTIME fun listOfFactor(number: Int): List { diff --git a/compiler/testData/codegen/box/elvis/genericElvisWithMoreSpecificLHS.kt b/compiler/testData/codegen/box/elvis/genericElvisWithMoreSpecificLHS.kt index e7815660613..60521fe8bbf 100644 --- a/compiler/testData/codegen/box/elvis/genericElvisWithMoreSpecificLHS.kt +++ b/compiler/testData/codegen/box/elvis/genericElvisWithMoreSpecificLHS.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // !LANGUAGE: +NewInference // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/elvis/genericElvisWithNullLHS.kt b/compiler/testData/codegen/box/elvis/genericElvisWithNullLHS.kt index 2dfe2804f39..17981e5031e 100644 --- a/compiler/testData/codegen/box/elvis/genericElvisWithNullLHS.kt +++ b/compiler/testData/codegen/box/elvis/genericElvisWithNullLHS.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/extensionFunctions/kt1953.kt b/compiler/testData/codegen/box/extensionFunctions/kt1953.kt index 413ddfc7f8d..4db9260f942 100644 --- a/compiler/testData/codegen/box/extensionFunctions/kt1953.kt +++ b/compiler/testData/codegen/box/extensionFunctions/kt1953.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME fun box(): String { val sb = StringBuilder() diff --git a/compiler/testData/codegen/box/extensionFunctions/kt1953_class.kt b/compiler/testData/codegen/box/extensionFunctions/kt1953_class.kt index 573e03b1c9e..7d394cff6da 100644 --- a/compiler/testData/codegen/box/extensionFunctions/kt1953_class.kt +++ b/compiler/testData/codegen/box/extensionFunctions/kt1953_class.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME class A { private val sb: StringBuilder = StringBuilder() diff --git a/compiler/testData/codegen/box/extensionFunctions/kt475.kt b/compiler/testData/codegen/box/extensionFunctions/kt475.kt index 9a1e05b3091..abb3684d429 100644 --- a/compiler/testData/codegen/box/extensionFunctions/kt475.kt +++ b/compiler/testData/codegen/box/extensionFunctions/kt475.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box() : String { diff --git a/compiler/testData/codegen/box/extensionFunctions/kt865.kt b/compiler/testData/codegen/box/extensionFunctions/kt865.kt index 41cb75f4180..dd741dcef83 100644 --- a/compiler/testData/codegen/box/extensionFunctions/kt865.kt +++ b/compiler/testData/codegen/box/extensionFunctions/kt865.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class Template() { val collected = ArrayList() diff --git a/compiler/testData/codegen/box/extensionFunctions/simple.kt b/compiler/testData/codegen/box/extensionFunctions/simple.kt index 4ae79cd5630..d2cca8e2cb5 100644 --- a/compiler/testData/codegen/box/extensionFunctions/simple.kt +++ b/compiler/testData/codegen/box/extensionFunctions/simple.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_TEXT // KJS_WITH_FULL_RUNTIME fun StringBuilder.first() = this.get(0) diff --git a/compiler/testData/codegen/box/extensionFunctions/whenFail.kt b/compiler/testData/codegen/box/extensionFunctions/whenFail.kt index aa629f45bbe..9ddfcbdb2f1 100644 --- a/compiler/testData/codegen/box/extensionFunctions/whenFail.kt +++ b/compiler/testData/codegen/box/extensionFunctions/whenFail.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: EXCEPTIONS_NOT_IMPLEMENTED // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not diff --git a/compiler/testData/codegen/box/funInterface/castFromAny.kt b/compiler/testData/codegen/box/funInterface/castFromAny.kt index 6f81cc1d07f..2728fc045df 100644 --- a/compiler/testData/codegen/box/funInterface/castFromAny.kt +++ b/compiler/testData/codegen/box/funInterface/castFromAny.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: SAM_CONVERSIONS // !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions diff --git a/compiler/testData/codegen/box/increment/mutableListElement.kt b/compiler/testData/codegen/box/increment/mutableListElement.kt index 6e5cc5dc2c7..4a719eaaef5 100644 --- a/compiler/testData/codegen/box/increment/mutableListElement.kt +++ b/compiler/testData/codegen/box/increment/mutableListElement.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inference/builderInference/callableReferenceAndCoercionToUnit.kt b/compiler/testData/codegen/box/inference/builderInference/callableReferenceAndCoercionToUnit.kt index e67fb851062..81f8401c34c 100644 --- a/compiler/testData/codegen/box/inference/builderInference/callableReferenceAndCoercionToUnit.kt +++ b/compiler/testData/codegen/box/inference/builderInference/callableReferenceAndCoercionToUnit.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // !LANGUAGE: +NewInference // !DIAGNOSTICS: -OPT_IN_USAGE_ERROR -UNUSED_EXPRESSION // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt b/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt index ada770d737d..8d6041a336f 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/arrayDequeRemoveAll.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: WASM // WITH_RUNTIME @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/breakInArgumentExpression.kt b/compiler/testData/codegen/box/inlineArgsInPlace/breakInArgumentExpression.kt index efc943598e0..5ebb65705a2 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/breakInArgumentExpression.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/breakInArgumentExpression.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: WASM // FULL_JDK // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/continueInArgumentExpression.kt b/compiler/testData/codegen/box/inlineArgsInPlace/continueInArgumentExpression.kt index 53316451492..31b198bc73d 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/continueInArgumentExpression.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/continueInArgumentExpression.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: WASM // FULL_JDK // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt b/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt index 083b043ff69..f069acc22aa 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/inlineCircularDedepency.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: WASM // FULL_JDK // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/kotlinReflect.kt b/compiler/testData/codegen/box/inlineArgsInPlace/kotlinReflect.kt index ef0ab7b700f..e124ea13321 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/kotlinReflect.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/kotlinReflect.kt @@ -1,6 +1,5 @@ // FULL_JDK // WITH_RUNTIME -// IGNORE_BACKEND: WASM interface Foo { val foos: List diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/mapSet.kt b/compiler/testData/codegen/box/inlineArgsInPlace/mapSet.kt index 89fc20a423f..2b371889631 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/mapSet.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/mapSet.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: WASM // FULL_JDK // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/mutableCollectionPlusAssign.kt b/compiler/testData/codegen/box/inlineArgsInPlace/mutableCollectionPlusAssign.kt index 660072bb08e..e52062c2c04 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/mutableCollectionPlusAssign.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/mutableCollectionPlusAssign.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: WASM // FULL_JDK // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt index dbd53ee296b..ec59395686a 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt index db1859c62f2..25692ded1b3 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt index 63b09a8c226..5de31ce12ff 100644 --- a/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt +++ b/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // !LANGUAGE: +InlineClasses // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt b/compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt index c13a997a252..7394adb23b6 100644 --- a/compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt +++ b/compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // KT-41771 diff --git a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt index d0fa36de698..4ef76daf60f 100644 --- a/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt +++ b/compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineClasses/kt28585.kt b/compiler/testData/codegen/box/inlineClasses/kt28585.kt index e92376fbe84..6cb3e051528 100644 --- a/compiler/testData/codegen/box/inlineClasses/kt28585.kt +++ b/compiler/testData/codegen/box/inlineClasses/kt28585.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: EXCEPTIONS_NOT_IMPLEMENTED // KJS_WITH_FULL_RUNTIME // !LANGUAGE: +InlineClasses // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt b/compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt index 0872b6e5685..1f60cdb2230 100644 --- a/compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt +++ b/compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt b/compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt index 61385ac690a..009c34768bc 100644 --- a/compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt +++ b/compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt b/compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt index fa5a65b18e2..c4804187c7e 100644 --- a/compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt +++ b/compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/intrinsics/rangeFromCollection.kt b/compiler/testData/codegen/box/intrinsics/rangeFromCollection.kt index 9412cc06799..f6550bbbd0c 100644 --- a/compiler/testData/codegen/box/intrinsics/rangeFromCollection.kt +++ b/compiler/testData/codegen/box/intrinsics/rangeFromCollection.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box(): String { val list = ArrayList() diff --git a/compiler/testData/codegen/box/intrinsics/stringFromCollection.kt b/compiler/testData/codegen/box/intrinsics/stringFromCollection.kt index 340cee612c2..a889f52b9c7 100644 --- a/compiler/testData/codegen/box/intrinsics/stringFromCollection.kt +++ b/compiler/testData/codegen/box/intrinsics/stringFromCollection.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box(): String { val list = ArrayList() diff --git a/compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt b/compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt index 0d0f966597d..a9331b0a576 100644 --- a/compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt +++ b/compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun foo(k: K, v: V) { diff --git a/compiler/testData/codegen/box/jdk/arrayList.kt b/compiler/testData/codegen/box/jdk/arrayList.kt index 96396bad55e..d0ceaccac7f 100644 --- a/compiler/testData/codegen/box/jdk/arrayList.kt +++ b/compiler/testData/codegen/box/jdk/arrayList.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box(): String { diff --git a/compiler/testData/codegen/box/jdk/hashMap.kt b/compiler/testData/codegen/box/jdk/hashMap.kt index 4f971645c29..6bdb266364b 100644 --- a/compiler/testData/codegen/box/jdk/hashMap.kt +++ b/compiler/testData/codegen/box/jdk/hashMap.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box(): String { diff --git a/compiler/testData/codegen/box/jdk/iteratingOverHashMap.kt b/compiler/testData/codegen/box/jdk/iteratingOverHashMap.kt index da05dd4d9ea..bdbdbfbf127 100644 --- a/compiler/testData/codegen/box/jdk/iteratingOverHashMap.kt +++ b/compiler/testData/codegen/box/jdk/iteratingOverHashMap.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun box() : String { diff --git a/compiler/testData/codegen/box/jdk/kt1397.kt b/compiler/testData/codegen/box/jdk/kt1397.kt index 46f4cda8163..5a217ebbe64 100644 --- a/compiler/testData/codegen/box/jdk/kt1397.kt +++ b/compiler/testData/codegen/box/jdk/kt1397.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclFor.kt b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclFor.kt index 63055b18f06..e96af75d108 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclFor.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclFor.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class C(val i: Int) { operator fun component1() = i + 1 diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentExtensions.kt b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentExtensions.kt index fa433144020..0105f400e8f 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentExtensions.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentExtensions.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class C(val i: Int) { } diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensions.kt b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensions.kt index d056b6a8162..b471446f2a5 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensions.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensions.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class C(val i: Int) { } diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt index 2f13c73517d..c80a394568c 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class C(val i: Int) { } diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForValCaptured.kt b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForValCaptured.kt index a8afbba9011..b1776f685f3 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForValCaptured.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForValCaptured.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class C(val i: Int) { operator fun component1() = i + 1 diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensions.kt b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensions.kt index 166b7cd8e79..872d2a9545b 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensions.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensions.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME operator fun Long.component1() = this + 1 operator fun Long.component2() = this + 2 diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensionsValCaptured.kt b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensionsValCaptured.kt index 914bfa2dbf4..814344fba6e 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensionsValCaptured.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensionsValCaptured.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME operator fun Long.component1() = this + 1 operator fun Long.component2() = this + 2 diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensions.kt b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensions.kt index d066aadc089..3c8e9e671e8 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensions.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensions.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class M { operator fun Long.component1() = this + 1 diff --git a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt index c13cab0358d..dc8fc860e69 100644 --- a/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt +++ b/compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME class M { operator fun Long.component1() = this + 1 diff --git a/compiler/testData/codegen/box/multiDecl/kt9828_hashMap.kt b/compiler/testData/codegen/box/multiDecl/kt9828_hashMap.kt index 573dc1e86ad..e2b24dbde61 100644 --- a/compiler/testData/codegen/box/multiDecl/kt9828_hashMap.kt +++ b/compiler/testData/codegen/box/multiDecl/kt9828_hashMap.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt b/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt index 942a4aabeec..b86b48aee52 100644 --- a/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt +++ b/compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME object O { diff --git a/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt b/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt index 46b10af7f3c..82a84f5745a 100644 --- a/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt +++ b/compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME public inline fun T.with(f: T.() -> Unit): T { this.f() diff --git a/compiler/testData/codegen/box/operatorConventions/kt14227.kt b/compiler/testData/codegen/box/operatorConventions/kt14227.kt index 97bc64010da..2c2047b91a3 100644 --- a/compiler/testData/codegen/box/operatorConventions/kt14227.kt +++ b/compiler/testData/codegen/box/operatorConventions/kt14227.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME // FULL_JDK diff --git a/compiler/testData/codegen/box/operatorConventions/kt44647.kt b/compiler/testData/codegen/box/operatorConventions/kt44647.kt index 252c6bae01f..2c7785eec0a 100644 --- a/compiler/testData/codegen/box/operatorConventions/kt44647.kt +++ b/compiler/testData/codegen/box/operatorConventions/kt44647.kt @@ -1,7 +1,7 @@ // IGNORE_BACKEND: JVM // IGNORE_LIGHT_ANALYSIS // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_TEXT // WITH_RUNTIME fun box(): String { diff --git a/compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt b/compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt index b2bc3676247..090deebc2fb 100644 --- a/compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt +++ b/compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt b/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt index 567b0bdaefe..9ac3ac1385f 100644 --- a/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt +++ b/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // !LANGUAGE: +NewInference // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/capturedLoopVar.kt b/compiler/testData/codegen/box/ranges/capturedLoopVar.kt index f410afa672f..dbec6b3b3a6 100644 --- a/compiler/testData/codegen/box/ranges/capturedLoopVar.kt +++ b/compiler/testData/codegen/box/ranges/capturedLoopVar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: WASM // WITH_RUNTIME fun build(): List<() -> Int> { diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt index 47812e4ad8e..ba4462fc97c 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt index 50d1f75f772..f7338fc62cd 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt index a02f6358d2c..025217cc08d 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_ASSERT // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt index 74fc0ec6d45..bbd106940a9 100644 --- a/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt +++ b/compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_ASSERT // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt b/compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt index 5734064a7ea..b3328aba6d9 100644 --- a/compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt +++ b/compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/contains/kt20106.kt b/compiler/testData/codegen/box/ranges/contains/kt20106.kt index 0635eb2d6d1..52d5764705a 100644 --- a/compiler/testData/codegen/box/ranges/contains/kt20106.kt +++ b/compiler/testData/codegen/box/ranges/contains/kt20106.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt index 877dc4ee760..d4d195a083f 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt index 0561a2e8040..fad30bf9921 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt index 22d72ceaf6d..6dc1db94367 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt index a8216b266b4..fae58fac6ae 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt index 345f9ba369f..09b90f3f3e0 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt index a45aced9721..6a2397628b4 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt index e69c8ef80d0..8864b09d443 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt index 995a59464e8..2e1eb651377 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt index fe31169853c..0a6f11dc70c 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt index d9da7ce2c02..8d0f4686480 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt index f060967218b..4fd070cbf37 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt index 2fbad7323a1..fc37dd3a01a 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt index c9be7b49b8d..2e718a0a471 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt index 0658b080261..2fec56814cd 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt index bdcedf158e1..6e04eba982d 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt index 496d354fd99..bdd3a01c906 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt index 194b78b1922..11915f827a7 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt index 84d579173cf..4c58b930d6c 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt index f361ed95672..5f802dcad28 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt index 2576f4fa698..54842128a97 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt index 2be9bba4df4..1866a7cf17a 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt index d78af3fabe1..9cb7555e957 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt index 82e6bd16052..a5b685169f7 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt index 91c42096828..4b857b76258 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt index 352c0559b6d..687eea1b142 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt index 4b8c1212d20..a8f066ba207 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt index 939edcfcf5a..ffc6592f0e3 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt index 6822d8ea2d5..e85cc6ff2fd 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt index 3bfbbbc0e6f..d349928ef90 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt index 1690865e696..ec98b9436f2 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt index d4dabd36dba..bbef32df651 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt index 81aaf538064..194262dfd85 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt index e5d886ce2ba..a694fcd9c96 100644 --- a/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt +++ b/compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/forInCharSequenceLengthDecreasedInLoopBody.kt b/compiler/testData/codegen/box/ranges/forInCharSequenceLengthDecreasedInLoopBody.kt index 3d5e11505b2..c546d6cedd8 100644 --- a/compiler/testData/codegen/box/ranges/forInCharSequenceLengthDecreasedInLoopBody.kt +++ b/compiler/testData/codegen/box/ranges/forInCharSequenceLengthDecreasedInLoopBody.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_TEXT // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/forInCharSequenceLengthIncreasedInLoopBody.kt b/compiler/testData/codegen/box/ranges/forInCharSequenceLengthIncreasedInLoopBody.kt index 4a74c6f6486..1c127e0203c 100644 --- a/compiler/testData/codegen/box/ranges/forInCharSequenceLengthIncreasedInLoopBody.kt +++ b/compiler/testData/codegen/box/ranges/forInCharSequenceLengthIncreasedInLoopBody.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_TEXT // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt b/compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt index b989a01c6e0..cbe68b5f5ee 100644 --- a/compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt +++ b/compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt b/compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt index 75e0cd79d53..968e2762f14 100644 --- a/compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt +++ b/compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/ranges/forInCustomCharSequence.kt b/compiler/testData/codegen/box/ranges/forInCustomCharSequence.kt index f880d551193..ed53c560f44 100644 --- a/compiler/testData/codegen/box/ranges/forInCustomCharSequence.kt +++ b/compiler/testData/codegen/box/ranges/forInCustomCharSequence.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt index f6edb542853..0c7af065ab5 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_TEXT // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInDownToWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInDownToWithIndex.kt index f29252c6d5c..98c87b1dc81 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInDownToWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInDownToWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInIndicesWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInIndicesWithIndex.kt index 23756d0147c..7dd8a96ad9a 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInIndicesWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInIndicesWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInRangeToWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInRangeToWithIndex.kt index 6297c28fe40..3fe1c8fb9df 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInRangeToWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInRangeToWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedStepWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedStepWithIndex.kt index 41e6227cbc6..9e81c0bb604 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedStepWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedStepWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedWithIndex.kt index efdd1f9cc6d..3f9c217af18 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepReversedWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepReversedWithIndex.kt index a62e83b92e4..891b409f125 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepReversedWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepReversedWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepWithIndex.kt index f346214e8b4..5910b69d52d 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInUntilWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInUntilWithIndex.kt index 30ebcf944e2..081f66ac43a 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInUntilWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInUntilWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexBreakAndContinue.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexBreakAndContinue.kt index 68716864d05..d11c9b4d262 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexBreakAndContinue.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexBreakAndContinue.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt index c99d850dd68..e78bc9473fc 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNotDestructured.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNotDestructured.kt index 926bbb5d46b..7b4f47ecf94 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNotDestructured.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNotDestructured.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexReversed.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexReversed.kt index 4bf5be9abbc..1bc3860a203 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexReversed.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexReversed.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithDestructuringInLoop.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithDestructuringInLoop.kt index 704ce043c08..db09432b9fe 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithDestructuringInLoop.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithDestructuringInLoop.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt index 66b2021de0e..08c7ccb7ddc 100644 --- a/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt +++ b/compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/ranges/multiAssignmentIterationOverIntRange.kt b/compiler/testData/codegen/box/ranges/multiAssignmentIterationOverIntRange.kt index 7a1471666f8..7d76e00ffec 100644 --- a/compiler/testData/codegen/box/ranges/multiAssignmentIterationOverIntRange.kt +++ b/compiler/testData/codegen/box/ranges/multiAssignmentIterationOverIntRange.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/Kt1149.kt b/compiler/testData/codegen/box/regressions/Kt1149.kt index 1fe81b1069c..985e1628eab 100644 --- a/compiler/testData/codegen/box/regressions/Kt1149.kt +++ b/compiler/testData/codegen/box/regressions/Kt1149.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/Kt1619Test.kt b/compiler/testData/codegen/box/regressions/Kt1619Test.kt index 332b18424da..2540b77d307 100644 --- a/compiler/testData/codegen/box/regressions/Kt1619Test.kt +++ b/compiler/testData/codegen/box/regressions/Kt1619Test.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/Kt2495Test.kt b/compiler/testData/codegen/box/regressions/Kt2495Test.kt index 1e18e4e2b94..8fd6f97bbb9 100644 --- a/compiler/testData/codegen/box/regressions/Kt2495Test.kt +++ b/compiler/testData/codegen/box/regressions/Kt2495Test.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/generic.kt b/compiler/testData/codegen/box/regressions/generic.kt index fdac2c87a6a..c99013042d9 100644 --- a/compiler/testData/codegen/box/regressions/generic.kt +++ b/compiler/testData/codegen/box/regressions/generic.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_TEXT // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/kt1800.kt b/compiler/testData/codegen/box/regressions/kt1800.kt index 770b00cc49a..80abfaa72ee 100644 --- a/compiler/testData/codegen/box/regressions/kt1800.kt +++ b/compiler/testData/codegen/box/regressions/kt1800.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME //KT-1800 error/NonExistentClass generated on runtime diff --git a/compiler/testData/codegen/box/regressions/kt2017.kt b/compiler/testData/codegen/box/regressions/kt2017.kt index 60b1e7e1e6f..a2330246d0d 100644 --- a/compiler/testData/codegen/box/regressions/kt2017.kt +++ b/compiler/testData/codegen/box/regressions/kt2017.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_SORT // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/kt3442.kt b/compiler/testData/codegen/box/regressions/kt3442.kt index 78f56c96710..19c49d33516 100644 --- a/compiler/testData/codegen/box/regressions/kt3442.kt +++ b/compiler/testData/codegen/box/regressions/kt3442.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/kt5953.kt b/compiler/testData/codegen/box/regressions/kt5953.kt index 3f41c4efa75..3ccb46f328a 100644 --- a/compiler/testData/codegen/box/regressions/kt5953.kt +++ b/compiler/testData/codegen/box/regressions/kt5953.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/regressions/kt6153.kt b/compiler/testData/codegen/box/regressions/kt6153.kt index 9d964b2a507..d2b703a5520 100644 --- a/compiler/testData/codegen/box/regressions/kt6153.kt +++ b/compiler/testData/codegen/box/regressions/kt6153.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // KT-6153 java.lang.IllegalStateException while building object Bug { diff --git a/compiler/testData/codegen/box/regressions/kt789.kt b/compiler/testData/codegen/box/regressions/kt789.kt index c4b65c2efe4..d3df588ce1f 100644 --- a/compiler/testData/codegen/box/regressions/kt789.kt +++ b/compiler/testData/codegen/box/regressions/kt789.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME package foo diff --git a/compiler/testData/codegen/box/reified/varargs.kt b/compiler/testData/codegen/box/reified/varargs.kt index 32ce927095a..a3cd0cbb9d4 100644 --- a/compiler/testData/codegen/box/reified/varargs.kt +++ b/compiler/testData/codegen/box/reified/varargs.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/sam/constructors/comparator.kt b/compiler/testData/codegen/box/sam/constructors/comparator.kt index 8db96272fa0..ed6712840fa 100644 --- a/compiler/testData/codegen/box/sam/constructors/comparator.kt +++ b/compiler/testData/codegen/box/sam/constructors/comparator.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_SORT // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME // SKIP_DCE_DRIVEN diff --git a/compiler/testData/codegen/box/sam/constructors/nonLiteralComparator.kt b/compiler/testData/codegen/box/sam/constructors/nonLiteralComparator.kt index 3ed46508728..e1bd3be787f 100644 --- a/compiler/testData/codegen/box/sam/constructors/nonLiteralComparator.kt +++ b/compiler/testData/codegen/box/sam/constructors/nonLiteralComparator.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: SAM_CONVERSIONS // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME // SKIP_DCE_DRIVEN diff --git a/compiler/testData/codegen/box/specialBuiltins/bridges.kt b/compiler/testData/codegen/box/specialBuiltins/bridges.kt index a09f84857e8..445606f0132 100644 --- a/compiler/testData/codegen/box/specialBuiltins/bridges.kt +++ b/compiler/testData/codegen/box/specialBuiltins/bridges.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt b/compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt index 194011d8c1d..6b47da26815 100644 --- a/compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt +++ b/compiler/testData/codegen/box/specialBuiltins/commonBridgesTarget.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt b/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt index e0e9eed3ee7..b8674244ec7 100644 --- a/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt +++ b/compiler/testData/codegen/box/specialBuiltins/entrySetSOE.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt b/compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt index c6741f2d4c8..b5f7c99f1bd 100644 --- a/compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt +++ b/compiler/testData/codegen/box/specialBuiltins/explicitSuperCall.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt b/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt index fc1c32139c8..9e21f04377a 100644 --- a/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt +++ b/compiler/testData/codegen/box/specialBuiltins/removeSetInt.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE class MySet : HashSet() { diff --git a/compiler/testData/codegen/box/strings/kt5389_stringBuilderGet.kt b/compiler/testData/codegen/box/strings/kt5389_stringBuilderGet.kt index 9dc2d6d776d..96b3ffd819c 100644 --- a/compiler/testData/codegen/box/strings/kt5389_stringBuilderGet.kt +++ b/compiler/testData/codegen/box/strings/kt5389_stringBuilderGet.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_STRING_BUILDER +// WASM_MUTE_REASON: STDLIB_TEXT // KJS_WITH_FULL_RUNTIME fun box(): String { val sb = StringBuilder("OK") diff --git a/compiler/testData/codegen/box/strings/stringPlusOnlyWorksOnString.kt b/compiler/testData/codegen/box/strings/stringPlusOnlyWorksOnString.kt index ed4e3a97673..69806f7415b 100644 --- a/compiler/testData/codegen/box/strings/stringPlusOnlyWorksOnString.kt +++ b/compiler/testData/codegen/box/strings/stringPlusOnlyWorksOnString.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/super/basicmethodSuperClass.kt b/compiler/testData/codegen/box/super/basicmethodSuperClass.kt index cc404cfe15b..a65e8e5abef 100644 --- a/compiler/testData/codegen/box/super/basicmethodSuperClass.kt +++ b/compiler/testData/codegen/box/super/basicmethodSuperClass.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_COLLECTION_INHERITANCE // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: NATIVE diff --git a/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt b/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt index 68554bda49b..b4d06baa10b 100644 --- a/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt +++ b/compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // FULL_JDK diff --git a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedDownTo.kt b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedDownTo.kt index 3ecb162d576..ffc80bfeefa 100644 --- a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedDownTo.kt +++ b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedDownTo.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedProgression.kt b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedProgression.kt index 92035351c45..d1246849750 100644 --- a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedProgression.kt +++ b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedProgression.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRange.kt b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRange.kt index 7a88f58a014..87ada5cdb3e 100644 --- a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRange.kt +++ b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRange.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeLiteral.kt b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeLiteral.kt index aaefd703764..87f11adc429 100644 --- a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeLiteral.kt +++ b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeLiteral.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedUntil.kt b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedUntil.kt index 8468e31d528..377a90e66af 100644 --- a/compiler/testData/codegen/box/unsignedTypes/forInUnsignedUntil.kt +++ b/compiler/testData/codegen/box/unsignedTypes/forInUnsignedUntil.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/unsignedTypes/inUnsignedDownTo.kt b/compiler/testData/codegen/box/unsignedTypes/inUnsignedDownTo.kt index c87972db022..bbd6b7bd505 100644 --- a/compiler/testData/codegen/box/unsignedTypes/inUnsignedDownTo.kt +++ b/compiler/testData/codegen/box/unsignedTypes/inUnsignedDownTo.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedArraySize.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedArraySize.kt index 6ec82773bea..c5f7c22529d 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedArraySize.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedArraySize.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: UNSIGNED_ARRAYS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/vararg/kt37715.kt b/compiler/testData/codegen/box/vararg/kt37715.kt index ea128a1f7a8..fd80d4b58f6 100644 --- a/compiler/testData/codegen/box/vararg/kt37715.kt +++ b/compiler/testData/codegen/box/vararg/kt37715.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // !LANGUAGE: +NewInference // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME diff --git a/compiler/testData/codegen/box/vararg/kt581.kt b/compiler/testData/codegen/box/vararg/kt581.kt index 2407d54ef35..9e7c41a3e9a 100644 --- a/compiler/testData/codegen/box/vararg/kt581.kt +++ b/compiler/testData/codegen/box/vararg/kt581.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME package whats.the.difference diff --git a/compiler/testData/codegen/box/when/is.kt b/compiler/testData/codegen/box/when/is.kt index a8827fb098d..3e1088b8656 100644 --- a/compiler/testData/codegen/box/when/is.kt +++ b/compiler/testData/codegen/box/when/is.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun typeName(a: Any?) : String { return when(a) { diff --git a/compiler/testData/codegen/box/when/kt47365.kt b/compiler/testData/codegen/box/when/kt47365.kt index 84cfcde8548..fe46fc5ec47 100644 --- a/compiler/testData/codegen/box/when/kt47365.kt +++ b/compiler/testData/codegen/box/when/kt47365.kt @@ -1,5 +1,4 @@ // WITH_RUNTIME -// IGNORE_BACKEND: WASM enum class EType { A diff --git a/compiler/testData/codegen/box/when/kt5448.kt b/compiler/testData/codegen/box/when/kt5448.kt index 9a19e4ac6d9..e7bb0376b21 100644 --- a/compiler/testData/codegen/box/when/kt5448.kt +++ b/compiler/testData/codegen/box/when/kt5448.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/when/range.kt b/compiler/testData/codegen/box/when/range.kt index de4fca5498d..661765305ac 100644 --- a/compiler/testData/codegen/box/when/range.kt +++ b/compiler/testData/codegen/box/when/range.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME fun isDigit(a: Int) : String { val aa = ArrayList () diff --git a/compiler/testData/codegen/box/when/switchOptimizationDense.kt b/compiler/testData/codegen/box/when/switchOptimizationDense.kt index cd1e54f3596..8ed817aa632 100644 --- a/compiler/testData/codegen/box/when/switchOptimizationDense.kt +++ b/compiler/testData/codegen/box/when/switchOptimizationDense.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // CHECK_CASES_COUNT: function=dense count=10 diff --git a/compiler/testData/codegen/box/when/switchOptimizationMultipleConditions.kt b/compiler/testData/codegen/box/when/switchOptimizationMultipleConditions.kt index a610f2b5abb..ece44878d6e 100644 --- a/compiler/testData/codegen/box/when/switchOptimizationMultipleConditions.kt +++ b/compiler/testData/codegen/box/when/switchOptimizationMultipleConditions.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // WITH_RUNTIME // KJS_WITH_FULL_RUNTIME // CHECK_CASES_COUNT: function=foo count=9 diff --git a/compiler/testData/codegen/box/when/switchOptimizationSparse.kt b/compiler/testData/codegen/box/when/switchOptimizationSparse.kt index 34760d9f3f4..0d5c1077e77 100644 --- a/compiler/testData/codegen/box/when/switchOptimizationSparse.kt +++ b/compiler/testData/codegen/box/when/switchOptimizationSparse.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // CHECK_CASES_COUNT: function=sparse count=3 diff --git a/compiler/testData/codegen/box/when/switchOptimizationStatement.kt b/compiler/testData/codegen/box/when/switchOptimizationStatement.kt index cb19a31a809..75d15e1d346 100644 --- a/compiler/testData/codegen/box/when/switchOptimizationStatement.kt +++ b/compiler/testData/codegen/box/when/switchOptimizationStatement.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // CHECK_CASES_COUNT: function=exhaustive count=3 diff --git a/compiler/testData/codegen/box/when/switchOptimizationTypes.kt b/compiler/testData/codegen/box/when/switchOptimizationTypes.kt index f795ba581d1..a056f2fd88e 100644 --- a/compiler/testData/codegen/box/when/switchOptimizationTypes.kt +++ b/compiler/testData/codegen/box/when/switchOptimizationTypes.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // CHECK_CASES_COUNT: function=intFoo count=3 diff --git a/compiler/testData/codegen/box/when/switchOptimizationUnordered.kt b/compiler/testData/codegen/box/when/switchOptimizationUnordered.kt index 25bde3c69bc..0a9ff80c5ce 100644 --- a/compiler/testData/codegen/box/when/switchOptimizationUnordered.kt +++ b/compiler/testData/codegen/box/when/switchOptimizationUnordered.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // CHECK_CASES_COUNT: function=foo count=3 diff --git a/compiler/testData/codegen/box/when/switchOptimizationWithGap.kt b/compiler/testData/codegen/box/when/switchOptimizationWithGap.kt index a2280401a83..16d9ccdeaec 100644 --- a/compiler/testData/codegen/box/when/switchOptimizationWithGap.kt +++ b/compiler/testData/codegen/box/when/switchOptimizationWithGap.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // WITH_RUNTIME // CHECK_CASES_COUNT: function=foo count=4 diff --git a/compiler/testData/codegen/box/when/whenArgumentIsEvaluatedOnlyOnce.kt b/compiler/testData/codegen/box/when/whenArgumentIsEvaluatedOnlyOnce.kt index 290af098c87..665d10d7d3a 100644 --- a/compiler/testData/codegen/box/when/whenArgumentIsEvaluatedOnlyOnce.kt +++ b/compiler/testData/codegen/box/when/whenArgumentIsEvaluatedOnlyOnce.kt @@ -1,5 +1,3 @@ -// DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS // KJS_WITH_FULL_RUNTIME var x = 0 fun inc(): Int { diff --git a/compiler/testData/codegen/box/when/whenSubjectVariable/denseIntSwitchWithSubjectVariable.kt b/compiler/testData/codegen/box/when/whenSubjectVariable/denseIntSwitchWithSubjectVariable.kt index f807f43c8c2..f2e2716cf53 100644 --- a/compiler/testData/codegen/box/when/whenSubjectVariable/denseIntSwitchWithSubjectVariable.kt +++ b/compiler/testData/codegen/box/when/whenSubjectVariable/denseIntSwitchWithSubjectVariable.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // !LANGUAGE: +VariableDeclarationInWhenSubject // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/when/whenSubjectVariable/sparseIntSwitchWithSubjectVariable.kt b/compiler/testData/codegen/box/when/whenSubjectVariable/sparseIntSwitchWithSubjectVariable.kt index 4cbfa4c5f64..d2bdb47c222 100644 --- a/compiler/testData/codegen/box/when/whenSubjectVariable/sparseIntSwitchWithSubjectVariable.kt +++ b/compiler/testData/codegen/box/when/whenSubjectVariable/sparseIntSwitchWithSubjectVariable.kt @@ -1,5 +1,5 @@ // DONT_TARGET_EXACT_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_COLLECTIONS +// WASM_MUTE_REASON: STDLIB_STRING_BUILDER // KJS_WITH_FULL_RUNTIME // !LANGUAGE: +VariableDeclarationInWhenSubject // WITH_RUNTIME diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index 5613a5a7ab7..71d73cb521d 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -308,6 +308,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt"); } + @TestMetadata("collectionAssignGetMultiIndex.kt") + public void testCollectionAssignGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt"); + } + + @TestMetadata("collectionGetMultiIndex.kt") + public void testCollectionGetMultiIndex() throws Exception { + runTest("compiler/testData/codegen/box/arrays/collectionGetMultiIndex.kt"); + } + @TestMetadata("constantArrayOfAny.kt") public void testConstantArrayOfAny() throws Exception { runTest("compiler/testData/codegen/box/arrays/constantArrayOfAny.kt"); @@ -358,6 +368,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/arrays/genericArrayInObjectLiteralConstructor.kt"); } + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/arrays/hashMap.kt"); + } + @TestMetadata("inProjectionAsParameter.kt") public void testInProjectionAsParameter() throws Exception { runTest("compiler/testData/codegen/box/arrays/inProjectionAsParameter.kt"); @@ -453,6 +468,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/arrays/kt238.kt"); } + @TestMetadata("kt33.kt") + public void testKt33() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt33.kt"); + } + @TestMetadata("kt34291_16dimensions.kt") public void testKt34291_16dimensions() throws Exception { runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt"); @@ -513,6 +533,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/arrays/kt945.kt"); } + @TestMetadata("kt950.kt") + public void testKt950() throws Exception { + runTest("compiler/testData/codegen/box/arrays/kt950.kt"); + } + @TestMetadata("longAsIndex.kt") public void testLongAsIndex() throws Exception { runTest("compiler/testData/codegen/box/arrays/longAsIndex.kt"); @@ -577,6 +602,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testReversedArrayReversedArrayOriginalUpdatedInLoopBody() throws Exception { runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedArrayReversedArrayOriginalUpdatedInLoopBody.kt"); } + + @TestMetadata("reversedOriginalUpdatedInLoopBody.kt") + public void testReversedOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedOriginalUpdatedInLoopBody.kt"); + } + + @TestMetadata("reversedReversedOriginalUpdatedInLoopBody.kt") + public void testReversedReversedOriginalUpdatedInLoopBody() throws Exception { + runTest("compiler/testData/codegen/box/arrays/forInReversed/reversedReversedOriginalUpdatedInLoopBody.kt"); + } } @TestMetadata("compiler/testData/codegen/box/arrays/forInUnsignedArray") @@ -1018,6 +1053,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/boxingOptimization/kt5844.kt"); } + @TestMetadata("kt6842.kt") + public void testKt6842() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/kt6842.kt"); + } + @TestMetadata("maxMinByOrNull.kt") public void testMaxMinByOrNull() throws Exception { runTest("compiler/testData/codegen/box/boxingOptimization/maxMinByOrNull.kt"); @@ -1028,6 +1068,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/boxingOptimization/nullCheck.kt"); } + @TestMetadata("progressions.kt") + public void testProgressions() throws Exception { + runTest("compiler/testData/codegen/box/boxingOptimization/progressions.kt"); + } + @TestMetadata("safeCallWithElvis.kt") public void testSafeCallWithElvis() throws Exception { runTest("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt"); @@ -1946,6 +1991,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/callableReference/function/innerConstructorFromTopLevelOneStringArg.kt"); } + @TestMetadata("kt21787.kt") + public void testKt21787() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/kt21787.kt"); + } + @TestMetadata("kt32462.kt") public void testKt32462() throws Exception { runTest("compiler/testData/codegen/box/callableReference/function/kt32462.kt"); @@ -1986,6 +2036,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/callableReference/function/privateClassMember.kt"); } + @TestMetadata("sortListOfStrings.kt") + public void testSortListOfStrings() throws Exception { + runTest("compiler/testData/codegen/box/callableReference/function/sortListOfStrings.kt"); + } + @TestMetadata("specialCalls.kt") public void testSpecialCalls() throws Exception { runTest("compiler/testData/codegen/box/callableReference/function/specialCalls.kt"); @@ -2470,11 +2525,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/casts/mutableCollections/asWithMutable.kt"); } + @TestMetadata("isWithMutable.kt") + public void testIsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/isWithMutable.kt"); + } + @TestMetadata("reifiedAsWithMutable.kt") public void testReifiedAsWithMutable() throws Exception { runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt"); } + @TestMetadata("reifiedIsWithMutable.kt") + public void testReifiedIsWithMutable() throws Exception { + runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt"); + } + @TestMetadata("reifiedSafeAsWithMutable.kt") public void testReifiedSafeAsWithMutable() throws Exception { runTest("compiler/testData/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt"); @@ -2652,6 +2717,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/initializerBlock.kt"); } + @TestMetadata("initializerBlockDImpl.kt") + public void testInitializerBlockDImpl() throws Exception { + runTest("compiler/testData/codegen/box/classes/initializerBlockDImpl.kt"); + } + @TestMetadata("initializerBlockResetToDefault.kt") public void testInitializerBlockResetToDefault() throws Exception { runTest("compiler/testData/codegen/box/classes/initializerBlockResetToDefault.kt"); @@ -2727,6 +2797,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/kt1976.kt"); } + @TestMetadata("kt1980.kt") + public void testKt1980() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt1980.kt"); + } + @TestMetadata("kt2224.kt") public void testKt2224() throws Exception { runTest("compiler/testData/codegen/box/classes/kt2224.kt"); @@ -2742,6 +2817,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/kt2390.kt"); } + @TestMetadata("kt2391.kt") + public void testKt2391() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2391.kt"); + } + + @TestMetadata("kt2417.kt") + public void testKt2417() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt2417.kt"); + } + @TestMetadata("kt2477.kt") public void testKt2477() throws Exception { runTest("compiler/testData/codegen/box/classes/kt2477.kt"); @@ -2822,6 +2907,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/kt3414.kt"); } + @TestMetadata("kt343.kt") + public void testKt343() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt343.kt"); + } + @TestMetadata("kt3546.kt") public void testKt3546() throws Exception { runTest("compiler/testData/codegen/box/classes/kt3546.kt"); @@ -2867,6 +2957,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/kt504.kt"); } + @TestMetadata("kt508.kt") + public void testKt508() throws Exception { + runTest("compiler/testData/codegen/box/classes/kt508.kt"); + } + @TestMetadata("kt5347.kt") public void testKt5347() throws Exception { runTest("compiler/testData/codegen/box/classes/kt5347.kt"); @@ -2922,6 +3017,31 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/classes/outerThis.kt"); } + @TestMetadata("overloadBinaryOperator.kt") + public void testOverloadBinaryOperator() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadBinaryOperator.kt"); + } + + @TestMetadata("overloadPlusAssign.kt") + public void testOverloadPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusAssign.kt"); + } + + @TestMetadata("overloadPlusAssignReturn.kt") + public void testOverloadPlusAssignReturn() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusAssignReturn.kt"); + } + + @TestMetadata("overloadPlusToPlusAssign.kt") + public void testOverloadPlusToPlusAssign() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadPlusToPlusAssign.kt"); + } + + @TestMetadata("overloadUnaryOperator.kt") + public void testOverloadUnaryOperator() throws Exception { + runTest("compiler/testData/codegen/box/classes/overloadUnaryOperator.kt"); + } + @TestMetadata("privateOuterFunctions.kt") public void testPrivateOuterFunctions() throws Exception { runTest("compiler/testData/codegen/box/classes/privateOuterFunctions.kt"); @@ -3544,6 +3664,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/closures/closureInsideClosure/localFunInsideLocalFunDifferentSignatures.kt"); } + @TestMetadata("propertyAndFunctionNameClash.kt") + public void testPropertyAndFunctionNameClash() throws Exception { + runTest("compiler/testData/codegen/box/closures/closureInsideClosure/propertyAndFunctionNameClash.kt"); + } + @TestMetadata("threeLevels.kt") public void testThreeLevels() throws Exception { runTest("compiler/testData/codegen/box/closures/closureInsideClosure/threeLevels.kt"); @@ -3591,6 +3716,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("inSetWithSmartCast.kt") + public void testInSetWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/collections/inSetWithSmartCast.kt"); + } + @TestMetadata("inheritFromAbstractMutableListInt.kt") public void testInheritFromAbstractMutableListInt() throws Exception { runTest("compiler/testData/codegen/box/collections/inheritFromAbstractMutableListInt.kt"); @@ -3759,6 +3889,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/controlStructures/conditionOfEmptyIf.kt"); } + @TestMetadata("continueInFor.kt") + public void testContinueInFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueInFor.kt"); + } + @TestMetadata("continueInForCondition.kt") public void testContinueInForCondition() throws Exception { runTest("compiler/testData/codegen/box/controlStructures/continueInForCondition.kt"); @@ -3774,6 +3909,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/controlStructures/continueInWhile.kt"); } + @TestMetadata("continueToLabelInFor.kt") + public void testContinueToLabelInFor() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/continueToLabelInFor.kt"); + } + @TestMetadata("doWhile.kt") public void testDoWhile() throws Exception { runTest("compiler/testData/codegen/box/controlStructures/doWhile.kt"); @@ -3814,6 +3954,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/controlStructures/finallyOnEmptyReturn.kt"); } + @TestMetadata("forArrayList.kt") + public void testForArrayList() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forArrayList.kt"); + } + + @TestMetadata("forArrayListMultiDecl.kt") + public void testForArrayListMultiDecl() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forArrayListMultiDecl.kt"); + } + @TestMetadata("forInCharSequenceMut.kt") public void testForInCharSequenceMut() throws Exception { runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceMut.kt"); @@ -4261,6 +4411,96 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInForInArrayWithIndex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("forInArrayOfPrimArrayWithIndex.kt") + public void testForInArrayOfPrimArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayOfPrimArrayWithIndex.kt"); + } + + @TestMetadata("forInArrayWithIndexBreakAndContinue.kt") + public void testForInArrayWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInArrayWithIndexNoElementVar.kt") + public void testForInArrayWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt"); + } + + @TestMetadata("forInArrayWithIndexNoIndexOrElementVar.kt") + public void testForInArrayWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt"); + } + + @TestMetadata("forInArrayWithIndexNoIndexVar.kt") + public void testForInArrayWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt"); + } + + @TestMetadata("forInArrayWithIndexNotDestructured.kt") + public void testForInArrayWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt"); + } + + @TestMetadata("forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInArrayWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt"); + } + + @TestMetadata("forInByteArrayWithIndex.kt") + public void testForInByteArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndex.kt"); + } + + @TestMetadata("forInByteArrayWithIndexWithSmartCast.kt") + public void testForInByteArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInByteArrayWithIndexWithSmartCast.kt"); + } + + @TestMetadata("forInEmptyArrayWithIndex.kt") + public void testForInEmptyArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInEmptyArrayWithIndex.kt"); + } + + @TestMetadata("forInGenericArrayOfIntsWithIndex.kt") + public void testForInGenericArrayOfIntsWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndex.kt"); + } + + @TestMetadata("forInGenericArrayOfIntsWithIndexWithSmartCast.kt") + public void testForInGenericArrayOfIntsWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayOfIntsWithIndexWithSmartCast.kt"); + } + + @TestMetadata("forInGenericArrayWithIndex.kt") + public void testForInGenericArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInGenericArrayWithIndex.kt"); + } + + @TestMetadata("forInIntArrayWithIndex.kt") + public void testForInIntArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndex.kt"); + } + + @TestMetadata("forInIntArrayWithIndexWithSmartCast.kt") + public void testForInIntArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInIntArrayWithIndexWithSmartCast.kt"); + } + + @TestMetadata("forInObjectArrayWithIndex.kt") + public void testForInObjectArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInObjectArrayWithIndex.kt"); + } + + @TestMetadata("forInShortArrayWithIndex.kt") + public void testForInShortArrayWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndex.kt"); + } + + @TestMetadata("forInShortArrayWithIndexWithSmartCast.kt") + public void testForInShortArrayWithIndexWithSmartCast() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInShortArrayWithIndexWithSmartCast.kt"); + } } @TestMetadata("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex") @@ -4275,10 +4515,70 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("forInCharSequenceTypeParameterWithIndex.kt") + public void testForInCharSequenceTypeParameterWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceTypeParameterWithIndex.kt"); + } + + @TestMetadata("forInCharSequenceWithIndex.kt") + public void testForInCharSequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexBreakAndContinue.kt") + public void testForInCharSequenceWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexCheckSideEffects.kt") + public void testForInCharSequenceWithIndexCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexCheckSideEffects.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt") + public void testForInCharSequenceWithIndexNoElementVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoElementVarCheckSideEffects.kt"); + } + + @TestMetadata("forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt") + public void testForInCharSequenceWithIndexNoIndexVarCheckSideEffects() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInCharSequenceWithIndexNoIndexVarCheckSideEffects.kt"); + } + @TestMetadata("forInEmptyStringWithIndex.kt") public void testForInEmptyStringWithIndex() throws Exception { runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInEmptyStringWithIndex.kt"); } + + @TestMetadata("forInStringWithIndex.kt") + public void testForInStringWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndex.kt"); + } + + @TestMetadata("forInStringWithIndexNoElementVar.kt") + public void testForInStringWithIndexNoElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt"); + } + + @TestMetadata("forInStringWithIndexNoIndexOrElementVar.kt") + public void testForInStringWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt"); + } + + @TestMetadata("forInStringWithIndexNoIndexVar.kt") + public void testForInStringWithIndexNoIndexVar() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt"); + } + + @TestMetadata("forInStringWithIndexNotDestructured.kt") + public void testForInStringWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt"); + } + + @TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt") + public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt"); + } } @TestMetadata("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex") @@ -4292,6 +4592,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInForInIterableWithIndex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("forInEmptyListWithIndex.kt") + public void testForInEmptyListWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInIterableWithIndex/forInEmptyListWithIndex.kt"); + } } @TestMetadata("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex") @@ -4305,6 +4610,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInForInSequenceWithIndex() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("forInEmptySequenceWithIndex.kt") + public void testForInEmptySequenceWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt"); + } } @TestMetadata("compiler/testData/codegen/box/controlStructures/returnsNothing") @@ -4492,6 +4802,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndContinue.kt"); } + @TestMetadata("tryCatchAfterWhileTrue.kt") + public void testTryCatchAfterWhileTrue() throws Exception { + runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryCatchAfterWhileTrue.kt"); + } + @TestMetadata("tryInsideCatch.kt") public void testTryInsideCatch() throws Exception { runTest("compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt"); @@ -5549,6 +5864,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realIteratorFoldl.kt"); } + @TestMetadata("realStringEscape.kt") + public void testRealStringEscape() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringEscape.kt"); + } + + @TestMetadata("realStringRepeat.kt") + public void testRealStringRepeat() throws Exception { + runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt"); + } + @TestMetadata("recursiveCallInInlineLambda.kt") public void testRecursiveCallInInlineLambda() throws Exception { runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt"); @@ -5685,6 +6010,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/elvis"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("genericElvisWithMoreSpecificLHS.kt") + public void testGenericElvisWithMoreSpecificLHS() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericElvisWithMoreSpecificLHS.kt"); + } + + @TestMetadata("genericElvisWithNullLHS.kt") + public void testGenericElvisWithNullLHS() throws Exception { + runTest("compiler/testData/codegen/box/elvis/genericElvisWithNullLHS.kt"); + } + @TestMetadata("genericNull.kt") public void testGenericNull() throws Exception { runTest("compiler/testData/codegen/box/elvis/genericNull.kt"); @@ -6190,6 +6525,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/extensionFunctions/kt1776.kt"); } + @TestMetadata("kt1953.kt") + public void testKt1953() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1953.kt"); + } + + @TestMetadata("kt1953_class.kt") + public void testKt1953_class() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt1953_class.kt"); + } + @TestMetadata("kt23675.kt") public void testKt23675() throws Exception { runTest("compiler/testData/codegen/box/extensionFunctions/kt23675.kt"); @@ -6220,11 +6565,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/extensionFunctions/kt4228.kt"); } + @TestMetadata("kt475.kt") + public void testKt475() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt475.kt"); + } + @TestMetadata("kt5467.kt") public void testKt5467() throws Exception { runTest("compiler/testData/codegen/box/extensionFunctions/kt5467.kt"); } + @TestMetadata("kt865.kt") + public void testKt865() throws Exception { + runTest("compiler/testData/codegen/box/extensionFunctions/kt865.kt"); + } + @TestMetadata("memberExtensionEqualsHashCodeToStringInInterface.kt") public void testMemberExtensionEqualsHashCodeToStringInInterface() throws Exception { runTest("compiler/testData/codegen/box/extensionFunctions/memberExtensionEqualsHashCodeToStringInInterface.kt"); @@ -7472,6 +7827,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/increment/memberExtOnLong.kt"); } + @TestMetadata("mutableListElement.kt") + public void testMutableListElement() throws Exception { + runTest("compiler/testData/codegen/box/increment/mutableListElement.kt"); + } + @TestMetadata("nullable.kt") public void testNullable() throws Exception { runTest("compiler/testData/codegen/box/increment/nullable.kt"); @@ -7672,6 +8032,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/inference/builderInference"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("callableReferenceAndCoercionToUnit.kt") + public void testCallableReferenceAndCoercionToUnit() throws Exception { + runTest("compiler/testData/codegen/box/inference/builderInference/callableReferenceAndCoercionToUnit.kt"); + } + @TestMetadata("constraintsBetweenTwoStubVariables.kt") public void testConstraintsBetweenTwoStubVariables() throws Exception { runTest("compiler/testData/codegen/box/inference/builderInference/constraintsBetweenTwoStubVariables.kt"); @@ -8054,6 +8419,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/genericInlineClassSynthMembers.kt"); } + @TestMetadata("genericVararg2ndConstructor.kt") + public void testGenericVararg2ndConstructor() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/genericVararg2ndConstructor.kt"); + } + @TestMetadata("initBlock.kt") public void testInitBlock() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/initBlock.kt"); @@ -8409,6 +8779,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/referToUnderlyingPropertyOfInlineClass.kt"); } + @TestMetadata("removeInInlineCollectionOfInlineClassAsInt.kt") + public void testRemoveInInlineCollectionOfInlineClassAsInt() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/removeInInlineCollectionOfInlineClassAsInt.kt"); + } + @TestMetadata("result.kt") public void testResult() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/result.kt"); @@ -8494,6 +8869,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/unboxResultParameterWhenCapturingToCrossinlineLambda.kt"); } + @TestMetadata("unboxValueFromPlatformType.kt") + public void testUnboxValueFromPlatformType() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt"); + } + + @TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt") + public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt"); + } + @TestMetadata("useInlineClassesInsideElvisOperator.kt") public void testUseInlineClassesInsideElvisOperator() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt"); @@ -8629,6 +9014,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideErasedToPrimitive.kt"); } + @TestMetadata("covariantOverrideListVsMutableList.kt") + public void testCovariantOverrideListVsMutableList() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideListVsMutableList.kt"); + } + @TestMetadata("covariantOverrideUnrelatedInterfaces.kt") public void testCovariantOverrideUnrelatedInterfaces() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/covariantOverrideUnrelatedInterfaces.kt"); @@ -8654,6 +9044,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt28483.kt"); } + @TestMetadata("kt31585.kt") + public void testKt31585() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt31585.kt"); + } + @TestMetadata("overrideGenericWithInlineClass.kt") public void testOverrideGenericWithInlineClass() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/overrideGenericWithInlineClass.kt"); @@ -8938,6 +9333,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt26858.kt"); } + @TestMetadata("kt27513.kt") + public void testKt27513() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt27513.kt"); + } + @TestMetadata("kt30780.kt") public void testKt30780() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/kt30780.kt"); @@ -9289,6 +9689,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/interfaceImplementationByDelegation.kt"); } + @TestMetadata("kt38337.kt") + public void testKt38337() throws Exception { + runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/kt38337.kt"); + } + @TestMetadata("memberExtValDelegationWithInlineClassParameterTypes.kt") public void testMemberExtValDelegationWithInlineClassParameterTypes() throws Exception { runTest("compiler/testData/codegen/box/inlineClasses/interfaceDelegation/memberExtValDelegationWithInlineClassParameterTypes.kt"); @@ -10055,6 +10460,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/intrinsics/prefixIncDec.kt"); } + @TestMetadata("rangeFromCollection.kt") + public void testRangeFromCollection() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/rangeFromCollection.kt"); + } + + @TestMetadata("stringFromCollection.kt") + public void testStringFromCollection() throws Exception { + runTest("compiler/testData/codegen/box/intrinsics/stringFromCollection.kt"); + } + @TestMetadata("throwableParamOrder.kt") public void testThrowableParamOrder() throws Exception { runTest("compiler/testData/codegen/box/intrinsics/throwableParamOrder.kt"); @@ -10473,6 +10888,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaInterop/notNullAssertions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("mapPut.kt") + public void testMapPut() throws Exception { + runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/mapPut.kt"); + } + @TestMetadata("compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -10577,6 +10997,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInJdk() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/jdk"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("arrayList.kt") + public void testArrayList() throws Exception { + runTest("compiler/testData/codegen/box/jdk/arrayList.kt"); + } + + @TestMetadata("hashMap.kt") + public void testHashMap() throws Exception { + runTest("compiler/testData/codegen/box/jdk/hashMap.kt"); + } + + @TestMetadata("iteratingOverHashMap.kt") + public void testIteratingOverHashMap() throws Exception { + runTest("compiler/testData/codegen/box/jdk/iteratingOverHashMap.kt"); + } } @TestMetadata("compiler/testData/codegen/box/jvm8") @@ -11284,6 +11719,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/multiDecl/ComplexInitializer.kt"); } + @TestMetadata("kt9828_hashMap.kt") + public void testKt9828_hashMap() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/kt9828_hashMap.kt"); + } + @TestMetadata("returnInElvis.kt") public void testReturnInElvis() throws Exception { runTest("compiler/testData/codegen/box/multiDecl/returnInElvis.kt"); @@ -11351,6 +11791,31 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("MultiDeclFor.kt") + public void testMultiDeclFor() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclFor.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } + + @TestMetadata("MultiDeclForValCaptured.kt") + public void testMultiDeclForValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/MultiDeclForValCaptured.kt"); + } + @TestMetadata("compiler/testData/codegen/box/multiDecl/forIterator/longIterator") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -11362,6 +11827,26 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInLongIterator() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiDecl/forIterator/longIterator"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("MultiDeclForComponentExtensions.kt") + public void testMultiDeclForComponentExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentExtensionsValCaptured.kt") + public void testMultiDeclForComponentExtensionsValCaptured() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentExtensionsValCaptured.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensions.kt") + public void testMultiDeclForComponentMemberExtensions() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensions.kt"); + } + + @TestMetadata("MultiDeclForComponentMemberExtensionsInExtensionFunction.kt") + public void testMultiDeclForComponentMemberExtensionsInExtensionFunction() throws Exception { + runTest("compiler/testData/codegen/box/multiDecl/forIterator/longIterator/MultiDeclForComponentMemberExtensionsInExtensionFunction.kt"); + } } } @@ -12181,6 +12666,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/objects/kt694.kt"); } + @TestMetadata("localFunctionInObjectInitializer_kt4516.kt") + public void testLocalFunctionInObjectInitializer_kt4516() throws Exception { + runTest("compiler/testData/codegen/box/objects/localFunctionInObjectInitializer_kt4516.kt"); + } + @TestMetadata("methodOnObject.kt") public void testMethodOnObject() throws Exception { runTest("compiler/testData/codegen/box/objects/methodOnObject.kt"); @@ -12231,6 +12721,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/objects/objectLiteralInClosure.kt"); } + @TestMetadata("objectVsClassInitialization_kt5291.kt") + public void testObjectVsClassInitialization_kt5291() throws Exception { + runTest("compiler/testData/codegen/box/objects/objectVsClassInitialization_kt5291.kt"); + } + @TestMetadata("objectWithSuperclass.kt") public void testObjectWithSuperclass() throws Exception { runTest("compiler/testData/codegen/box/objects/objectWithSuperclass.kt"); @@ -12633,6 +13128,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/operatorConventions/kt14201_2.kt"); } + @TestMetadata("kt14227.kt") + public void testKt14227() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/kt14227.kt"); + } + @TestMetadata("kt20387.kt") public void testKt20387() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/kt20387.kt"); @@ -12668,6 +13168,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/operatorConventions/overloadedSet.kt"); } + @TestMetadata("plusAssignWithComplexRHS.kt") + public void testPlusAssignWithComplexRHS() throws Exception { + runTest("compiler/testData/codegen/box/operatorConventions/plusAssignWithComplexRHS.kt"); + } + @TestMetadata("plusExplicit.kt") public void testPlusExplicit() throws Exception { runTest("compiler/testData/codegen/box/operatorConventions/plusExplicit.kt"); @@ -12816,6 +13321,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testPrivateTopLevelPropAndVarInInner() throws Exception { runTest("compiler/testData/codegen/box/package/privateTopLevelPropAndVarInInner.kt"); } + + @TestMetadata("referenceWithTheSameNameAsPackage.kt") + public void testReferenceWithTheSameNameAsPackage() throws Exception { + runTest("compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt"); + } } @TestMetadata("compiler/testData/codegen/box/polymorphicSignature") @@ -13969,6 +14479,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/ranges/forByteProgressionWithIntIncrement.kt"); } + @TestMetadata("forInCharSequenceWithCustomIterator.kt") + public void testForInCharSequenceWithCustomIterator() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithCustomIterator.kt"); + } + + @TestMetadata("forInCharSequenceWithMultipleGetFunctions.kt") + public void testForInCharSequenceWithMultipleGetFunctions() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCharSequenceWithMultipleGetFunctions.kt"); + } + + @TestMetadata("forInCustomCharSequence.kt") + public void testForInCustomCharSequence() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInCustomCharSequence.kt"); + } + @TestMetadata("forInDoubleRangeWithCustomIterator.kt") public void testForInDoubleRangeWithCustomIterator() throws Exception { runTest("compiler/testData/codegen/box/ranges/forInDoubleRangeWithCustomIterator.kt"); @@ -14024,6 +14549,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/ranges/kt37370a.kt"); } + @TestMetadata("multiAssignmentIterationOverIntRange.kt") + public void testMultiAssignmentIterationOverIntRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/multiAssignmentIterationOverIntRange.kt"); + } + @TestMetadata("compiler/testData/codegen/box/ranges/contains") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -14046,6 +14576,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/ranges/contains/comparisonWithRangeBoundEliminated.kt"); } + @TestMetadata("evaluationOrderForCollection.kt") + public void testEvaluationOrderForCollection() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForCollection.kt"); + } + + @TestMetadata("evaluationOrderForComparableRange.kt") + public void testEvaluationOrderForComparableRange() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForComparableRange.kt"); + } + @TestMetadata("genericCharInRangeLiteral.kt") public void testGenericCharInRangeLiteral() throws Exception { runTest("compiler/testData/codegen/box/ranges/contains/genericCharInRangeLiteral.kt"); @@ -14081,6 +14621,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/ranges/contains/inNonMatchingRange.kt"); } + @TestMetadata("inPrimitiveProgression.kt") + public void testInPrimitiveProgression() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/inPrimitiveProgression.kt"); + } + @TestMetadata("inPrimitiveRange.kt") public void testInPrimitiveRange() throws Exception { runTest("compiler/testData/codegen/box/ranges/contains/inPrimitiveRange.kt"); @@ -14126,6 +14671,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/ranges/contains/intInShortRangeWithPossibleOverflow.kt"); } + @TestMetadata("kt20106.kt") + public void testKt20106() throws Exception { + runTest("compiler/testData/codegen/box/ranges/contains/kt20106.kt"); + } + @TestMetadata("longInLongRangeWithPossibleOverflow.kt") public void testLongInLongRangeWithPossibleOverflow() throws Exception { runTest("compiler/testData/codegen/box/ranges/contains/longInLongRangeWithPossibleOverflow.kt"); @@ -14252,6 +14802,51 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("forInDownTo.kt") + public void testForInDownTo() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownTo.kt"); + } + + @TestMetadata("forInDownToReversed.kt") + public void testForInDownToReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversed.kt"); + } + + @TestMetadata("forInDownToReversedReversed.kt") + public void testForInDownToReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInDownToReversedReversed.kt"); + } + + @TestMetadata("forInRangeLiteral.kt") + public void testForInRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteral.kt"); + } + + @TestMetadata("forInRangeLiteralReversed.kt") + public void testForInRangeLiteralReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversed.kt"); + } + + @TestMetadata("forInRangeLiteralReversedReversed.kt") + public void testForInRangeLiteralReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInRangeLiteralReversedReversed.kt"); + } + + @TestMetadata("forInUntil.kt") + public void testForInUntil() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntil.kt"); + } + + @TestMetadata("forInUntilReversed.kt") + public void testForInUntilReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversed.kt"); + } + + @TestMetadata("forInUntilReversedReversed.kt") + public void testForInUntilReversedReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/forInUntilReversedReversed.kt"); + } + @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -14275,6 +14870,46 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInForInDownTo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("forInDownToReversedStep.kt") + public void testForInDownToReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStep.kt"); + } + + @TestMetadata("forInDownToReversedStepReversed.kt") + public void testForInDownToReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversed.kt"); + } + + @TestMetadata("forInDownToReversedStepReversedStep.kt") + public void testForInDownToReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToReversedStepReversedStep.kt"); + } + + @TestMetadata("forInDownToStep.kt") + public void testForInDownToStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStep.kt"); + } + + @TestMetadata("forInDownToStepReversed.kt") + public void testForInDownToStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversed.kt"); + } + + @TestMetadata("forInDownToStepReversedStep.kt") + public void testForInDownToStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStep.kt"); + } + + @TestMetadata("forInDownToStepReversedStepReversed.kt") + public void testForInDownToStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepReversedStepReversed.kt"); + } + + @TestMetadata("forInDownToStepStep.kt") + public void testForInDownToStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInDownTo/forInDownToStepStep.kt"); + } } @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral") @@ -14288,6 +14923,46 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInForInRangeLiteral() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("forInRangeLiteralReversedStep.kt") + public void testForInRangeLiteralReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStep.kt"); + } + + @TestMetadata("forInRangeLiteralReversedStepReversed.kt") + public void testForInRangeLiteralReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversed.kt"); + } + + @TestMetadata("forInRangeLiteralReversedStepReversedStep.kt") + public void testForInRangeLiteralReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralReversedStepReversedStep.kt"); + } + + @TestMetadata("forInRangeLiteralStep.kt") + public void testForInRangeLiteralStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStep.kt"); + } + + @TestMetadata("forInRangeLiteralStepReversed.kt") + public void testForInRangeLiteralStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversed.kt"); + } + + @TestMetadata("forInRangeLiteralStepReversedStep.kt") + public void testForInRangeLiteralStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStep.kt"); + } + + @TestMetadata("forInRangeLiteralStepReversedStepReversed.kt") + public void testForInRangeLiteralStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepReversedStepReversed.kt"); + } + + @TestMetadata("forInRangeLiteralStepStep.kt") + public void testForInRangeLiteralStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInRangeLiteral/forInRangeLiteralStepStep.kt"); + } } @TestMetadata("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil") @@ -14301,6 +14976,46 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest public void testAllFilesPresentInForInUntil() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + + @TestMetadata("forInUntilReversedStep.kt") + public void testForInUntilReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStep.kt"); + } + + @TestMetadata("forInUntilReversedStepReversed.kt") + public void testForInUntilReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversed.kt"); + } + + @TestMetadata("forInUntilReversedStepReversedStep.kt") + public void testForInUntilReversedStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilReversedStepReversedStep.kt"); + } + + @TestMetadata("forInUntilStep.kt") + public void testForInUntilStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStep.kt"); + } + + @TestMetadata("forInUntilStepReversed.kt") + public void testForInUntilStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversed.kt"); + } + + @TestMetadata("forInUntilStepReversedStep.kt") + public void testForInUntilStepReversedStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStep.kt"); + } + + @TestMetadata("forInUntilStepReversedStepReversed.kt") + public void testForInUntilStepReversedStepReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepReversedStepReversed.kt"); + } + + @TestMetadata("forInUntilStepStep.kt") + public void testForInUntilStepStep() throws Exception { + runTest("compiler/testData/codegen/box/ranges/evaluationOrder/stepped/forInUntil/forInUntilStepStep.kt"); + } } } } @@ -14496,6 +15211,76 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/forInProgressionWithIndex"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } + @TestMetadata("forInDownToWithIndex.kt") + public void testForInDownToWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInDownToWithIndex.kt"); + } + + @TestMetadata("forInIndicesWithIndex.kt") + public void testForInIndicesWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInIndicesWithIndex.kt"); + } + + @TestMetadata("forInRangeToWithIndex.kt") + public void testForInRangeToWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInRangeToWithIndex.kt"); + } + + @TestMetadata("forInReversedStepWithIndex.kt") + public void testForInReversedStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedStepWithIndex.kt"); + } + + @TestMetadata("forInReversedWithIndex.kt") + public void testForInReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInReversedWithIndex.kt"); + } + + @TestMetadata("forInStepReversedWithIndex.kt") + public void testForInStepReversedWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepReversedWithIndex.kt"); + } + + @TestMetadata("forInStepWithIndex.kt") + public void testForInStepWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInStepWithIndex.kt"); + } + + @TestMetadata("forInUntilWithIndex.kt") + public void testForInUntilWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInUntilWithIndex.kt"); + } + + @TestMetadata("forInWithIndexBreakAndContinue.kt") + public void testForInWithIndexBreakAndContinue() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexBreakAndContinue.kt"); + } + + @TestMetadata("forInWithIndexNoIndexOrElementVar.kt") + public void testForInWithIndexNoIndexOrElementVar() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt"); + } + + @TestMetadata("forInWithIndexNotDestructured.kt") + public void testForInWithIndexNotDestructured() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexNotDestructured.kt"); + } + + @TestMetadata("forInWithIndexReversed.kt") + public void testForInWithIndexReversed() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexReversed.kt"); + } + + @TestMetadata("forInWithIndexWithDestructuringInLoop.kt") + public void testForInWithIndexWithDestructuringInLoop() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithDestructuringInLoop.kt"); + } + + @TestMetadata("forInWithIndexWithIndex.kt") + public void testForInWithIndexWithIndex() throws Exception { + runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/forInWithIndexWithIndex.kt"); + } + @TestMetadata("kt42909.kt") public void testKt42909() throws Exception { runTest("compiler/testData/codegen/box/ranges/forInProgressionWithIndex/kt42909.kt"); @@ -15289,6 +16074,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/regressions/kt10934.kt"); } + @TestMetadata("Kt1149.kt") + public void testKt1149() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt1149.kt"); + } + @TestMetadata("kt13381.kt") public void testKt13381() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt13381.kt"); @@ -15309,11 +16099,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/regressions/kt1528.kt"); } + @TestMetadata("Kt1619Test.kt") + public void testKt1619Test() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt1619Test.kt"); + } + @TestMetadata("kt1779.kt") public void testKt1779() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt1779.kt"); } + @TestMetadata("kt1800.kt") + public void testKt1800() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt1800.kt"); + } + @TestMetadata("kt1845.kt") public void testKt1845() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt1845.kt"); @@ -15344,6 +16144,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/regressions/kt24913.kt"); } + @TestMetadata("Kt2495Test.kt") + public void testKt2495Test() throws Exception { + runTest("compiler/testData/codegen/box/regressions/Kt2495Test.kt"); + } + @TestMetadata("kt2509.kt") public void testKt2509() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt2509.kt"); @@ -15369,6 +16174,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/regressions/kt3421.kt"); } + @TestMetadata("kt3442.kt") + public void testKt3442() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt3442.kt"); + } + @TestMetadata("kt3587.kt") public void testKt3587() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt3587.kt"); @@ -15414,6 +16224,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/regressions/kt5786_privateWithDefault.kt"); } + @TestMetadata("kt5953.kt") + public void testKt5953() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt5953.kt"); + } + + @TestMetadata("kt6153.kt") + public void testKt6153() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt6153.kt"); + } + @TestMetadata("kt6434_2.kt") public void testKt6434_2() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt6434_2.kt"); @@ -15424,6 +16244,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/regressions/kt7401.kt"); } + @TestMetadata("kt789.kt") + public void testKt789() throws Exception { + runTest("compiler/testData/codegen/box/regressions/kt789.kt"); + } + @TestMetadata("kt998.kt") public void testKt998() throws Exception { runTest("compiler/testData/codegen/box/regressions/kt998.kt"); @@ -15537,6 +16362,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/reified/sameIndexRecursive.kt"); } + @TestMetadata("varargs.kt") + public void testVarargs() throws Exception { + runTest("compiler/testData/codegen/box/reified/varargs.kt"); + } + @TestMetadata("compiler/testData/codegen/box/reified/arraysReification") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -16416,6 +17246,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/strings/singleConcatNullable.kt"); } + @TestMetadata("stringPlusOnlyWorksOnString.kt") + public void testStringPlusOnlyWorksOnString() throws Exception { + runTest("compiler/testData/codegen/box/strings/stringPlusOnlyWorksOnString.kt"); + } + @TestMetadata("stringPlusOverride.kt") public void testStringPlusOverride() throws Exception { runTest("compiler/testData/codegen/box/strings/stringPlusOverride.kt"); @@ -16616,6 +17451,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_arrayOf.kt"); } + @TestMetadata("kt17464_linkedMapOf.kt") + public void testKt17464_linkedMapOf() throws Exception { + runTest("compiler/testData/codegen/box/super/superConstructor/kt17464_linkedMapOf.kt"); + } + @TestMetadata("kt18356.kt") public void testKt18356() throws Exception { runTest("compiler/testData/codegen/box/super/superConstructor/kt18356.kt"); @@ -17470,11 +18310,41 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/unsignedTypes/equalsImplForInlineClassWrappingNullableInlineClass.kt"); } + @TestMetadata("forInUnsignedDownTo.kt") + public void testForInUnsignedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedDownTo.kt"); + } + + @TestMetadata("forInUnsignedProgression.kt") + public void testForInUnsignedProgression() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedProgression.kt"); + } + + @TestMetadata("forInUnsignedRange.kt") + public void testForInUnsignedRange() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRange.kt"); + } + + @TestMetadata("forInUnsignedRangeLiteral.kt") + public void testForInUnsignedRangeLiteral() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeLiteral.kt"); + } + @TestMetadata("forInUnsignedRangeWithCoercion.kt") public void testForInUnsignedRangeWithCoercion() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedRangeWithCoercion.kt"); } + @TestMetadata("forInUnsignedUntil.kt") + public void testForInUnsignedUntil() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/forInUnsignedUntil.kt"); + } + + @TestMetadata("inUnsignedDownTo.kt") + public void testInUnsignedDownTo() throws Exception { + runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedDownTo.kt"); + } + @TestMetadata("inUnsignedRange.kt") public void testInUnsignedRange() throws Exception { runTest("compiler/testData/codegen/box/unsignedTypes/inUnsignedRange.kt"); @@ -17639,11 +18509,21 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/vararg/kt1978.kt"); } + @TestMetadata("kt37715.kt") + public void testKt37715() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt37715.kt"); + } + @TestMetadata("kt37779.kt") public void testKt37779() throws Exception { runTest("compiler/testData/codegen/box/vararg/kt37779.kt"); } + @TestMetadata("kt581.kt") + public void testKt581() throws Exception { + runTest("compiler/testData/codegen/box/vararg/kt581.kt"); + } + @TestMetadata("kt6192.kt") public void testKt6192() throws Exception { runTest("compiler/testData/codegen/box/vararg/kt6192.kt"); @@ -17742,6 +18622,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/when/inferredTypeParameters.kt"); } + @TestMetadata("is.kt") + public void testIs() throws Exception { + runTest("compiler/testData/codegen/box/when/is.kt"); + } + @TestMetadata("kt2457.kt") public void testKt2457() throws Exception { runTest("compiler/testData/codegen/box/when/kt2457.kt"); @@ -17767,6 +18652,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/when/kt5307.kt"); } + @TestMetadata("kt5448.kt") + public void testKt5448() throws Exception { + runTest("compiler/testData/codegen/box/when/kt5448.kt"); + } + @TestMetadata("longInRange.kt") public void testLongInRange() throws Exception { runTest("compiler/testData/codegen/box/when/longInRange.kt"); @@ -17817,6 +18707,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/when/nullableWhen.kt"); } + @TestMetadata("range.kt") + public void testRange() throws Exception { + runTest("compiler/testData/codegen/box/when/range.kt"); + } + @TestMetadata("sealedWhenInitialization.kt") public void testSealedWhenInitialization() throws Exception { runTest("compiler/testData/codegen/box/when/sealedWhenInitialization.kt"); @@ -17847,6 +18742,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/when/typeDisjunction.kt"); } + @TestMetadata("whenArgumentIsEvaluatedOnlyOnce.kt") + public void testWhenArgumentIsEvaluatedOnlyOnce() throws Exception { + runTest("compiler/testData/codegen/box/when/whenArgumentIsEvaluatedOnlyOnce.kt"); + } + @TestMetadata("whenSafeCallSubjectEvaluatedOnce.kt") public void testWhenSafeCallSubjectEvaluatedOnce() throws Exception { runTest("compiler/testData/codegen/box/when/whenSafeCallSubjectEvaluatedOnce.kt"); diff --git a/kotlin-native/backend.native/build.gradle b/kotlin-native/backend.native/build.gradle index 3c08c3c3b68..995f73939c4 100644 --- a/kotlin-native/backend.native/build.gradle +++ b/kotlin-native/backend.native/build.gradle @@ -153,7 +153,8 @@ final List stdLibSrc = [ interopRuntimeCommonSrc, project(':kotlin-native:Interop:Runtime').file('src/native/kotlin'), project(':kotlin-native:Interop:JsRuntime').file('src/main/kotlin'), - project(':kotlin-native:runtime').file('src/main/kotlin') + project(':kotlin-native:runtime').file('src/main/kotlin'), + project(":kotlin-stdlib-common").file('../native-wasm/src/') ] // These files are built before the 'dist' is complete, diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index 9e209e8cc5d..5368a6e5a30 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -212,6 +212,7 @@ task distNativeSources(type: Zip) { include('**/*.kt') from(project(':kotlin-native:runtime').file('src/main/kotlin')) + from(project(":kotlin-stdlib-common").file('../native-wasm/src/')) from(project(':kotlin-native:Interop:Runtime').file('src/main/kotlin')) from(project(':kotlin-native:Interop:Runtime').file('src/native/kotlin')) from(project(':kotlin-native:Interop:JsRuntime').file('src/main/kotlin')) { diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt index 1a6b994e248..9ce74a59001 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt @@ -5,6 +5,8 @@ package kotlin.text +import kotlin.native.internal.GCUnsafeCall + /** Appends [value] to this [StringBuilder], followed by a line feed character (`\n`). */ @SinceKotlin("1.4") @kotlin.internal.InlineOnly @@ -74,4 +76,10 @@ public fun StringBuilder.appendln(it: Any?): StringBuilder = appendLine(it) @DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6") @Deprecated("Use appendLine instead", ReplaceWith("appendLine()")) -public fun StringBuilder.appendln(): StringBuilder = appendLine() \ No newline at end of file +public fun StringBuilder.appendln(): StringBuilder = appendLine() + +@GCUnsafeCall("Kotlin_StringBuilder_insertString") +internal external fun insertString(array: CharArray, distIndex: Int, value: String, sourceIndex: Int, count: Int): Int + +@GCUnsafeCall("Kotlin_StringBuilder_insertInt") +internal external fun insertInt(array: CharArray, start: Int, value: Int): Int \ No newline at end of file diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableCollection.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableCollection.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableCollection.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableCollection.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableList.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableList.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableList.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableList.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableMap.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableMap.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableMap.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableMap.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableSet.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableSet.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/AbstractMutableSet.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/AbstractMutableSet.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/ArrayList.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/ArrayList.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/ArrayList.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/ArrayList.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/ArraySorting.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/ArraySorting.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/ArraySorting.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/ArraySorting.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Arrays.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Arrays.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Arrays.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Arrays.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Collection.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Collection.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Collection.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Collection.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Collections.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Collections.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Collections.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Collections.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/HashMap.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/HashMap.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/HashMap.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/HashMap.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/HashSet.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/HashSet.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/HashSet.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/HashSet.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Iterator.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Iterator.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Iterator.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Iterator.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Iterators.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Iterators.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Iterators.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Iterators.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/List.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/List.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/List.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/List.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Map.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Map.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Map.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Map.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Maps.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Maps.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Maps.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Maps.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/MutableCollections.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/MutableCollections.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/MutableCollections.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/MutableCollections.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/RandomAccess.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/RandomAccess.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/RandomAccess.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/RandomAccess.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Set.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Set.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Set.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Set.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/collections/Sets.kt b/libraries/stdlib/native-wasm/src/kotlin/collections/Sets.kt similarity index 100% rename from kotlin-native/runtime/src/main/kotlin/kotlin/collections/Sets.kt rename to libraries/stdlib/native-wasm/src/kotlin/collections/Sets.kt diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilder.kt b/libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt similarity index 99% rename from kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilder.kt rename to libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt index d44e12ab170..bd2bedf60e4 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilder.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt @@ -5,8 +5,6 @@ package kotlin.text -import kotlin.native.internal.GCUnsafeCall - /** * A mutable sequence of characters. * @@ -806,13 +804,6 @@ public actual inline fun StringBuilder.insertRange(index: Int, value: CharSequen internal fun insertString(array: CharArray, start: Int, value: String): Int = insertString(array, start, value, 0, value.length) -@GCUnsafeCall("Kotlin_StringBuilder_insertString") -internal external fun insertString(array: CharArray, distIndex: Int, value: String, sourceIndex: Int, count: Int): Int - -@GCUnsafeCall("Kotlin_StringBuilder_insertInt") -internal external fun insertInt(array: CharArray, start: Int, value: Int): Int - - // Method parameters renamings @Suppress("EXTENSION_SHADOWED_BY_MEMBER") @DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.6") diff --git a/libraries/stdlib/wasm/build.gradle.kts b/libraries/stdlib/wasm/build.gradle.kts index 7d9801b9f2c..82d37c014e4 100644 --- a/libraries/stdlib/wasm/build.gradle.kts +++ b/libraries/stdlib/wasm/build.gradle.kts @@ -20,14 +20,16 @@ val builtInsSources by task { val excluded = listOf( // JS-specific optimized version of emptyArray() already defined - "core/builtins/src/kotlin/ArrayIntrinsics.kt" + "ArrayIntrinsics.kt", + // Included with K/N collections + "Collections.kt", "Iterator.kt", "Iterators.kt" ) sources.forEach { path -> from("$rootDir/$path") { into(path.dropLastWhile { it != '/' }) - excluded.filter { it.startsWith(path) }.forEach { - exclude(it.substring(path.length)) + excluded.forEach { + exclude(it) } } } @@ -58,6 +60,7 @@ kotlin { sourceSets { val jsMain by getting { kotlin.srcDirs("builtins", "internal", "runtime", "src", "stubs") + kotlin.srcDirs("../native-wasm/") kotlin.srcDirs(files(builtInsSources.map { it.destinationDir })) } diff --git a/libraries/stdlib/wasm/internal/kotlin/wasm/internal/WasmInstructions.kt b/libraries/stdlib/wasm/internal/kotlin/wasm/internal/WasmInstructions.kt index b61109c9266..692474f9602 100644 --- a/libraries/stdlib/wasm/internal/kotlin/wasm/internal/WasmInstructions.kt +++ b/libraries/stdlib/wasm/internal/kotlin/wasm/internal/WasmInstructions.kt @@ -324,3 +324,9 @@ public external fun wasm_i32_clz(a: Int): Int @WasmOp(WasmOp.I64_CLZ) public external fun wasm_i64_clz(a: Long): Long + +@WasmOp(WasmOp.I64_POPCNT) +public external fun wasm_i64_popcnt(a: Long): Long + +@WasmOp(WasmOp.I64_CTZ) +public external fun wasm_i64_ctz(a: Long): Long \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/Exceptions.kt b/libraries/stdlib/wasm/src/kotlin/Exceptions.kt index 82e33cbb565..9ad26c4090a 100644 --- a/libraries/stdlib/wasm/src/kotlin/Exceptions.kt +++ b/libraries/stdlib/wasm/src/kotlin/Exceptions.kt @@ -93,3 +93,8 @@ public actual open class UninitializedPropertyAccessException actual constructor actual constructor(cause: Throwable?) : this(null, cause) } +public open class OutOfMemoryError : Error { + constructor() : super() + constructor(message: String?) : super(message) +} + diff --git a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableCollection.kt b/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableCollection.kt deleted file mode 100644 index 4114e8b5193..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableCollection.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -/** - * Provides a skeletal implementation of the [MutableCollection] interface. - * - * @param E the type of elements contained in the collection. The collection is invariant on its element type. - */ -@SinceKotlin("1.3") -public actual abstract class AbstractMutableCollection : MutableCollection { - actual protected constructor() - - actual abstract override val size: Int - actual abstract override fun iterator(): MutableIterator - actual abstract override fun add(element: E): Boolean - - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: AbstractMutableCollection") - actual override fun contains(element: @UnsafeVariance E): Boolean = TODO("Wasm stdlib: AbstractMutableCollection") - actual override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean = TODO("Wasm stdlib: AbstractMutableCollection") - - - actual override fun addAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableCollection") - actual override fun remove(element: E): Boolean = TODO("Wasm stdlib: AbstractMutableCollection") - actual override fun removeAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableCollection") - actual override fun retainAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableCollection") - actual override fun clear(): Unit = TODO("Wasm stdlib: AbstractMutableCollection") -} - diff --git a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableList.kt b/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableList.kt deleted file mode 100644 index f2ba41d66c5..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableList.kt +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -/** - * Provides a skeletal implementation of the [MutableList] interface. - * - * @param E the type of elements contained in the list. The list is invariant on its element type. - */ -public actual abstract class AbstractMutableList : MutableList { - actual protected constructor() - - // From List - - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun contains(element: @UnsafeVariance E): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun indexOf(element: @UnsafeVariance E): Int = TODO("Wasm stdlib: AbstractMutableList") - actual override fun lastIndexOf(element: @UnsafeVariance E): Int = TODO("Wasm stdlib: AbstractMutableList") - - // From MutableCollection - - actual override fun iterator(): MutableIterator = TODO("Wasm stdlib: AbstractMutableList") - - // From MutableList - - /** - * Adds the specified element to the end of this list. - * - * @return `true` because the list is always modified as the result of this operation. - */ - actual override fun add(element: E): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun remove(element: E): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun addAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun addAll(index: Int, elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun removeAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun retainAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableList") - actual override fun clear() { TODO("Wasm stdlib: AbstractMutableList") } - actual override fun listIterator(): MutableListIterator = TODO("Wasm stdlib: AbstractMutableList") - actual override fun listIterator(index: Int): MutableListIterator = TODO("Wasm stdlib: AbstractMutableList") - actual override fun subList(fromIndex: Int, toIndex: Int): MutableList = TODO("Wasm stdlib: AbstractMutableList") -} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableMap.kt b/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableMap.kt deleted file mode 100644 index 31fb824b2a8..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableMap.kt +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -/** - * Provides a skeletal implementation of the [MutableMap] interface. - * - * The implementor is required to implement [entries] property, which should return mutable set of map entries, and [put] function. - * - * @param K the type of map keys. The map is invariant on its key type. - * @param V the type of map values. The map is invariant on its value type. - */ -@SinceKotlin("1.3") -public actual abstract class AbstractMutableMap : MutableMap { - actual protected constructor() - - /** - * Associates the specified [value] with the specified [key] in the map. - * - * This method is redeclared as abstract, because it's not implemented in the base class, - * so it must be always overridden in the concrete mutable collection implementation. - * - * @return the previous value associated with the key, or `null` if the key was not present in the map. - */ - abstract actual override fun put(key: K, value: V): V? - - abstract actual override val entries: MutableSet> - - actual override val keys: MutableSet = TODO("Wasm stdlib: AbstractMutableMap") - actual override val size: Int = TODO("Wasm stdlib: AbstractMutableMap") - actual override val values: MutableCollection = TODO("Wasm stdlib: AbstractMutableMap") - actual override fun clear() { TODO("Wasm stdlib: AbstractMutableMap") } - actual override fun containsKey(key: K): Boolean = TODO("Wasm stdlib: AbstractMutableMap") - actual override fun containsValue(value: V): Boolean = TODO("Wasm stdlib: AbstractMutableMap") - actual override fun get(key: K): V? = TODO("Wasm stdlib: AbstractMutableMap") - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: AbstractMutableMap") - actual override fun putAll(from: Map) { TODO("Wasm stdlib: AbstractMutableMap") } - actual override fun remove(key: K): V? = TODO("Wasm stdlib: AbstractMutableMap") -} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableSet.kt b/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableSet.kt deleted file mode 100644 index 1db74638914..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/AbstractMutableSet.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -/** - * Provides a skeletal implementation of the [MutableSet] interface. - * - * @param E the type of elements contained in the set. The set is invariant on its element type. - */ -@SinceKotlin("1.3") -public actual abstract class AbstractMutableSet : MutableSet { - actual protected constructor() - - actual abstract override val size: Int - actual abstract override fun iterator(): MutableIterator - actual abstract override fun add(element: E): Boolean - - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: AbstractMutableSet") - actual override fun contains(element: @UnsafeVariance E): Boolean = TODO("Wasm stdlib: AbstractMutableSet") - actual override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean = TODO("Wasm stdlib: AbstractMutableSet") - - - actual override fun addAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableSet") - actual override fun remove(element: E): Boolean = TODO("Wasm stdlib: AbstractMutableSet") - actual override fun removeAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableSet") - actual override fun retainAll(elements: Collection): Boolean = TODO("Wasm stdlib: AbstractMutableSet") - actual override fun clear() { TODO("Wasm stdlib: AbstractMutableSet") } -} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/ArrayList.kt b/libraries/stdlib/wasm/src/kotlin/collections/ArrayList.kt deleted file mode 100644 index df2a7816202..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/ArrayList.kt +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -actual open class ArrayList : MutableList, RandomAccess { - actual constructor() { TODO("Wasm stdlib: ArrayList") } - actual constructor(initialCapacity: Int) { TODO("Wasm stdlib: ArrayList") } - actual constructor(elements: Collection) { TODO("Wasm stdlib: ArrayList") } - - actual fun trimToSize() { TODO("Wasm stdlib: ArrayList") } - actual fun ensureCapacity(minCapacity: Int) { TODO("Wasm stdlib: ArrayList") } - - // From List - - actual override val size: Int = TODO("Wasm stdlib: ArrayList") - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun contains(element: @UnsafeVariance E): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean = TODO("Wasm stdlib: ArrayList") - actual override operator fun get(index: Int): E = TODO("Wasm stdlib: ArrayList") - actual override fun indexOf(element: @UnsafeVariance E): Int = TODO("Wasm stdlib: ArrayList") - actual override fun lastIndexOf(element: @UnsafeVariance E): Int = TODO("Wasm stdlib: ArrayList") - - // From MutableCollection - - actual override fun iterator(): MutableIterator = TODO("Wasm stdlib: ArrayList") - - // From MutableList - - actual override fun add(element: E): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun remove(element: E): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun addAll(elements: Collection): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun addAll(index: Int, elements: Collection): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun removeAll(elements: Collection): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun retainAll(elements: Collection): Boolean = TODO("Wasm stdlib: ArrayList") - actual override fun clear() { TODO("Wasm stdlib: ArrayList") } - actual override operator fun set(index: Int, element: E): E = TODO("Wasm stdlib: ArrayList") - actual override fun add(index: Int, element: E) { TODO("Wasm stdlib: ArrayList") } - actual override fun removeAt(index: Int): E = TODO("Wasm stdlib: ArrayList") - actual override fun listIterator(): MutableListIterator = TODO("Wasm stdlib: ArrayList") - actual override fun listIterator(index: Int): MutableListIterator = TODO("Wasm stdlib: ArrayList") - actual override fun subList(fromIndex: Int, toIndex: Int): MutableList = TODO("Wasm stdlib: ArrayList") -} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/Arrays.kt b/libraries/stdlib/wasm/src/kotlin/collections/Arrays.kt deleted file mode 100644 index f9c4e90b0e6..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/Arrays.kt +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -import kotlin.internal.PureReifiable - -// Array Utils copied from K/N - -internal fun checkCopyOfRangeArguments(fromIndex: Int, toIndex: Int, size: Int) { - if (toIndex > size) - throw IndexOutOfBoundsException("toIndex ($toIndex) is greater than size ($size).") - if (fromIndex > toIndex) - throw IllegalArgumentException("fromIndex ($fromIndex) is greater than toIndex ($toIndex).") -} - - -// TODO: internal -/** - * Returns a string representation of the contents of the subarray of the specified array as if it is [List]. - */ -@SinceKotlin("1.1") -@kotlin.internal.InlineOnly -public inline fun Array.subarrayContentToString(offset: Int, length: Int): String { - val sb = StringBuilder(2 + length * 3) - sb.append("[") - var i = 0 - while (i < length) { - if (i > 0) sb.append(", ") - sb.append(this[offset + i]) - i++ - } - sb.append("]") - return sb.toString() -} - - -/** - * Returns a hash code based on the contents of this array as if it is [List]. - * Nested arrays are treated as lists too. - * - * If any of arrays contains itself on any nesting level the behavior is undefined. - */ -@SinceKotlin("1.1") -@UseExperimental(ExperimentalUnsignedTypes::class) -internal fun Array?.contentDeepHashCodeImpl(): Int { - if (this == null) return 0 - var result = 1 - for (element in this) { - val elementHash = when (element) { - null -> 0 - - is Array<*> -> element.contentDeepHashCode() - - is ByteArray -> element.contentHashCode() - is ShortArray -> element.contentHashCode() - is IntArray -> element.contentHashCode() - is LongArray -> element.contentHashCode() - is FloatArray -> element.contentHashCode() - is DoubleArray -> element.contentHashCode() - is CharArray -> element.contentHashCode() - is BooleanArray -> element.contentHashCode() - - is UByteArray -> element.contentHashCode() - is UShortArray -> element.contentHashCode() - is UIntArray -> element.contentHashCode() - is ULongArray -> element.contentHashCode() - - else -> element.hashCode() - } - - result = 31 * result + elementHash - } - return result -} - -@Suppress("UNCHECKED_CAST") -internal actual fun arrayOfNulls(reference: Array, size: Int): Array = arrayOfNulls(size) as Array - -internal actual fun copyToArrayImpl(collection: Collection<*>): Array { - val array = Array(collection.size) - val iterator = collection.iterator() - var index = 0 - while (iterator.hasNext()) - array[index++] = iterator.next() - return array -} - -@Suppress("UNCHECKED_CAST") -internal actual fun copyToArrayImpl(collection: Collection<*>, array: Array): Array { - if (array.size < collection.size) - return copyToArrayImpl(collection) as Array - - val iterator = collection.iterator() - var index = 0 - while (iterator.hasNext()) { - array[index++] = iterator.next() as T - } - if (index < array.size) { - return array.copyOf(index) as Array - } - return array -} diff --git a/libraries/stdlib/wasm/src/kotlin/collections/Collections.kt b/libraries/stdlib/wasm/src/kotlin/collections/Collections.kt deleted file mode 100644 index 3adb7eafd81..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/Collections.kt +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -actual interface RandomAccess - -/** Returns the array if it's not `null`, or an empty array otherwise. */ -actual inline fun Array?.orEmpty(): Array = this ?: emptyArray() - - -public actual inline fun Collection.toTypedArray(): Array { - val result = arrayOfNulls(size) - var index = 0 - for (element in this) result[index++] = element - @Suppress("UNCHECKED_CAST") - return result as Array -} - -@SinceKotlin("1.2") -actual fun MutableList.fill(value: T): Unit = TODO("Wasm stdlib: Collections") - -@SinceKotlin("1.2") -actual fun MutableList.shuffle(): Unit = TODO("Wasm stdlib: Collections") - -@SinceKotlin("1.2") -actual fun Iterable.shuffled(): List = TODO("Wasm stdlib: Collections") - -actual fun > MutableList.sort(): Unit = TODO("Wasm stdlib: Collections") -actual fun MutableList.sortWith(comparator: Comparator): Unit = TODO("Wasm stdlib: Collections") - - -// from Grouping.kt -public actual fun Grouping.eachCount(): Map = TODO("Wasm stdlib: Collections") -// public actual inline fun Grouping.eachSumOf(valueSelector: (T) -> Int): Map - -internal actual fun Map.toSingletonMapOrSelf(): Map = TODO("Wasm stdlib: Collections") -internal actual fun Map.toSingletonMap(): Map = TODO("Wasm stdlib: Collections") -internal actual fun Array.copyToArrayOfAny(isVarargs: Boolean): Array = TODO("Wasm stdlib: Collections") - -@PublishedApi -@SinceKotlin("1.3") -internal actual fun checkIndexOverflow(index: Int): Int = TODO("Wasm stdlib: Collections") - -@PublishedApi -@SinceKotlin("1.3") -internal actual fun checkCountOverflow(count: Int): Int = TODO("Wasm stdlib: Collections") - -@PublishedApi -@SinceKotlin("1.3") -@kotlin.internal.InlineOnly -internal actual inline fun buildListInternal(builderAction: MutableList.() -> Unit): List { - return TODO("Wasm stdlib: Collections") -} - -@PublishedApi -@SinceKotlin("1.3") -@kotlin.internal.InlineOnly -internal actual inline fun buildListInternal(capacity: Int, builderAction: MutableList.() -> Unit): List { - checkBuilderCapacity(capacity) - return TODO("Wasm stdlib: Collections") -} - - -/** - * Returns an immutable set containing only the specified object [element]. - */ -public fun setOf(element: T): Set = hashSetOf(element) - -@PublishedApi -@SinceKotlin("1.3") -@kotlin.internal.InlineOnly -internal actual inline fun buildSetInternal(builderAction: MutableSet.() -> Unit): Set { - return TODO("Wasm stdlib: Collections") -} - -@PublishedApi -@SinceKotlin("1.3") -@kotlin.internal.InlineOnly -internal actual inline fun buildSetInternal(capacity: Int, builderAction: MutableSet.() -> Unit): Set { - return TODO("Wasm stdlib: Collections") -} - - -/** - * Returns an immutable map, mapping only the specified key to the - * specified value. - */ -public fun mapOf(pair: Pair): Map = hashMapOf(pair) - -@PublishedApi -@SinceKotlin("1.3") -@kotlin.internal.InlineOnly -internal actual inline fun buildMapInternal(builderAction: MutableMap.() -> Unit): Map { - return TODO("Wasm stdlib: Collections") -} - -@PublishedApi -@SinceKotlin("1.3") -@kotlin.internal.InlineOnly -internal actual inline fun buildMapInternal(capacity: Int, builderAction: MutableMap.() -> Unit): Map { - return TODO("Wasm stdlib: Collections") -} - -internal actual fun brittleContainsOptimizationEnabled(): Boolean = false \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/HashMap.kt b/libraries/stdlib/wasm/src/kotlin/collections/HashMap.kt deleted file mode 100644 index 10add08b1fe..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/HashMap.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -actual open class HashMap : MutableMap { - actual constructor() { TODO("Wasm stdlib: HashMap") } - actual constructor(initialCapacity: Int) { TODO("Wasm stdlib: HashMap") } - actual constructor(initialCapacity: Int, loadFactor: Float) { TODO("Wasm stdlib: HashMap") } - actual constructor(original: Map) { TODO("Wasm stdlib: HashMap") } - - // From Map - - actual override val size: Int = TODO("Wasm stdlib: HashMap") - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: HashMap") - actual override fun containsKey(key: K): Boolean = TODO("Wasm stdlib: HashMap") - actual override fun containsValue(value: @UnsafeVariance V): Boolean = TODO("Wasm stdlib: HashMap") - actual override operator fun get(key: K): V? = TODO("Wasm stdlib: HashMap") - - // From MutableMap - - actual override fun put(key: K, value: V): V? = TODO("Wasm stdlib: HashMap") - actual override fun remove(key: K): V? = TODO("Wasm stdlib: HashMap") - actual override fun putAll(from: Map) { TODO("Wasm stdlib: HashMap") } - actual override fun clear() { TODO("Wasm stdlib: HashMap") } - actual override val keys: MutableSet = TODO("Wasm stdlib: HashMap") - actual override val values: MutableCollection = TODO("Wasm stdlib: HashMap") - actual override val entries: MutableSet> = TODO("Wasm stdlib: HashMap") -} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/HashSet.kt b/libraries/stdlib/wasm/src/kotlin/collections/HashSet.kt deleted file mode 100644 index e2c8f8bdb24..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/HashSet.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -actual open class HashSet : MutableSet { - actual constructor() { TODO("Wasm stdlib: HashSet") } - actual constructor(initialCapacity: Int) { TODO("Wasm stdlib: HashSet") } - actual constructor(initialCapacity: Int, loadFactor: Float) { TODO("Wasm stdlib: HashSet") } - actual constructor(elements: Collection) { TODO("Wasm stdlib: HashSet") } - - // From Set - - actual override val size: Int = TODO("Wasm stdlib: HashSet") - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: HashSet") - actual override fun contains(element: @UnsafeVariance E): Boolean = TODO("Wasm stdlib: HashSet") - actual override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean = TODO("Wasm stdlib: HashSet") - - // From MutableSet - - actual override fun iterator(): MutableIterator = TODO("Wasm stdlib: HashSet") - actual override fun add(element: E): Boolean = TODO("Wasm stdlib: HashSet") - actual override fun remove(element: E): Boolean = TODO("Wasm stdlib: HashSet") - actual override fun addAll(elements: Collection): Boolean = TODO("Wasm stdlib: HashSet") - actual override fun removeAll(elements: Collection): Boolean = TODO("Wasm stdlib: HashSet") - actual override fun retainAll(elements: Collection): Boolean = TODO("Wasm stdlib: HashSet") - actual override fun clear() { TODO("Wasm stdlib: HashSet") } -} - -fun arrayOfUninitializedElements(size: Int): Array = @Suppress("UNCHECKED_CAST") Array(size) as Array diff --git a/libraries/stdlib/wasm/src/kotlin/collections/Helpers.kt b/libraries/stdlib/wasm/src/kotlin/collections/Helpers.kt new file mode 100644 index 00000000000..d3ac39da996 --- /dev/null +++ b/libraries/stdlib/wasm/src/kotlin/collections/Helpers.kt @@ -0,0 +1,28 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package kotlin.collections + +/** + * Returns an array of objects of the given type with the given [size], initialized with _uninitialized_ values. + * Attempts to read _uninitialized_ values from this array work in implementation-dependent manner, + * either throwing exception or returning some kind of implementation-specific default value. + */ +@PublishedApi +internal inline fun arrayOfUninitializedElements(size: Int): Array { + require(size >= 0) { "capacity must be non-negative." } + @Suppress("TYPE_PARAMETER_AS_REIFIED") + return Array(size) +} + +internal fun Array.resetRange(fromIndex: Int, toIndex: Int) { + @Suppress("UNCHECKED_CAST") + this.fill(null as E, fromIndex, toIndex) +} + +internal fun Array.resetAt(index: Int) { + @Suppress("UNCHECKED_CAST") + (this as Array)[index] = null +} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/LinkedHashMap.kt b/libraries/stdlib/wasm/src/kotlin/collections/LinkedHashMap.kt deleted file mode 100644 index a7be8b0918b..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/LinkedHashMap.kt +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -actual open class LinkedHashMap : MutableMap { - actual constructor() { TODO("Wasm stdlib: LinkedHashMap") } - actual constructor(initialCapacity: Int) { TODO("Wasm stdlib: LinkedHashMap") } - actual constructor(initialCapacity: Int, loadFactor: Float) { TODO("Wasm stdlib: LinkedHashMap") } - actual constructor(original: Map) { TODO("Wasm stdlib: LinkedHashMap") } - - // From Map - - actual override val size: Int = TODO("Wasm stdlib: LinkedHashMap") - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: LinkedHashMap") - actual override fun containsKey(key: K): Boolean = TODO("Wasm stdlib: LinkedHashMap") - actual override fun containsValue(value: V): Boolean = TODO("Wasm stdlib: LinkedHashMap") - actual override fun get(key: K): V? = TODO("Wasm stdlib: LinkedHashMap") - - // From MutableMap - - actual override fun put(key: K, value: V): V? = TODO("Wasm stdlib: LinkedHashMap") - actual override fun remove(key: K): V? = TODO("Wasm stdlib: LinkedHashMap") - actual override fun putAll(from: Map) { TODO("Wasm stdlib: LinkedHashMap") } - actual override fun clear() { TODO("Wasm stdlib: LinkedHashMap") } - actual override val keys: MutableSet = TODO("Wasm stdlib: LinkedHashMap") - actual override val values: MutableCollection = TODO("Wasm stdlib: LinkedHashMap") - actual override val entries: MutableSet> = TODO("Wasm stdlib: LinkedHashMap") -} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/LinkedHashSet.kt b/libraries/stdlib/wasm/src/kotlin/collections/LinkedHashSet.kt deleted file mode 100644 index 6a9dda88390..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/LinkedHashSet.kt +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -actual open class LinkedHashSet : MutableSet { - actual constructor() { TODO("Wasm stdlib: LinkedHashSet") } - actual constructor(initialCapacity: Int) { TODO("Wasm stdlib: LinkedHashSet") } - actual constructor(initialCapacity: Int, loadFactor: Float) { TODO("Wasm stdlib: LinkedHashSet") } - actual constructor(elements: Collection) { TODO("Wasm stdlib: LinkedHashSet") } - - // From Set - - actual override val size: Int = TODO("Wasm stdlib: LinkedHashSet") - actual override fun isEmpty(): Boolean = TODO("Wasm stdlib: LinkedHashSet") - actual override fun contains(element: @UnsafeVariance E): Boolean = TODO("Wasm stdlib: LinkedHashSet") - actual override fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean = TODO("Wasm stdlib: LinkedHashSet") - - // From MutableSet - - actual override fun iterator(): MutableIterator = TODO("Wasm stdlib: LinkedHashSet") - actual override fun add(element: E): Boolean = TODO("Wasm stdlib: LinkedHashSet") - actual override fun remove(element: E): Boolean = TODO("Wasm stdlib: LinkedHashSet") - actual override fun addAll(elements: Collection): Boolean = TODO("Wasm stdlib: LinkedHashSet") - actual override fun removeAll(elements: Collection): Boolean = TODO("Wasm stdlib: LinkedHashSet") - actual override fun retainAll(elements: Collection): Boolean = TODO("Wasm stdlib: LinkedHashSet") - actual override fun clear() { TODO("Wasm stdlib: LinkedHashSet") } -} \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/collections/Maps.kt b/libraries/stdlib/wasm/src/kotlin/collections/Maps.kt deleted file mode 100644 index b61974439ff..00000000000 --- a/libraries/stdlib/wasm/src/kotlin/collections/Maps.kt +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package kotlin.collections - -/** - * Calculate the initial capacity of a map. - */ -@PublishedApi -internal actual fun mapCapacity(expectedSize: Int): Int = TODO("Wasm stdlib: Maps") - -/** - * Checks a collection builder function capacity argument. - */ -@SinceKotlin("1.3") -@PublishedApi -internal fun checkBuilderCapacity(capacity: Int) { TODO("Wasm stdlib: Maps") } \ No newline at end of file diff --git a/libraries/stdlib/wasm/src/kotlin/text/StringBuilder.kt b/libraries/stdlib/wasm/src/kotlin/text/StringBuilder.kt index 4b7037f5605..24b23b17936 100644 --- a/libraries/stdlib/wasm/src/kotlin/text/StringBuilder.kt +++ b/libraries/stdlib/wasm/src/kotlin/text/StringBuilder.kt @@ -1,387 +1,34 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package kotlin.text -/** - * A mutable sequence of characters. - * - * String builder can be used to efficiently perform multiple string manipulation operations. - */ -actual class StringBuilder : Appendable, CharSequence { - /** Constructs an empty string builder. */ - actual constructor() { TODO("Wasm stdlib: StringBuilder") } - - /** Constructs an empty string builder with the specified initial [capacity]. */ - actual constructor(capacity: Int) { TODO("Wasm stdlib: StringBuilder") } - - /** Constructs a string builder that contains the same characters as the specified [content] char sequence. */ - actual constructor(content: CharSequence) { TODO("Wasm stdlib: StringBuilder") } - - /** Constructs a string builder that contains the same characters as the specified [content] string. */ - @SinceKotlin("1.3") -// @ExperimentalStdlibApi - actual constructor(content: String) { TODO("Wasm stdlib: StringBuilder") } - - actual override val length: Int = TODO("Wasm stdlib: StringBuilder") - - actual override operator fun get(index: Int): Char = TODO("Wasm stdlib: StringBuilder") - - actual override fun subSequence(startIndex: Int, endIndex: Int): CharSequence = TODO("Wasm stdlib: StringBuilder") - - actual override fun append(value: Char): StringBuilder = TODO("Wasm stdlib: StringBuilder") - actual override fun append(value: CharSequence?): StringBuilder = TODO("Wasm stdlib: StringBuilder") - actual override fun append(value: CharSequence?, startIndex: Int, endIndex: Int): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Reverses the contents of this string builder and returns this instance. - * - * Surrogate pairs included in this string builder are treated as single characters. - * Therefore, the order of the high-low surrogates is never reversed. - * - * Note that the reverse operation may produce new surrogate pairs that were unpaired low-surrogates and high-surrogates before the operation. - * For example, reversing `"\uDC00\uD800"` produces `"\uD800\uDC00"` which is a valid surrogate pair. - */ - actual fun reverse(): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Appends the string representation of the specified object [value] to this string builder and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was appended to this string builder. - */ - actual fun append(value: Any?): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Appends the string representation of the specified boolean [value] to this string builder and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was appended to this string builder. - */ - @SinceKotlin("1.3") -// @ExperimentalStdlibApi - actual fun append(value: Boolean): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Appends characters in the specified character array [value] to this string builder and returns this instance. - * - * Characters are appended in order, starting at the index 0. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun append(value: CharArray): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Appends the specified string [value] to this string builder and returns this instance. - */ - @SinceKotlin("1.3") -// @ExperimentalStdlibApi - actual fun append(value: String?): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Returns the current capacity of this string builder. - * - * The capacity is the maximum length this string builder can have before an allocation occurs. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun capacity(): Int = TODO("Wasm stdlib: StringBuilder") - - /** - * Ensures that the capacity of this string builder is at least equal to the specified [minimumCapacity]. - * - * If the current capacity is less than the [minimumCapacity], a new backing storage is allocated with greater capacity. - * Otherwise, this method takes no action and simply returns. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun ensureCapacity(minimumCapacity: Int) { TODO("Wasm stdlib: StringBuilder") } - - /** - * Returns the index within this string builder of the first occurrence of the specified [string]. - * - * Returns `-1` if the specified [string] does not occur in this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun indexOf(string: String): Int = TODO("Wasm stdlib: StringBuilder") - - /** - * Returns the index within this string builder of the first occurrence of the specified [string], - * starting at the specified [startIndex]. - * - * Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex]. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun indexOf(string: String, startIndex: Int): Int = TODO("Wasm stdlib: StringBuilder") - - /** - * Returns the index within this string builder of the last occurrence of the specified [string]. - * The last occurrence of empty string `""` is considered to be at the index equal to `this.length`. - * - * Returns `-1` if the specified [string] does not occur in this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun lastIndexOf(string: String): Int = TODO("Wasm stdlib: StringBuilder") - - /** - * Returns the index within this string builder of the last occurrence of the specified [string], - * starting from the specified [startIndex] toward the beginning. - * - * Returns `-1` if the specified [string] does not occur in this string builder starting at the specified [startIndex]. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun lastIndexOf(string: String, startIndex: Int): Int = TODO("Wasm stdlib: StringBuilder") - - /** - * Inserts the string representation of the specified boolean [value] into this string builder at the specified [index] and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was inserted into this string builder at the specified [index]. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun insert(index: Int, value: Boolean): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Inserts the specified character [value] into this string builder at the specified [index] and returns this instance. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun insert(index: Int, value: Char): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Inserts characters in the specified character array [value] into this string builder at the specified [index] and returns this instance. - * - * The inserted characters go in same order as in the [value] character array, starting at [index]. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun insert(index: Int, value: CharArray): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Inserts characters in the specified character sequence [value] into this string builder at the specified [index] and returns this instance. - * - * The inserted characters go in the same order as in the [value] character sequence, starting at [index]. - * - * @param index the position in this string builder to insert at. - * @param value the character sequence from which characters are inserted. If [value] is `null`, then the four characters `"null"` are inserted. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun insert(index: Int, value: CharSequence?): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Inserts the string representation of the specified object [value] into this string builder at the specified [index] and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was inserted into this string builder at the specified [index]. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun insert(index: Int, value: Any?): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Inserts the string [value] into this string builder at the specified [index] and returns this instance. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun insert(index: Int, value: String?): StringBuilder = TODO("Wasm stdlib: StringBuilder") - - /** - * Sets the length of this string builder to the specified [newLength]. - * - * If the [newLength] is less than the current length, it is changed to the specified [newLength]. - * Otherwise, null characters '\u0000' are appended to this string builder until its length is less than the [newLength]. - * - * Note that in Kotlin/JS [set] operator function has non-constant execution time complexity. - * Therefore, increasing length of this string builder and then updating each character by index may slow down your program. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] if [newLength] is less than zero. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun setLength(newLength: Int) { TODO("Wasm stdlib: StringBuilder") } - - /** - * Returns a new [String] that contains characters in this string builder at [startIndex] (inclusive) and up to the [length] (exclusive). - * - * @throws IndexOutOfBoundsException if [startIndex] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun substring(startIndex: Int): String = TODO("Wasm stdlib: StringBuilder") - - /** - * Returns a new [String] that contains characters in this string builder at [startIndex] (inclusive) and up to the [endIndex] (exclusive). - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this string builder indices or when `startIndex > endIndex`. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun substring(startIndex: Int, endIndex: Int): String = TODO("Wasm stdlib: StringBuilder") - - /** - * Attempts to reduce storage used for this string builder. - * - * If the backing storage of this string builder is larger than necessary to hold its current contents, - * then it may be resized to become more space efficient. - * Calling this method may, but is not required to, affect the value of the [capacity] property. - */ - @SinceKotlin("1.3") - @ExperimentalStdlibApi - actual fun trimToSize() { TODO("Wasm stdlib: StringBuilder") } +internal fun insertString(array: CharArray, distIndex: Int, value: String, sourceIndex: Int, count: Int): Int { + var arrayIdx = distIndex + var stringIdx = sourceIndex + repeat(count) { + array[arrayIdx++] = value[stringIdx++] + } + return count } +internal fun unsafeStringFromCharArray(array: CharArray, start: Int, size: Int): String = + kotlin.String(array.copyOfRange(start, start + size)) -/** - * Clears the content of this string builder making it empty and returns this instance. - * - * @sample samples.text.Strings.clearStringBuilder - */ -@SinceKotlin("1.3") -public actual fun StringBuilder.clear(): StringBuilder = TODO("Wasm stdlib: StringBuilder") +internal fun insertInt(array: CharArray, start: Int, value: Int): Int { + val valueString = value.toString() + val length = valueString.length + insertString(array, start, valueString, 0, length) + return length +} -/** - * Sets the character at the specified [index] to the specified [value]. - * - * @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual operator fun StringBuilder.set(index: Int, value: Char) { TODO("Wasm stdlib: StringBuilder") } - -/** - * Replaces characters in the specified range of this string builder with characters in the specified string [value] and returns this instance. - * - * @param startIndex the beginning (inclusive) of the range to replace. - * @param endIndex the end (exclusive) of the range to replace. - * @param value the string to replace with. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] if [startIndex] is less than zero, greater than the length of this string builder, or `startIndex > endIndex`. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.setRange(startIndex: Int, endIndex: Int, value: String): StringBuilder = TODO("Wasm stdlib: StringBuilder") - -/** - * Removes the character at the specified [index] from this string builder and returns this instance. - * - * If the `Char` at the specified [index] is part of a supplementary code point, this method does not remove the entire supplementary character. - * - * @param index the index of `Char` to remove. - * - * @throws IndexOutOfBoundsException if [index] is out of bounds of this string builder. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.deleteAt(index: Int): StringBuilder = TODO("Wasm stdlib: StringBuilder") - -/** - * Removes characters in the specified range from this string builder and returns this instance. - * - * @param startIndex the beginning (inclusive) of the range to remove. - * @param endIndex the end (exclusive) of the range to remove. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] is out of range of this string builder indices or when `startIndex > endIndex`. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.deleteRange(startIndex: Int, endIndex: Int): StringBuilder = TODO("Wasm stdlib: StringBuilder") - -/** - * Copies characters from this string builder into the [destination] character array. - * - * @param destination the array to copy to. - * @param destinationOffset the position in the array to copy to, 0 by default. - * @param startIndex the beginning (inclusive) of the range to copy, 0 by default. - * @param endIndex the end (exclusive) of the range to copy, length of this string builder by default. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of this string builder indices or when `startIndex > endIndex`. - * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset], - * or when that index is out of the [destination] array indices range. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.toCharArray(destination: CharArray, destinationOffset: Int, startIndex: Int, endIndex: Int) { TODO("Wasm stdlib: StringBuilder") } - -/** - * Appends characters in a subarray of the specified character array [value] to this string builder and returns this instance. - * - * Characters are appended in order, starting at specified [startIndex]. - * - * @param value the array from which characters are appended. - * @param startIndex the beginning (inclusive) of the subarray to append. - * @param endIndex the end (exclusive) of the subarray to append. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.appendRange(value: CharArray, startIndex: Int, endIndex: Int): StringBuilder = TODO("Wasm stdlib: StringBuilder") - -/** - * Appends a subsequence of the specified character sequence [value] to this string builder and returns this instance. - * - * @param value the character sequence from which a subsequence is appended. If [value] is `null`, - * then characters are appended as if [value] contained the four characters `"null"`. - * @param startIndex the beginning (inclusive) of the subsequence to append. - * @param endIndex the end (exclusive) of the subsequence to append. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.appendRange(value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder = TODO("Wasm stdlib: StringBuilder") - -/** - * Inserts characters in a subarray of the specified character array [value] into this string builder at the specified [index] and returns this instance. - * - * The inserted characters go in same order as in the [value] array, starting at [index]. - * - * @param index the position in this string builder to insert at. - * @param value the array from which characters are inserted. - * @param startIndex the beginning (inclusive) of the subarray to insert. - * @param endIndex the end (exclusive) of the subarray to insert. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] array indices or when `startIndex > endIndex`. - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.insertRange(index: Int, value: CharArray, startIndex: Int, endIndex: Int): StringBuilder = TODO("Wasm stdlib: StringBuilder") - -/** - * Inserts characters in a subsequence of the specified character sequence [value] into this string builder at the specified [index] and returns this instance. - * - * The inserted characters go in the same order as in the [value] character sequence, starting at [index]. - * - * @param index the position in this string builder to insert at. - * @param value the character sequence from which a subsequence is inserted. If [value] is `null`, - * then characters will be inserted as if [value] contained the four characters `"null"`. - * @param startIndex the beginning (inclusive) of the subsequence to insert. - * @param endIndex the end (exclusive) of the subsequence to insert. - * - * @throws IndexOutOfBoundsException or [IllegalArgumentException] when [startIndex] or [endIndex] is out of range of the [value] character sequence indices or when `startIndex > endIndex`. - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun StringBuilder.insertRange(index: Int, value: CharSequence, startIndex: Int, endIndex: Int): StringBuilder = TODO("Wasm stdlib: StringBuilder") \ No newline at end of file +internal fun checkBoundsIndexes(startIndex: Int, endIndex: Int, size: Int) { + if (startIndex < 0 || endIndex > size) { + throw IndexOutOfBoundsException("startIndex: $startIndex, endIndex: $endIndex, size: $size") + } + if (startIndex > endIndex) { + throw IllegalArgumentException("startIndex: $startIndex > endIndex: $endIndex") + } +} diff --git a/libraries/stdlib/wasm/src/kotlin/util/Numbers.kt b/libraries/stdlib/wasm/src/kotlin/util/Numbers.kt index ccdc180ef88..ed88c869f2a 100644 --- a/libraries/stdlib/wasm/src/kotlin/util/Numbers.kt +++ b/libraries/stdlib/wasm/src/kotlin/util/Numbers.kt @@ -10,39 +10,37 @@ import kotlin.wasm.internal.* /** * Counts the number of set bits in the binary representation of this [Int] number. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Int.countOneBits(): Int = TODO("Wasm stdlib: Numbers") +@WasmOp(WasmOp.I32_POPCNT) +public actual fun Int.countOneBits(): Int = + implementedAsIntrinsic /** * Counts the number of consecutive most significant bits that are zero in the binary representation of this [Int] number. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Int.countLeadingZeroBits(): Int = wasm_i32_clz(this) +@WasmOp(WasmOp.I32_CLZ) +public actual fun Int.countLeadingZeroBits(): Int = + implementedAsIntrinsic /** * Counts the number of consecutive least significant bits that are zero in the binary representation of this [Int] number. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Int.countTrailingZeroBits(): Int = TODO("Wasm stdlib: Numbers") +@WasmOp(WasmOp.I32_CTZ) +public actual fun Int.countTrailingZeroBits(): Int = + implementedAsIntrinsic /** * Returns a number having a single bit set in the position of the most significant set bit of this [Int] number, * or zero, if this number is zero. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Int.takeHighestOneBit(): Int = TODO("Wasm stdlib: Numbers") +public actual fun Int.takeHighestOneBit(): Int = + if (this == 0) 0 else 1.shl(32 - 1 - countLeadingZeroBits()) /** * Returns a number having a single bit set in the position of the least significant set bit of this [Int] number, * or zero, if this number is zero. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Int.takeLowestOneBit(): Int = TODO("Wasm stdlib: Numbers") +public actual fun Int.takeLowestOneBit(): Int = + this and -this /** * Rotates the binary representation of this [Int] number left by the specified [bitCount] number of bits. @@ -54,9 +52,9 @@ public actual fun Int.takeLowestOneBit(): Int = TODO("Wasm stdlib: Numbers") * Rotating by a multiple of [Int.SIZE_BITS] (32) returns the same number, or more generally * `number.rotateLeft(n) == number.rotateLeft(n % 32)` */ -@SinceKotlin("1.6") -@WasExperimental(ExperimentalStdlibApi::class) -public actual fun Int.rotateLeft(bitCount: Int): Int = TODO("Wasm stdlib: Numbers") +@ExperimentalStdlibApi +public actual fun Int.rotateLeft(bitCount: Int): Int = + shl(bitCount) or ushr(32 - bitCount) /** @@ -69,47 +67,42 @@ public actual fun Int.rotateLeft(bitCount: Int): Int = TODO("Wasm stdlib: Number * Rotating by a multiple of [Int.SIZE_BITS] (32) returns the same number, or more generally * `number.rotateRight(n) == number.rotateRight(n % 32)` */ -@SinceKotlin("1.6") -@WasExperimental(ExperimentalStdlibApi::class) -public actual fun Int.rotateRight(bitCount: Int): Int = TODO("Wasm stdlib: Numbers") +@ExperimentalStdlibApi +public actual fun Int.rotateRight(bitCount: Int): Int = + shl(32 - bitCount) or ushr(bitCount) /** * Counts the number of set bits in the binary representation of this [Long] number. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Long.countOneBits(): Int = TODO("Wasm stdlib: Numbers") +public actual inline fun Long.countOneBits(): Int = + wasm_i64_popcnt(this).toInt() /** * Counts the number of consecutive most significant bits that are zero in the binary representation of this [Long] number. */ -@SinceKotlin("1.3") @ExperimentalStdlibApi public actual fun Long.countLeadingZeroBits(): Int = wasm_i64_clz(this).toInt() /** * Counts the number of consecutive least significant bits that are zero in the binary representation of this [Long] number. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Long.countTrailingZeroBits(): Int = TODO("Wasm stdlib: Numbers") +public actual inline fun Long.countTrailingZeroBits(): Int = + wasm_i64_ctz(this).toInt() /** * Returns a number having a single bit set in the position of the most significant set bit of this [Long] number, * or zero, if this number is zero. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Long.takeHighestOneBit(): Long = TODO("Wasm stdlib: Numbers") +public actual fun Long.takeHighestOneBit(): Long = + if (this == 0L) 0L else 1L.shl(64 - 1 - countLeadingZeroBits()) /** * Returns a number having a single bit set in the position of the least significant set bit of this [Long] number, * or zero, if this number is zero. */ -@SinceKotlin("1.3") -@ExperimentalStdlibApi -public actual fun Long.takeLowestOneBit(): Long = TODO("Wasm stdlib: Numbers") +public actual fun Long.takeLowestOneBit(): Long = + this and -this /** * Rotates the binary representation of this [Long] number left by the specified [bitCount] number of bits. @@ -121,9 +114,9 @@ public actual fun Long.takeLowestOneBit(): Long = TODO("Wasm stdlib: Numbers") * Rotating by a multiple of [Long.SIZE_BITS] (64) returns the same number, or more generally * `number.rotateLeft(n) == number.rotateLeft(n % 64)` */ -@SinceKotlin("1.6") -@WasExperimental(ExperimentalStdlibApi::class) -public actual fun Long.rotateLeft(bitCount: Int): Long = TODO("Wasm stdlib: Numbers") +@ExperimentalStdlibApi +public actual fun Long.rotateLeft(bitCount: Int): Long = + shl(bitCount) or ushr(64 - bitCount) /** * Rotates the binary representation of this [Long] number right by the specified [bitCount] number of bits. @@ -135,6 +128,7 @@ public actual fun Long.rotateLeft(bitCount: Int): Long = TODO("Wasm stdlib: Numb * Rotating by a multiple of [Long.SIZE_BITS] (64) returns the same number, or more generally * `number.rotateRight(n) == number.rotateRight(n % 64)` */ -@SinceKotlin("1.6") -@WasExperimental(ExperimentalStdlibApi::class) -public actual fun Long.rotateRight(bitCount: Int): Long = TODO("Wasm stdlib: Numbers") +@ExperimentalStdlibApi +@kotlin.internal.InlineOnly +public actual inline fun Long.rotateRight(bitCount: Int): Long = + shl(64 - bitCount) or ushr(bitCount) diff --git a/libraries/stdlib/wasm/stubs/native/concurrent.kt b/libraries/stdlib/wasm/stubs/native/concurrent.kt new file mode 100644 index 00000000000..11ed4059bb3 --- /dev/null +++ b/libraries/stdlib/wasm/stubs/native/concurrent.kt @@ -0,0 +1,11 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package kotlin.native.concurrent + +// Only for compatibility with shared K/N stdlib code + +internal val Any?.isFrozen + inline get() = false diff --git a/libraries/stdlib/wasm/stubs/native/internal.kt b/libraries/stdlib/wasm/stubs/native/internal.kt new file mode 100644 index 00000000000..72d8415f7a6 --- /dev/null +++ b/libraries/stdlib/wasm/stubs/native/internal.kt @@ -0,0 +1,16 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package kotlin.native.internal + +// Only for compatibility with shared K/N stdlib code + +internal interface KonanSet : Set { + fun getElement(element: @UnsafeVariance E): E? +} + +@Target(AnnotationTarget.CLASS) +@Retention(AnnotationRetention.SOURCE) +internal annotation class CanBePrecreated diff --git a/license/README.md b/license/README.md index fac8341277a..6e47282e37d 100644 --- a/license/README.md +++ b/license/README.md @@ -81,6 +81,10 @@ the Kotlin IntelliJ IDEA plugin: - License: Apache 2 ([license/third_party/gwt_license.txt][gwt]) - Origin: Derived from GWT, (C) 2007-08 Google Inc. + - Path: libraries/stdlib/native-wasm/src/kotlin/collections + - License: Apache 2 ([license/third_party/gwt_license.txt][gwt]) + - Origin: Derived from GWT, (C) 2007-08 Google Inc. + - Path: libraries/stdlib/js-v1/src/js/long.js - License: Apache 2 ([license/third_party/closure-compiler_LICENSE.txt][closure-compiler]) - Origin: Google Closure Library, Copyright 2009 The Closure Library Authors