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:
committed by
TeamCityServer
parent
37874b1937
commit
a246ec636e
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user