JVM_IR KT-34594 strip fake variable initialization during inlining

This commit is contained in:
Dmitry Petrov
2021-08-02 14:43:12 +03:00
parent 37050e0616
commit bd71fbe982
15 changed files with 182 additions and 26 deletions
@@ -17,13 +17,13 @@ fun box(): String {
}
// Shared variable slots (x1, x2):
// 4 ILOAD 6
// 4 ISTORE 6
// Temporary variable for 'x2++' + store to fake variable marking the outer `run`:
// 2 ISTORE 1
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD
// No fake variables for @InlineOnly functions
// 0 ILOAD 6
// 0 ISTORE 6