JVM IR: Optimize equality on class literals
This commit is contained in:
committed by
Alexander Udalov
parent
3a1d83e7c5
commit
a90c4d5dd5
+12
@@ -3687,6 +3687,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/bareArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classEquality.kt")
|
||||
public void testClassEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/classEquality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primitiveClassEquality.kt")
|
||||
public void testPrimitiveClassEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/primitiveClassEquality.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/classLiteral/bound")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+12
@@ -3735,6 +3735,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/bareArray.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classEquality.kt")
|
||||
public void testClassEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/classEquality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primitiveClassEquality.kt")
|
||||
public void testPrimitiveClassEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/primitiveClassEquality.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/classLiteral/bound")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+10
@@ -3317,6 +3317,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/classLiteral/bareArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classEquality.kt")
|
||||
public void testClassEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/classEquality.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveClassEquality.kt")
|
||||
public void testPrimitiveClassEquality() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/classLiteral/primitiveClassEquality.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/classLiteral/bound")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user