Commit Graph

97187 Commits

Author SHA1 Message Date
Svyatoslav Kuzmich 3bbd8c291a [Wasm] Add @WasmImport annotation
Imports top-level function from given module
2022-12-28 12:13:18 +01:00
Svyatoslav Scherbina 1c5eed1687 Bump Kotlin/Native version to 1.8.20-dev-4812 2022-12-27 17:40:01 +00:00
Nikolay Krasko 17742b4c02 Stabilize order of entries in maven.zip
KTI-1077
2022-12-27 17:31:09 +00:00
aleksandrina-streltsova fb9dead107 [Analysis API] consider applicable extensions that require receiver cast
^KTIJ-23715
2022-12-27 17:22:30 +00:00
Andrey Uskov e5ad45d46b Report Kover usage in FUS
#KT-54247 Fixed
2022-12-27 16:28:22 +00:00
Pavel Mikhailovskii 3704d54101 KT-52459 Handle context receivers when generating a bridge 2022-12-27 16:19:59 +00:00
Pavel Punegov d735fa6567 [K/N][gradle] Remove download url property. 2022-12-27 16:10:36 +00:00
Pavel Punegov 41332f7fc7 [K/N][gradle][test] Add test to allow list
Test requires Kotlin Space Dev repo to be set in the test project
to check that KGP is able to download K/N bundles from the specified
repository defined either as a property or maven url
2022-12-27 16:10:36 +00:00
Pavel Punegov 3b6de8b899 [K/N][gradle][test] Fix repositories in the test and add another one 2022-12-27 16:10:35 +00:00
Pavel Punegov 6744702eff [K/N][gradle][test] Merge tests for downloading and platform libs 2022-12-27 16:10:35 +00:00
Pavel Punegov afeeba51ec [K/N][gradle] Add kotlin.native.distribution.mavenDownloadUrl property
Add a separate property to specify maven repository to download K/N
2022-12-27 16:10:35 +00:00
Pavel Punegov 82d28b6dbf [K/N][gradle][test] Tests KGP ability to download artifacts from maven 2022-12-27 16:10:34 +00:00
Pavel Punegov 5c6af6559a [K/N][gradle] Download bundles from Maven repository
Adds property to make Gradle download Native builds from maven.
The URL can be specified with another property or with standard Gradle
`repository { maven(...) } ` repository management blocks.
2022-12-27 16:10:34 +00:00
Roman Efremov 25f65aff3a Replace getEntries with hardcoded PsiMethod in LC decompiled declaration
This adds NotNull annotation.

^KTIJ-23530 Fixed
2022-12-27 14:41:53 +00:00
Roman Efremov cbb20ce2b8 Don't generate getEntries method in light classes when feature disabled
^KTIJ-23530 Fixed
2022-12-27 14:41:53 +00:00
Roman Efremov e5d5cbc7a3 Generate Enum.getEntries method in ultra light classes
^KTIJ-23530 Fixed
2022-12-27 14:41:52 +00:00
Svyatoslav Scherbina 59663f4752 Native: add MinGW-w64 headers license
It covers mingw_* platform libraries that are generated from these
headers.
2022-12-27 13:39:27 +00:00
Svyatoslav Scherbina 075cca7135 Native: remove irrelevant parts of harmony_NOTICE.txt
Kotlin/Native doesn't include anything covered by these parts.
2022-12-27 13:39:26 +00:00
Svyatoslav Scherbina 8a9a09d757 Native: add harmony_NOTICE.txt
It is needed because Apache 2.0 license requires one to put
the NOTICE file into the distributions, including the binary ones.

See for more details:
- https://github.com/apache/harmony/blob/trunk/LICENSE
- https://github.com/apache/harmony/blob/trunk/NOTICE
2022-12-27 13:39:26 +00:00
Svyatoslav Scherbina a3f06fd9ac Native: remove all subcomponents from harmony_LICENSE.txt
Kotlin/Native doesn't include anything from these subcomponents.
2022-12-27 13:39:26 +00:00
Ilya Kirillov 396ac6f5e3 [FIR] make FirCorrespondingSupertypesCache to be thread safe
^KT-50244
2022-12-27 13:27:24 +00:00
Ilya Kirillov 4d7e9b2d5a [FIR] add possibility to specify initialCapacity and loadFactor in FirCachesFactory.createCache 2022-12-27 13:27:23 +00:00
Pavel Mikhailovskii 076bedd065 KT-51397 Add a test (has been fixed elsewhere) 2022-12-27 12:50:43 +00:00
Pavel Mikhailovskii 9ca5e1b421 KT-54357 Fix passing of context receivers to object literal constructors 2022-12-27 11:52:36 +00:00
Abduqodiri Qurbonzoda fff593492d Introduce Common AutoCloseable & use #KT-31066
Co-authored-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com>

