JVM_IR fix string concatenation performance issues

KT-50080 KT-50084 KT-50140
This commit is contained in:
Dmitry Petrov
2021-12-08 18:09:52 +03:00
committed by TeamCityServer
parent fa41e0f5a9
commit 3017397960
18 changed files with 451 additions and 34 deletions
@@ -30552,6 +30552,30 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt");
}
@Test
@TestMetadata("concatGenericWithNullablePrimitiveUpperBound.kt")
public void testConcatGenericWithNullablePrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithNullablePrimitiveUpperBound.kt");
}
@Test
@TestMetadata("concatGenericWithPrimitiveUpperBound.kt")
public void testConcatGenericWithPrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithPrimitiveUpperBound.kt");
}
@Test
@TestMetadata("concatGenericWithStringUpperBound.kt")
public void testConcatGenericWithStringUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithStringUpperBound.kt");
}
@Test
@TestMetadata("concatNullableGenericWithPrimitiveUpperBound.kt")
public void testConcatNullableGenericWithPrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatNullableGenericWithPrimitiveUpperBound.kt");
}
@Test
@TestMetadata("constInStringTemplate.kt")
public void testConstInStringTemplate() throws Exception {
@@ -30612,6 +30636,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/strings/kt47917.kt");
}
@Test
@TestMetadata("kt50140.kt")
public void testKt50140() throws Exception {
runTest("compiler/testData/codegen/box/strings/kt50140.kt");
}
@Test
@TestMetadata("kt5389_stringBuilderGet.kt")
public void testKt5389_stringBuilderGet() throws Exception {
@@ -30654,6 +30654,30 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt");
}
@Test
@TestMetadata("concatGenericWithNullablePrimitiveUpperBound.kt")
public void testConcatGenericWithNullablePrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithNullablePrimitiveUpperBound.kt");
}
@Test
@TestMetadata("concatGenericWithPrimitiveUpperBound.kt")
public void testConcatGenericWithPrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithPrimitiveUpperBound.kt");
}
@Test
@TestMetadata("concatGenericWithStringUpperBound.kt")
public void testConcatGenericWithStringUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithStringUpperBound.kt");
}
@Test
@TestMetadata("concatNullableGenericWithPrimitiveUpperBound.kt")
public void testConcatNullableGenericWithPrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatNullableGenericWithPrimitiveUpperBound.kt");
}
@Test
@TestMetadata("constInStringTemplate.kt")
public void testConstInStringTemplate() throws Exception {
@@ -30714,6 +30738,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/strings/kt47917.kt");
}
@Test
@TestMetadata("kt50140.kt")
public void testKt50140() throws Exception {
runTest("compiler/testData/codegen/box/strings/kt50140.kt");
}
@Test
@TestMetadata("kt5389_stringBuilderGet.kt")
public void testKt5389_stringBuilderGet() throws Exception {
@@ -25484,6 +25484,26 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/strings/concatDynamicWithConstants.kt");
}
@TestMetadata("concatGenericWithNullablePrimitiveUpperBound.kt")
public void testConcatGenericWithNullablePrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithNullablePrimitiveUpperBound.kt");
}
@TestMetadata("concatGenericWithPrimitiveUpperBound.kt")
public void testConcatGenericWithPrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithPrimitiveUpperBound.kt");
}
@TestMetadata("concatGenericWithStringUpperBound.kt")
public void testConcatGenericWithStringUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatGenericWithStringUpperBound.kt");
}
@TestMetadata("concatNullableGenericWithPrimitiveUpperBound.kt")
public void testConcatNullableGenericWithPrimitiveUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/strings/concatNullableGenericWithPrimitiveUpperBound.kt");
}
@TestMetadata("constInStringTemplate.kt")
public void testConstInStringTemplate() throws Exception {
runTest("compiler/testData/codegen/box/strings/constInStringTemplate.kt");
@@ -25534,6 +25554,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/strings/kt47917.kt");
}
@TestMetadata("kt50140.kt")
public void testKt50140() throws Exception {
runTest("compiler/testData/codegen/box/strings/kt50140.kt");
}
@TestMetadata("kt5389_stringBuilderGet.kt")
public void testKt5389_stringBuilderGet() throws Exception {
runTest("compiler/testData/codegen/box/strings/kt5389_stringBuilderGet.kt");