Sergey Bogolepov
2ed6e9febf
Revert "[K/N] DI some properties of ObjCExport"
...
This reverts commit 4d15aa11c2 .
2022-10-03 15:22:36 +03:00
Sergey Bogolepov
4d15aa11c2
[K/N] DI some properties of ObjCExport
...
Move `exportedInterface` and `codeSpec` to constructor's
parameters, so in the future "dynamic" compiler pipeline
they can be created independently.
2022-10-03 15:21:44 +03:00
Nikolay Krasko
20692c9837
Minor: cleanup code in cli-js and js.sourcemap
2022-10-03 11:08:29 +00:00
Artem Kobzar
eb2326eabb
[K/JS] Add ability to exclude declarations from export by a new annotation @JsExport.Ignore.
2022-10-03 11:07:25 +00:00
Abduqodiri Qurbonzoda
917c8606f5
Document @Synchronized behavior on extension functions #KT-32469
2022-10-03 10:16:37 +00:00
Ilya Kirillov
dd9ed02fbd
[FIR] fix memory leak via static ConeIntegerLiteralTypeImpl.COMPARABLE_TAG
2022-10-02 20:38:34 +00:00
Ilya Gorbunov
607f15b55b
Sycnhronize docs of primitives in JS-IR, Wasm, Native sources
2022-10-02 19:04:37 +00:00
Ilya Gorbunov
34de2d9155
Trim trailing spaces in generated docs of builtins
2022-10-02 19:04:36 +00:00
Ilya Kirillov
9ac9bef20f
[FIR] fix nested access to FirCache
...
it's forbidden by the contract and causes ISE "Recursive update" or deadlock in the IDE
2022-10-02 19:00:02 +02:00
Ilya Kirillov
e5a941030b
[Low Level FIR] fix CME in java enhancement
...
Now all computations in FirThreadSafeCache are performed under lock
^KTIJ-23081 fixed
2022-10-02 19:00:02 +02:00
Jinseong Jeon
fc1eb02590
SLC: implement PsiVariable#computeConstantValue for light field
2022-10-02 13:41:12 +02:00
Jinseong Jeon
a58e0803fb
ULC: output update (annotation on enum entry)
...
Input has `// CHECK_BY_JAVA_FILE`
and thus ULC output as .java file should be updated too
when input was changed to add annotation on enum entry
(at commit c5916e1d )
Tested by UltraLightClassLoadingTestGenerated in IntelliJ
2022-10-02 13:41:12 +02:00
Jinseong Jeon
2fdedf8251
AA FIR: unwrap fake override constructor
2022-10-02 13:39:49 +02:00
Nikolay Lunyak
fcd3e4f4c5
[FIR JS] KT-51740: Alter positioning of NO_VALUE_FOR_PARAMETER
2022-09-30 21:39:20 +03:00
Paŭlo Ebermann
418c530820
docs: mod/rem: clarify who is dividend and divisor
2022-09-30 15:41:55 +03:00
Ilya Kirillov
5772230357
[Low Level FIR] fix memory leak via use-site use session
...
^KTIJ-22749
2022-09-30 12:19:51 +02:00
Ilya Kirillov
86670361a1
[Analysis] do not fail when reporting exception with invalid psi as attachment
2022-09-30 12:19:51 +02:00
Ilya Kirillov
4ae1cb74dd
[Analysis API FIR] fix constant evaluation for incomplete call when compiler produces IntegerLiteralType
...
^KTIJ-21531 fixed
2022-09-30 12:19:51 +02:00
Ilya Kirillov
b72dbb7819
[Analysis] fix invalid implementation of getKtModuleOfTypeSafe
2022-09-30 12:19:35 +02:00
Ilya Kirillov
913bfc0838
[Low Level FIR] fix one case in CME when traversing FIR tree
...
Before extra child nodes of classes were visited during declaration by ClassId search.
If some other thread was mutating this tree, CME could happen
this is a fix of one case from ^KTIJ-21791
2022-09-30 12:19:35 +02:00
Ilya Kirillov
fdf826208f
Fix FqName.startsWith for fqNames shorter when the segment
2022-09-30 12:19:35 +02:00
Ilya Kirillov
ae76ce666f
[Low Level FIR] optimize getting callables in LLFirProviderHelper
2022-09-30 12:19:35 +02:00
Ilya Kirillov
556b7894d5
[Low Level FIR] do not search for declarations from kotlin. package in source modules
2022-09-30 12:15:49 +02:00
Ilya Kirillov
a7408f32b0
[analysis] run decompiler-to-psi tests on TC
2022-09-30 12:15:49 +02:00
Ilya Kirillov
5a88f2088a
[decompiler stubs] fix CCE in tests
2022-09-30 12:15:49 +02:00
Ilya Kirillov
ed65f62e3d
[Low Level FIR] add more debug information to FirDeclarationForCompiledElementSearcher
2022-09-30 12:15:48 +02:00
Ilya Kirillov
cd5f6d1207
[decompiler stubs] fix missing expect modifier on declarations
2022-09-30 12:15:48 +02:00
konstantin.tskhovrebov
dffdc26208
Fix gradle configuration cache in KotlinNativeLinkArtifactTask.
2022-09-30 09:54:36 +00:00
konstantin.tskhovrebov
c83286ef7e
Set Xcode test device ID only if Xcode is available.
2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov
0ffb370579
Make Xcode utils public for gradle integration tests.
2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov
239a1a4bab
Make Xcode utils nullable for non Apple hosts.
2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov
321e436132
Make KotlinNativeLinkArtifactTask configuration lazy with gradle properties.
...
It is needed for lazy configuration the 'embedBitcode' mode for example.
Because it requires Xcode invocation.
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov
7ca5750255
Make 'Framework.embedBitcodeMode' lazy provider.
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov
8c2b2eb278
Make 'KotlinNativeSimulatorTest.device' lazy property
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov
10947e2c45
Change a hardcoded Xcode test device to getting from the device list.
2022-09-30 09:54:33 +00:00
konstantin.tskhovrebov
afa8a577cc
[KT-54060] Disable bitcode embedding to frameworks for Xcode >= 14.
2022-09-30 09:54:33 +00:00
Pavel Kunyavskiy
ea3713f051
Fix building fake overrides for sam and function references
2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy
95eaf3d234
[K/N] Add lowered suspend function mangling to avoid clashes
2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy
2d4c94a115
[K/N] Add test for inter-module suspend function override
2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy
132bb941e1
[K/N] Fix ObjCExport of coroutines for new lowerings
2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy
7e89d59b59
[K/N] Remove isSuspend hacks from codeGenerator and global optimizations
2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy
817dba8564
[K/N] Use suspend function desugaring lowerings.
2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy
8886e1b8b4
Move Js suspend functions lowerings to common code
2022-09-30 08:48:57 +00:00
Ilya Goncharov
7d8636aac4
[JS] Keep interfaces
...
^KT-54173 fixed
2022-09-29 16:12:19 +00:00
Mikhail Glukhikh
41c9ffb060
Native: add three new modules to K2 build
2022-09-29 15:32:01 +00:00
Mikhail Glukhikh
a22d7aea25
Native: don't set allWarningsAsErrors = true in K2 mode
...
Related to KT-54123
2022-09-29 15:32:01 +00:00
Mikhail Glukhikh
e6804d2601
Native: drop duplicated function and object from IrUtils2.kt
...
Related to KT-54123
2022-09-29 15:32:00 +00:00
Vladimir Dolzhenko
34779029f3
Avoid recursive type refinement
...
Recursion happens in kotlinx.serialization project https://github.com/Kotlin/kotlinx.serialization/blob/5e8ccad1f70a9457e0ffe6ae6b10a0bd0eaaa618/formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonCustomSerializersTest.kt#L37
@Serializable
data class C(@Id(1) val a: Int = 31, @Id(2) val b: Int = 42) {
@Serializer(forClass = C::class)
companion object : KSerializer<C> {
override fun serialize(encoder: Encoder, value: C) {
//
}
}
}
#KT-53157
2022-09-29 15:02:55 +00:00
Ilya Goncharov
c726360ad2
Change policy with legacy compiler backend
...
[JS] Remove incremental js jps test
[JS] Remove test of maven js archetype
[JS] Fix another one test
[JS] Fix tests for jps
[JS] Try to fix maven test data
[JS] Fix test data
[JS] Fix test data for ant
[JS] Fix jsExtraHelp test
[JS] Fix test run from not-Gradle build tools
[JS] Set flag without compiler error
[JS] Disable warnings and errors in legacy compiler called from Gradle
[JS] Proofread messages
[JS] Not proofread messages
KT-42326
2022-09-29 13:56:30 +00:00
Alexander Likhachev
a3ad0a6e88
[Gradle, K/N] Fix deprecation message for endorsed libraries
...
#KT-54177
2022-09-29 13:37:11 +02:00