[K1] Fix string offsets to include quotes in the same way it's done in FIR

This commit is contained in:
Artem Kobzar
2024-02-02 14:43:46 +00:00
committed by Space Team
parent 434470a4f5
commit 4f521aa05c
42 changed files with 147 additions and 154 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_K2: WASM
// FILE: test.kt
fun foo(shouldThrow: Boolean) {
@@ -46,7 +46,7 @@ fun box() {
// test.kt:1 $box
// test.kt:14 $box (8, 4)
// test.kt:6 $foo (12, 12, 31, 31, 25)
// test.kt:10 $foo (5, 5, 5, 5, 5, 5, 5, 5)
// test.kt:10 $foo (4, 4, 4, 4, 4, 4, 4, 4)
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17)
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8)
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
@@ -73,6 +73,6 @@ fun box() {
// Exceptions.kt:20 $kotlin.Exception.<init>
// test.kt:5 $foo
// test.kt:7 $foo (27, 13)
// test.kt:8 $foo (9, 9, 9, 9)
// test.kt:8 $foo (8, 8, 8, 8)
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8)
// test.kt:16 $box