Revert "JVM IR: Implement CHECK_NOT_NULL as a lowering"
This reverts commit dcd72b06d8.
Using a temporary variable has an effect on casts and GC.
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -2625,6 +2625,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectToPrimitiveWithAssertion.kt")
|
||||
public void testObjectToPrimitiveWithAssertion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unitAsAny.kt")
|
||||
public void testUnitAsAny() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/unitAsAny.kt");
|
||||
|
||||
Generated
+5
@@ -2625,6 +2625,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectToPrimitiveWithAssertion.kt")
|
||||
public void testObjectToPrimitiveWithAssertion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unitAsAny.kt")
|
||||
public void testUnitAsAny() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/unitAsAny.kt");
|
||||
|
||||
Generated
+5
@@ -2625,6 +2625,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectToPrimitiveWithAssertion.kt")
|
||||
public void testObjectToPrimitiveWithAssertion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unitAsAny.kt")
|
||||
public void testUnitAsAny() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/unitAsAny.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -1820,6 +1820,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectToPrimitiveWithAssertion.kt")
|
||||
public void testObjectToPrimitiveWithAssertion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/casts/objectToPrimitiveWithAssertion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/casts/functions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user