Yahor Berdnikau
78dc59f759
Update test-retry-gradle-plugin to 1.5.1 version
2023-02-08 16:27:29 +00:00
Yahor Berdnikau
b3e6a3c274
Update test-data for Gradle 7.6 version.
2023-02-08 16:27:28 +00:00
Yahor Berdnikau
3c863b5bbf
Add foojay plugin to download JVM toolchains via DiscoAPI
2023-02-08 16:27:28 +00:00
Yahor Berdnikau
4de3a62680
Update KGP test-suite plugin setup
...
This ensures compatibility with changes in test-suite plugin new
versions.
2023-02-08 16:27:28 +00:00
Yahor Berdnikau
6f8422eab3
Revert "[Build] Temporary disable hmpp metadata tasks with CoCa"
...
This reverts commit e42bed07fa .
2023-02-08 16:27:27 +00:00
Yahor Berdnikau
8d41c87b6b
Revert "[Build] Add configuration cache compatibility workaround for MetadataDependencyTransformationTask"
...
This reverts commit a5f48e295e .
2023-02-08 16:27:27 +00:00
Yahor Berdnikau
adf79b6f00
Allow warnings in :kotlin-native:build-tools compilation
...
Fixing native benchmark setup is out of scope of these changes.
2023-02-08 16:27:27 +00:00
Yahor Berdnikau
5ae1372c3a
Set gradlew.bat eol in .gitattributes
...
This fixes common error on updating Gradle wrapper and then trying to
add 'gradlew.bat' to changes.
2023-02-08 16:27:26 +00:00
Martin Bonnin
a199fa7624
Bump Gradle version to 7.6
...
As well remove usages of forUseAtConfigurationTime - see also
https://github.com/JetBrains/kotlin/pull/5003
2023-02-08 16:27:26 +00:00
Martin Bonnin
2f1147f224
DurationUnit is not a typealias of TimeUnit anymore, use inWholeMilliseconds instead
...
See https://kotlinlang.org/docs/whatsnew16.html#stable-duration-api
2023-02-08 16:27:26 +00:00
Vladimir Sukharev
ab32f90117
Put tags to klib contents tests
...
Merge-request: KT-MR-8641
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-02-08 15:42:00 +00:00
Stanislav Erokhin
da98a47c4c
Minor: tweak wording in the deprecated message
2023-02-08 15:41:21 +00:00
Vladimir Sukharev
c86f3d1103
Transform native compiler source code to be compiled by K2 bootstrap.
...
Merge-request: KT-MR-8720
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-02-08 15:37:34 +00:00
Kirill Rakhman
22fd7921fe
[FIR] Introduce MetadataBasedAnnotationDeserializer for compiling common
...
^KT-56361 Fixed
2023-02-08 13:32:33 +00:00
Mikhail Glukhikh
81ac94b2d7
FE: convert LanguageVersion.versionString to a stored property
...
Suggested by Yuriy Artamonov
#KT-56276 Fixed
2023-02-08 12:51:21 +00:00
Yahor Berdnikau
fe03613008
Remove custom timeout for Kotlin daemon in buildSrc
...
Now daemon spawned on buildSrc compilation is compatible with other
build and having this small timeout doesn't make sense.
2023-02-08 12:50:49 +00:00
Ilya Goncharov
bea80f8b54
[Gradle, JS] Add debugger.js with debugger statement to stop on the first line in a browser
...
^KT-56488 fixed
2023-02-08 12:50:29 +00:00
Alexander Korepanov
c82b4f6fe5
[JS IR] Append source mapping URL every time on writing JS code
...
Source mapping URL is not saved in JS module cache anymore,
because it was a wrong url pointed to the source map from the cache.
Instead, the URL is appended every time on writing the output JS code.
^KT-56469 Fixed
2023-02-08 11:04:43 +00:00
Egor Kulikov
e810142d74
[FIR] Use AST nodes only for lambda parameter names
...
Eighth step for ^KT-52615
Merge-request: KT-MR-8700
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com >
2023-02-08 10:47:15 +00:00
Denis.Zharkov
1898dfd40d
K2: Rework RedundantVisibilityModifierSyntaxChecker::implicitVisibility
...
Avoid assumption there, that for accessors we have a containing property
in the context
This necessary as a part of getting rid context modifications in checkers
2023-02-08 10:22:42 +00:00
Denis.Zharkov
2cd6b8253f
K2: Simplify condition in RedundantVisibilityModifierSyntaxChecker
...
element !is FirMemberDeclaration means that
`isAccessorWithSameVisibility == false` because
`FirPropertyAccessor <: FirMemberDeclaration`
Also, remove a function became unused
2023-02-08 10:22:42 +00:00
Sergey Bogolepov
de444542d0
[K/N] Make target deprecation warning more visible
...
Two columns in Gradle output makes IDE display such
message in a separate view which makes it more discoverable.
2023-02-08 09:31:30 +00:00
Dmitriy Novozhilov
a197d1aadc
[FIR Plugin prototype] Add simple implementation of FirDeclarationsForMetadataProviderExtension
...
^KT-55885
2023-02-08 08:44:51 +00:00
Dmitriy Novozhilov
a967a242c7
[FIR] Allows use DSL for building FIR declarations from any FirExtension
2023-02-08 08:44:50 +00:00
Dmitriy Novozhilov
1248ee12d6
[FIR] Add ability to provide additional synthetic declarations to metadata from plugins
...
^KT-55885 Fixed
2023-02-08 08:44:49 +00:00
Dmitriy Novozhilov
8350226bad
[FIR] Collect constructors from scope instead of .declarations in metadata serialization
...
This is needed to save in metadata constructors, generated by plugins
with FirDeclarationGenerationExtension
2023-02-08 08:44:49 +00:00
Igor Chevdar
12d0b1e846
[K/N][codegen] Fixed wrong arguments evaluation order for IrSetField
...
#KT-56326 Fixed
2023-02-08 06:56:09 +00:00
Svyatoslav Scherbina
2bafa0eb77
Bump Kotlin/Native version to 1.9.0-dev-1261
2023-02-07 21:05:12 +00:00
Ilya Kirillov
69e41e19e7
[Analysis API] fix possible leaks of FirDeclarations from cache keys in KtSymbolByFirBuilder
...
If some FirDeclarations is inaccessible then there is no reason to store KtSymbol for it
^KTIJ-22749
2023-02-07 17:57:38 +00:00
Ilya Kirillov
f5e5a134e7
[Analysis API] remove caches from KtSymbolByFirBuilder with very low hit rates
...
^KTIJ-22749
2023-02-07 17:57:38 +00:00
Ilya Kirillov
a587913225
[Analysis API] avoid having separate versions of KtFirScopeProvider for each thread
...
Now KtFirScopeProvider do not contain caches, so it can be reused between the threads. The only thread-local thing it had, was a ScopeSession. Now it's not stored in the KtFirScopeProvider
2023-02-07 17:57:37 +00:00
Ilya Kirillov
489ffc5acb
[Analysis API] remove caches from KtFirScopeProvider
...
The hit-rate for this cache seems to be very law and it causes additional memory consumption
^KTIJ-22749
2023-02-07 17:57:37 +00:00
Vladimir Dolzhenko
b04b3d389f
Add ability for DeclarationDescriptor validation
...
Not fully initialized DeclarationDescriptor could leak to bindingTrace.
It is hard to detect the outcome of that kind of leakage due to
possibility to have not fully initialized instances if PCE happens in
the middle of publication and instance full initialization.
#KT-56364
#KT-56388
#KT-54085
#KT-55150
2023-02-07 17:40:42 +00:00
Vladimir Dolzhenko
a049fda75b
Create SimpleFunctionDescriptorImpl under nonCancelableSection
...
SimpleFunctionDescriptorImpl initialization consists of two phases:
ctor + initialize.
When SimpleFunctionDescriptorImpl is created wrapped descriptor
(e.g. ValueParameterDescriptorImpl) is leaked through bindingTrace
with not fully initialized `containingDeclaration` (that is
SimpleFunctionDescriptorImpl).
If PCE happens after this unsafe publication prior to `initialize` then
it will be case with NPE on fully initialized instance reading.
#KT-56364 Fixed
2023-02-07 17:40:41 +00:00
Vladimir Dolzhenko
9be4aa2e02
Create PropertyDescriptorImpl under nonCancelableSection
...
PropertyDescriptorImpl initialization consists of two phases:
ctor + setType.
When PropertyDescriptorImpl is created wrapped descriptor
(e.g. WithDestructuringDeclaration) is leaked through bindingTrace
with not fully initialized `containingDeclaration` (that is
PropertyDescriptorImpl).
If PCE happens after this unsafe publication prior to `setType` then it
will be case with NPE on fully initialized instance reading.
#KT-56388 Fixed
2023-02-07 17:40:41 +00:00
Leonid Startsev
e0dce31cde
Support situation when argument for serializer<T>() function has SerialInfo annotations.
...
Because SerializationJvmIrIntrinsicSupport does not instantiate annotations yet,
this info could be lost. As a workaround, it is possible to call Companion.serializer()
functions instead of direct serializer instantiation, as they are plugin-generated
and correctly handle annotations.
Note that for some cases (enums & interfaces) this WA is not enough, so additional work
is needed later.
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/2179
2023-02-07 16:41:01 +00:00
Alexander.Likhachev
363330f904
[Build] Remove obsolete Gradlew wrapper files
2023-02-07 14:45:35 +00:00
Alexander.Likhachev
06fb658887
[Build] Remove remaining obsolete files of the new daemon
...
KT-50846 Related
2023-02-07 14:45:35 +00:00
Ivan Kochurkin
8cbb6ff47a
[FIR2IR] Use convertToIrAndActualize() for JS CLI
2023-02-07 14:16:31 +00:00
Svyatoslav Scherbina
d8bae5a6f8
[FIR] Implement support for MPP in Native
...
^KT-56071
2023-02-07 14:16:30 +00:00
Svyatoslav Scherbina
cf4934f539
[FIR2IR] Make convertToIrAndActualize() more reusable across backends
2023-02-07 14:16:30 +00:00
Ivan Kochurkin
199b0e8cbe
[FIR] Minor: Unify all create*Session functions across all factories
...
Rename: createJsLibrarySession -> createLibrarySession
Rename: createJsModuleBasedSession -> createModuleBasedSession
2023-02-07 14:16:30 +00:00
Ivan Kochurkin
a9bac2f18b
Add PackageAndMetadataPartProvider interface
...
Use it for parameter in MetadataSymbolProvider
2023-02-07 14:16:29 +00:00
Ivan Kochurkin
f3e3cc0037
[FIR] Implement support of MPP in JS CLI
2023-02-07 14:16:29 +00:00
Ivan Kochurkin
d401ff7b09
[FIR & IR] Implement JS MPP test infrastructure
...
^KT-55295 Fixed
2023-02-07 14:16:29 +00:00
Ilmir Usmanov
e42efe1ee6
JVM IR: Ignore class type parameters if function is static
...
Otherwise, it leads to type parameters duplication in case of
suspendImpls, since they inherit type parameters from containing class.
#KT-56407: Fixed
2023-02-07 13:39:25 +00:00
Ilmir Usmanov
c7bc439661
JVM IR: Remove usages of PSI in coroutines codegen
...
Instead, use IR based reporter.
2023-02-07 13:12:19 +00:00
Dmitriy Novozhilov
dfeabea0ab
[Test] Skip tests with IGNORE_BACKEND_K1 directive in android runner
2023-02-07 09:49:21 +00:00
Dmitriy Novozhilov
a0bdecd22b
[Test] Ignore Native codegen test with IGNORE_BACKEND_...: ANY directive
2023-02-07 09:49:20 +00:00
Dmitriy Novozhilov
ae7718514b
[Test] Don't run LightAnalysisModeTest in presence IGNORE_BACKEND_K1 directive
2023-02-07 09:49:20 +00:00