Commit Graph

100669 Commits

Author SHA1 Message Date
Zalim Bashorov 4e36f5b391 [Wasm, JS] Add a warning that dumping reachability and size infos to file is supported only for Kotlin/Wasm 2023-04-25 19:44:03 +02:00
Zalim Bashorov 0a1116376c [CLI, JS, Wasm] Regenerate K2JSCompilerArgumentsCopyGenerated.kt 2023-04-25 19:44:03 +02:00
Zalim Bashorov ef28bf27ae [CLI tests] Update testdata 2023-04-25 19:44:03 +02:00
Zalim Bashorov bd852e87ab [Wasm] Add an option to dump declaration IR sizes to file 2023-04-25 19:44:03 +02:00
Zalim Bashorov 3c343e3074 [Wasm, JS] Minor: make description non-nullable 2023-04-25 19:44:02 +02:00
Zalim Bashorov 62b21ac078 [Wasm] Add an option to dump reachability info to file 2023-04-25 19:44:02 +02:00
Sebastian Sellmair 7486a11bd1 [Gradle] Remove deprecated dependsOnClosure and withDependsOnClosure extensions
^KT-58220 Verification Pending
2023-04-25 17:09:00 +00:00
Sebastian Sellmair 00138f8ea4 [Gradle] Update deprecation message for non-hmpp mode
^KT-58220 Verification Pending
See: KT-58243
2023-04-25 17:09:00 +00:00
Sebastian Sellmair 0889b3eb2e [Gradle] Schedule KotlinCompilation.source for removal in 2.0
Having only one SourceSet being associated with a KotlinCompilation
will simplify multiple code paths and prevents misconfiguration
from users.

^KT-58220 Verification Pending
See: KT-58234
See: KT-58235
2023-04-25 17:09:00 +00:00
Sebastian Sellmair 1313cffe01 [Gradle] Schedule 'overrideDisambiguationClassifierOnIdeImport' and 'useDisambiguationClassifierAsSourceSetNamePrefix' for removal in 2.0
^KT-58220 Verification Pending
See: KT-58231
2023-04-25 17:08:59 +00:00
Sebastian Sellmair e72f236bd4 [Gradle] Schedule 'KotlinSourceSet.requiresVisibilityOf' for removal in 2.0
^KT-58220 Verification Pending
See: KT-58228
2023-04-25 17:08:59 +00:00
Sebastian Sellmair fa40c1115a [Gradle] Schedule 'relatedConfigurationNames' for removal in 2.0
^KT-58220 Verification Pending
See: KT-58225
2023-04-25 17:08:59 +00:00
Sebastian Sellmair 25c2fe03a9 [Gradle] Update 'Scheduled for removal' deprecations
^KT-58220 Verification Pending
2023-04-25 17:08:59 +00:00
Sebastian Sellmair f98765f254 [Gradle] Remove KotlinCompilation.moduleName
^KT-58220 Verification Pending
2023-04-25 17:08:59 +00:00
mvicsokolova 75b4469757 [K/N] Stabilization of Atomics API
`AtomicInt`, `AtomicLong`, `AtomicReference` and `AtomicNativePtr` classes were moved to `kotlin.concurrent` package. The corresponding classes from `kotlin.native.concurrent` were deprecated with warning since Kotlin 1.9.

In order to prepare for further commonization of Atomics API the following changes were made:
* `kotlin.concurrent.AtomicInt`: 
    * `increment(): Unit` and `decrement(): Unit` methods were deprecated with error
    * New methods were added: `incrementAndGet(): Int` , `decrementAndGet(): Int`, `getAndIncrement(): Int`, `getAndDecrement(): Int`, `getAndSet(newValue: Int): Int` 
* `kotlin.concurrent.AtomicLong`:
    * `increment(): Unit` and `decrement(): Unit` methods were deprecated with error
    * New methods were added: `incrementAndGet(): Long`, `decrementAndGet(): Long`, `getAndIncrement(): Long`, `getAndDecrement(): Long`, `getAndSet(newValue: Long): Long`
    * Deprecated `AtomicLong()` constructor with default parameter value
* For all atomic classes `compareAndSwap` method was renamed to `compareAndExchange`

See KT-58074 for more details.

Merge-request: KT-MR-9272
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>
2023-04-25 16:55:42 +00:00
Mikhail Glukhikh 1c56a71b14 FirClassSubstitutionScope: don't recreate constructor type parameters w/out need
#KT-58008 Fixed
2023-04-25 16:42:59 +00:00
Mikhail Glukhikh 5daafd5ed5 FirNestedClassifierScope: don't give empty map substitutor to a processor
Optimization related to KT-58008 (hides the issue in some cases)
2023-04-25 16:42:59 +00:00
Mikhail Glukhikh 4172ce1018 K2: reproduce KT-58008 2023-04-25 16:42:59 +00:00
Artem Kobzar 27b103e2ca [K/JS] Eliminate duplication of init block inside exported ES-classes ^KT-58246 Fixed 2023-04-25 16:21:08 +00:00
Anton Lakotka 9afddb1a7a [Gradle] Fix configuration cache for cleanNativeDistributionCommonization
^KT-57482 Verification Pending
2023-04-25 16:16:52 +00:00
Yahor Berdnikau c64a7068d9 Generate Kapt task name for random KotlinCompile task name
We had false assumption that KotlinCompile tasks name will always start
with "compile" prefix, but our exposed api allows to create tasks with
random names. I've adjusted method to calculate kapt task names for any
KotlinCompile task name.

