Commit Graph

94164 Commits

Author SHA1 Message Date
sebastian.sellmair f45a073dc0 [Gradle][KT-53342] Run functionalTests w/ AGP 7.2.1 and Java 11 2022-08-08 19:04:23 +00:00
sebastian.sellmair 28f293e0ce [Gradle][KT-53342] Implement KotlinAndroidSourceSetLayoutExtensionTest 2022-08-08 19:04:22 +00:00
sebastian.sellmair fe5a4bb12a [Gradle][KT-53342] Implement Multiplatform/Android V2 source set layout
^KT-53342 Verification Pending
2022-08-08 19:04:21 +00:00
sebastian.sellmair 38ada5c9fc [Gradle][KT-53342] KotlinAndroidTarget: Let disambiguationClassifier be final 2022-08-08 19:04:20 +00:00
sebastian.sellmair 194fff11bd [Gradle][KT-53342] Merge Android25ProjectHandler and AbstractAndroidProjectHandler
Since there was just a single implementation of AbstractAndroidProjectHandler,
merging those classes makes it easier to remove dead code and
maintain the implementation.
2022-08-08 19:04:20 +00:00
sebastian.sellmair b6ee6d536c [Minor] Move WhenEvaluatedAndroidOrderingTest into o.j.k.gradle 2022-08-08 19:04:19 +00:00
sebastian.sellmair bc27e07467 [Minor] CompilationDetails: Optimize imports 2022-08-08 19:04:18 +00:00
Alexander Korepanov bb8da65188 [Common IR] Do inlining of callable references of inline functions
^KT-52805 Fixed
2022-08-08 17:40:45 +00:00
Pavel Kunyavskiy 3424e756ad [K/N] Fix for instantiating annotations from already lowered file
If annotation class is already lowered, it can have more than one
constructor. So we should use primary one, not any one.

^KT-53475
2022-08-08 16:35:22 +00:00
Vsevolod Tolstopyatov c6cbab43f7 Introduce KClass-based cache for KPackageFragment
* It is a heavy-weight object that is hard to compute
* It is being constructed each type _cached_ method ref is used in equals/hashCode
* Module name is deliberately ignored, corresponding doc is added where appropriate 

#KT-48136

Merge-request: KT-MR-6817
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
2022-08-08 15:57:56 +00:00
Ilya Goncharov 28310eb970 [Gradle, JS] Add error state to know when operation was failed 2022-08-08 08:55:47 +00:00
Alexander Korepanov 794229d012 [box-tests] Add tests about anonymous classes uplifting
^KT-50175 Fixed by commits before
2022-08-08 08:39:59 +00:00
Igor Chevdar c5eb6fb562 [IR] Fixed a bunch of bugs near local objects in inline lambdas 2022-08-08 08:39:58 +00:00
Igor Chevdar e38f02b53a [box-tests] Added a bunch of tests on local objects in inline lambdas 2022-08-08 08:39:57 +00:00
Igor Chevdar 7090a2716a [box-tests] Made test Native-specific
Seems like other backends don't like top level lateinit properties
2022-08-07 08:23:41 +03:00
Igor Chevdar 8ba3bdaf2e [K/N][tests] Fixed the predicate when to enable the test 2022-08-06 17:40:29 +00:00
Igor Chevdar 9e29d6a635 [K/N][IR][tests] Made tests run more deterministically 2022-08-06 17:40:29 +00:00
Igor Chevdar 03d21d9f79 [K/N][box-tests] Supported running box tests with per-file caches 2022-08-06 17:40:28 +00:00
Igor Chevdar 93929de53f [K/N][IR] Supported lateinit properties in per-file caches 2022-08-06 17:40:27 +00:00
Igor Chevdar 6799988227 [box-tests] Added a multi-module test on lateinit properties 2022-08-06 17:40:27 +00:00
Igor Chevdar 8041692144 [box-tests] Disabled a test for K/N
The test isn't passing when using K/N per-file caches and in order to fix it,
some hacks are required, which isn't worth it considering that test contains invalid code.
2022-08-06 17:40:26 +00:00
Igor Chevdar 7e4f94ed2c [IR] Fix for per-file caches support in K/N 2022-08-06 17:40:25 +00:00
Igor Chevdar 228141aeea [K/N][build] Supported per-file caches in K/N tests 2022-08-06 17:40:25 +00:00
Igor Chevdar 030e3b306f [K/N][build] Added -Xmake-per-file-cache compiler option 2022-08-06 17:40:24 +00:00
Igor Chevdar 7e79b2b500 [K/N][IR][codegen] Preliminary support of per-file caches 2022-08-06 17:40:23 +00:00
Igor Chevdar 4d2a8f852e [K/N] Merged two module deserializers 2022-08-06 17:40:23 +00:00
Jinseong Jeon 4531080858 AA: introduce KtNotUnderContentRootModule impl to standalone mode
to gracefully handle element/file/etc without a binding module.

