WASM: Stupidify unit handling

Now every IR instruction returns an actual Unit instance.
All Unit's are actual objects passed around except for function boundaries.
This commit is contained in:
Igor Laevsky
2021-09-02 17:06:30 +03:00
committed by TeamCityServer
parent 37874b1937
commit a246ec636e
15 changed files with 190 additions and 112 deletions
@@ -28667,6 +28667,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen3.kt");
}
@TestMetadata("sillyThings.kt")
public void testSillyThings() throws Exception {
runTest("compiler/testData/codegen/box/unit/sillyThings.kt");
}
@TestMetadata("unitClassObject.kt")
public void testUnitClassObject() throws Exception {
runTest("compiler/testData/codegen/box/unit/unitClassObject.kt");
@@ -28073,6 +28073,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen3.kt");
}
@TestMetadata("sillyThings.kt")
public void testSillyThings() throws Exception {
runTest("compiler/testData/codegen/box/unit/sillyThings.kt");
}
@TestMetadata("unitClassObject.kt")
public void testUnitClassObject() throws Exception {
runTest("compiler/testData/codegen/box/unit/unitClassObject.kt");
@@ -28013,6 +28013,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen3.kt");
}
@TestMetadata("sillyThings.kt")
public void testSillyThings() throws Exception {
runTest("compiler/testData/codegen/box/unit/sillyThings.kt");
}
@TestMetadata("unitClassObject.kt")
public void testUnitClassObject() throws Exception {
runTest("compiler/testData/codegen/box/unit/unitClassObject.kt");
@@ -16095,6 +16095,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/unit/nullableUnitInWhen3.kt");
}
@TestMetadata("sillyThings.kt")
public void testSillyThings() throws Exception {
runTest("compiler/testData/codegen/box/unit/sillyThings.kt");
}
@TestMetadata("unitClassObject.kt")
public void testUnitClassObject() throws Exception {
runTest("compiler/testData/codegen/box/unit/unitClassObject.kt");