^KT-54468
2023-04-25 16:03:38 +00:00
Roman Golyshev 552e640517 [Analysis API] KT-58249 Avoid calling LOG.error in KtFe10CallResolver
Some `KtCallElement`s might never be resolved, and they won't even have
any kind of diagnostic from FE10 compiler. We don't want to log such
cases because it's not clear whether we can or should fix them in K1
plugin

LOG.error is still enabled for K2 plugin, since for it we want to catch
and fix all such problems

^KT-58249 Fixed
2023-04-25 15:35:06 +00:00
Alexander Korepanov 81b591ed21 [JS IR IC] Interface default implementations affect IC hash
Adding or removing a method or property with
a default implementation to an interface should
invalidate all children: we must regenerate JS code for them

^KT-56237 Fixed
2023-04-25 15:34:22 +00:00
Sebastian Sellmair bad5c58952 [Gradle] Add documentation to KotlinTargetHierarchyBuilder.Root functions
^KT-58209 Verification Pending
2023-04-25 15:08:30 +00:00
Sebastian Sellmair 6029cb46ce [Gradle] Add documentation to KotlinTargetHierarchyDsl.android
^KT-58209 Verification Pending
2023-04-25 15:08:30 +00:00
Sebastian Sellmair 71189e2049 [Gradle] Add documentation to KotlinTargetHierarchyDsl.custom
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair bd0f54564d [Gradle] Move KotlinTargetHierarchy/Android configuration from KotlinAndroidTarget to KotlniTargetHierarchyDsl
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair bc1abb2e6a [Gradle] LifecycleAwareProperty: Allow lazy creation even in 'finaliseIn' or later
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair 16369bc008 [Gradle] Rename KotlinTargetHierarchy.ModuleName to .SourceSetTree
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Sebastian Sellmair 1d23d7de17 [Gradle] KotlinTargetHierarchyBuilder: Add documentation to 'common' function
^KT-58209 Verification Pending
2023-04-25 15:08:29 +00:00
Abduqodiri Qurbonzoda 52cbad2da2 [K/N] Hide Primitive.equals(Primitive) functions #KT-57344
As a part of efforts to stabilize Native stdlib.

Merge-request: KT-MR-9692
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2023-04-25 14:56:29 +00:00
Anton Lakotka 545a7724c1 [Gradle] Fix apple gradle plugin smoke test 2023-04-25 14:38:22 +00:00
Anton Lakotka ff0a57bafd [Gradle] Propagate user attributes to binary framework configurations
^KT-57668
2023-04-25 14:38:22 +00:00
Anton Lakotka 8d5f2b37a3 [Gradle] Test that user attributes is propagated to binary frameworks
^KT-57668
2023-04-25 14:38:22 +00:00
Alexander Udalov bab88c05c3 JvmDefault: deprecate JvmDefault annotation class with ERROR
#KT-54746 Fixed
2023-04-25 14:33:00 +00:00
Alexander Udalov a0790047f7 JvmDefault: remove -Xjvm-default modes "enable" and "compatibility"
#KT-54746
2023-04-25 14:33:00 +00:00
Alexander Udalov e0b5ae7781 JvmDefault: remove diagnostics related to @JvmDefault
#KT-54746
2023-04-25 14:33:00 +00:00
Alexander Udalov 3120a35a88 JvmDefault: remove most tests on @JvmDefault
The tests are removed because JvmDefault is going to be deprecated with
error in KT-54746 and removed later in KT-57696.

Many of the removed tests already had existing counterparts with the new
modes `all` and `all-compatibility`. In this change, I've added such
tests where they were missing, and removed tests which were testing
behavior specific to the JvmDefault annotation, such as some
diagnostics.

 #KT-54746
2023-04-25 14:33:00 +00:00
Ilya Gorbunov ace2279631 Refactor helper function to run/not run block of common code on specific platform
Use it in StringBuilder tests
2023-04-25 13:55:04 +00:00
Ilya Gorbunov 454e963aa7 StringBuilder capacity test: fixup deprecation suppression 2023-04-25 13:55:04 +00:00
Ilya Gorbunov 6dc2960b77 Relax back an assertion in testLongAdjustmentElapsedPrecision
Reverts the assertion strictening happened in commit 1014434475
2023-04-25 13:54:39 +00:00
Sebastian Sellmair 379c1b72a6 [Gradle] ExternalTargetApi: mark .extras extensions as 'scheduled for removal'
... as those extensions are now shadowed by members

KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair caa6b6f9f3 [Gradle] ExternalTargetApi: Check-in/Document ExternalKotlinCompilationDescriptor
KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair 5e13e118fa [Gradle] ExternalTargetApi: Rename 'DecoratedKotlinCompilationFactory' to 'CompilationFactory'
To be consistent with 'TargetFactory' in ExternalKotlinTargetDescriptor

KT-55524
2023-04-25 12:49:52 +00:00
Sebastian Sellmair 898e2beecb [Gradle] ExternalTargetApi: Rename 'ExternalDecoratedKotlinCompilation' to 'DecoratedExternalKotlinCompilation'
To be consistent with 'DecoratedExternalKotlinTarget'

KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair bc85fe323b [Gradle] ExternalTargetApi: Check-in/Document createExternalKotlinTarget
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 2ec76110b0 [Gradle] ExternalTargetApi: Check-in/Document createCompilation
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 6e6e2977f9 [Gradle] ExternalTargetApi: Check-in/Document IdeDependencyTransformer
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 6a38162b45 [Gradle] ExternalTargetApi: Check-in/Document IdeAdditionalArtifactResolver
KT-55524
2023-04-25 12:49:51 +00:00
Sebastian Sellmair 6cfcea0401 [Gradle] Demote IdeaKotlinBinaryCoordinates to 'internal'
KT-55524
2023-04-25 12:49:51 +00:00