Commit Graph

97212 Commits

Author SHA1 Message Date
Igor Yakovlev 4e24a9caa5 [Wasm] Cache down-casted dispatcher receiver in virtual functions 2022-12-29 11:57:46 +00:00
Igor Yakovlev 3be3ae4895 [Wasm] Fix invalid boxing for non-primitive typed vararg 2022-12-29 11:57:46 +00:00
Igor Yakovlev dc2dcfffee [Wasm] Enable passing test 2022-12-29 11:57:45 +00:00
Igor Yakovlev 1b2b7ce34c [Wasm] Support Number type for external functions 2022-12-29 11:57:45 +00:00
Igor Yakovlev 4dedd47172 [Wasm] Fix JsName external declarations 2022-12-29 11:57:45 +00:00
Igor Yakovlev 4bd187ccea [Wasm] Move ItemArrayLike w3c declarations into the right package 2022-12-29 11:57:44 +00:00
Pavel Punegov 950082e7f4 [K/N][test] Improve XcodeSimulatorExecutor
Make it be able to recognise incorrect installation when
preferred runtimes are not set but present in the system.
2022-12-29 11:32:50 +00:00
Pavel Mikhailovskii 0b38ab4f01 KT-51277 Fix matching of context receivers and parameter desriptors 2022-12-29 11:28:11 +00:00
Svyatoslav Scherbina 399ea1092e Remove kotlinc K/N scripts because they clash with real (K/JVM) kotlinc
These scripts were deprecated in 1.5.0.
2022-12-29 10:48:03 +00:00
Denis.Zharkov d3549c2c5b Optimize CoreJrtFileSystem
Do not recompute children on each file request
At the same time, we should clear the roots after each compilation
just the same way as we do for common jars
2022-12-29 09:59:16 +00:00
Svyatoslav Kuzmich add5fa6e0d [Wasm] Minor: remove unused stdlib stub
Merge-request: KT-MR-8140
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com>
2022-12-29 05:29:32 +00:00
Alexander Udalov b4ffa56ea4 Deprecate legacy mode of jvm-abi-gen
#KT-54756 Fixed
2022-12-28 21:06:34 +00:00
Denis.Zharkov 24bd7e5eef K2: Optimize use-site member and intersection scopes
Avoid creating cache keys for names that are definitely absent
2022-12-28 18:22:47 +00:00
Denis.Zharkov db3b7c4021 K2: Optimize ConeInferenceContext::containsInternal
We don't call it recursively on recursive types,
thus 'visited' set looks irrelevant.
2022-12-28 17:39:28 +00:00
Svyatoslav Kuzmich 9d099348ba [Wasm] Disable interop adapters for WasmImport
Merge-request: KT-MR-8152
2022-12-28 17:33:51 +00:00
pyos 34a49b3f56 jvm-abi-gen: only keep relevant InnerClasses from current module
If a class is not referenced by the ABI class file, its InnerClasses
entry should only be kept if it's the current class or a descendant
of the current class.
2022-12-28 14:42:33 +01:00
pyos d6fdd6734e jvm-abi-gen: sort inner classes 2022-12-28 14:42:33 +01:00
pyos 26a7ac6d92 jvm-abi-gen: keep InnerClass attributes for all referenced types
^KT-55233 Fixed
2022-12-28 14:42:33 +01:00
Alexander Udalov 93ec8dd63d Native: remove unused IrCallMatcher/IrFunctionMatcher 2022-12-28 14:06:58 +01:00
Alexander Udalov d2b66e5004 IR: remove IrCallMatcher/IrFunctionMatcher and usages
There doesn't seem to be much value over a simple imperative code which
checks exactly the same things in the same order. The main downside of
the removed API is that it was more difficult to debug.
2022-12-28 14:06:57 +01:00
Alexander Udalov 18950b448c IR: simplify for-loop lowering internals a bit
Remove ExpressionHandler, HeaderInfoFromCallHandler, ProgressionHandler.
2022-12-28 14:06:57 +01:00
Margarita Bobova 812e257d54 Add ChangeLog for 1.8.0 2022-12-28 13:23:41 +01:00
Pavel Mikhailovskii 906c161068 KT-52791 Make it possible to pass multiple context receivers to a class 2022-12-28 11:21:03 +00:00
Svyatoslav Kuzmich 62217b39ec [Wasm] Rename WasmImportPair -> WasmImportDescriptor 2022-12-28 12:14:16 +01:00
Svyatoslav Kuzmich dd53998c2d [Wasm] Add uninstantiated MJS wrapper
It allows

* Custom imports
* Ability to skip initializer
2022-12-28 12:13:52 +01:00
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