Pavel Kunyavskiy
19ccb23088
[K/N] Fix compilation error caused by bad merge
2023-07-10 10:31:00 +00:00
Pavel Kunyavskiy
ef9413108b
[K/N] Consolidate forward declarations handling
...
This is refactoring in preparation for KT-59764.
Names and layout of forward declarations related classes
was copy-pasted many times over compiler code.
Implementing KT-59764 would require copy-pasting it two more times.
So instead of doing this it was put in single place.
No behaviour changes intended in this commit.
2023-07-10 08:59:16 +00:00
Igor Chevdar
58639951f6
[K/N] Refactored 2-stage splitting
2023-07-07 17:51:46 +00:00
Igor Chevdar
afdc596121
[K/N] Fix for two-stage compilation
2023-07-07 17:51:46 +00:00
Vladimir Sukharev
4cfcf45120
[K/N] Partially fix IncrementalCompilationTest
...
^KT-59245
2023-07-07 17:51:46 +00:00
Vladimir Sukharev
e240d7aae3
[K/N] Fix test split_compilation_pipeline
...
^KT-59245
2023-07-07 17:51:46 +00:00
Vladimir Sukharev
32a390ea18
[K/N] K1/MPP: Enable splitting 1-stage to two CLI invocations
...
^KT-59245 Fixed
2023-07-07 17:51:46 +00:00
Vladimir Sukharev
a87b662bc5
[K/N] Split 1-stage K1 compilations to two stages
...
^KT-59245 Fixed
2023-07-07 17:51:46 +00:00
Pavel Punegov
d5c6dd5f5c
[K/N][test] Improve testStackTrace test
...
Make it print stack trace before the checks
2023-07-07 17:09:40 +00:00
Pavel Punegov
e722212502
[K/N][test] Suppress internal visibility in the test with @Retain
2023-07-06 16:22:02 +00:00
Dmitriy Dolovov
8aacdb471b
[K/N] Fix: Ignore bridge functions in FunctionReferenceLowering
...
^KT-59858
2023-07-06 12:39:46 +00:00
Ivan Kylchik
abbafc0b2a
[IR] Move some inline utils from backend.common into ir.util
2023-07-06 11:00:14 +00:00
Pavel Punegov
7cb0875bd8
[K/N][test] Add ExperimentalNativeApi opt-in in the samples
2023-07-05 18:20:35 +00:00
Pavel Kunyavskiy
396cfb3956
[K/N] Make cast to objc forward declaration unchecked
...
Before this commit it caused compiler crash.
Unchecked cast warning to be done later.
^KT-59645
2023-07-05 06:49:34 +00:00
Yahor Berdnikau
6d5f1c84a7
[repo] Migrate Groovy build scripts to use 'javadocJar()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Yahor Berdnikau
5de2b5aeb4
[repo] Migrate Groovy build scripts to use 'kotlinStdlib()' directly from buildSrc
2023-07-04 19:26:38 +00:00
Aleksei.Glushko
96b44e0ad8
[K/N] concurrent weak sweep ^KT-57772
2023-07-04 13:42:59 +00:00
Igor Chevdar
4f859a634e
[K/N] Fixed a bug in escape analysis
...
#KT-59693 Fixed
2023-07-04 09:45:48 +00:00
Sergey Bogolepov
2d945b7226
[K/N] Disable KT-59167 test on watchOS
2023-07-03 14:45:21 +00:00
Abduqodiri Qurbonzoda
209c916a7e
OptIn ExperimentalNativeApi
2023-06-30 15:27:09 +00:00
Sergey Bogolepov
aee9b7aae3
[K/N] Add a trivial test-case for KT-59167
2023-06-30 09:01:38 +00:00
Pavel Kunyavskiy
cd3237295b
[K/N] Remove module-wide ObsoleteDescriptorBasedApi opt-in
2023-06-28 13:18:09 +00:00
Sergej Jaskiewicz
7b77ec9930
[IR] Reorder parameters in IrFactory#createFunction
...
This is to prepare for IrFactory auto-generation (KT-59308).
2023-06-28 10:13:09 +00:00
Vladimir Sukharev
767cba5211
[K/N] Adjust test objc_direct.kt to pass under both K1 and K2
...
^KT-54610
Merge-request: KT-MR-10825
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-26 16:57:47 +00:00
Vladimir Sukharev
4d9f93e4eb
[K2/N/MPP] Disable one-stage MPP compilation
...
^KT-56855
Merge-request: KT-MR-10735
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-23 15:51:59 +00:00
Pavel Kunyavskiy
f486fc942b
[K/N] Fix special backend checks tests
2023-06-22 16:22:59 +00:00
Sergej Jaskiewicz
0b7db067e6
[IR] Reorder parameters in IrFactory#createField
...
This is to prepare for IrFactory auto-generation (KT-59308).
2023-06-22 15:55:02 +00:00
Alexander.Likhachev
3affe78ae5
[Build] Make K/N backend sources publishing for IDE in a less hacky way
...
The previous way was too hacky relying on internal API
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
Alexander.Likhachev
01276bbe49
[Build] Fix buildscripts deprecation warnings
...
#KTI-1221 In Progress
2023-06-22 15:16:08 +00:00
Pavel Punegov
1ad0a662fd
[K/N] XCTest support: Make compiler produce bundles
...
XCTest test binary is a bundle plug-in that is similar to a framework.
This is a part of ^KT-58928
Merge-request: KT-MR-10662
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-06-22 13:23:17 +00:00
Vladimir Sukharev
a3758bf70b
[K2/N] Mute failed test
...
^KT-58863
Merge-request: KT-MR-10762
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-06-22 10:01:01 +00:00
Igor Chevdar
5f3dad14a2
[K/N] Make -Xlazy-ir-for-caches disabled by default
2023-06-22 08:10:11 +00:00
Igor Chevdar
cc9dd48c09
[K/N] Support non-LazyIR for cached libraries
...
Use the same lazy deserialization mechanism (inline function bodies, class fields)
for both LazyIR and usual IR
2023-06-22 08:10:11 +00:00
Svyatoslav Scherbina
41247e8cef
Native: workaround KT-59552 in filecheck_single_tls_load test
...
After recent changes (0cfb801 ) println got inlined into the checked
function. As a result, the test became affected by KT-59552.
Fix the test by moving println out of the checked function.
2023-06-21 15:49:53 +00:00
Alexander Shabalin
63e65a482c
[K/N] Move GC schedulers into modules
...
Additionally,
- rename disabled into manual
- rename with_timer into adaptive
- remove on_safepoints
- store schedulers in GlobalData, ThreadData directly
2023-06-21 12:16:09 +00:00
Dmitriy Novozhilov
5717b59f52
[FIR/IR] Introduce an ability to propagate generated IR annotation to metadata
...
^KT-58638 Fixed
2023-06-21 06:56:59 +00:00
Pavel Kunyavskiy
12455451fc
[K/N] Call class static initializer in constructors
...
^KT-59058
2023-06-20 08:41:11 +00:00
Igor Chevdar
9e39b7ef87
[K/N] Don't try to stack-alloc arrays of negative size
...
#KT-59501 Fixed
2023-06-20 06:20:52 +00:00
Igor Chevdar
95bef03d3e
[K/N][tests] Added a reproducer for KT-59501
2023-06-20 06:20:52 +00:00
Abduqodiri Qurbonzoda
4ae19b2b44
[K/N] Deprecate SharedImmutable annotation #KT-57837
...
As a part of efforts to stabilize Native stdlib.
2023-06-19 11:35:32 +00:00
Dmitriy Dolovov
56bebeaf92
[KLIB] Extract "ir_provider" manifest property name as a const val, p.2
2023-06-17 01:00:04 +00:00
Pavel Punegov
d5bdc7cf8e
[K/N][test] Fix sample that uses watchos_x86 target
...
Simply replace it with watchos_x64
2023-06-15 14:07:42 +00:00
Dmitriy Dolovov
72525a22a6
[KLIB] Extract "ir_provider" manifest property name as a const val
2023-06-15 11:07:30 +00:00
Ivan Kylchik
0021a5f655
[K2] Save inlined java field into special InlineConstTracker
2023-06-14 19:02:39 +00:00
Abduqodiri Qurbonzoda
193aa0f935
Align the Boolean.hashCode() value across platforms
...
Boolean.hashCode() should return 1231/1237 for true/false correspondingly.
As a part of efforts to stabilize Native stdlib.
2023-06-14 08:19:46 +00:00
Alexander Shabalin
da1fde2477
[K/N] Enable custom allocator by default ^KT-55364
2023-06-13 10:22:04 +00:00
Dmitriy Novozhilov
ba41e8ec38
[IR] Use common expect/actual matching algorithm in IR actualizer
...
^KT-58578 Fixed
2023-06-10 07:33:29 +00:00
Alexander Shabalin
7815eec7c1
[K/N] Rework GC switches with better naming
...
Additionally, deprecate -Xgc in favour of a new binary option "gc".
This will allow setting gc right in gradle.properties
Merge-request: KT-MR-10498
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2023-06-09 12:04:19 +00:00
Pavel Kunyavskiy
456783436c
[K/N] Fix cast to NativePtr mis-compilation
...
^KT-59022
2023-06-08 10:40:29 +00:00
Svyatoslav Scherbina
1bf3d55bdf
Native: add detachObjCObject internal function for Obj-C objects
...
For a Kotlin wrapper of an Objective-C object, this functions zeroes
and releases the strong reference from the Kotlin wrapper to the
Objective-C object.
Usually, such a release happens only when the Kotlin wrapper is GCed.
So using this function can help that happen sooner.
^KT-59134
2023-06-07 11:57:54 +00:00