JVM: fix SMAP range extension logic

If `mapLineNumber` was called in non-monotonic order, e.g. N then N+2
then N+1, the first two calls created a range that spans [N; N+2] but
the third call did not reuse it.
This commit is contained in:
pyos
2020-03-25 14:45:37 +01:00
committed by max-kammerer
parent b4d7dfd02c
commit 9d21800d8f
25 changed files with 284 additions and 108 deletions
@@ -16,4 +16,4 @@ inline fun baz() {
fun nop() {}
// 2 20 21 3 4 25 26 5 27 6 9 10 11 14 15 17
// 2 20 21 3 4 25 26 5 22 6 9 10 11 14 15 17
@@ -18,4 +18,4 @@ fun fail() : String {
throw AssertionError("fail")
}
// 2 22 3 2 23 5 6 24 5 25 7 10 14 18
// 2 22 3 2 22 5 6 23 5 24 7 10 14 18