From 46dc478c03b11b7d77a56e64a4fc2647a804096a Mon Sep 17 00:00:00 2001 From: Artem Kobzar Date: Tue, 12 Mar 2024 17:37:03 +0000 Subject: [PATCH] [K/Wasm] Reduce debug information for the internal Kotlin functions --- .../backend/wasm/ir2wasm/BodyGenerator.kt | 4 +- .../wasm/ir2wasm/DeclarationGenerator.kt | 2 +- .../backend/wasm/ir2wasm/locationUtils.kt | 14 +- .../backend/wasm/utils/SourceMapGenerator.kt | 5 +- .../debug/stepping/anonymousFunction.kt | 13 -- .../debug/stepping/anonymousFunctionDirect.kt | 13 -- compiler/testData/debug/stepping/assertion.kt | 85 --------- .../debug/stepping/callableReference.kt | 1 - ...singBracketOfLambdaOfInlineOnlyFunction.kt | 16 -- ...closingBracketOfObjectInsideCrossinline.kt | 16 -- .../testData/debug/stepping/constructors.kt | 13 -- compiler/testData/debug/stepping/continue.kt | 112 ----------- compiler/testData/debug/stepping/dataClass.kt | 178 ------------------ compiler/testData/debug/stepping/enum.kt | 16 -- compiler/testData/debug/stepping/if2.kt | 14 -- .../testData/debug/stepping/ifThenElse.kt | 14 -- .../testData/debug/stepping/iincStepping.kt | 2 - .../debug/stepping/implicitThisOnInvoke.kt | 3 - .../testData/debug/stepping/initBlocks.kt | 14 -- .../debug/stepping/initBlocksCompanion.kt | 13 -- compiler/testData/debug/stepping/kt29179.kt | 13 -- .../debug/stepping/lambdaStepInline.kt | 86 --------- .../stepping/lambdaStepInlineWithDefaults.kt | 86 --------- .../debug/stepping/lineNumberAfterInline.kt | 14 -- .../linenumberForOneParametersArgumentCall.kt | 13 -- .../testData/debug/stepping/localFunction.kt | 14 -- .../localFunctionWIthOnelineExpressionBody.kt | 14 -- .../testData/debug/stepping/localProperty.kt | 116 ------------ .../testData/debug/stepping/multiModule.kt | 13 -- .../testData/debug/stepping/nestedInline.kt | 85 --------- compiler/testData/debug/stepping/nullcheck.kt | 14 -- .../debug/stepping/primitiveNullChecks.kt | 85 --------- .../debug/stepping/simpleDefaultArg.kt | 85 --------- .../stepping/simpleDefaultArgWithInline.kt | 86 --------- .../debug/stepping/simpleInlineDefaultArg.kt | 85 --------- .../testData/debug/stepping/simpleSmap.kt | 13 -- .../debug/stepping/smapInlineAsArgument.kt | 14 -- .../stepping/smapInlineAsInfixArgument.kt | 20 -- .../stepping/smapInlineAsInlineArgument.kt | 14 -- .../stepping/smapInlineInIntrinsicArgument.kt | 20 -- .../testData/debug/stepping/stringSwitches.kt | 33 ---- .../debug/stepping/stringSwitchesSmall.kt | 33 ---- .../testData/debug/stepping/throwException.kt | 109 ----------- compiler/testData/debug/stepping/tryCatch.kt | 23 --- .../debug/stepping/tryCatchExpression.kt | 9 - .../debug/stepping/tryCatchFinally.kt | 23 --- .../testData/debug/stepping/tryFinally.kt | 106 ----------- .../stepping/variablesWithoutInitializer.kt | 87 --------- .../debug/stepping/voidLambdaStepInline.kt | 89 --------- .../testData/debug/stepping/whenConstant.kt | 13 -- compiler/testData/debug/stepping/whenExpr.kt | 3 - .../debug/stepping/whenInConjunction.kt | 1 - .../debug/stepping/whenInDisjunction.kt | 1 - .../stepping/whenInGeneralObjectComparison.kt | 2 - .../whenInPrimitiveToObjectComparison.kt | 1 - .../debug/stepping/whenNullalbeSubject.kt | 3 - compiler/testData/debug/stepping/while.kt | 15 -- .../wasm/ir/source/location/SourceLocation.kt | 2 + .../wasm/test/handlers/WasmDebugRunner.kt | 11 +- 59 files changed, 31 insertions(+), 1971 deletions(-) diff --git a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/BodyGenerator.kt b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/BodyGenerator.kt index 5da831510f1..782286bf688 100644 --- a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/BodyGenerator.kt +++ b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/BodyGenerator.kt @@ -1022,6 +1022,6 @@ class BodyGenerator( return false } - private fun IrElement.getSourceLocation() = getSourceLocation(functionContext.currentFunction.fileOrNull?.fileEntry) - private fun IrElement.getSourceEndLocation() = getSourceLocation(functionContext.currentFunction.fileOrNull?.fileEntry, type = LocationType.END) + private fun IrElement.getSourceLocation() = getSourceLocation(functionContext.currentFunction.fileOrNull) + private fun IrElement.getSourceEndLocation() = getSourceLocation(functionContext.currentFunction.fileOrNull, type = LocationType.END) } diff --git a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/DeclarationGenerator.kt b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/DeclarationGenerator.kt index 6674baee388..1978c068722 100644 --- a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/DeclarationGenerator.kt +++ b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/DeclarationGenerator.kt @@ -471,7 +471,7 @@ class DeclarationGenerator( initValue, wasmExpressionGenerator, context, - declaration.getSourceLocation(declaration.fileOrNull?.fileEntry) + declaration.getSourceLocation(declaration.fileOrNull) ) } else { generateDefaultInitializerForType(wasmType, wasmExpressionGenerator) diff --git a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/locationUtils.kt b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/locationUtils.kt index 741ede02631..e1bd464b643 100644 --- a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/locationUtils.kt +++ b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/locationUtils.kt @@ -9,7 +9,9 @@ import org.jetbrains.kotlin.ir.IrElement import org.jetbrains.kotlin.ir.IrFileEntry import org.jetbrains.kotlin.ir.LineAndColumn import org.jetbrains.kotlin.ir.UNDEFINED_OFFSET +import org.jetbrains.kotlin.ir.declarations.IrFile import org.jetbrains.kotlin.ir.util.SYNTHETIC_OFFSET +import org.jetbrains.kotlin.name.StandardClassIds import org.jetbrains.kotlin.wasm.ir.WasmExpressionBuilder import org.jetbrains.kotlin.wasm.ir.source.location.SourceLocation @@ -30,7 +32,12 @@ enum class LocationType { abstract fun getLineAndColumnNumberFor(irElement: IrElement, fileEntry: IrFileEntry): LineAndColumn } -fun IrElement.getSourceLocation(fileEntry: IrFileEntry?, type: LocationType = LocationType.START): SourceLocation { +private val IrFile.isIgnoredFile: Boolean + get() = packageFqName.startsWith(StandardClassIds.BASE_KOTLIN_PACKAGE) + +fun IrElement.getSourceLocation(file: IrFile?, type: LocationType = LocationType.START): SourceLocation { + val fileEntry = file?.fileEntry + if (fileEntry == null) return SourceLocation.NoLocation("fileEntry is null") if (hasSyntheticOrUndefinedLocation) return SourceLocation.NoLocation("Synthetic declaration") @@ -39,6 +46,11 @@ fun IrElement.getSourceLocation(fileEntry: IrFileEntry?, type: LocationType = Lo if (line < 0 || column < 0) return SourceLocation.NoLocation("startLine or startColumn < 0") + if (file.isIgnoredFile) { + return SourceLocation.IgnoredLocation(path, line, column) + } + + return SourceLocation.Location(path, line, column) } diff --git a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/utils/SourceMapGenerator.kt b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/utils/SourceMapGenerator.kt index 43f74445c03..537c068c64d 100644 --- a/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/utils/SourceMapGenerator.kt +++ b/compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/utils/SourceMapGenerator.kt @@ -42,7 +42,7 @@ class SourceMapGenerator( val pathResolver = SourceFilePathResolver.create(sourceMapsInfo.sourceRoots, sourceMapsInfo.sourceMapPrefix, sourceMapsInfo.outputDir) - var prev: SourceLocation? = null + var prev: SourceLocation.Location? = null var prevGeneratedLine = 0 for (mapping in sourceLocationMappings) { @@ -59,7 +59,8 @@ class SourceMapGenerator( } when (sourceLocation) { - is SourceLocation.NoLocation -> sourceMapBuilder.addEmptyMapping(generatedLocation.column) + // TODO: add the ignored location into "ignoreList" in future + is SourceLocation.NoLocation, is SourceLocation.IgnoredLocation -> sourceMapBuilder.addEmptyMapping(generatedLocation.column) is SourceLocation.Location -> { sourceLocation.apply { // TODO resulting path goes too deep since temporary directory we compiled first is deeper than final destination. diff --git a/compiler/testData/debug/stepping/anonymousFunction.kt b/compiler/testData/debug/stepping/anonymousFunction.kt index 1fa785c85fa..bb70e694b88 100644 --- a/compiler/testData/debug/stepping/anonymousFunction.kt +++ b/compiler/testData/debug/stepping/anonymousFunction.kt @@ -31,17 +31,4 @@ fun box() { // test.kt:7 $box // test.kt:4 $eval (27, 30) // test.kt:8 $box$lambda.invoke (8, 8, 8, 8, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 diff --git a/compiler/testData/debug/stepping/anonymousFunctionDirect.kt b/compiler/testData/debug/stepping/anonymousFunctionDirect.kt index 67b0bdabbb8..21d2e7d14cb 100644 --- a/compiler/testData/debug/stepping/anonymousFunctionDirect.kt +++ b/compiler/testData/debug/stepping/anonymousFunctionDirect.kt @@ -19,17 +19,4 @@ fun box() { // EXPECTATIONS WASM // test.kt:5 $box // test.kt:6 $box$lambda.invoke (8, 8, 8, 8, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 diff --git a/compiler/testData/debug/stepping/assertion.kt b/compiler/testData/debug/stepping/assertion.kt index 3907497bc6c..e5a8427c8e5 100644 --- a/compiler/testData/debug/stepping/assertion.kt +++ b/compiler/testData/debug/stepping/assertion.kt @@ -56,94 +56,9 @@ fun box(): String { // EXPECTATIONS WASM // test.kt:26 $box (4, 12) // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:18 $box // test.kt:19 $box (13, 12) // test.kt:27 $box (4, 12) // test.kt:8 $box // test.kt:9 $box (13, 12) // 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:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/callableReference.kt b/compiler/testData/debug/stepping/callableReference.kt index 15075a733f6..3d3e9df8b75 100644 --- a/compiler/testData/debug/stepping/callableReference.kt +++ b/compiler/testData/debug/stepping/callableReference.kt @@ -39,7 +39,6 @@ fun f(block: () -> Unit) { // EXPECTATIONS WASM // test.kt:4 $box (12, 12, 12, 4) -// ClosureBoxes.kt:9 $kotlin.wasm.internal.ClosureBoxBoolean. (33, 52) // test.kt:5 $box (6, 6, 4) // test.kt:11 $f // test.kt:6 $box$lambda.invoke (8, 12, 8, 16) diff --git a/compiler/testData/debug/stepping/closingBracketOfLambdaOfInlineOnlyFunction.kt b/compiler/testData/debug/stepping/closingBracketOfLambdaOfInlineOnlyFunction.kt index 11d309e7fb0..cedca5e9a5f 100644 --- a/compiler/testData/debug/stepping/closingBracketOfLambdaOfInlineOnlyFunction.kt +++ b/compiler/testData/debug/stepping/closingBracketOfLambdaOfInlineOnlyFunction.kt @@ -48,21 +48,5 @@ fun box() { // test.kt:7 $flaf (46, 57) // test.kt:6 $foo (39, 46) // test.kt:7 $flaf$lambda.invoke (52, 55) -// kotlin-package.kt:6 $flaf$lambda.invoke -// kotlin-package.kt:11 $flaf$lambda.invoke (917, 1002, 1002, 995) -// kotlin-package.kt:8 $flaf$lambda.invoke (3, 3, 3, 3, 6, 16) -// 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:15 $flaf // test.kt:19 $box diff --git a/compiler/testData/debug/stepping/closingBracketOfObjectInsideCrossinline.kt b/compiler/testData/debug/stepping/closingBracketOfObjectInsideCrossinline.kt index 8aead9055a8..f0960be8db7 100644 --- a/compiler/testData/debug/stepping/closingBracketOfObjectInsideCrossinline.kt +++ b/compiler/testData/debug/stepping/closingBracketOfObjectInsideCrossinline.kt @@ -64,28 +64,12 @@ fun box() { // EXPECTATIONS WASM // test.kt:21 $box (17, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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) -// ClosureBoxes.kt:8 $kotlin.wasm.internal.ClosureBoxAny. (29, 44) // test.kt:22 $box // test.kt:9 $box (4, 4) // test.kt:15 $. // test.kt:11 $.bar -// kotlin-package.kt:9 $.bar (37, 37) // test.kt:25 $. (16, 25, 25, 25, 25, 16) // test.kt:27 $. -// kotlin-package.kt:10 $.bar // test.kt:12 $.bar // test.kt:17 $. // test.kt:29 $box diff --git a/compiler/testData/debug/stepping/constructors.kt b/compiler/testData/debug/stepping/constructors.kt index 0829d283dc7..c5b3f0ecb17 100644 --- a/compiler/testData/debug/stepping/constructors.kt +++ b/compiler/testData/debug/stepping/constructors.kt @@ -243,19 +243,6 @@ class O(i: T) { // test.kt:16 $box (4, 6, 6, 6, 6, 4, 4) // test.kt:73 $O. (16, 16) // test.kt:17 $box (4, 6, 9, 9, 9, 9, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:74 $O. (36, 31) // test.kt:75 $O. // test.kt:18 $box diff --git a/compiler/testData/debug/stepping/continue.kt b/compiler/testData/debug/stepping/continue.kt index ce04e6ae437..5b938b9df95 100644 --- a/compiler/testData/debug/stepping/continue.kt +++ b/compiler/testData/debug/stepping/continue.kt @@ -66,123 +66,11 @@ fun box() { // EXPECTATIONS WASM // test.kt:5 $ -// Library.kt:2 $ (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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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:39 $ (62, 82) // 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 $ -// Array.kt:82 $kotlin.Array. (16, 24, 29) // 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) // test.kt:10 $box (12, 12) -// String.kt:100 $kotlin.String.equals (26, 26, 8, 26, 26, 8, 26, 26, 8, 26, 26, 8, 26, 26, 8, 26, 26, 8) -// String.kt:102 $kotlin.String.equals (30, 8, 30, 8, 30, 8, 30, 8, 30, 8, 30, 8) -// String.kt:103 $kotlin.String.equals (26, 38, 8, 26, 38, 8, 26, 38, 8, 26, 38, 8, 26, 38, 8, 26, 38, 8) -// String.kt:104 $kotlin.String.equals (12, 26, 12, 12, 12, 26, 12, 12, 46, 39, 12, 26, 12, 12, 46, 39, 12, 26, 12, 12, 46, 39, 12, 26, 12, 12, 46, 39, 12, 26, 12, 12) -// String.kt:106 $kotlin.String.equals (28, 8, 28, 8) -// String.kt:107 $kotlin.String.equals (24, 30, 8, 24, 30, 8) -// String.kt:108 $kotlin.String.equals (12, 24, 12, 12, 12, 24, 12, 12) -// String.kt:110 $kotlin.String.equals (29, 8, 29, 8) -// String.kt:63 $kotlin.String.equals (12, 12, 12, 12) -// String.kt:66 $kotlin.String.equals (15, 8, 15, 8, 15, 8, 15, 8) -// String.kt:111 $kotlin.String.equals (31, 25, 8, 31, 25, 8) -// String.kt:112 $kotlin.String.equals (8, 8) -// Standard.kt:124 $kotlin.String.equals (2, 32, 46, 42, 53, 32, 32, 32, 46, 42, 53, 32, 32, 2, 32, 46, 42, 53, 32, 32) -// Standard.kt:152 $kotlin.String.equals (4, 4) -// Standard.kt:154 $kotlin.String.equals (18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 18, 4, 26, 4, 18, 9, 18) -// 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, 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) -// String.kt:119 $kotlin.String.toString -// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter -// io.kt:29 $kotlin.io.println // test.kt:17 $box diff --git a/compiler/testData/debug/stepping/dataClass.kt b/compiler/testData/debug/stepping/dataClass.kt index a74d3dc6444..e2e097f2bf8 100644 --- a/compiler/testData/debug/stepping/dataClass.kt +++ b/compiler/testData/debug/stepping/dataClass.kt @@ -177,188 +177,10 @@ fun box() { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (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) -// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 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, 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. (13, 25, 39, 13, 25, 39, 13, 25, 39) // 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) // test.kt:16 $box (4, 6, 6) -// Primitives.kt:1366 $kotlin.Int__hashCode-impl -// String.kt:122 $kotlin.String.hashCode (12, 25, 12, 12) -// String.kt:123 $kotlin.String.hashCode -// String.kt:124 $kotlin.String.hashCode (12, 26, 12) -// String.kt:126 $kotlin.String.hashCode (24, 8) -// String.kt:63 $kotlin.String.hashCode -// String.kt:66 $kotlin.String.hashCode (15, 8) -// String.kt:127 $kotlin.String.hashCode (19, 8) -// String.kt:128 $kotlin.String.hashCode -// Standard.kt:136 $kotlin.String.hashCode (18, 52, 61, 52, 66, 51, 51, 44) -// Standard.kt:152 $kotlin.String.hashCode -// Standard.kt:154 $kotlin.String.hashCode (18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4) -// Standard.kt:155 $kotlin.String.hashCode (8, 15) -// Standard.kt:138 $kotlin.String.hashCode (8, 4, 0) -// Standard.kt:137 $kotlin.String.hashCode -// Standard.kt:53 $kotlin.String.hashCode (25, 37) -// String.kt:131 $kotlin.String.hashCode (20, 8) -// String.kt:132 $kotlin.String.hashCode (15, 8) // test.kt:17 $box (4, 6, 6) -// StringBuilder.kt:17 $kotlin.text.StringBuilder. (39, 34, 42) -// StringBuilder.kt:20 $kotlin.text.StringBuilder. (52, 62, 52, 47, 72) -// Arrays.kt:95 $kotlin.CharArray. (12, 19, 12, 12, 19, 12) -// Arrays.kt:96 $kotlin.CharArray. (8, 32, 18, 8, 8, 32, 18, 8) -// Arrays.kt:139 $kotlin.CharArray. (1, 1) -// StringBuilder.kt:14 $kotlin.text.StringBuilder. -// StringBuilder.kt:33 $kotlin.text.StringBuilder. -// StringBuilder.kt:715 $kotlin.text.StringBuilder. -// StringBuilder.kt:143 $kotlin.text.StringBuilder.append (59, 66, 72, 59, 83, 59, 66, 72, 59, 83, 59, 66, 72, 59, 83, 59, 66, 72, 59, 83) -// Library.kt:19 $kotlin.toString (37, 37, 43, 43, 43, 37, 37, 63, 37, 37, 43, 43, 43, 37, 37, 63, 37, 37, 43, 43, 43, 37, 37, 63, 37, 37, 43, 43, 43, 37, 37, 63) -// String.kt:119 $kotlin.String.toString (49, 49, 49, 49) -// StringBuilder.kt:225 $kotlin.text.StringBuilder.append (23, 23, 8, 23, 23, 8, 23, 23, 8, 23, 23, 8) -// StringBuilder.kt:226 $kotlin.text.StringBuilder.append (8, 28, 37, 8, 8, 28, 37, 8, 8, 28, 37, 8, 8, 28, 37, 8) -// StringBuilder.kt:696 $kotlin.text.StringBuilder.ensureExtraCapacity (8, 31, 41, 31, 8, 8, 31, 41, 31, 8, 8, 31, 41, 31, 8, 8, 31, 41, 31, 8, 8, 31, 41, 31, 8) -// StringBuilder.kt:700 $kotlin.text.StringBuilder.ensureCapacityInternal (12, 26, 12, 12, 26, 12, 12, 26, 12, 12, 26, 12, 12, 26, 12) -// StringBuilder.kt:701 $kotlin.text.StringBuilder.ensureCapacityInternal (12, 26, 32, 12, 12, 26, 32, 12, 12, 26, 32, 12, 12, 26, 32, 12, 12, 26, 32, 12) -// Arrays.kt:135 $kotlin.CharArray. (16, 24, 29, 16, 24, 29, 16, 24, 29, 16, 24, 29, 16, 24, 29, 16, 24, 29, 16, 24, 29, 16, 24, 29, 16, 24, 29) -// StringBuilder.kt:705 $kotlin.text.StringBuilder.ensureCapacityInternal (5, 5, 5, 5, 5) -// StringBuilder.kt:697 $kotlin.text.StringBuilder.ensureExtraCapacity (5, 5, 5, 5, 5) -// StringBuilder.kt:227 $kotlin.text.StringBuilder.append (8, 32, 39, 48, 19, 8, 8, 8, 32, 39, 48, 19, 8, 8, 8, 32, 39, 48, 19, 8, 8, 8, 32, 39, 48, 19, 8, 8) -// StringBuilder.kt:915 $kotlin.text.insertString (21, 28, 35, 42, 45, 51, 8, 58, 21, 28, 35, 42, 45, 51, 8, 58, 21, 28, 35, 42, 45, 51, 8, 58, 21, 28, 35, 42, 45, 51, 8, 58) -// StringBuilderWasm.kt:41 $kotlin.text.insertString (4, 4, 4, 4, 4) -// _WasmArrays.kt:62 $kotlin.text.insertString (53, 47, 60, 66, 53, 47, 60, 66, 53, 47, 60, 66, 53, 47, 60, 66, 53, 47, 60, 66) -// _WasmArrays.kt:79 $kotlin.text.insertString (21, 21, 21, 21, 21) -// _WasmArrays.kt:83 $kotlin.text.insertString (10, 3, 10, 3, 10, 3, 10, 3, 10, 3) -// _WasmArrays.kt:63 $kotlin.text.insertString (2, 2, 2, 2, 2) -// _WasmArrays.kt:64 $kotlin.text.insertString (1, 19, 1, 19, 1, 19, 1, 19, 1, 19) -// _WasmArrays.kt:88 $kotlin.text.insertString (35, 48, 66, 74, 87, 4, 35, 48, 66, 74, 87, 4, 35, 48, 66, 74, 87, 4, 35, 48, 66, 74, 87, 4, 35, 48, 66, 74, 87, 4) -// StringBuilderWasm.kt:42 $kotlin.text.insertString (11, 4, 11, 4, 11, 4, 11, 4, 11, 4) -// StringBuilder.kt:228 $kotlin.text.StringBuilder.append (15, 8, 15, 8, 15, 8, 15, 8) -// StringBuilder.kt:178 $kotlin.text.StringBuilder.append (8, 28, 8) -// StringBuilder.kt:702 $kotlin.text.StringBuilder.ensureCapacityInternal (51, 57, 63, 39, 12) -// AbstractList.kt:141 $kotlin.collections.Companion.newCapacity (30, 45, 61, 45, 30) -// AbstractList.kt:142 $kotlin.collections.Companion.newCapacity (16, 30, 16, 44, 16) -// AbstractList.kt:144 $kotlin.collections.Companion.newCapacity (16, 30, 16, 45, 16) -// AbstractList.kt:146 $kotlin.collections.Companion.newCapacity (19, 12) -// StringBuilder.kt:703 $kotlin.text.StringBuilder.ensureCapacityInternal (12, 20, 33, 26, 12) -// _ArraysWasm.kt:1417 $kotlin.collections.copyOf (11, 44, 16, 4) -// _ArraysWasm.kt:1781 $kotlin.collections.copyOfUninitializedElements (11, 39, 42, 11, 4) -// _ArraysWasm.kt:1694 $kotlin.collections.copyOfUninitializedElements (18, 28, 18) -// _ArraysWasm.kt:1695 $kotlin.collections.copyOfUninitializedElements (8, 18, 8) -// _ArraysWasm.kt:1698 $kotlin.collections.copyOfUninitializedElements (17, 27, 17, 4) -// _ArraysWasm.kt:1699 $kotlin.collections.copyOfUninitializedElements (4, 18, 26, 29, 40, 61, 48, 9, 9) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 36, 4) -// _ArraysWasm.kt:1228 $kotlin.collections.copyInto (35, 47, 57, 62, 17) -// AbstractList.kt:119 $kotlin.collections.Companion.checkRangeIndexes (16, 28, 16, 33, 43, 33, 16, 28, 16, 33, 43, 33) -// AbstractList.kt:122 $kotlin.collections.Companion.checkRangeIndexes (16, 28, 16, 16, 28, 16) -// AbstractList.kt:125 $kotlin.collections.Companion.checkRangeIndexes (9, 9) -// _ArraysWasm.kt:1229 $kotlin.collections.copyInto (20, 31, 20, 4) -// _ArraysWasm.kt:1230 $kotlin.collections.copyInto (35, 54, 74, 54, 85, 97, 17) -// _ArraysWasm.kt:1231 $kotlin.collections.copyInto -// _WasmArrays.kt:244 $kotlin.collections.copyInto (42869, 42874, 42883, 42895, 42904, 42916, 42935) -// _WasmArrays.kt:88 $kotlin.collections.copyInto (35, 48, 66, 74, 87, 4) -// _ArraysWasm.kt:1232 $kotlin.collections.copyInto (11, 4) -// _ArraysWasm.kt:1700 $kotlin.collections.copyOfUninitializedElements (11, 4) -// StringBuilder.kt:179 $kotlin.text.StringBuilder.append (8, 29, 36, 45, 19, 8, 8) -// StringBuilderWasm.kt:52 $kotlin.text.insertInt (22, 28) -// Primitives.kt:1359 $kotlin.Int__toString-impl (8, 20) -// Number2String.kt:191 $kotlin.wasm.internal. -// Number2String.kt:192 $kotlin.wasm.internal. -// Number2String.kt:193 $kotlin.wasm.internal. -// Number2String.kt:194 $kotlin.wasm.internal. -// Number2String.kt:195 $kotlin.wasm.internal. -// Number2String.kt:196 $kotlin.wasm.internal. -// Number2String.kt:198 $kotlin.wasm.internal. -// Library.kt:93 $kotlin.wasm.internal. (2619, 2619, 2619, 2619, 3210, 3210, 3210, 3210, 3231, 3210, 11556, 11560, 3262, 3241, 11556, 11560, 3293, 3272, 11556, 11560, 3324, 3303, 11556, 11560, 3359, 3338, 11556, 11560, 3390, 3369, 11556, 11560, 3421, 3400, 11556, 11560, 3452, 3431, 11556, 11560, 3487, 3466, 11556, 11560, 3518, 3497, 11556, 11560, 3549, 3528, 11556, 11560, 3580, 3559, 11556, 11560, 3615, 3594, 11556, 11560, 3646, 3625, 11556, 11560, 3677, 3656, 11556, 11560, 3708, 3687, 11556, 11560, 3743, 3722, 11556, 11560, 3774, 3753, 11556, 11560, 3805, 3784, 11556, 11560, 3836, 3815, 11556, 11560, 3871, 3850, 11556, 11560, 3902, 3881, 11556, 11560, 3933, 3912, 11556, 11560, 3964, 3943, 11556, 11560, 3999, 3978, 11556, 11560, 4030, 4009, 11556, 11560, 4061, 4040, 11556, 11560, 4092, 4071, 11556, 11560, 4127, 4106, 11556, 11560, 4158, 4137, 11556, 11560, 4189, 4168, 11556, 11560, 4220, 4199, 11556, 11560, 4255, 4234, 11556, 11560, 4286, 4265, 11556, 11560, 4317, 4296, 11556, 11560, 4348, 4327, 11556, 11560, 4383, 4362, 11556, 11560, 4414, 4393, 11556, 11560, 4445, 4424, 11556, 11560, 4476, 4455, 11556, 11560, 4511, 4490, 11556, 11560, 4542, 4521, 11556, 11560, 4573, 4552, 11556, 11560, 4604, 4583, 11556, 11560, 4639, 4618, 11556, 11560, 4670, 4649, 11556, 11560, 4701, 4680, 11556, 11560, 4732, 4711, 11556, 11560, 4767, 4746, 11556, 11560, 4798, 4777, 11556, 11560, 4829, 4808, 11556, 11560, 4860, 4839, 11556, 11560, 4895, 4874, 11556, 11560, 4926, 4905, 11556, 11560, 4957, 4936, 11556, 11560, 4988, 4967, 11556, 11560, 5023, 5002, 11556, 11560, 5054, 5033, 11556, 11560, 5085, 5064, 11556, 11560, 5116, 5095, 11556, 11560, 5151, 5130, 11556, 11560, 5182, 5161, 11556, 11560, 5213, 5192, 11556, 11560, 5244, 5223, 11556, 11560, 5279, 5258, 11556, 11560, 5310, 5289, 11556, 11560, 5341, 5320, 11556, 11560, 5372, 5351, 11556, 11560, 5407, 5386, 11556, 11560, 5438, 5417, 11556, 11560, 5469, 5448, 11556, 11560, 5500, 5479, 11556, 11560, 5535, 5514, 11556, 11560, 5566, 5545, 11556, 11560, 5597, 5576, 11556, 11560, 5628, 5607, 11556, 11560, 5663, 5642, 11556, 11560, 5694, 5673, 11556, 11560, 5725, 5704, 11556, 11560, 5756, 5735, 11556, 11560, 5791, 5770, 11556, 11560, 5822, 5801, 11556, 11560, 5853, 5832, 11556, 11560, 5884, 5863, 11556, 11560, 5919, 5898, 11556, 11560, 5950, 5929, 11556, 11560, 5981, 5960, 11556, 11560, 3210, 3210) -// Library.kt:69 $kotlin.wasm.internal. (69, 77) -// Number2String.kt:211 $kotlin.wasm.internal. -// ULong.kt:17 $kotlin.-impl> (125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125) -// Library.kt:54 $kotlin.wasm.internal. (66, 74) -// Number2String.kt:48 $kotlin.wasm.internal.itoa32 (8, 22, 8) -// Number2String.kt:50 $kotlin.wasm.internal.itoa32 (21, 34, 21) -// Number2String.kt:51 $kotlin.wasm.internal.itoa32 (23, 52, 4) -// Number2String.kt:52 $kotlin.wasm.internal.itoa32 (41, 25, 4) -// UInt.kt:36 $kotlin.wasm.internal.itoa32 -// UInt.kt:414 $kotlin.wasm.internal.itoa32 (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// Number2String.kt:58 $kotlin.wasm.internal.utoa32 (8, 22, 8) -// Number2String.kt:60 $kotlin.wasm.internal.utoa32 (34, 19) -// Number2String.kt:105 $kotlin.wasm.internal.decimalCount32 (8, 8, 8) -// UInt.kt:68 $kotlin.wasm.internal.decimalCount32 (4, 12, 35, 43, 75, 84) -// UInt.kt:64 $kotlin.wasm.internal.decimalCount32 (70, 82, 87, 93, 99, 104, 70, 82, 87, 93, 99, 104, 70, 82, 87, 93, 99, 104) -// UInt.kt:17 $kotlin.-impl> (124, 124, 124, 124, 124, 124, 124, 124, 124) -// UInt.kt:31 $kotlin.wasm.internal.decimalCount32 (65, 69, 46, 72, 65, 69, 46, 72, 65, 69, 46, 72) -// WasmMath.kt:16 $kotlin.wasm.internal.wasm_u32_compareTo (18, 21, 4, 48, 51, 34, 4, 61, 18, 21, 4, 48, 51, 34, 4, 61, 18, 21, 4, 48, 51, 34, 4, 61, 18, 21, 4, 48, 51, 34, 4, 61) -// Number2String.kt:106 $kotlin.wasm.internal.decimalCount32 (12, 12, 12) -// Number2String.kt:107 $kotlin.wasm.internal.decimalCount32 (19, 24, 24, 24, 19, 12) -// Number2String.kt:61 $kotlin.wasm.internal.utoa32 (28, 14) -// Number2String.kt:63 $kotlin.wasm.internal.utoa32 (18, 23, 35, 4) -// Number2String.kt:69 $kotlin.wasm.internal.utoaDecSimple (11, 23, 11, 11, 4) -// Assertions.kt:14 $kotlin.assert (11, 4, 11, 4, 11, 4, 11, 4) -// Assertions.kt:21 $kotlin.assert (9, 8, 9, 8, 9, 8, 9, 8) -// Assertions.kt:25 $kotlin.assert (1, 1, 1, 1) -// Assertions.kt:15 $kotlin.assert (1, 1, 1, 1) -// Number2String.kt:70 $kotlin.wasm.internal.utoaDecSimple (11, 18, 26, 11, 4) -// Number2String.kt:71 $kotlin.wasm.internal.utoaDecSimple (11, 25, 11, 30, 45, 52, 30, 4) -// Number2String.kt:73 $kotlin.wasm.internal.utoaDecSimple (14, 4) -// Number2String.kt:74 $kotlin.wasm.internal.utoaDecSimple (17, 4) -// Number2String.kt:76 $kotlin.wasm.internal.utoaDecSimple (16, 8) -// UInt.kt:51 $kotlin.wasm.internal.utoaDecSimple (75, 81, 101, 107) -// UInt.kt:121 $kotlin.wasm.internal.utoaDecSimple (67, 73, 56, 79) -// Number2String.kt:77 $kotlin.wasm.internal.utoaDecSimple (16, 8) -// UInt.kt:146 $kotlin.wasm.internal.utoaDecSimple (70, 76, 56, 82) -// Number2String.kt:78 $kotlin.wasm.internal.utoaDecSimple (14, 8) -// Number2String.kt:79 $kotlin.wasm.internal.utoaDecSimple -// Primitives.kt:1159 $kotlin.Int__dec-impl (15, 8, 16) -// Number2String.kt:80 $kotlin.wasm.internal.utoaDecSimple (8, 19, 41, 27, 15) -// UInt.kt:54 $kotlin.wasm.internal.utoaDecSimple (3, 28) -// UInt.kt:313 $kotlin.wasm.internal.utoaDecSimple (37, 41) -// Number2String.kt:43 $kotlin.wasm.internal.digitToChar (20, 11, 23, 11, 4) -// Number2String.kt:11 $kotlin.wasm.internal.CharCodes_initEntries -// Enum.kt:9 $kotlin.Enum. (4, 4, 4, 4, 4) -// Enum.kt:11 $kotlin.Enum. (4, 4, 4, 4, 4) -// Enum.kt:27 $kotlin.Enum. (1, 1, 1, 1, 1) -// Number2String.kt:9 $kotlin.wasm.internal.CharCodes. (29, 29, 29, 29, 29) -// Number2String.kt:40 $kotlin.wasm.internal.CharCodes. (1, 1, 1, 1, 1) -// Number2String.kt:12 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:13 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:14 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:34 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:44 $kotlin.wasm.internal.digitToChar (25, 32, 12, 39, 4) -// Primitives.kt:1306 $kotlin.Int__toChar-impl (18, 9, 45) -// Number2String.kt:81 $kotlin.wasm.internal.utoaDecSimple (13, 13, 13, 13) -// UInt.kt:55 $kotlin.wasm.internal.utoaDecSimple -// UInt.kt:64 $kotlin.wasm.internal.utoaDecSimple (70, 82, 87, 93, 99, 104) -// UInt.kt:31 $kotlin.wasm.internal.utoaDecSimple (65, 69, 46, 72) -// Number2String.kt:82 $kotlin.wasm.internal.utoaDecSimple -// Number2String.kt:65 $kotlin.wasm.internal.utoa32 (15, 4) -// String.kt:44 $kotlin.wasm.internal.utoa32 -// String.kt:138 $kotlin.wasm.internal.utoa32 (4, 4, 4, 4, 11, 17, 22, 29, 4, 34) -// Number2String.kt:54 $kotlin.wasm.internal.itoa32 (15, 51, 4) -// StringBuilderWasm.kt:53 $kotlin.text.insertInt (17, 29, 4) -// StringBuilderWasm.kt:54 $kotlin.text.insertInt (17, 24, 31, 44, 47, 4, 4) -// StringBuilderWasm.kt:55 $kotlin.text.insertInt (11, 4) -// StringBuilder.kt:180 $kotlin.text.StringBuilder.append (15, 8) -// StringBuilder.kt:499 $kotlin.text.StringBuilder.toString (64, 71, 74, 38, 82) -// StringBuilderWasm.kt:46 $kotlin.text.unsafeStringFromCharArray (29, 15, 4) -// StringBuilderWasm.kt:47 $kotlin.text.unsafeStringFromCharArray -// _WasmArrays.kt:73 $kotlin.text.unsafeStringFromCharArray (3, 9, 18, 24, 31) -// _WasmArrays.kt:74 $kotlin.text.unsafeStringFromCharArray -// _WasmArrays.kt:88 $kotlin.text.unsafeStringFromCharArray (35, 48, 66, 74, 87, 4) -// StringBuilderWasm.kt:48 $kotlin.text.unsafeStringFromCharArray (16, 4) -// String.kt:57 $kotlin.text.unsafeStringFromCharArray -// String.kt:138 $kotlin.text.unsafeStringFromCharArray (4, 4, 4, 4, 11, 17, 22, 29, 4, 34) // test.kt:18 $box (17, 9, 9, 17, 12, 12) // test.kt:19 $box (4, 6, 6, 6, 6, 6, 6) // test.kt:20 $box (12, 14, 17, 17, 17, 17, 12) diff --git a/compiler/testData/debug/stepping/enum.kt b/compiler/testData/debug/stepping/enum.kt index 7e9ec178c4d..f81b667ef86 100644 --- a/compiler/testData/debug/stepping/enum.kt +++ b/compiler/testData/debug/stepping/enum.kt @@ -56,22 +56,6 @@ fun box() { // test.kt:25 box // EXPECTATIONS WASM -// 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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) -// Enum.kt:9 $kotlin.Enum. (4, 4, 4, 4) -// Enum.kt:11 $kotlin.Enum. (4, 4, 4, 4) -// Enum.kt:27 $kotlin.Enum. (1, 1, 1, 1) // test.kt:12 $E. (15, 15) // test.kt:4 $E. (14, 14) // test.kt:23 $box diff --git a/compiler/testData/debug/stepping/if2.kt b/compiler/testData/debug/stepping/if2.kt index e748484140b..b06b826b2f4 100644 --- a/compiler/testData/debug/stepping/if2.kt +++ b/compiler/testData/debug/stepping/if2.kt @@ -50,23 +50,9 @@ fun box() { // test.kt:21 $box (8, 4) // test.kt:5 $foo (8, 12, 8, 8, 12, 8) // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:9 $foo (8, 12, 8, 8, 12, 8) // test.kt:13 $foo (8, 12, 8, 8, 12, 8) // 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 (8, 8, 8, 8) diff --git a/compiler/testData/debug/stepping/ifThenElse.kt b/compiler/testData/debug/stepping/ifThenElse.kt index 57743d2117a..220f189ce78 100644 --- a/compiler/testData/debug/stepping/ifThenElse.kt +++ b/compiler/testData/debug/stepping/ifThenElse.kt @@ -61,22 +61,8 @@ fun box() { // test.kt:21 $box // test.kt:5 $foo (8, 8) // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:11 $foo (16, 4, 16, 4) // 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 diff --git a/compiler/testData/debug/stepping/iincStepping.kt b/compiler/testData/debug/stepping/iincStepping.kt index 230f27a97ea..c7dda34384a 100644 --- a/compiler/testData/debug/stepping/iincStepping.kt +++ b/compiler/testData/debug/stepping/iincStepping.kt @@ -53,8 +53,6 @@ fun box() { // EXPECTATIONS WASM // test.kt:5 $box (12, 4) // test.kt:6 $box (4, 6) -// Primitives.kt:2 $box -// Primitives.kt:1150 $box (8, 15, 8, 16) // test.kt:7 $box (4, 9, 4, 4) // test.kt:8 $box (4, 4, 4) // test.kt:9 $box diff --git a/compiler/testData/debug/stepping/implicitThisOnInvoke.kt b/compiler/testData/debug/stepping/implicitThisOnInvoke.kt index 099f15a91d4..dd7f53c93bc 100644 --- a/compiler/testData/debug/stepping/implicitThisOnInvoke.kt +++ b/compiler/testData/debug/stepping/implicitThisOnInvoke.kt @@ -49,9 +49,6 @@ fun test(b: B) { // test.kt:8 $A. // test.kt:10 $B. (8, 17) // test.kt:15 $test -// Standard.kt:3 $test (51, 64) -// Standard.kt:67 $test -// Standard.kt:70 $test (20, 11, 20, 4) // test.kt:11 $B.invoke // test.kt:18 $test // test.kt:6 $box diff --git a/compiler/testData/debug/stepping/initBlocks.kt b/compiler/testData/debug/stepping/initBlocks.kt index 9d238086df2..9f3b0042e92 100644 --- a/compiler/testData/debug/stepping/initBlocks.kt +++ b/compiler/testData/debug/stepping/initBlocks.kt @@ -124,19 +124,6 @@ fun box() { // test.kt:49 $box (4, 4, 4) // test.kt:8 $Foo. (8, 12, 8) // test.kt:46 $x (10, 10, 10, 10, 12, 10, 10, 10, 10, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 $Foo. // test.kt:50 $box (4, 4, 4) // test.kt:14 $Bar. (16, 8) @@ -145,7 +132,6 @@ fun box() { // test.kt:51 $box (4, 4, 4) // test.kt:24 $Boo. (16, 8) // test.kt:27 $Boo. -// String.kt:143 $kotlin.stringLiteral (15, 8) // test.kt:30 $Boo. (16, 8) // test.kt:32 $Boo. // test.kt:52 $box (4, 4) diff --git a/compiler/testData/debug/stepping/initBlocksCompanion.kt b/compiler/testData/debug/stepping/initBlocksCompanion.kt index 0de286f5c01..02e88bc8481 100644 --- a/compiler/testData/debug/stepping/initBlocksCompanion.kt +++ b/compiler/testData/debug/stepping/initBlocksCompanion.kt @@ -67,19 +67,6 @@ fun box() { // EXPECTATIONS WASM // test.kt:9 $Companion. (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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:12 $Companion. // test.kt:27 $x (10, 10, 10, 10, 12) // test.kt:14 $Companion. (23, 15) diff --git a/compiler/testData/debug/stepping/kt29179.kt b/compiler/testData/debug/stepping/kt29179.kt index c9b81737abd..b3b11be5e7e 100644 --- a/compiler/testData/debug/stepping/kt29179.kt +++ b/compiler/testData/debug/stepping/kt29179.kt @@ -38,18 +38,5 @@ fun box() { // test.kt:5 $A. // test.kt:12 $A. // test.kt:10 $A.foo (13, 13, 13, 13) -// 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:11 $A.foo // test.kt:16 $box diff --git a/compiler/testData/debug/stepping/lambdaStepInline.kt b/compiler/testData/debug/stepping/lambdaStepInline.kt index 3c9ae6841c6..3d1c64fc7be 100644 --- a/compiler/testData/debug/stepping/lambdaStepInline.kt +++ b/compiler/testData/debug/stepping/lambdaStepInline.kt @@ -31,92 +31,6 @@ fun box(): String { // EXPECTATIONS WASM // test.kt:9 $box (4, 10, 10, 10, 10, 15) // test.kt:5 $box (11, 4, 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) -// 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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 // test.kt:11 $box (8, 8, 8, 8, 12) // 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 -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt b/compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt index 4607ea45495..3a22010415b 100644 --- a/compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt +++ b/compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt @@ -37,93 +37,7 @@ fun box(): String { // test.kt:15 $box // test.kt:4 $box (11, 4) // test.kt:3 $box (45, 45, 45, 45, 49) -// 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:16 $box // test.kt:11 $box (11, 4) // test.kt:8 $box (4, 4, 4, 4, 8) -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8) // 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:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/lineNumberAfterInline.kt b/compiler/testData/debug/stepping/lineNumberAfterInline.kt index 3ecf7945ed4..a9d6ea9a900 100644 --- a/compiler/testData/debug/stepping/lineNumberAfterInline.kt +++ b/compiler/testData/debug/stepping/lineNumberAfterInline.kt @@ -52,21 +52,7 @@ fun box() { // test.kt:23 $box // test.kt:13 $test1 // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 (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 diff --git a/compiler/testData/debug/stepping/linenumberForOneParametersArgumentCall.kt b/compiler/testData/debug/stepping/linenumberForOneParametersArgumentCall.kt index a8955ed92dc..f461975b033 100644 --- a/compiler/testData/debug/stepping/linenumberForOneParametersArgumentCall.kt +++ b/compiler/testData/debug/stepping/linenumberForOneParametersArgumentCall.kt @@ -31,19 +31,6 @@ inline fun lookAtMe(f: (String) -> Unit) { // EXPECTATIONS WASM // test.kt:6 $box // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:13 $box (4, 6) // test.kt:7 $box (16, 16, 16, 16, 8) // test.kt:9 $box diff --git a/compiler/testData/debug/stepping/localFunction.kt b/compiler/testData/debug/stepping/localFunction.kt index 09cf32ae1c2..eff252d9130 100644 --- a/compiler/testData/debug/stepping/localFunction.kt +++ b/compiler/testData/debug/stepping/localFunction.kt @@ -28,21 +28,7 @@ fun box() { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 (4, 4, 4, 4) -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8) // test.kt:11 $box // test.kt:8 $box$bar (8, 8, 8, 8) // test.kt:9 $box$bar diff --git a/compiler/testData/debug/stepping/localFunctionWIthOnelineExpressionBody.kt b/compiler/testData/debug/stepping/localFunctionWIthOnelineExpressionBody.kt index 3a14573406f..1ee3f0c5ed6 100644 --- a/compiler/testData/debug/stepping/localFunctionWIthOnelineExpressionBody.kt +++ b/compiler/testData/debug/stepping/localFunctionWIthOnelineExpressionBody.kt @@ -26,21 +26,7 @@ fun box() { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 (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 (16, 16, 16, 16, 20) // test.kt:10 $box (4, 4, 4, 4) diff --git a/compiler/testData/debug/stepping/localProperty.kt b/compiler/testData/debug/stepping/localProperty.kt index a4ef147b7d6..ece45d067e1 100644 --- a/compiler/testData/debug/stepping/localProperty.kt +++ b/compiler/testData/debug/stepping/localProperty.kt @@ -31,122 +31,6 @@ fun box(): String { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:6 $box // 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) -// String.kt:119 $kotlin.String.toString -// String.kt:29 $kotlin.String.plus (15, 15, 15, 15, 22, 28, 33, 42, 48, 28, 62, 56, 15, 8) -// String.kt:63 $kotlin.String.plus -// String.kt:66 $kotlin.String.plus (15, 8) -// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:64 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:45 $kotlin.String.foldChars (27, 32) -// String.kt:46 $kotlin.String.foldChars (37, 23, 8) -// String.kt:48 $kotlin.String.foldChars (32, 8) -// String.kt:49 $kotlin.String.foldChars (41, 8) -// String.kt:50 $kotlin.String.foldChars (15, 15, 15) -// String.kt:51 $kotlin.String.foldChars (41, 59, 41, 59) -// String.kt:52 $kotlin.String.foldChars (39, 62, 12, 39, 62, 12) -// String.kt:53 $kotlin.String.foldChars (12, 33, 12, 12, 12, 33, 12, 12) -// String.kt:54 $kotlin.String.foldChars (12, 12) -// _WasmArrays.kt:68 $kotlin.String.foldChars (0, 0) -// _WasmArrays.kt:70 $kotlin.String.foldChars (21, 21) -// _WasmArrays.kt:71 $kotlin.String.foldChars (1, 4, 23, 1, 4, 23) -// _WasmArrays.kt:88 $kotlin.String.foldChars (35, 48, 66, 74, 87, 4, 35, 48, 66, 74, 87, 4) -// String.kt:55 $kotlin.String.foldChars (32, 50, 12, 32, 50, 12) -// String.kt:57 $kotlin.String.foldChars -// Preconditions.kt:77 $kotlin.String.foldChars (2, 2) -// Preconditions.kt:78 $kotlin.String.foldChars -// Preconditions.kt:80 $kotlin.String.foldChars -// Preconditions.kt:83 $kotlin.String.foldChars (4, 10) -// Preconditions.kt:27 $kotlin.String.foldChars -// Preconditions.kt:29 $kotlin.String.foldChars (3, 2) -// String.kt:58 $kotlin.String.foldChars (8, 17, 8) -// String.kt:59 $kotlin.String.foldChars (8, 22, 8) -// String.kt:60 $kotlin.String.foldChars -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/multiModule.kt b/compiler/testData/debug/stepping/multiModule.kt index d4372e48d77..2fcdc108569 100644 --- a/compiler/testData/debug/stepping/multiModule.kt +++ b/compiler/testData/debug/stepping/multiModule.kt @@ -35,19 +35,6 @@ fun box() { // EXPECTATIONS WASM // test.kt:15 $box (4, 4) // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:16 $box // b.kt:9 $b (10, 10, 10, 10, 13) // test.kt:17 $box diff --git a/compiler/testData/debug/stepping/nestedInline.kt b/compiler/testData/debug/stepping/nestedInline.kt index 7968a4ede47..c259de2a75b 100644 --- a/compiler/testData/debug/stepping/nestedInline.kt +++ b/compiler/testData/debug/stepping/nestedInline.kt @@ -76,19 +76,6 @@ inline fun html(init: () -> Unit) { // EXPECTATIONS WASM // test.kt:20 $box // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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, 3) // test.kt:25 $box (124, 49, 72, 65, 117) // test.kt:5 $box @@ -96,75 +83,3 @@ inline fun html(init: () -> Unit) { // 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 -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/nullcheck.kt b/compiler/testData/debug/stepping/nullcheck.kt index d19ba982990..ed60b36d2de 100644 --- a/compiler/testData/debug/stepping/nullcheck.kt +++ b/compiler/testData/debug/stepping/nullcheck.kt @@ -59,24 +59,10 @@ fun testExpressionBody(nullable: String?) = // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 $test (11, 4, 11, 4) // test.kt:16 $test (12, 21, 31, 12) // test.kt:8 $box (9, 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) // test.kt:10 $box (23, 4) diff --git a/compiler/testData/debug/stepping/primitiveNullChecks.kt b/compiler/testData/debug/stepping/primitiveNullChecks.kt index aa922c6ba86..746b067a72f 100644 --- a/compiler/testData/debug/stepping/primitiveNullChecks.kt +++ b/compiler/testData/debug/stepping/primitiveNullChecks.kt @@ -22,88 +22,3 @@ fun box(): String { // test.kt:5 $box // test.kt:6 $box // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16) -// Array.kt:76 $kotlin.Array.set -// String.kt:149 $kotlin.stringLiteral (11, 4) -// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/simpleDefaultArg.kt b/compiler/testData/debug/stepping/simpleDefaultArg.kt index faf1e7e5d35..6e8e2d6723f 100644 --- a/compiler/testData/debug/stepping/simpleDefaultArg.kt +++ b/compiler/testData/debug/stepping/simpleDefaultArg.kt @@ -23,89 +23,4 @@ fun box(): String { // EXPECTATIONS WASM // test.kt:9 $box (11, 11, 11, 11, 4) // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:5 $ifoo (11, 4) -// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/simpleDefaultArgWithInline.kt b/compiler/testData/debug/stepping/simpleDefaultArgWithInline.kt index d8a804a9231..79a404b805d 100644 --- a/compiler/testData/debug/stepping/simpleDefaultArgWithInline.kt +++ b/compiler/testData/debug/stepping/simpleDefaultArgWithInline.kt @@ -32,93 +32,7 @@ fun box(): String { // EXPECTATIONS WASM // test.kt:14 $box // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:6 $box (11, 4) // test.kt:15 $box (11, 11, 11, 11, 4) // 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 -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/simpleInlineDefaultArg.kt b/compiler/testData/debug/stepping/simpleInlineDefaultArg.kt index fa4aa883b04..6a0f0707c11 100644 --- a/compiler/testData/debug/stepping/simpleInlineDefaultArg.kt +++ b/compiler/testData/debug/stepping/simpleInlineDefaultArg.kt @@ -26,89 +26,4 @@ fun box(): String { // test.kt:11 $box (11, 4) // test.kt:6 $box // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:7 $box (11, 4) -// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/simpleSmap.kt b/compiler/testData/debug/stepping/simpleSmap.kt index 1a7caf6e978..14f0df22446 100644 --- a/compiler/testData/debug/stepping/simpleSmap.kt +++ b/compiler/testData/debug/stepping/simpleSmap.kt @@ -29,17 +29,4 @@ fun box() { // test.kt:11 $box // test.kt:7 $box // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 $box diff --git a/compiler/testData/debug/stepping/smapInlineAsArgument.kt b/compiler/testData/debug/stepping/smapInlineAsArgument.kt index f1bc66c57a5..7fa4a5f1793 100644 --- a/compiler/testData/debug/stepping/smapInlineAsArgument.kt +++ b/compiler/testData/debug/stepping/smapInlineAsArgument.kt @@ -52,24 +52,10 @@ fun fail() : String { // EXPECTATIONS WASM // test.kt:5 $box (16, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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 $box // 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) // test.kt:9 $box // test.kt:10 $box diff --git a/compiler/testData/debug/stepping/smapInlineAsInfixArgument.kt b/compiler/testData/debug/stepping/smapInlineAsInfixArgument.kt index 8b08d245b24..b57bae58782 100644 --- a/compiler/testData/debug/stepping/smapInlineAsInfixArgument.kt +++ b/compiler/testData/debug/stepping/smapInlineAsInfixArgument.kt @@ -50,29 +50,9 @@ fun fail() : String { // EXPECTATIONS WASM // test.kt:7 $box (4, 4, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:8 $box // 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) -// String.kt:119 $kotlin.String.toString (49, 49) -// String.kt:29 $kotlin.String.plus (15, 15, 15, 15, 22, 28, 33, 42, 48, 28, 62, 56, 15, 8, 15, 15, 15, 15, 22, 28, 33, 42, 48, 28, 62, 56, 15, 8) -// String.kt:63 $kotlin.String.plus (12, 12) -// String.kt:66 $kotlin.String.plus (15, 8, 15, 8) // test.kt:10 $box (4, 4) -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8) // test.kt:11 $box // test.kt:12 $box diff --git a/compiler/testData/debug/stepping/smapInlineAsInlineArgument.kt b/compiler/testData/debug/stepping/smapInlineAsInlineArgument.kt index 19636a8f824..dc648d4b690 100644 --- a/compiler/testData/debug/stepping/smapInlineAsInlineArgument.kt +++ b/compiler/testData/debug/stepping/smapInlineAsInlineArgument.kt @@ -47,23 +47,9 @@ fun fail() : String { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8, 8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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 (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 (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) // test.kt:9 $box (16, 21, 21, 21, 21, 26, 26, 26, 26) // test.kt:10 $box diff --git a/compiler/testData/debug/stepping/smapInlineInIntrinsicArgument.kt b/compiler/testData/debug/stepping/smapInlineInIntrinsicArgument.kt index 83ad206c73d..ba6415eebc1 100644 --- a/compiler/testData/debug/stepping/smapInlineInIntrinsicArgument.kt +++ b/compiler/testData/debug/stepping/smapInlineInIntrinsicArgument.kt @@ -43,28 +43,8 @@ fun fail() : String { // EXPECTATIONS WASM // test.kt:5 $box (4, 4, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8) -// 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:6 $box // 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) -// String.kt:29 $kotlin.String.plus (15, 15, 15, 15, 22, 28, 33, 42, 48, 28, 62, 56, 15, 8, 15, 15, 15, 15, 22, 28, 33, 42, 48, 28, 62, 56, 15, 8) -// String.kt:63 $kotlin.String.plus (12, 12) -// String.kt:66 $kotlin.String.plus (15, 8, 15, 8) // test.kt:8 $box (4, 4) -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8) // test.kt:9 $box // test.kt:10 $box diff --git a/compiler/testData/debug/stepping/stringSwitches.kt b/compiler/testData/debug/stepping/stringSwitches.kt index e4d7fa0d500..6107c7d6a0c 100644 --- a/compiler/testData/debug/stepping/stringSwitches.kt +++ b/compiler/testData/debug/stepping/stringSwitches.kt @@ -121,40 +121,7 @@ fun box() { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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, 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) -// String.kt:126 $kotlin.String.hashCode (24, 8, 24, 8, 24, 8, 24, 8) -// String.kt:63 $kotlin.String.hashCode (12, 12, 12, 12) -// String.kt:66 $kotlin.String.hashCode (15, 8, 15, 8, 15, 8, 15, 8) -// String.kt:127 $kotlin.String.hashCode (19, 8, 19, 8, 19, 8, 19, 8) -// String.kt:128 $kotlin.String.hashCode (8, 8, 8, 8) -// Standard.kt:136 $kotlin.String.hashCode (18, 52, 61, 52, 66, 51, 51, 44, 18, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 18, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 18, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44) -// Standard.kt:152 $kotlin.String.hashCode (4, 4, 4, 4) -// Standard.kt:154 $kotlin.String.hashCode (18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4) -// Standard.kt:155 $kotlin.String.hashCode (8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15) -// Standard.kt:138 $kotlin.String.hashCode (8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0) -// Standard.kt:137 $kotlin.String.hashCode (5, 5, 5, 5, 5, 5, 5, 5, 5, 5) -// Standard.kt:53 $kotlin.String.hashCode (25, 37, 25, 37, 25, 37, 25, 37, 25, 37, 25, 37, 25, 37, 25, 37, 25, 37, 25, 37) -// String.kt:131 $kotlin.String.hashCode (20, 8, 20, 8, 20, 8, 20, 8) -// String.kt:132 $kotlin.String.hashCode (15, 8, 15, 8, 15, 8, 15, 8) -// 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, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28) // 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, 15, 8, 8, 8) diff --git a/compiler/testData/debug/stepping/stringSwitchesSmall.kt b/compiler/testData/debug/stepping/stringSwitchesSmall.kt index 77a1dd39180..7dc4115a8b1 100644 --- a/compiler/testData/debug/stepping/stringSwitchesSmall.kt +++ b/compiler/testData/debug/stepping/stringSwitchesSmall.kt @@ -106,40 +106,7 @@ fun box() { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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, 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) -// String.kt:126 $kotlin.String.hashCode (24, 8, 24, 8, 24, 8) -// String.kt:63 $kotlin.String.hashCode (12, 12, 12) -// String.kt:66 $kotlin.String.hashCode (15, 8, 15, 8, 15, 8) -// String.kt:127 $kotlin.String.hashCode (19, 8, 19, 8, 19, 8) -// String.kt:128 $kotlin.String.hashCode (8, 8, 8) -// Standard.kt:136 $kotlin.String.hashCode (18, 52, 61, 52, 66, 51, 51, 44, 18, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 18, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44, 52, 61, 52, 66, 51, 51, 44) -// Standard.kt:152 $kotlin.String.hashCode (4, 4, 4) -// Standard.kt:154 $kotlin.String.hashCode (18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 4, 26, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4, 18, 9, 18, 4, 26, 4, 4) -// Standard.kt:155 $kotlin.String.hashCode (8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15) -// Standard.kt:138 $kotlin.String.hashCode (8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0, 8, 4, 0) -// Standard.kt:137 $kotlin.String.hashCode (5, 5, 5, 5, 5, 5, 5) -// Standard.kt:53 $kotlin.String.hashCode (25, 37, 25, 37, 25, 37, 25, 37, 25, 37, 25, 37, 25, 37) -// String.kt:131 $kotlin.String.hashCode (20, 8, 20, 8, 20, 8) -// String.kt:132 $kotlin.String.hashCode (15, 8, 15, 8, 15, 8) -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8) -// String.kt:98 $kotlin.String.equals (12, 12, 12, 12, 12, 12) -// String.kt:99 $kotlin.String.equals (12, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28, 12, 35, 28) // test.kt:5 $stringSwitch (4, 4, 4) // test.kt:11 $stringSwitch (19, 4, 19, 4, 19, 4) // test.kt:12 $stringSwitch (8, 15, 8, 8) diff --git a/compiler/testData/debug/stepping/throwException.kt b/compiler/testData/debug/stepping/throwException.kt index edb37b2868e..ce4cce5f712 100644 --- a/compiler/testData/debug/stepping/throwException.kt +++ b/compiler/testData/debug/stepping/throwException.kt @@ -46,115 +46,6 @@ fun throwIfLess(a: Int, b: Int) { // test.kt:7 $box (20, 23, 8) // test.kt:15 $throwIfLess (8, 10, 8, 8, 10, 8) // test.kt:16 $throwIfLess (14, 14, 8, 14, 14, 8) -// Exceptions.kt:37 $kotlin.IllegalStateException. (34, 4, 41, 34, 4, 41) -// Exceptions.kt:23 $kotlin.RuntimeException. (34, 4, 41, 34, 4, 41) -// Exceptions.kt:16 $kotlin.Exception. (34, 4, 41, 34, 4, 41) -// Throwable.kt:23 $kotlin.Throwable. (32, 38, 27, 43, 32, 38, 27, 43) -// Throwable.kt:18 $kotlin.Throwable. (28, 62, 28, 62) -// Throwable.kt:25 $kotlin.Throwable. (50, 50) -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33, 18, 8, 32, 33, 18, 8, 32, 33) -// Throwable.kt:27 $kotlin.Throwable. (34, 34) -// Throwable.kt:39 $kotlin.Throwable. (69, 69) -// Throwable.kt:49 $kotlin.Throwable. (1, 1) -// Exceptions.kt:20 $kotlin.Exception. (1, 1) -// Exceptions.kt:27 $kotlin.RuntimeException. (1, 1) -// Exceptions.kt:41 $kotlin.IllegalStateException. (1, 1) // test.kt:6 $box // test.kt:8 $box (27, 13) // test.kt:9 $box (20, 23, 8) -// ExceptionHelpers.kt:20 $kotlin.wasm.internal.throwAsJsException (17, 19, 19, 19, 42, 44, 28, 55, 57, 4) -// Throwable.kt:18 $kotlin.Throwable. -// TypeInfo.kt:34 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:35 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:36 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:37 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:33 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:48 $kotlin.wasm.internal.getString (31, 45, 31, 17, 4) -// TypeInfo.kt:49 $kotlin.wasm.internal.getString (27, 41, 27, 13, 4) -// TypeInfo.kt:50 $kotlin.wasm.internal.getString (28, 42, 28, 14, 4) -// TypeInfo.kt:51 $kotlin.wasm.internal.getString (25, 29, 34, 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16) -// Array.kt:76 $kotlin.Array.set -// String.kt:149 $kotlin.stringLiteral (11, 4) -// TypeInfo.kt:38 $kotlin.wasm.internal.getSimpleName -// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/tryCatch.kt b/compiler/testData/debug/stepping/tryCatch.kt index 0141c24b050..170b8e083a6 100644 --- a/compiler/testData/debug/stepping/tryCatch.kt +++ b/compiler/testData/debug/stepping/tryCatch.kt @@ -46,32 +46,9 @@ fun box() { // test.kt:14 $box (8, 4) // test.kt:6 $foo (12, 12, 31, 31, 25) // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:11 $foo (1, 1) // test.kt:15 $box (8, 4) -// Exceptions.kt:16 $kotlin.Exception. (34, 4, 41) -// Throwable.kt:23 $kotlin.Throwable. (32, 38, 27, 43) -// Throwable.kt:18 $kotlin.Throwable. (28, 62) -// Throwable.kt:25 $kotlin.Throwable. -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// Throwable.kt:27 $kotlin.Throwable. -// Throwable.kt:39 $kotlin.Throwable. -// Throwable.kt:49 $kotlin.Throwable. -// Exceptions.kt:20 $kotlin.Exception. // test.kt:5 $foo // test.kt:7 $foo (27, 13) // test.kt:8 $foo (8, 8, 8, 8) -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8) // test.kt:16 $box diff --git a/compiler/testData/debug/stepping/tryCatchExpression.kt b/compiler/testData/debug/stepping/tryCatchExpression.kt index c6ad1a2e332..d2a48a132c6 100644 --- a/compiler/testData/debug/stepping/tryCatchExpression.kt +++ b/compiler/testData/debug/stepping/tryCatchExpression.kt @@ -171,15 +171,6 @@ fun box() { // test.kt:22 $foo // test.kt:43 $box (13, 4) // test.kt:44 $box -// Exceptions.kt:16 $kotlin.Exception. (34, 4, 41, 34, 4, 41, 34, 4, 41) -// Throwable.kt:23 $kotlin.Throwable. (32, 38, 27, 43, 32, 38, 27, 43, 32, 38, 27, 43) -// Throwable.kt:18 $kotlin.Throwable. (28, 62, 28, 62, 28, 62) -// Throwable.kt:25 $kotlin.Throwable. (50, 50, 50) -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33, 18, 8, 32, 33, 18, 8, 32, 33) -// Throwable.kt:27 $kotlin.Throwable. (34, 34, 34) -// Throwable.kt:39 $kotlin.Throwable. (69, 69, 69) -// Throwable.kt:49 $kotlin.Throwable. (1, 1, 1) -// Exceptions.kt:20 $kotlin.Exception. (1, 1, 1) // test.kt:19 $foo // test.kt:20 $foo // test.kt:45 $box (13, 4) diff --git a/compiler/testData/debug/stepping/tryCatchFinally.kt b/compiler/testData/debug/stepping/tryCatchFinally.kt index dc673afae9c..816bb5fd373 100644 --- a/compiler/testData/debug/stepping/tryCatchFinally.kt +++ b/compiler/testData/debug/stepping/tryCatchFinally.kt @@ -144,19 +144,6 @@ fun box() { // EXPECTATIONS WASM // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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:14 $foo (8, 8, 8) // test.kt:30 $mightThrow2 (8, 8, 22, 22, 16, 8, 22, 22, 16) // test.kt:31 $mightThrow2 @@ -165,16 +152,6 @@ fun box() { // test.kt:20 $foo (1, 1, 1) // test.kt:35 $box (13, 4) // test.kt:36 $box -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8, 15, 8, 15, 8) -// Exceptions.kt:16 $kotlin.Exception. (34, 4, 41, 34, 4, 41, 34, 4, 41) -// Throwable.kt:23 $kotlin.Throwable. (32, 38, 27, 43, 32, 38, 27, 43, 32, 38, 27, 43) -// Throwable.kt:18 $kotlin.Throwable. (28, 62, 28, 62, 28, 62) -// Throwable.kt:25 $kotlin.Throwable. (50, 50, 50) -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33, 18, 8, 32, 33, 18, 8, 32, 33) -// Throwable.kt:27 $kotlin.Throwable. (34, 34, 34) -// Throwable.kt:39 $kotlin.Throwable. (69, 69, 69) -// Throwable.kt:49 $kotlin.Throwable. (1, 1, 1) -// Exceptions.kt:20 $kotlin.Exception. (1, 1, 1) // test.kt:15 $foo (13, 13) // test.kt:16 $foo (8, 8, 8, 8, 8, 8, 8, 8) // test.kt:37 $box (13, 4) diff --git a/compiler/testData/debug/stepping/tryFinally.kt b/compiler/testData/debug/stepping/tryFinally.kt index d30a3afa725..de9e68ae2fc 100644 --- a/compiler/testData/debug/stepping/tryFinally.kt +++ b/compiler/testData/debug/stepping/tryFinally.kt @@ -90,19 +90,6 @@ fun box() { // test.kt:23 $mightThrow (1, 1) // test.kt:5 $foo (4, 4) // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// 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:12 $foo (8, 8) // test.kt:26 $mightThrow2 (8, 8, 22, 22, 16) // test.kt:27 $mightThrow2 @@ -111,96 +98,3 @@ fun box() { // test.kt:16 $foo // test.kt:31 $box (13, 4) // test.kt:32 $box -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8) -// Exceptions.kt:16 $kotlin.Exception. (34, 4, 41) -// Throwable.kt:23 $kotlin.Throwable. (32, 38, 27, 43) -// Throwable.kt:18 $kotlin.Throwable. (28, 62) -// Throwable.kt:25 $kotlin.Throwable. -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33, 18, 8, 32, 33) -// Throwable.kt:27 $kotlin.Throwable. -// Throwable.kt:39 $kotlin.Throwable. -// Throwable.kt:49 $kotlin.Throwable. -// Exceptions.kt:20 $kotlin.Exception. -// ExceptionHelpers.kt:20 $kotlin.wasm.internal.throwAsJsException (17, 19, 19, 19, 42, 44, 28, 55, 57, 4) -// Throwable.kt:18 $kotlin.Throwable. -// TypeInfo.kt:34 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:35 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:36 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:37 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:33 $kotlin.wasm.internal.getSimpleName -// TypeInfo.kt:48 $kotlin.wasm.internal.getString (31, 45, 31, 17, 4) -// TypeInfo.kt:49 $kotlin.wasm.internal.getString (27, 41, 27, 13, 4) -// TypeInfo.kt:50 $kotlin.wasm.internal.getString (28, 42, 28, 14, 4) -// TypeInfo.kt:51 $kotlin.wasm.internal.getString (25, 29, 34, 11, 4) -// TypeInfo.kt:38 $kotlin.wasm.internal.getSimpleName -// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter -// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20, 20, 20, 20, 20, 20, 20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/variablesWithoutInitializer.kt b/compiler/testData/debug/stepping/variablesWithoutInitializer.kt index 799f5f49519..cc888b4cd22 100644 --- a/compiler/testData/debug/stepping/variablesWithoutInitializer.kt +++ b/compiler/testData/debug/stepping/variablesWithoutInitializer.kt @@ -34,91 +34,4 @@ fun box() { // test.kt:9 $box (8, 4) // test.kt:10 $box (9, 8) // test.kt:11 $box (12, 14, 8) -// Primitives.kt:1359 $kotlin.Int__toString-impl (8, 20) -// Number2String.kt:191 $kotlin.wasm.internal. -// Number2String.kt:192 $kotlin.wasm.internal. -// Number2String.kt:193 $kotlin.wasm.internal. -// Number2String.kt:194 $kotlin.wasm.internal. -// Number2String.kt:195 $kotlin.wasm.internal. -// Number2String.kt:196 $kotlin.wasm.internal. -// Number2String.kt:198 $kotlin.wasm.internal. -// Library.kt:93 $kotlin.wasm.internal. (2619, 2619, 2619, 2619, 3210, 3210, 3210, 3210, 3231, 3210, 11556, 11560, 3262, 3241, 11556, 11560, 3293, 3272, 11556, 11560, 3324, 3303, 11556, 11560, 3359, 3338, 11556, 11560, 3390, 3369, 11556, 11560, 3421, 3400, 11556, 11560, 3452, 3431, 11556, 11560, 3487, 3466, 11556, 11560, 3518, 3497, 11556, 11560, 3549, 3528, 11556, 11560, 3580, 3559, 11556, 11560, 3615, 3594, 11556, 11560, 3646, 3625, 11556, 11560, 3677, 3656, 11556, 11560, 3708, 3687, 11556, 11560, 3743, 3722, 11556, 11560, 3774, 3753, 11556, 11560, 3805, 3784, 11556, 11560, 3836, 3815, 11556, 11560, 3871, 3850, 11556, 11560, 3902, 3881, 11556, 11560, 3933, 3912, 11556, 11560, 3964, 3943, 11556, 11560, 3999, 3978, 11556, 11560, 4030, 4009, 11556, 11560, 4061, 4040, 11556, 11560, 4092, 4071, 11556, 11560, 4127, 4106, 11556, 11560, 4158, 4137, 11556, 11560, 4189, 4168, 11556, 11560, 4220, 4199, 11556, 11560, 4255, 4234, 11556, 11560, 4286, 4265, 11556, 11560, 4317, 4296, 11556, 11560, 4348, 4327, 11556, 11560, 4383, 4362, 11556, 11560, 4414, 4393, 11556, 11560, 4445, 4424, 11556, 11560, 4476, 4455, 11556, 11560, 4511, 4490, 11556, 11560, 4542, 4521, 11556, 11560, 4573, 4552, 11556, 11560, 4604, 4583, 11556, 11560, 4639, 4618, 11556, 11560, 4670, 4649, 11556, 11560, 4701, 4680, 11556, 11560, 4732, 4711, 11556, 11560, 4767, 4746, 11556, 11560, 4798, 4777, 11556, 11560, 4829, 4808, 11556, 11560, 4860, 4839, 11556, 11560, 4895, 4874, 11556, 11560, 4926, 4905, 11556, 11560, 4957, 4936, 11556, 11560, 4988, 4967, 11556, 11560, 5023, 5002, 11556, 11560, 5054, 5033, 11556, 11560, 5085, 5064, 11556, 11560, 5116, 5095, 11556, 11560, 5151, 5130, 11556, 11560, 5182, 5161, 11556, 11560, 5213, 5192, 11556, 11560, 5244, 5223, 11556, 11560, 5279, 5258, 11556, 11560, 5310, 5289, 11556, 11560, 5341, 5320, 11556, 11560, 5372, 5351, 11556, 11560, 5407, 5386, 11556, 11560, 5438, 5417, 11556, 11560, 5469, 5448, 11556, 11560, 5500, 5479, 11556, 11560, 5535, 5514, 11556, 11560, 5566, 5545, 11556, 11560, 5597, 5576, 11556, 11560, 5628, 5607, 11556, 11560, 5663, 5642, 11556, 11560, 5694, 5673, 11556, 11560, 5725, 5704, 11556, 11560, 5756, 5735, 11556, 11560, 5791, 5770, 11556, 11560, 5822, 5801, 11556, 11560, 5853, 5832, 11556, 11560, 5884, 5863, 11556, 11560, 5919, 5898, 11556, 11560, 5950, 5929, 11556, 11560, 5981, 5960, 11556, 11560, 3210, 3210) -// Library.kt:69 $kotlin.wasm.internal. (69, 77) -// Number2String.kt:211 $kotlin.wasm.internal. -// ULong.kt:17 $kotlin.-impl> (125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125) -// Library.kt:54 $kotlin.wasm.internal. (66, 74) -// Number2String.kt:48 $kotlin.wasm.internal.itoa32 (8, 22, 8) -// Number2String.kt:50 $kotlin.wasm.internal.itoa32 (21, 34, 21) -// Number2String.kt:51 $kotlin.wasm.internal.itoa32 (23, 52, 4) -// Number2String.kt:52 $kotlin.wasm.internal.itoa32 (41, 25, 4) -// UInt.kt:36 $kotlin.wasm.internal.itoa32 -// UInt.kt:414 $kotlin.wasm.internal.itoa32 (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// Number2String.kt:58 $kotlin.wasm.internal.utoa32 (8, 22, 8) -// Number2String.kt:60 $kotlin.wasm.internal.utoa32 (34, 19) -// Number2String.kt:105 $kotlin.wasm.internal.decimalCount32 (8, 8, 8) -// UInt.kt:68 $kotlin.wasm.internal.decimalCount32 (4, 12, 35, 43, 75, 84) -// UInt.kt:64 $kotlin.wasm.internal.decimalCount32 (70, 82, 87, 93, 99, 104, 70, 82, 87, 93, 99, 104, 70, 82, 87, 93, 99, 104) -// UInt.kt:17 $kotlin.-impl> (124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124) -// UInt.kt:31 $kotlin.wasm.internal.decimalCount32 (65, 69, 46, 72, 65, 69, 46, 72, 65, 69, 46, 72) -// WasmMath.kt:16 $kotlin.wasm.internal.wasm_u32_compareTo (18, 21, 4, 48, 51, 34, 4, 61, 18, 21, 4, 48, 51, 34, 4, 61, 18, 21, 4, 48, 51, 34, 4, 61, 18, 21, 4, 48, 51, 34, 4, 61, 18, 21, 4, 48, 51, 34, 4, 61) -// Number2String.kt:106 $kotlin.wasm.internal.decimalCount32 (12, 12, 12) -// Number2String.kt:107 $kotlin.wasm.internal.decimalCount32 (19, 24, 24, 24, 19, 12) -// Number2String.kt:61 $kotlin.wasm.internal.utoa32 (28, 14) -// Number2String.kt:63 $kotlin.wasm.internal.utoa32 (18, 23, 35, 4) -// Number2String.kt:69 $kotlin.wasm.internal.utoaDecSimple (11, 23, 11, 11, 4) -// Assertions.kt:14 $kotlin.assert (11, 4, 11, 4, 11, 4, 11, 4, 11, 4) -// Assertions.kt:21 $kotlin.assert (9, 8, 9, 8, 9, 8, 9, 8, 9, 8) -// Assertions.kt:25 $kotlin.assert (1, 1, 1, 1, 1) -// Assertions.kt:15 $kotlin.assert (1, 1, 1, 1, 1) -// Number2String.kt:70 $kotlin.wasm.internal.utoaDecSimple (11, 18, 26, 11, 4) -// Number2String.kt:71 $kotlin.wasm.internal.utoaDecSimple (11, 25, 11, 30, 45, 52, 30, 4) -// Number2String.kt:73 $kotlin.wasm.internal.utoaDecSimple (14, 4) -// Number2String.kt:74 $kotlin.wasm.internal.utoaDecSimple (17, 4) -// Number2String.kt:76 $kotlin.wasm.internal.utoaDecSimple (16, 8, 16, 8) -// UInt.kt:51 $kotlin.wasm.internal.utoaDecSimple (75, 81, 101, 107, 75, 81, 101, 107) -// UInt.kt:121 $kotlin.wasm.internal.utoaDecSimple (67, 73, 56, 79, 67, 73, 56, 79) -// Number2String.kt:77 $kotlin.wasm.internal.utoaDecSimple (16, 8, 16, 8) -// UInt.kt:146 $kotlin.wasm.internal.utoaDecSimple (70, 76, 56, 82, 70, 76, 56, 82) -// Number2String.kt:78 $kotlin.wasm.internal.utoaDecSimple (14, 8, 14, 8) -// Number2String.kt:79 $kotlin.wasm.internal.utoaDecSimple (8, 8) -// Primitives.kt:1159 $kotlin.Int__dec-impl (15, 8, 16, 15, 8, 16) -// Number2String.kt:80 $kotlin.wasm.internal.utoaDecSimple (8, 19, 41, 27, 15, 8, 19, 41, 27, 15) -// UInt.kt:54 $kotlin.wasm.internal.utoaDecSimple (3, 28, 3, 28) -// UInt.kt:313 $kotlin.wasm.internal.utoaDecSimple (37, 41, 37, 41) -// Number2String.kt:43 $kotlin.wasm.internal.digitToChar (20, 11, 23, 11, 4, 20, 11, 23, 11, 4) -// 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, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1, 1, 1, 1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4, 47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4, 20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4, 4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8) -// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 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, 5) -// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4, 11, 4, 11, 4) -// Number2String.kt:11 $kotlin.wasm.internal.CharCodes_initEntries -// Enum.kt:9 $kotlin.Enum. (4, 4, 4, 4, 4) -// Enum.kt:11 $kotlin.Enum. (4, 4, 4, 4, 4) -// Enum.kt:27 $kotlin.Enum. (1, 1, 1, 1, 1) -// Number2String.kt:9 $kotlin.wasm.internal.CharCodes. (29, 29, 29, 29, 29) -// Number2String.kt:40 $kotlin.wasm.internal.CharCodes. (1, 1, 1, 1, 1) -// Number2String.kt:12 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:13 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:14 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:34 $kotlin.wasm.internal.CharCodes_initEntries -// Number2String.kt:44 $kotlin.wasm.internal.digitToChar (25, 32, 12, 39, 4, 25, 32, 12, 39, 4) -// Primitives.kt:1306 $kotlin.Int__toChar-impl (18, 9, 45, 18, 9, 45) -// Number2String.kt:81 $kotlin.wasm.internal.utoaDecSimple (13, 13, 13, 13, 13, 13, 13, 13) -// UInt.kt:55 $kotlin.wasm.internal.utoaDecSimple (2, 2) -// UInt.kt:64 $kotlin.wasm.internal.utoaDecSimple (70, 82, 87, 93, 99, 104, 70, 82, 87, 93, 99, 104) -// UInt.kt:31 $kotlin.wasm.internal.utoaDecSimple (65, 69, 46, 72, 65, 69, 46, 72) -// Number2String.kt:82 $kotlin.wasm.internal.utoaDecSimple -// Number2String.kt:65 $kotlin.wasm.internal.utoa32 (15, 4) -// String.kt:44 $kotlin.wasm.internal.utoa32 -// String.kt:138 $kotlin.wasm.internal.utoa32 (4, 4, 4, 4, 11, 17, 22, 29, 4, 34) -// Number2String.kt:54 $kotlin.wasm.internal.itoa32 (15, 51, 4) // test.kt:13 $box diff --git a/compiler/testData/debug/stepping/voidLambdaStepInline.kt b/compiler/testData/debug/stepping/voidLambdaStepInline.kt index 17fa5727c65..4ee707a5057 100644 --- a/compiler/testData/debug/stepping/voidLambdaStepInline.kt +++ b/compiler/testData/debug/stepping/voidLambdaStepInline.kt @@ -23,94 +23,5 @@ fun box(): String { // EXPECTATIONS WASM // test.kt:5 $box -// Standard.kt:41 $box (4, 4) -// Standard.kt:44 $box (11, 11, 4, 11, 11, 4) -// Standard.kt:2 $box (46, 46, 46, 46, 55, 76, 76, 76, 76, 85) -// 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:6 $box -// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8) // 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:162 $kotlin.wasm.internal.kotlinToJsStringAdapter -// Strings.kt:297 $kotlin.wasm.internal.kotlinToJsStringAdapter (52, 62, 52, 63) -// String.kt:18 $kotlin.String. -// ExternalWrapper.kt:203 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:150 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:63 $kotlin.wasm.internal.kotlinToJsStringAdapter -// String.kt:66 $kotlin.wasm.internal.kotlinToJsStringAdapter (15, 8) -// ExternalWrapper.kt:204 $kotlin.wasm.internal.kotlinToJsStringAdapter (23, 32, 4) -// ExternalWrapper.kt:205 $kotlin.wasm.internal.kotlinToJsStringAdapter (26, 4) -// ExternalWrapper.kt:208 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:55 $kotlin.wasm.internal.kotlinToJsStringAdapter -// MemoryAllocation.kt:56 $kotlin.wasm.internal.kotlinToJsStringAdapter (20, 4) -// MemoryAllocation.kt:69 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (20, 38, 20) -// MemoryAllocation.kt:70 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (8, 30, 68, 8) -// MemoryAllocation.kt:88 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:24 $kotlin.wasm.unsafe.MemoryAllocator. -// MemoryAllocation.kt:86 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:90 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:96 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:142 $kotlin.wasm.unsafe.ScopedMemoryAllocator. -// MemoryAllocation.kt:71 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (23, 4) -// MemoryAllocation.kt:72 $kotlin.wasm.unsafe.createAllocatorInTheNewScope (11, 4) -// MemoryAllocation.kt:58 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 14) -// MemoryAllocation.kt:160 $kotlin.wasm.internal.kotlinToJsStringAdapter (828, 739, 758, 784, 771, 803, 758, 739, 749, 749, 749, 820, 8580, 8584, 723, 882, 845, 915, 895, 932, 948, 963, 948, 932, 932, 932, 1251, 1261, 1276, 1291, 1276, 1306, 1220, 1353, 1364, 1379, 1364, 1394, 1332, 1325, 1325) -// _Ranges.kt:1322 $kotlin.ranges.coerceAtMost (15, 22, 15, 54, 4) -// MemoryAllocation.kt:99 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// PreconditionsWasm.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (2303, 2302, 2388, 2387, 2728, 2737, 2728, 2742, 2751, 2742, 2760, 2742) -// PreconditionsWasm.kt:17 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 4, 4) -// PreconditionsWasm.kt:20 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (9, 8, 9, 8, 9, 8) -// MemoryAllocation.kt:100 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:104 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (20, 8) -// MemoryAllocation.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (22, 41, 22, 49, 22, 68, 21, 8) -// Primitives.kt:93 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (50, 58, 50) -// Primitives.kt:1281 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (8, 17, 13, 20) -// MemoryAllocation.kt:106 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// MemoryAllocation.kt:108 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (16, 28, 12, 47, 12) -// MemoryAllocation.kt:112 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (27, 36, 27, 8) -// MemoryAllocation.kt:114 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (29, 48, 29, 8) -// MemoryAllocation.kt:115 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (12, 32, 12) -// MemoryAllocation.kt:125 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:144 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (456, 475, 494, 475, 456) -// Preconditions.kt:80 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:83 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (4, 10) -// Preconditions.kt:27 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// Preconditions.kt:29 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (3, 2) -// MemoryAllocation.kt:127 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (30, 15, 8) -// UInt.kt:105 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate -// UInt.kt:414 $kotlin.wasm.unsafe.ScopedMemoryAllocator.allocate (44, 39, 49) -// UInt.kt:17 $kotlin.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// MemoryAccess.kt:16 $kotlin.wasm.unsafe.-impl> -// UInt.kt:17 $kotlin.-impl> -// Runtime.kt:32 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (18, 4) -// Runtime.kt:33 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (23, 35, 23, 4) -// Runtime.kt:34 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (19, 4) -// Runtime.kt:35 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (11, 22, 11, 11, 11, 11, 22, 11, 11, 11, 11, 22, 11, 11, 11) -// Runtime.kt:36 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (25, 34, 42, 38, 8, 25, 34, 42, 38, 8) -// Runtime.kt:37 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 19, 8, 8, 8, 19, 8, 8) -// Runtime.kt:38 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 8, 8, 8) -// Primitives.kt:43 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (20, 20) -// Primitives.kt:1150 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory (8, 15, 8, 16, 8, 15, 8, 16) -// Runtime.kt:40 $kotlin.wasm.internal.unsafeWasmCharArrayToRawMemory -// ExternalWrapper.kt:226 $kotlin.wasm.internal.jsCheckIsNullOrUndefinedAdapter (18, 8, 32, 33) -// MemoryAllocation.kt:60 $kotlin.wasm.internal.kotlinToJsStringAdapter (8, 18) -// MemoryAllocation.kt:139 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy (8, 20, 8) -// MemoryAllocation.kt:140 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:141 $kotlin.wasm.unsafe.ScopedMemoryAllocator.destroy -// MemoryAllocation.kt:61 $kotlin.wasm.internal.kotlinToJsStringAdapter (27, 37, 8) -// MemoryAllocation.kt:57 $kotlin.wasm.internal.kotlinToJsStringAdapter diff --git a/compiler/testData/debug/stepping/whenConstant.kt b/compiler/testData/debug/stepping/whenConstant.kt index 29af7376729..c2b1254b636 100644 --- a/compiler/testData/debug/stepping/whenConstant.kt +++ b/compiler/testData/debug/stepping/whenConstant.kt @@ -27,17 +27,4 @@ fun box() { // test.kt:5 $box // test.kt:6 $box // 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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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:13 $box diff --git a/compiler/testData/debug/stepping/whenExpr.kt b/compiler/testData/debug/stepping/whenExpr.kt index fd603ea24af..95aa519af4b 100644 --- a/compiler/testData/debug/stepping/whenExpr.kt +++ b/compiler/testData/debug/stepping/whenExpr.kt @@ -33,9 +33,6 @@ fun box() { // test.kt:5 $box (18, 18, 18, 18) // test.kt:6 $box // test.kt:7 $box -// Runtime.kt:47 $kotlin.wasm.internal.nullableEquals (25, 8, 25, 8) -// Runtime.kt:49 $kotlin.wasm.internal.nullableEquals (25, 30, 37, 30, 4, 25, 30, 37, 30, 4) -// Primitives.kt:1363 $kotlin.Int__equals-impl (42, 42, 24, 48, 42, 42, 24, 48) // test.kt:10 $box // test.kt:14 $box // test.kt:17 $box diff --git a/compiler/testData/debug/stepping/whenInConjunction.kt b/compiler/testData/debug/stepping/whenInConjunction.kt index 3adb4e76424..6f1952e0c74 100644 --- a/compiler/testData/debug/stepping/whenInConjunction.kt +++ b/compiler/testData/debug/stepping/whenInConjunction.kt @@ -45,7 +45,6 @@ fun box() { // EXPECTATIONS WASM // test.kt:18 $box (8, 8, 8, 8, 4) // test.kt:5 $foo (8, 10, 10, 10, 20, 8, 31) -// Primitives.kt:2239 $kotlin.Float__toInt-impl (8, 38, 8, 38) // test.kt:6 $foo (12, 24) // test.kt:10 $foo // test.kt:11 $foo (12, 24) diff --git a/compiler/testData/debug/stepping/whenInDisjunction.kt b/compiler/testData/debug/stepping/whenInDisjunction.kt index 4e4685e9d10..35e5180a345 100644 --- a/compiler/testData/debug/stepping/whenInDisjunction.kt +++ b/compiler/testData/debug/stepping/whenInDisjunction.kt @@ -45,7 +45,6 @@ fun box() { // EXPECTATIONS WASM // test.kt:18 $box (8, 8, 8, 8, 4) // test.kt:5 $foo (8, 10, 10, 10, 20, 8, 31) -// Primitives.kt:2239 $kotlin.Float__toInt-impl (8, 38, 8, 38) // test.kt:6 $foo (12, 24) // test.kt:10 $foo // test.kt:11 $foo (12, 24) diff --git a/compiler/testData/debug/stepping/whenInGeneralObjectComparison.kt b/compiler/testData/debug/stepping/whenInGeneralObjectComparison.kt index dbe1bce377a..a3aac129a15 100644 --- a/compiler/testData/debug/stepping/whenInGeneralObjectComparison.kt +++ b/compiler/testData/debug/stepping/whenInGeneralObjectComparison.kt @@ -68,11 +68,9 @@ fun box() { // test.kt:28 $box (8, 8, 8, 8, 11, 11, 11, 11, 4) // test.kt:5 $foo (8, 23, 8) // test.kt:6 $foo (12, 22, 22, 22, 22) -// Any.kt:34 $kotlin.Any.equals (20, 26, 8, 32, 20, 26, 8, 32) // test.kt:10 $foo (14, 8, 8) // test.kt:11 $foo (12, 22, 22, 22, 22) // test.kt:13 $foo -// Primitives.kt:1363 $kotlin.Int__equals-impl (48, 48) // test.kt:15 $foo (8, 23, 8) // test.kt:16 $foo (12, 22, 22, 22, 22) // test.kt:20 $foo (14, 8, 8) diff --git a/compiler/testData/debug/stepping/whenInPrimitiveToObjectComparison.kt b/compiler/testData/debug/stepping/whenInPrimitiveToObjectComparison.kt index 1a8d0022266..4800bd6c55b 100644 --- a/compiler/testData/debug/stepping/whenInPrimitiveToObjectComparison.kt +++ b/compiler/testData/debug/stepping/whenInPrimitiveToObjectComparison.kt @@ -44,7 +44,6 @@ fun box() { // test.kt:18 $box (8, 8, 8, 8, 4) // test.kt:5 $foo (8, 8, 8, 8, 19, 8) // test.kt:6 $foo (12, 22, 22, 22, 22) -// Primitives.kt:1363 $kotlin.Int__equals-impl (42, 42, 24, 48, 42, 42, 24, 48) // test.kt:10 $foo (8, 8, 8, 8, 19, 8, 8) // test.kt:11 $foo (12, 22, 22, 22, 22) // test.kt:15 $foo diff --git a/compiler/testData/debug/stepping/whenNullalbeSubject.kt b/compiler/testData/debug/stepping/whenNullalbeSubject.kt index 301381e3bf5..495cc62a246 100644 --- a/compiler/testData/debug/stepping/whenNullalbeSubject.kt +++ b/compiler/testData/debug/stepping/whenNullalbeSubject.kt @@ -33,9 +33,6 @@ fun box() { // test.kt:5 $box (18, 18, 18, 18) // test.kt:6 $box // test.kt:7 $box -// Runtime.kt:47 $kotlin.wasm.internal.nullableEquals (25, 8, 25, 8) -// Runtime.kt:49 $kotlin.wasm.internal.nullableEquals (25, 30, 37, 30, 4, 25, 30, 37, 30, 4) -// Primitives.kt:1363 $kotlin.Int__equals-impl (42, 42, 24, 48, 42, 42, 24, 48) // test.kt:10 $box // test.kt:14 $box // test.kt:17 $box diff --git a/compiler/testData/debug/stepping/while.kt b/compiler/testData/debug/stepping/while.kt index 1c3ae01aa05..e15ec28ca95 100644 --- a/compiler/testData/debug/stepping/while.kt +++ b/compiler/testData/debug/stepping/while.kt @@ -41,23 +41,8 @@ fun box() { // EXPECTATIONS WASM // 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 (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) -// ThrowHelpers.kt:30 $kotlin.wasm.internal.rangeCheck (1, 1, 1, 1) -// Array.kt:60 $kotlin.Array.get (15, 27, 23, 8, 15, 27, 23, 8, 15, 27, 23, 8) -// String.kt:142 $kotlin.stringLiteral (8, 8, 8) -// String.kt:146 $kotlin.stringLiteral (47, 61, 16, 4) -// String.kt:147 $kotlin.stringLiteral (20, 20, 20, 20, 27, 33, 41, 20, 4) -// String.kt:148 $kotlin.stringLiteral (4, 15, 25, 4) -// Array.kt:74 $kotlin.Array.set (19, 26, 34, 8) -// 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 (8, 4) // 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 diff --git a/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/source/location/SourceLocation.kt b/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/source/location/SourceLocation.kt index a3070190cf5..6024d37894d 100644 --- a/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/source/location/SourceLocation.kt +++ b/wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/source/location/SourceLocation.kt @@ -11,6 +11,8 @@ sealed class SourceLocation { // Both line and column are zero-based data class Location(val file: String, val line: Int, val column: Int) : SourceLocation() + data class IgnoredLocation(val file: String, val line: Int, val column: Int) : SourceLocation() + companion object { @Suppress("FunctionName", "UNUSED_PARAMETER") fun NoLocation(description: String): SourceLocation = NoLocation diff --git a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDebugRunner.kt b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDebugRunner.kt index cd3eb6b2885..8a17e71ab5a 100644 --- a/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDebugRunner.kt +++ b/wasm/wasm.tests/test/org/jetbrains/kotlin/wasm/test/handlers/WasmDebugRunner.kt @@ -131,7 +131,8 @@ class WasmDebugRunner(testServices: TestServices) : AbstractWasmArtifactsCollect toolArgs = listOf("--enable-inspector", "--allow-natives-syntax") ) val debuggerSteps = FrameParser(result).parse().mapNotNull { frame -> - val pausedLocation = sourceMap.segmentForGeneratedLocation(frame.pausedLocation.line, frame.pausedLocation.column) + val pausedLocation = sourceMap + .findSegmentForTheGeneratedLocation(frame.pausedLocation.line, frame.pausedLocation.column) ?.takeIf { it.sourceLineNumber >= 0 } pausedLocation?.sourceFileName?.let { sourceFileName -> @@ -179,6 +180,14 @@ class WasmDebugRunner(testServices: TestServices) : AbstractWasmArtifactsCollect writeToFilesAndRunTest("dce", artifacts.compilerResultWithDCE) } + private fun SourceMap.findSegmentForTheGeneratedLocation(lineNumber: Int, columnNumber: Int): SourceMapSegment? { + val group = groups.getOrNull(lineNumber)?.takeIf { it.segments.isNotEmpty() } ?: return null + return group.segments + .indexOfLast { columnNumber >= it.generatedColumnNumber } + .takeIf { it >= 0 } + ?.let(group.segments::get) + } + private val WasmCompilerResult.parsedSourceMaps: SourceMap get() = when (val parseResult = SourceMapParser.parse(debugInformation?.sourceMapForBinary ?: error("Expect to have source maps for stepping test"))) { is SourceMapSuccess -> parseResult.value