[Wasm] Boolean boxed instances are the same

Fixed #KT-65411
This commit is contained in:
Igor Yakovlev
2024-02-09 17:01:12 +01:00
committed by Space Team
parent a171f774be
commit a5ef668e3c
28 changed files with 190 additions and 7 deletions
@@ -1643,6 +1643,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("boxedBooleanIdentity.kt")
public void testBoxedBooleanIdentity() {
runTest("compiler/testData/codegen/box/boxingOptimization/boxedBooleanIdentity.kt");
}
@Test
@TestMetadata("boxedIntegersCmp.kt")
public void testBoxedIntegersCmp() {
@@ -1643,6 +1643,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("boxedBooleanIdentity.kt")
public void testBoxedBooleanIdentity() {
runTest("compiler/testData/codegen/box/boxingOptimization/boxedBooleanIdentity.kt");
}
@Test
@TestMetadata("boxedIntegersCmp.kt")
public void testBoxedIntegersCmp() {
@@ -1643,6 +1643,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("boxedBooleanIdentity.kt")
public void testBoxedBooleanIdentity() {
runTest("compiler/testData/codegen/box/boxingOptimization/boxedBooleanIdentity.kt");
}
@Test
@TestMetadata("boxedIntegersCmp.kt")
public void testBoxedIntegersCmp() {
@@ -1643,6 +1643,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("boxedBooleanIdentity.kt")
public void testBoxedBooleanIdentity() {
runTest("compiler/testData/codegen/box/boxingOptimization/boxedBooleanIdentity.kt");
}
@Test
@TestMetadata("boxedIntegersCmp.kt")
public void testBoxedIntegersCmp() {