[K1] Fix string offsets to include quotes in the same way it's done in FIR
This commit is contained in:
+1
-1
@@ -302,7 +302,7 @@ internal class StatementGenerator(
|
||||
1 -> {
|
||||
val first = entries.first()
|
||||
if (first is IrConst<*> && first.kind == IrConstKind.String)
|
||||
first
|
||||
IrConstImpl.string(startOffset, endOffset, first.type, first.value as String)
|
||||
else
|
||||
IrStringConcatenationImpl(startOffset, endOffset, resultType, listOf(first))
|
||||
}
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ fun box() {
|
||||
// test.kt:1 $box
|
||||
// test.kt:7 $box
|
||||
// test.kt:4 $eval (27, 30)
|
||||
// test.kt:8 $box$lambda.invoke (9, 9, 9, 9)
|
||||
// test.kt:8 $box$lambda.invoke (8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
@@ -19,7 +19,7 @@ fun box() {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:5 $box
|
||||
// test.kt:6 $box$lambda.invoke (9, 9, 9, 9)
|
||||
// test.kt:6 $box$lambda.invoke (8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
// IGNORE_INLINER: IR
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
public val MASSERTIONS_ENABLED: Boolean = true
|
||||
@@ -56,7 +56,7 @@ fun box(): String {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:26 $box (4, 12, 4)
|
||||
// test.kt:17 $box (58, 58, 58, 58)
|
||||
// test.kt:17 $box (57, 57, 57, 57)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
@@ -75,7 +75,7 @@ fun box(): String {
|
||||
// test.kt:27 $box (4, 12, 4)
|
||||
// test.kt:8 $box
|
||||
// test.kt:9 $box (13, 12)
|
||||
// test.kt:31 $box (12, 12, 12, 12, 4)
|
||||
// test.kt:31 $box (11, 11, 11, 11, 4)
|
||||
// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
// Strings.kt:161 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
|
||||
+1
-1
@@ -244,7 +244,7 @@ class O<T>(i: T) {
|
||||
// test.kt:68 $N.<init>
|
||||
// test.kt:16 $box (4, 6, 6, 6, 6, 4, 4)
|
||||
// test.kt:76 $O.<init> (1, 1)
|
||||
// test.kt:17 $box (4, 6, 10, 10, 10, 10, 4, 4)
|
||||
// test.kt:17 $box (4, 6, 9, 9, 9, 9, 4, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
+4
-5
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// WITH_STDLIB
|
||||
// FILE: test.kt
|
||||
|
||||
@@ -66,7 +66,7 @@ fun box() {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:5 $<init properties test.kt>
|
||||
// Library.kt:2 $<init properties test.kt> (79, 79, 79, 79, 80, 80, 80, 80, 79, 79)
|
||||
// Library.kt:2 $<init properties test.kt> (53, 53, 53, 53, 59, 59, 59, 59, 65, 65, 65, 65, 70, 70, 70, 70, 53, 53)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 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, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -80,13 +80,12 @@ fun box() {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5, 5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4, 11, 4)
|
||||
// Library.kt:3 $<init properties test.kt> (0, 0, 0, 0, 6, 6, 6, 6, 11, 11, 11, 11)
|
||||
// Library.kt:39 $<init properties test.kt> (62, 82)
|
||||
// test.kt:1 $box
|
||||
// test.kt:8 $box (14, 14, 14, 14, 14, 4, 14, 4, 4, 4, 14, 9, 14, 4, 14, 4, 4, 4, 14, 9, 14, 4, 14, 4, 4, 4, 14, 9, 14, 4, 14, 4, 4, 4, 14, 9, 14, 4, 14, 4, 4, 4)
|
||||
// test.kt:5 $<get-strings>
|
||||
// Array.kt:82 $kotlin.Array.<get-size> (16, 24, 29)
|
||||
// test.kt:9 $box (12, 18, 18, 18, 18, 12, 12, 18, 18, 18, 18, 12, 25, 31, 31, 31, 31, 25, 12, 18, 18, 18, 18, 12, 25, 31, 31, 31, 31, 25, 12, 18, 18, 18, 18, 12, 25, 31, 31, 31, 31, 25)
|
||||
// test.kt:9 $box (12, 17, 17, 17, 17, 12, 12, 17, 17, 17, 17, 12, 25, 30, 30, 30, 30, 25, 12, 17, 17, 17, 17, 12, 25, 30, 30, 30, 30, 25, 12, 17, 17, 17, 17, 12, 25, 30, 30, 30, 30, 25)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8)
|
||||
// String.kt:98 $kotlin.String.equals (12, 12, 12, 12, 12, 12, 12, 12, 12)
|
||||
// String.kt:99 $kotlin.String.equals (12, 35, 28, 12, 12, 35, 28, 12, 12, 12, 35, 28, 12, 12, 12)
|
||||
@@ -109,7 +108,7 @@ fun box() {
|
||||
// Standard.kt:155 $kotlin.String.equals (8, 15, 8, 15, 8, 15)
|
||||
// Standard.kt:126 $kotlin.String.equals (1, 1, 13, 6, 1, 13, 6)
|
||||
// Standard.kt:125 $kotlin.String.equals (3, 3, 3)
|
||||
// test.kt:12 $box (12, 18, 18, 18, 18, 12, 12, 18, 18, 18, 18, 12)
|
||||
// test.kt:12 $box (12, 17, 17, 17, 17, 12, 12, 17, 17, 17, 17, 12)
|
||||
// test.kt:13 $box
|
||||
// test.kt:15 $box (16, 8)
|
||||
// io.kt:28 $kotlin.io.println (16, 16, 25, 25, 25, 4)
|
||||
|
||||
+5
-5
@@ -119,7 +119,7 @@ fun box() {
|
||||
// test.kt:26 box
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:14 $box (12, 14, 18, 18, 18, 18, 12)
|
||||
// test.kt:14 $box (12, 14, 17, 17, 17, 17, 12)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 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, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -134,7 +134,7 @@ fun box() {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5, 5, 5, 5, 5, 5, 5, 5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4, 11, 4, 11, 4, 11, 4, 11, 4, 11, 4, 11, 4, 11, 4)
|
||||
// test.kt:4 $D.<init> (13, 25, 39, 13, 25, 39, 13, 25, 39)
|
||||
// test.kt:15 $box (4, 13, 15, 19, 19, 19, 19, 13, 6, 6)
|
||||
// test.kt:15 $box (4, 13, 15, 18, 18, 18, 18, 13, 6, 6)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8)
|
||||
// String.kt:98 $kotlin.String.equals
|
||||
// String.kt:99 $kotlin.String.equals (12, 35, 28)
|
||||
@@ -305,15 +305,15 @@ fun box() {
|
||||
// test.kt:18 $box (17, 9, 9, 17, 12, 12)
|
||||
// test.kt:1 $D.component1
|
||||
// test.kt:19 $box (4, 6, 6, 6, 6, 6, 6)
|
||||
// test.kt:20 $box (12, 14, 18, 18, 18, 18, 12)
|
||||
// test.kt:20 $box (12, 14, 17, 17, 17, 17, 12)
|
||||
// test.kt:6 $E.<init> (13, 25, 13, 25, 13, 25)
|
||||
// test.kt:11 $E.<init> (1, 1, 1)
|
||||
// test.kt:21 $box (4, 13, 15, 19, 19, 19, 19, 13, 6, 6)
|
||||
// test.kt:21 $box (4, 13, 15, 18, 18, 18, 18, 13, 6, 6)
|
||||
// test.kt:8 $E.equals (39, 44)
|
||||
// test.kt:22 $box (4, 6, 6)
|
||||
// test.kt:9 $E.hashCode (30, 32)
|
||||
// test.kt:23 $box (4, 6, 6)
|
||||
// test.kt:7 $E.toString (31, 31, 31, 31, 33)
|
||||
// test.kt:7 $E.toString (30, 30, 30, 30, 34)
|
||||
// test.kt:24 $box (19, 9, 9, 19, 13, 13)
|
||||
// test.kt:1 $E.component1
|
||||
// test.kt:25 $box (4, 6, 6)
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun foo(x: Int) {
|
||||
@@ -50,7 +50,7 @@ fun box() {
|
||||
// test.kt:1 $box
|
||||
// test.kt:21 $box (8, 4)
|
||||
// test.kt:5 $foo (8, 12, 8, 8, 12, 8)
|
||||
// test.kt:6 $foo (9, 9, 9, 9)
|
||||
// test.kt:6 $foo (8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -66,10 +66,10 @@ fun box() {
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:9 $foo (8, 12, 8, 8, 12, 8)
|
||||
// test.kt:13 $foo (8, 12, 8, 8, 12, 8)
|
||||
// test.kt:14 $foo (9, 9, 9, 9)
|
||||
// test.kt:14 $foo (8, 8, 8, 8)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8)
|
||||
// test.kt:18 $foo (1, 1)
|
||||
// test.kt:22 $box (8, 4)
|
||||
// test.kt:10 $foo (9, 9, 9, 9)
|
||||
// test.kt:16 $foo (9, 9, 9, 9)
|
||||
// test.kt:10 $foo (8, 8, 8, 8)
|
||||
// test.kt:16 $foo (8, 8, 8, 8)
|
||||
// test.kt:23 $box
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun foo() {
|
||||
@@ -61,7 +61,7 @@ fun box() {
|
||||
// test.kt:1 $box
|
||||
// test.kt:21 $box
|
||||
// test.kt:5 $foo (8, 8)
|
||||
// test.kt:6 $foo (9, 9, 9, 9)
|
||||
// test.kt:6 $foo (8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19)
|
||||
@@ -76,11 +76,11 @@ fun box() {
|
||||
// Array.kt:76 $kotlin.Array.set
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
||||
// test.kt:11 $foo (16, 4, 16, 4)
|
||||
// test.kt:12 $foo (9, 9, 9, 9)
|
||||
// test.kt:12 $foo (8, 8, 8, 8)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8)
|
||||
// test.kt:16 $foo (1, 1)
|
||||
// test.kt:22 $box (11, 4)
|
||||
// test.kt:23 $box
|
||||
// test.kt:8 $foo (9, 9, 9, 9)
|
||||
// test.kt:14 $foo (9, 9, 9, 9)
|
||||
// test.kt:8 $foo (8, 8, 8, 8)
|
||||
// test.kt:14 $foo (8, 8, 8, 8)
|
||||
// test.kt:24 $box
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
class A {
|
||||
@@ -67,7 +67,7 @@ fun box() {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:9 $Companion.<init> (12, 17, 17, 17, 17, 12)
|
||||
// test.kt:9 $Companion.<init> (12, 16, 16, 16, 16, 12)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
|
||||
+3
-3
@@ -30,7 +30,7 @@ fun box(): String {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:9 $box (4, 11, 11, 11, 11)
|
||||
// test.kt:9 $box (4, 10, 10, 10, 10)
|
||||
// test.kt:5 $box (11, 11, 4, 11, 11, 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)
|
||||
@@ -46,8 +46,8 @@ fun box(): String {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:10 $box
|
||||
// test.kt:11 $box (9, 9, 9, 9)
|
||||
// test.kt:14 $box (12, 12, 12, 12, 4)
|
||||
// test.kt:11 $box (8, 8, 8, 8)
|
||||
// test.kt:14 $box (11, 11, 11, 11, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8)
|
||||
// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
|
||||
@@ -37,7 +37,7 @@ fun box(): String {
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:15 $box
|
||||
// test.kt:4 $box (11, 11, 4)
|
||||
// test.kt:3 $box (46, 46, 46, 46)
|
||||
// test.kt:3 $box (45, 45, 45, 45)
|
||||
// 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)
|
||||
@@ -53,9 +53,9 @@ fun box(): String {
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
||||
// test.kt:16 $box
|
||||
// test.kt:11 $box (11, 11, 4)
|
||||
// test.kt:8 $box (5, 5, 5, 5)
|
||||
// test.kt:8 $box (4, 4, 4, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8)
|
||||
// test.kt:17 $box (12, 12, 12, 12, 4)
|
||||
// test.kt:17 $box (11, 11, 11, 11, 4)
|
||||
// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
// Strings.kt:161 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun normalFunction() {
|
||||
@@ -52,7 +52,7 @@ fun box() {
|
||||
// test.kt:1 $box
|
||||
// test.kt:23 $box
|
||||
// test.kt:13 $test1 (4, 4)
|
||||
// test.kt:9 $test1 (5, 5, 5, 5)
|
||||
// test.kt:9 $test1 (4, 4, 4, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19)
|
||||
@@ -66,13 +66,13 @@ fun box() {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
||||
// test.kt:14 $test1 (5, 5, 5, 5)
|
||||
// test.kt:14 $test1 (4, 4, 4, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8)
|
||||
// test.kt:15 $test1
|
||||
// test.kt:24 $box
|
||||
// test.kt:18 $test2
|
||||
// test.kt:5 $normalFunction (5, 5, 5, 5)
|
||||
// test.kt:5 $normalFunction (4, 4, 4, 4)
|
||||
// test.kt:6 $normalFunction
|
||||
// test.kt:19 $test2 (5, 5, 5, 5)
|
||||
// test.kt:19 $test2 (4, 4, 4, 4)
|
||||
// test.kt:20 $test2
|
||||
// test.kt:25 $box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
@@ -31,7 +31,7 @@ inline fun lookAtMe(f: (String) -> Unit) {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:6 $box
|
||||
// test.kt:12 $box (13, 13, 13, 13, 4)
|
||||
// test.kt:12 $box (12, 12, 12, 12, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
@@ -46,5 +46,5 @@ inline fun lookAtMe(f: (String) -> Unit) {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:13 $box (4, 6)
|
||||
// test.kt:7 $box (17, 17, 17, 17, 8)
|
||||
// test.kt:7 $box (16, 16, 16, 16, 8)
|
||||
// test.kt:9 $box
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
@@ -28,7 +28,7 @@ fun box() {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:6 $box (5, 5, 5, 5)
|
||||
// test.kt:6 $box (4, 4, 4, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19)
|
||||
@@ -42,10 +42,10 @@ fun box() {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
||||
// test.kt:10 $box (5, 5, 5, 5)
|
||||
// test.kt:10 $box (4, 4, 4, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8)
|
||||
// test.kt:11 $box
|
||||
// test.kt:8 $box$bar (9, 9, 9, 9)
|
||||
// test.kt:8 $box$bar (8, 8, 8, 8)
|
||||
// test.kt:9 $box$bar
|
||||
// test.kt:12 $box (5, 5, 5, 5)
|
||||
// test.kt:12 $box (4, 4, 4, 4)
|
||||
// test.kt:13 $box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
@@ -26,7 +26,7 @@ fun box() {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:6 $box (5, 5, 5, 5)
|
||||
// test.kt:6 $box (4, 4, 4, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19)
|
||||
@@ -40,9 +40,9 @@ fun box() {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
||||
// test.kt:8 $box (5, 5, 5, 5)
|
||||
// test.kt:8 $box (4, 4, 4, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8)
|
||||
// test.kt:9 $box (4, 4)
|
||||
// test.kt:7 $box$bar (17, 17, 17, 17, 19)
|
||||
// test.kt:10 $box (5, 5, 5, 5)
|
||||
// test.kt:7 $box$bar (16, 16, 16, 16, 20)
|
||||
// test.kt:10 $box (4, 4, 4, 4)
|
||||
// test.kt:11 $box
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
fun box(): String {
|
||||
@@ -31,7 +31,7 @@ fun box(): String {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:9 $box (9, 9, 9, 9)
|
||||
// test.kt:9 $box (8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
@@ -46,7 +46,7 @@ fun box(): String {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:6 $box
|
||||
// test.kt:12 $box (13, 13, 13, 13, 4)
|
||||
// test.kt:12 $box (12, 12, 12, 12, 4)
|
||||
// test.kt:14 $box (11, 15, 11, 4)
|
||||
// String.kt:28 $kotlin.String.plus (20, 26, 8)
|
||||
// Library.kt:19 $kotlin.toString (37, 37, 43, 43, 43, 37, 37, 63)
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: a.kt
|
||||
|
||||
@@ -35,7 +35,7 @@ fun box() {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:15 $box (4, 4)
|
||||
// a.kt:5 $a (11, 11, 11, 11, 12)
|
||||
// a.kt:5 $a (10, 10, 10, 10, 13)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
@@ -50,5 +50,5 @@ fun box() {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:16 $box (4, 4)
|
||||
// b.kt:9 $b (11, 11, 11, 11, 12)
|
||||
// b.kt:9 $b (10, 10, 10, 10, 13)
|
||||
// test.kt:17 $box
|
||||
|
||||
+6
-7
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// This is same as kotlin/compiler/testData/codegen/boxInline/smap/smap.kt
|
||||
// FILE: test.kt
|
||||
|
||||
@@ -76,7 +76,7 @@ inline fun html(init: () -> Unit) {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:20 $box
|
||||
// test.kt:8 $box (15, 15, 15, 15, 4)
|
||||
// test.kt:8 $box (14, 14, 14, 14, 4, 18, 10)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
@@ -90,12 +90,11 @@ inline fun html(init: () -> Unit) {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:10 $box (4, 4)
|
||||
// test.kt:25 $box (98, 23, 46, 39, 91)
|
||||
// test.kt:2 $box
|
||||
// test.kt:10 $box (4, 3, 4)
|
||||
// test.kt:25 $box (124, 49, 72, 65, 117)
|
||||
// test.kt:5 $box
|
||||
// test.kt:11 $box
|
||||
// test.kt:7 $box (20, 12, 27)
|
||||
// test.kt:12 $box (19, 19, 19, 19, 12)
|
||||
// test.kt:12 $box (18, 18, 18, 18, 12)
|
||||
// test.kt:16 $box (11, 4)
|
||||
// test.kt:22 $box (11, 4)
|
||||
// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
@@ -59,7 +59,7 @@ fun testExpressionBody(nullable: String?) =
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:7 $box (10, 10, 10, 10, 4, 4)
|
||||
// test.kt:7 $box (9, 9, 9, 9, 4, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
@@ -76,7 +76,7 @@ fun testExpressionBody(nullable: String?) =
|
||||
// test.kt:14 $test (11, 4, 11, 4)
|
||||
// test.kt:16 $test (12, 21, 31, 12)
|
||||
// test.kt:8 $box (9, 4, 4)
|
||||
// test.kt:9 $box (24, 24, 24, 24, 4, 4)
|
||||
// test.kt:9 $box (23, 23, 23, 23, 4, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8)
|
||||
// test.kt:20 $testExpressionBody (4, 4)
|
||||
// test.kt:22 $testExpressionBody (12, 21, 31, 12, 32, 32)
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(): String {
|
||||
@@ -22,7 +22,7 @@ fun box(): String {
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:5 $box
|
||||
// test.kt:6 $box
|
||||
// test.kt:7 $box (12, 12, 12, 12, 4)
|
||||
// test.kt:7 $box (11, 11, 11, 11, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun ifoo(ok: String = "OK"): String {
|
||||
@@ -23,7 +23,7 @@ fun box(): String {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:9 $box (11, 11, 11, 11, 4)
|
||||
// test.kt:4 $ifoo$default (0, 23, 23, 23, 23, 0)
|
||||
// test.kt:4 $ifoo$default (0, 22, 22, 22, 22, 0)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
@@ -32,7 +32,7 @@ fun box(): String {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:14 $box
|
||||
// test.kt:5 $box (30, 30, 30, 30)
|
||||
// test.kt:5 $box (29, 29, 29, 29)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (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)
|
||||
@@ -48,7 +48,7 @@ fun box(): String {
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
||||
// test.kt:6 $box (11, 4)
|
||||
// test.kt:15 $box (11, 11, 11, 11, 4)
|
||||
// test.kt:9 $ifoo2$default (0, 24, 24, 24, 24, 0)
|
||||
// test.kt:9 $ifoo2$default (0, 23, 23, 23, 23, 0)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8)
|
||||
// test.kt:10 $ifoo2 (11, 4)
|
||||
// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
inline fun alsoInline() = "OK"
|
||||
@@ -26,7 +26,7 @@ fun box(): String {
|
||||
// test.kt:1 $box__JsExportAdapter
|
||||
// test.kt:11 $box (11, 4)
|
||||
// test.kt:6 $box
|
||||
// test.kt:4 $box (27, 27, 27, 27, 29)
|
||||
// test.kt:4 $box (26, 26, 26, 26, 30)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
@@ -29,7 +29,7 @@ fun box() {
|
||||
// test.kt:1 $box
|
||||
// test.kt:11 $box
|
||||
// test.kt:7 $box
|
||||
// test.kt:12 $box (9, 9, 9, 9)
|
||||
// test.kt:12 $box (8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(){
|
||||
@@ -52,7 +52,7 @@ fun fail() : String {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:5 $box (16, 4)
|
||||
// test.kt:17 $box (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:17 $box (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -67,8 +67,8 @@ fun fail() : String {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4)
|
||||
// test.kt:6 $box
|
||||
// test.kt:21 $fail (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:13 $checkEquals (5, 5, 5, 5, 5, 5, 5, 5)
|
||||
// test.kt:21 $fail (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// test.kt:13 $checkEquals (4, 4, 4, 4, 4, 4, 4, 4)
|
||||
// test.kt:14 $checkEquals (1, 1)
|
||||
// test.kt:8 $box (16, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
infix fun String.execute(p: String) = this + p
|
||||
@@ -50,7 +50,7 @@ fun fail() : String {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:7 $box (4, 4, 4)
|
||||
// test.kt:15 $box (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:15 $box (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -65,7 +65,7 @@ fun fail() : String {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:8 $box
|
||||
// test.kt:19 $fail (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:19 $fail (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// test.kt:4 $execute (38, 45, 38, 46, 38, 45, 38, 46)
|
||||
// String.kt:28 $kotlin.String.plus (20, 26, 8, 20, 26, 8)
|
||||
// Library.kt:19 $kotlin.toString (37, 37, 43, 43, 43, 37, 37, 63, 37, 37, 43, 43, 43, 37, 37, 63)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(){
|
||||
@@ -47,7 +47,7 @@ fun fail() : String {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:5 $box (4, 9, 15, 15, 15, 15, 20, 20, 20, 20)
|
||||
// test.kt:5 $box (4, 9, 14, 14, 14, 14, 19, 19, 19, 19)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 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, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -61,10 +61,10 @@ fun fail() : String {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5, 5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4, 11, 4)
|
||||
// test.kt:17 $box (12, 12, 12, 12, 4, 12, 12, 12, 12, 4, 12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:17 $box (11, 11, 11, 11, 4, 11, 11, 11, 11, 4, 11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// test.kt:6 $box
|
||||
// test.kt:21 $fail (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:21 $fail (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8)
|
||||
// test.kt:8 $box (4, 9, 4)
|
||||
// test.kt:9 $box (16, 22, 22, 22, 22, 27, 27, 27, 27)
|
||||
// test.kt:9 $box (16, 21, 21, 21, 21, 26, 26, 26, 26)
|
||||
// test.kt:10 $box
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
|
||||
// FILE: test.kt
|
||||
fun box(){
|
||||
@@ -43,7 +43,7 @@ fun fail() : String {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:5 $box (4, 4, 4)
|
||||
// test.kt:13 $box (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:13 $box (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -58,7 +58,7 @@ fun fail() : String {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:6 $box
|
||||
// test.kt:17 $fail (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:17 $fail (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// String.kt:28 $kotlin.String.plus (20, 26, 8, 20, 26, 8)
|
||||
// Library.kt:19 $kotlin.toString (37, 37, 43, 43, 43, 37, 37, 63, 37, 37, 43, 43, 43, 37, 37, 63)
|
||||
// String.kt:119 $kotlin.String.toString (49, 49)
|
||||
|
||||
+14
-14
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun stringSwitch(x: String) {
|
||||
@@ -121,7 +121,7 @@ fun box() {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:30 $box (18, 18, 18, 18, 4)
|
||||
// test.kt:30 $box (17, 17, 17, 17, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 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, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -135,7 +135,7 @@ fun box() {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5, 5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4, 11, 4)
|
||||
// test.kt:6 $stringSwitch (8, 14, 14, 14, 14, 8, 20, 8, 8, 8)
|
||||
// test.kt:6 $stringSwitch (8, 13, 13, 13, 13, 8, 20, 8, 8, 8)
|
||||
// String.kt:122 $kotlin.String.hashCode (12, 25, 12, 12, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 35, 28)
|
||||
// String.kt:123 $kotlin.String.hashCode (30, 30, 30, 30)
|
||||
// String.kt:124 $kotlin.String.hashCode (12, 26, 12, 12, 26, 12, 12, 26, 12, 12, 26, 12)
|
||||
@@ -159,20 +159,20 @@ fun box() {
|
||||
// test.kt:1 $stringSwitch (0, 0, 0, 0, 0, 0, 0, 0, 0)
|
||||
// test.kt:5 $stringSwitch (4, 4, 4, 4)
|
||||
// test.kt:12 $stringSwitch (19, 4, 19, 4, 19, 4, 19, 4)
|
||||
// test.kt:13 $stringSwitch (8, 9, 9, 9, 9, 8, 15, 8, 8, 8)
|
||||
// test.kt:13 $stringSwitch (8, 15, 8, 8, 8)
|
||||
// test.kt:20 $stringSwitch (9, 9, 9, 9)
|
||||
// test.kt:22 $stringSwitch (8, 9, 9, 9, 9, 8, 15, 8, 8, 8)
|
||||
// test.kt:22 $stringSwitch (8, 15, 8, 8, 8)
|
||||
// test.kt:19 $stringSwitch (4, 4, 4, 4)
|
||||
// test.kt:27 $stringSwitch (1, 1, 1, 1)
|
||||
// test.kt:31 $box (18, 18, 18, 18, 4)
|
||||
// test.kt:7 $stringSwitch (8, 14, 14, 14, 14, 8, 21)
|
||||
// test.kt:14 $stringSwitch (8, 9, 9, 9, 9, 8, 16)
|
||||
// test.kt:23 $stringSwitch (8, 9, 9, 9, 9, 8, 16)
|
||||
// test.kt:32 $box (18, 18, 18, 18, 4)
|
||||
// test.kt:8 $stringSwitch (8, 14, 14, 14, 14, 8, 22)
|
||||
// test.kt:15 $stringSwitch (8, 9, 9, 9, 9, 8, 17)
|
||||
// test.kt:24 $stringSwitch (8, 9, 9, 9, 9, 8, 17)
|
||||
// test.kt:33 $box (18, 18, 18, 18, 4)
|
||||
// test.kt:31 $box (17, 17, 17, 17, 4)
|
||||
// test.kt:7 $stringSwitch (8, 13, 13, 13, 13, 8, 21)
|
||||
// test.kt:14 $stringSwitch (8, 16)
|
||||
// test.kt:23 $stringSwitch (8, 16)
|
||||
// test.kt:32 $box (17, 17, 17, 17, 4)
|
||||
// test.kt:8 $stringSwitch (8, 13, 13, 13, 13, 8, 22)
|
||||
// test.kt:15 $stringSwitch (8, 17)
|
||||
// test.kt:24 $stringSwitch (8, 17)
|
||||
// test.kt:33 $box (17, 17, 17, 17, 4)
|
||||
// test.kt:9 $stringSwitch
|
||||
// test.kt:16 $stringSwitch
|
||||
// test.kt:25 $stringSwitch
|
||||
|
||||
+10
-10
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun stringSwitch(x: String) {
|
||||
@@ -106,7 +106,7 @@ fun box() {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:27 $box (18, 18, 18, 18, 4)
|
||||
// test.kt:27 $box (17, 17, 17, 17, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 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, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -120,7 +120,7 @@ fun box() {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4)
|
||||
// test.kt:6 $stringSwitch (8, 14, 14, 14, 14, 8, 20, 8, 8)
|
||||
// test.kt:6 $stringSwitch (8, 13, 13, 13, 13, 8, 20, 8, 8)
|
||||
// String.kt:122 $kotlin.String.hashCode (12, 25, 12, 12, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 12, 25, 12, 12, 35, 28, 12, 25, 12, 12, 35, 28)
|
||||
// String.kt:123 $kotlin.String.hashCode (30, 30, 30)
|
||||
// String.kt:124 $kotlin.String.hashCode (12, 26, 12, 12, 26, 12, 12, 26, 12)
|
||||
@@ -144,16 +144,16 @@ fun box() {
|
||||
// test.kt:1 $stringSwitch (0, 0, 0, 0, 0, 0)
|
||||
// test.kt:5 $stringSwitch (4, 4, 4)
|
||||
// test.kt:11 $stringSwitch (19, 4, 19, 4, 19, 4)
|
||||
// test.kt:12 $stringSwitch (8, 9, 9, 9, 9, 8, 15, 8, 8)
|
||||
// test.kt:12 $stringSwitch (8, 15, 8, 8)
|
||||
// test.kt:18 $stringSwitch (9, 9, 9)
|
||||
// test.kt:20 $stringSwitch (8, 9, 9, 9, 9, 8, 15, 8, 8)
|
||||
// test.kt:20 $stringSwitch (8, 15, 8, 8)
|
||||
// test.kt:17 $stringSwitch (4, 4, 4)
|
||||
// test.kt:24 $stringSwitch (1, 1, 1)
|
||||
// test.kt:28 $box (18, 18, 18, 18, 4)
|
||||
// test.kt:7 $stringSwitch (8, 14, 14, 14, 14, 8, 21)
|
||||
// test.kt:13 $stringSwitch (8, 9, 9, 9, 9, 8, 16)
|
||||
// test.kt:21 $stringSwitch (8, 9, 9, 9, 9, 8, 16)
|
||||
// test.kt:29 $box (18, 18, 18, 18, 4)
|
||||
// test.kt:28 $box (17, 17, 17, 17, 4)
|
||||
// test.kt:7 $stringSwitch (8, 13, 13, 13, 13, 8, 21)
|
||||
// test.kt:13 $stringSwitch (8, 16)
|
||||
// test.kt:21 $stringSwitch (8, 16)
|
||||
// test.kt:29 $box (17, 17, 17, 17, 4)
|
||||
// test.kt:8 $stringSwitch
|
||||
// test.kt:14 $stringSwitch
|
||||
// test.kt:22 $stringSwitch
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun foo() {
|
||||
@@ -137,7 +137,7 @@ fun box() {
|
||||
// test.kt:26 $mightThrow (8, 8, 8, 22, 22, 16)
|
||||
// test.kt:27 $mightThrow (1, 1)
|
||||
// test.kt:5 $foo (4, 4, 4)
|
||||
// test.kt:10 $foo (9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9)
|
||||
// test.kt:10 $foo (8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 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, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -155,7 +155,7 @@ fun box() {
|
||||
// test.kt:30 $mightThrow2 (8, 8, 22, 22, 16, 8, 22, 22, 16)
|
||||
// test.kt:31 $mightThrow2
|
||||
// test.kt:13 $foo (12, 12, 4, 12, 12, 4, 12, 12, 4)
|
||||
// test.kt:18 $foo (9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9)
|
||||
// test.kt:18 $foo (8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8)
|
||||
// test.kt:20 $foo (1, 1, 1)
|
||||
// test.kt:35 $box (13, 4)
|
||||
// test.kt:36 $box
|
||||
@@ -170,9 +170,9 @@ fun box() {
|
||||
// Throwable.kt:49 $kotlin.Throwable.<init> (1, 1, 1)
|
||||
// Exceptions.kt:20 $kotlin.Exception.<init> (1, 1, 1)
|
||||
// test.kt:15 $foo (13, 13)
|
||||
// test.kt:16 $foo (9, 9, 9, 9, 9, 9, 9, 9)
|
||||
// test.kt:16 $foo (8, 8, 8, 8, 8, 8, 8, 8)
|
||||
// test.kt:37 $box (13, 4)
|
||||
// test.kt:38 $box
|
||||
// test.kt:7 $foo
|
||||
// test.kt:8 $foo (9, 9, 9, 9)
|
||||
// test.kt:8 $foo (8, 8, 8, 8)
|
||||
// test.kt:39 $box
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun foo() {
|
||||
@@ -90,7 +90,7 @@ fun box() {
|
||||
// test.kt:22 $mightThrow (8, 8)
|
||||
// test.kt:23 $mightThrow (1, 1)
|
||||
// test.kt:5 $foo (4, 4)
|
||||
// test.kt:8 $foo (9, 9, 9, 9, 9, 9, 9, 9)
|
||||
// test.kt:8 $foo (8, 8, 8, 8, 8, 8, 8, 8)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 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, 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -108,7 +108,7 @@ fun box() {
|
||||
// test.kt:26 $mightThrow2 (8, 8, 22, 22, 16)
|
||||
// test.kt:27 $mightThrow2
|
||||
// test.kt:11 $foo (12, 4, 12)
|
||||
// test.kt:14 $foo (9, 9, 9, 9, 9, 9, 9, 9)
|
||||
// test.kt:14 $foo (8, 8, 8, 8, 8, 8, 8, 8)
|
||||
// test.kt:16 $foo
|
||||
// test.kt:31 $box (13, 4)
|
||||
// test.kt:32 $box
|
||||
|
||||
@@ -43,7 +43,7 @@ fun box(): String {
|
||||
// test.kt:6 $box
|
||||
// Standard.kt:3 $box (16, 16, 16, 16)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8)
|
||||
// test.kt:9 $box (12, 12, 12, 12, 4)
|
||||
// test.kt:9 $box (11, 11, 11, 11, 4)
|
||||
// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
// Strings.kt:161 $kotlin.wasm.internal.kotlinToJsStringAdapter
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ fun box() {
|
||||
// test.kt:1 $box
|
||||
// test.kt:5 $box
|
||||
// test.kt:6 $box
|
||||
// test.kt:11 $box (13, 13, 13, 13)
|
||||
// test.kt:11 $box (12, 12, 12, 12)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box() {
|
||||
@@ -43,7 +43,7 @@ fun box() {
|
||||
// test.kt:5 $box (12, 4)
|
||||
// test.kt:6 $box (13, 11, 13, 17, 11, 11, 11, 13, 11, 13, 17, 11, 11, 11)
|
||||
// Primitives.kt:1159 $kotlin.Int__dec-impl (15, 8, 16, 15, 8, 16, 15, 8, 16, 15, 8, 16)
|
||||
// test.kt:7 $box (9, 9, 9, 9)
|
||||
// test.kt:7 $box (8, 8, 8, 8)
|
||||
// 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)
|
||||
@@ -58,7 +58,7 @@ fun box() {
|
||||
// Array.kt:76 $kotlin.Array.set
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4)
|
||||
// test.kt:10 $box (8, 4)
|
||||
// test.kt:12 $box (9, 9, 9, 9, 9, 9, 9, 9)
|
||||
// test.kt:12 $box (8, 8, 8, 8, 8, 8, 8, 8)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8)
|
||||
// test.kt:13 $box (15, 13, 15, 19, 13, 13, 15, 13, 15, 19, 13, 13)
|
||||
// test.kt:14 $box
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
@10:44..12:5 EXPRESSION_BODY
|
||||
@10:44..12:5 CALL 'public final fun observable <T> (initialValue: T of kotlin.properties.Delegates.observable, onChange: kotlin.Function3<@[ParameterName(name = "property")] kotlin.reflect.KProperty<*>, @[ParameterName(name = "oldValue")] T of kotlin.properties.Delegates.observable, @[ParameterName(name = "newValue")] T of kotlin.properties.Delegates.observable, kotlin.Unit>): kotlin.properties.ReadWriteProperty<kotlin.Any?, T of kotlin.properties.Delegates.observable> [inline] declared in kotlin.properties.Delegates' type=kotlin.properties.ReadWriteProperty<kotlin.Any?, kotlin.String> origin=null
|
||||
@10:34..43 GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Delegates modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.properties.Delegates
|
||||
@10:56..62 CONST String type=kotlin.String value="<none>"
|
||||
@10:55..63 CONST String type=kotlin.String value="<none>"
|
||||
@10:65..12:5 FUN_EXPR type=kotlin.Function3<@[ParameterName(name = "property")] kotlin.reflect.KProperty<*>, @[ParameterName(name = "oldValue")] kotlin.String, @[ParameterName(name = "newValue")] kotlin.String, kotlin.Unit> origin=LAMBDA
|
||||
@10:65..12:5 FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> (prop:kotlin.reflect.KProperty<*>, old:kotlin.String, new:kotlin.String) returnType:kotlin.Unit
|
||||
@10:67..71 VALUE_PARAMETER name:prop index:0 type:kotlin.reflect.KProperty<*>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
@0:0..4:0 FILE fqName:<root> fileName:/extensionLambdaCall.kt
|
||||
@0:0..3:1 FUN name:lookAtMe visibility:public modality:FINAL <> (f:@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit>) returnType:kotlin.Unit
|
||||
@0:13..33 VALUE_PARAMETER name:f index:0 type:@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit>
|
||||
@0:35..3:1 BLOCK_BODY
|
||||
@2:12..15 CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE
|
||||
@2:12..13 GET_VAR 'f: @[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit> declared in <root>.lookAtMe' type=@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit> origin=VARIABLE_AS_FUNCTION
|
||||
@1:4..9 CONST String type=kotlin.String value="123"
|
||||
@@ -1,3 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
fun lookAtMe(f: String.() -> Unit) {
|
||||
"123".
|
||||
f()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@0:0..4:0 FILE fqName:<root> fileName:/extensionLambdaCall.kt
|
||||
@0:0..3:1 FUN name:lookAtMe visibility:public modality:FINAL <> (f:@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit>) returnType:kotlin.Unit
|
||||
@0:13..33 VALUE_PARAMETER name:f index:0 type:@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit>
|
||||
@0:35..3:1 BLOCK_BODY
|
||||
@2:12..15 CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE
|
||||
@2:12..13 GET_VAR 'f: @[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit> declared in <root>.lookAtMe' type=@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit> origin=VARIABLE_AS_FUNCTION
|
||||
@1:5..8 CONST String type=kotlin.String value="123"
|
||||
@0:0..6:0 FILE fqName:<root> fileName:/extensionLambdaCall.kt
|
||||
@2:0..5:1 FUN name:lookAtMe visibility:public modality:FINAL <> (f:@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit>) returnType:kotlin.Unit
|
||||
@2:13..33 VALUE_PARAMETER name:f index:0 type:@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit>
|
||||
@2:35..5:1 BLOCK_BODY
|
||||
@4:12..15 CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE
|
||||
@4:12..13 GET_VAR 'f: @[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit> declared in <root>.lookAtMe' type=@[ExtensionFunctionType] kotlin.Function1<kotlin.String, kotlin.Unit> origin=VARIABLE_AS_FUNCTION
|
||||
@3:4..9 CONST String type=kotlin.String value="123"
|
||||
|
||||
+4
-4
@@ -8,23 +8,23 @@
|
||||
@8:7..10:1 FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.String [inline]
|
||||
@8:26..10:1 BLOCK_BODY
|
||||
@9:4..16 RETURN type=kotlin.Nothing from='public final fun test (): kotlin.String [inline] declared in <root>'
|
||||
@9:12..15 CONST String type=kotlin.String value="123"
|
||||
@9:11..16 CONST String type=kotlin.String value="123"
|
||||
@12:7..14:1 FUN name:test visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:kotlin.String [inline]
|
||||
@12:11..17 VALUE_PARAMETER name:<this> type:kotlin.String
|
||||
@12:33..14:1 BLOCK_BODY
|
||||
@13:4..16 RETURN type=kotlin.Nothing from='public final fun test (): kotlin.String [inline] declared in <root>'
|
||||
@13:12..15 CONST String type=kotlin.String value="123"
|
||||
@13:11..16 CONST String type=kotlin.String value="123"
|
||||
@16:0..18:1 FUN name:fail visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:kotlin.String
|
||||
@16:4..10 VALUE_PARAMETER name:<this> type:kotlin.String
|
||||
@16:26..18:1 BLOCK_BODY
|
||||
@17:4..32 THROW type=kotlin.Nothing
|
||||
@17:10..32 CONSTRUCTOR_CALL 'public constructor <init> (p0: @[FlexibleNullability] kotlin.Any?) declared in java.lang.AssertionError' type=java.lang.AssertionError origin=null
|
||||
@17:26..30 CONST String type=kotlin.String value="fail"
|
||||
@17:25..31 CONST String type=kotlin.String value="fail"
|
||||
@20:0..23:1 FUN name:bar visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
||||
@20:10..23:1 BLOCK_BODY
|
||||
@22:4..8 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
||||
@22:4..8 CALL 'public final fun <get-test> (): kotlin.String declared in <root>' type=kotlin.String origin=GET_PROPERTY
|
||||
@21:5..8 CONST String type=kotlin.String value="123"
|
||||
@21:4..9 CONST String type=kotlin.String value="123"
|
||||
@25:0..26:16 PROPERTY name:test visibility:public modality:FINAL [val]
|
||||
@26:4..16 FUN name:<get-test> visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:kotlin.String
|
||||
@25:4..10 VALUE_PARAMETER name:<this> type:kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user