[JVM_IR] Use iinc for incrementing Int variables.
Fix line number generation for assignments where the right-hand side of the assignment is not on the same line. Fix line number generation for intrinsics functions where the function is not on the same line as the last argument. Be careful to not break stepping behavior with the iinc optimizations.
This commit is contained in:
@@ -124,6 +124,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/flagsInMultiFileInherit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("iincGeneration.kt")
|
||||
public void testIincGeneration() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/iincGeneration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedPropertyAnnotations.kt")
|
||||
public void testInheritedPropertyAnnotations() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inheritedPropertyAnnotations.kt");
|
||||
|
||||
+6
@@ -67,6 +67,12 @@ public class IrSteppingTestGenerated extends AbstractIrSteppingTest {
|
||||
runTest("compiler/testData/debug/stepping/IfTrueThenFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("iincStepping.kt")
|
||||
public void testIincStepping() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/iincStepping.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineCallableReference.kt")
|
||||
public void testInlineCallableReference() throws Exception {
|
||||
|
||||
+6
@@ -67,6 +67,12 @@ public class SteppingTestGenerated extends AbstractSteppingTest {
|
||||
runTest("compiler/testData/debug/stepping/IfTrueThenFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("iincStepping.kt")
|
||||
public void testIincStepping() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/iincStepping.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineCallableReference.kt")
|
||||
public void testInlineCallableReference() throws Exception {
|
||||
|
||||
+5
@@ -124,6 +124,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/flagsInMultiFileInherit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("iincGeneration.kt")
|
||||
public void testIincGeneration() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/iincGeneration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedPropertyAnnotations.kt")
|
||||
public void testInheritedPropertyAnnotations() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inheritedPropertyAnnotations.kt");
|
||||
|
||||
Reference in New Issue
Block a user