This could happen, e.g.,
1) source PSI created from KtPsiFactory, which uses literally dummy.kt
2) debugger that creates a code fragment on-the-fly
3) on-air analysis of non-physical files
2022-08-06 13:18:55 +02:00
Jinseong Jeon e8e88b4eb2 AA: deprecate utils in StandaloneUtils
...in favor of StandaloneAnalysisAPISessionBuilder
2022-08-06 13:18:54 +02:00
Igor Chevdar e5d44065ae [K/N][codegen] Fixed improper linkage for private function
#KT-53346 Fixed
2022-08-06 09:27:41 +03:00
Dmitriy Novozhilov f2fa748a5f Advance bootstrap to 1.8.0-dev-1390 2022-08-05 20:06:52 +00:00
Dmitry Gridin a5c48576d5 [renderer] render presentable unresolved type with 'presentableUnresolvedTypes' option
^KT-49643 Fixed
2022-08-05 19:42:06 +00:00
Mikhail Glukhikh 2598ecf23f Revert "K2: fix internal visibility checks for overrides #KT-53197 Fixed"
This reverts commit 166965e559.
2022-08-05 18:26:59 +02:00
Vsevolod Tolstopyatov 14b13a2f17 [kotlin.reflect] Introduce ClassValue-based cache for KClassImpl
* Replace pcollections with ClassValue/ConcurrentHashMap-based caches
* Do not store weak references, instead cache strong references and count on ClassValue to unload the corresponding classloader if necessary
* ConcurrentHashMap does not rely on WeakReference as it's only selected on Android where classloader leaks don't exist
* Update reflect/scripting JDK requirement to Java 8 in order to proceed

#KT-53454
#KT-50705


Merge-request: KT-MR-6788
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
2022-08-05 15:35:34 +00:00
konstantin.tskhovrebov d5164fbc86 [KT-47355] Support macOS targets in FatFramework task. 2022-08-05 15:10:47 +00:00
Ivan Kochurkin 09a72fd679 Extract immutable arrays to fields in IrBuiltInsOverFir 2022-08-05 13:20:41 +00:00
Ivan Kochurkin c0fe14a091 Make myExpressionParsing final (Parser) 2022-08-05 13:20:41 +00:00
Ivan Kochurkin daeb41b411 Minor fixes in parser 2022-08-05 13:20:40 +00:00
Ivan Kochurkin 1d73d4cfbf Reduce allocations in lastDotAfterReceiver (parsing) 2022-08-05 13:20:40 +00:00
Ivan Kochurkin cf190f0cf2 Use switch case statement instead of sequence of if comparisons in parser 2022-08-05 13:20:39 +00:00
Ivan Kochurkin 6bb2af142c Use static initialization for token sets that are used in expect method in Kotlin parser 2022-08-05 13:20:39 +00:00
Nikolay Krasko d65aa67425 Update dependency verification command 2022-08-05 12:50:57 +00:00
Nikolay Krasko 07d6431235 Forgotten md5 hashes in verification-metadata.xml 2022-08-05 12:50:57 +00:00
Nikolay Krasko 151944295d Minor: minor code cleanup in build.gradle.kts 2022-08-05 12:50:56 +00:00
Dmitry Gridin 807b9d2566 generators: update copyright to 2022 2022-08-05 14:12:42 +02:00
Dmitry Gridin 4ceb170917 regenerate tests 2022-08-05 14:12:41 +02:00
Dmitry Gridin f87410ff59 update copyright to 2022 2022-08-05 14:12:41 +02:00
Dmitry Gridin a925b6b47d [slc] reformat code
^KT-50241
2022-08-05 14:12:40 +02:00
Dmitry Gridin 4c3090e476 [slc] update copyright
^KT-50241
2022-08-05 14:12:40 +02:00
Dmitry Gridin 4419d7cd9e [slc] fix packages
^KT-50241
2022-08-05 14:12:40 +02:00
Dmitry Gridin 0016973d2e [slc] add todo
^KT-50241
2022-08-05 14:12:40 +02:00