Merge-request: KT-MR-8113
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2022-12-27 11:50:22 +00:00
Kevin Bourrillion 70cd547c26 Fix two other tests to treat both old and new JSpecify packages the same 2022-12-27 11:11:00 +00:00
Kevin Bourrillion 503e093af3 Change the compiler to view both old and new JSpecify packages equal
Compiler uses the single reporting level for both old/new JSpecify packages
2022-12-27 11:11:00 +00:00
Kevin Bourrillion 2694bdeb92 Change to use new JSpecify package location. 2022-12-27 11:10:59 +00:00
Kevin Bourrillion 671480ce1a Duplicate this entire test suite to jspecifyOld before changing the package locations in jspecify. 2022-12-27 11:10:59 +00:00
Kevin Bourrillion b69b7ab22d Make the jspecify test accept either (old & new) annotations. 2022-12-27 11:10:58 +00:00
Kevin Bourrillion 2329ee5f84 Add JSpecify 0.3 annotations, and a "fake" @NullnessUnspecified annotation 2022-12-27 11:10:58 +00:00
Andrey Uskov e3282d090d Report in FUS tracking of prepareKotlinBuildScriptModel invocations
Currently, if user creates new project using wizard, there are several
invocations of Gradle. It is difficult to identify import process
itself. Now it could be done by monitoring invocations of
prepareKotlinBuildScriptModel task.
#KT-54998 Fixed
2022-12-26 17:18:51 +03:00
Andrey Uskov 70db910767 Report new IC usage in FUS
#KT-55000 Fixed
2022-12-26 17:18:50 +03:00
Andrey Uskov 4c80538a78 Added validation rules of FUS metrics on Gradle side
#KT-55541 Fixed
2022-12-26 17:18:48 +03:00
Andrey Uskov 0f33722124 Improved collecting compilation metrics in FUS
#KT-55537 Fixed
2022-12-26 17:18:46 +03:00
Andrey Uskov 2be68065af Report lines number and LpS in build reports
#KT-55540 Fixed
2022-12-26 17:18:44 +03:00
Andrey Uskov 5e06c52073 Support weight for FUS metrics
If metric impact is different for different subprojects, corresponding
metric could be reported with weight. Currently supported for numerical
metrics with override policy AVERAGE.
2022-12-26 17:16:03 +03:00
Andrey Uskov f07f193938 Make line number field public in PerformanceMeasurement
Required for KT-55537
2022-12-26 17:16:02 +03:00
Yan Zhulanow d652dc620c [FE] Preserve legacy contract description calls in bodies
^KT-55231 Fixed
^KTIJ-21012 Fixed
2022-12-26 11:46:58 +00:00
Yan Zhulanow f067f64255 [FE] Extract common logic in consistency visitor and transformer 2022-12-26 11:46:58 +00:00
nataliya.valtman 161d8d1cea KT-54959 Add worker execution time to task action execution time 2022-12-26 12:03:37 +03:00
nataliya.valtman d6bbab7eff Fix unstable build statistics with ktor tests 2022-12-26 12:03:37 +03:00
Ilya Gorbunov e2d96da396 Introduce experimental kotlin.concurrent.Volatile annotation KT-55268, KT-55609
Use this annotation in tests to ensure it works the same at least on JVM
2022-12-23 19:07:30 +01:00
Ilmir Usmanov 58d6d7b9ad Minor. Regenerate tests 2022-12-23 01:15:18 +00:00
xiaozihan.larryxiao 64d40aa285 KT-55398 Add test case
Add KT-55398 test case into boxInline/reified
2022-12-23 01:15:18 +00:00
xiaozihan.larryxiao 22a9b84966 KT-55398 Fix nested inline variable not correctly
^KT-55398 Fixed
Add nested variable's ReifiedTypeParametersUsages into closureReifiedMarkers for MethodInliner to generate nested inline anonymous class
2022-12-23 01:15:18 +00:00
Ilya Gorbunov b6e6ca7c96 Deprecate Synchronized annotation in common and JS #KT-55344 2022-12-22 21:22:44 +00:00
Vyacheslav Gerasimov 719cdce609 Build: Make mochaTest a VerificationTask to allow skipping it with flag
#KTI-1076
2022-12-22 18:45:41 +01:00
Vyacheslav Gerasimov 7348e34fd0 Build: Run only jsTests before mocha tests
Only js tests produce mocha tests to run
2022-12-22 18:45:40 +01:00
Ilya Goncharov e19776bd5a [Gradle, JS] Make webpack task cacheable
[Gradle, JS] Remove redundant dependsOn

[Gradle, JS] Private metrics

[Gradle, JS] Fix test with run webpack on windows

[Gradle, JS] Fix detecting of input files instead of const folder kotlin

[Gradle, JS] Change up-to-date annotations in webpack task

[Gradle, JS] Add test on webpack considering changes in dependencies in up-to-date checks

[Gradle, JS] Add test on buid cache of Webpack task

[Gradle, JS] webpack config appliers are nested inputs

[Gradle, JS] Webpack task is cacheable with relative pathes

^KT-55476 fixed
2022-12-22 17:19:38 +00:00