[WASM] Fix build

This commit is contained in:
Igor Laevsky
2021-10-13 21:14:47 +03:00
committed by TeamCityServer
parent cb5bef1535
commit 50ca86838f
23 changed files with 5 additions and 62 deletions
@@ -16,10 +16,7 @@ import org.jetbrains.kotlin.descriptors.PropertyDescriptor
import org.jetbrains.kotlin.descriptors.SimpleFunctionDescriptor
import org.jetbrains.kotlin.incremental.components.NoLookupLocation
import org.jetbrains.kotlin.ir.backend.js.utils.isDispatchReceiver
import org.jetbrains.kotlin.ir.declarations.IrClass
import org.jetbrains.kotlin.ir.declarations.IrProperty
import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction
import org.jetbrains.kotlin.ir.declarations.IrValueParameter
import org.jetbrains.kotlin.ir.declarations.*
import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol
import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.util.SymbolTable
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: WASM
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FLAKY
// WITH_RUNTIME
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: KOTLIN_TEST_LIB
// WITH_RUNTIME
// WITH_COROUTINES
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// !LANGUAGE: +UnrestrictedBuilderInference
// WITH_RUNTIME
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// WITH_RUNTIME
// !LANGUAGE: -StrictOnlyInputTypesChecks
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// WITH_RUNTIME
// SKIP_TXT
// !DIAGNOSTICS: -CAST_NEVER_SUCCEEDS -UNCHECKED_CAST -UNUSED_PARAMETER -UNUSED_VARIABLE -OPT_IN_USAGE_ERROR -UNUSED_EXPRESSION
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// WITH_RUNTIME
// !LANGUAGE: -StrictOnlyInputTypesChecks
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// WITH_RUNTIME
import kotlin.experimental.ExperimentalTypeInference
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// Issues: KT-33542, KT-33544
// WITH_RUNTIME
// !LANGUAGE: +NewInference
-3
View File
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// !LANGUAGE: +NewInference
// !OPT_IN: kotlin.RequiresOptIn
// WITH_RUNTIME
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// WITH_RUNTIME
import kotlin.experimental.ExperimentalTypeInference
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// WITH_RUNTIME
// !LANGUAGE: +NewInference
@@ -1,5 +1,8 @@
// Will be executed on JDK 9, 11, 15
// IGNORE_BACKEND: ANDROID
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: FLAKY
fun test(z: Int): String {
val result = "" + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() +
z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() +
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// !LANGUAGE: +SuspendConversion
// !DIAGNOSTICS: -UNUSED_PARAMETER
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
// !DIAGNOSTICS: -UNUSED_PARAMETER
@@ -1,8 +1,6 @@
// !LANGUAGE: +SuspendConversion
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
fun interface SuspendRunnable {
suspend fun invoke()
@@ -1,8 +1,6 @@
// !LANGUAGE: +SuspendConversion
// !DIAGNOSTICS: -UNUSED_PARAMETER
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
var foo1 = false
var foo2 = false
@@ -2,8 +2,6 @@
// !LANGUAGE: +SuspendConversion
// !DIAGNOSTICS: -UNUSED_PARAMETER
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
fun foo(f: () -> String, g: suspend () -> String, h: suspend () -> String) {}
@@ -3,8 +3,6 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: COROUTINES
fun useSuspendVararg(vararg sfn: suspend () -> Unit) {}
@@ -4430,11 +4430,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/constants/comparisonFalse.kt");
}
@TestMetadata("comparisonTrue.kt")
public void testComparisonTrue() throws Exception {
runTest("compiler/testData/codegen/box/constants/comparisonTrue.kt");
}
@TestMetadata("constValFromAnotherModuleInConsVal.kt")
public void testConstValFromAnotherModuleInConsVal() throws Exception {
runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt");
@@ -23584,11 +23579,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/strings/concatDynamicWithConstants.kt");
}
@TestMetadata("concatDynamicWithSpecialSymbols.kt")
public void testConcatDynamicWithSpecialSymbols() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt");
}
@TestMetadata("constInStringTemplate.kt")
public void testConstInStringTemplate() throws Exception {
runTest("compiler/testData/codegen/box/strings/constInStringTemplate.kt");