Commit Graph

88760 Commits

Author SHA1 Message Date
Irene Dea d444978ebf Add support for attribute serialization. 2022-01-08 15:25:07 +03:00
Irene Dea f2a351367c Implement unionTypeAttributes and replaceTypeAttributes in ConeInferenceContext 2022-01-08 15:25:07 +03:00
Irene Dea 56d817b49f Union type attributes for common super type calculation 2022-01-08 15:25:07 +03:00
Irene Dea db471ca61e Intersect attributes for intersection types 2022-01-08 15:25:07 +03:00
Irene Dea fad3c1f2f6 Add initial type attributes infra 2022-01-08 15:25:06 +03:00
Irene Dea 62bde2d686 Move AttributeArray to compiler.common so frontend extension can share it 2022-01-08 15:25:06 +03:00
Igor Yakovlev 82455c849d [WASM] Lazy properties initialization 2022-01-05 13:12:32 +01:00
Igor Yakovlev e58d4163ad [WASM] Add std methods for collections 2022-01-05 13:12:32 +01:00
Igor Yakovlev c9a92d71ae [WASM] Add kotlin.math tests 2022-01-05 13:12:32 +01:00
Igor Yakovlev adee0f1cb0 [WASM] Add kotlin.math implementation 2022-01-05 13:12:32 +01:00
Ilya Kirillov 5e42be9849 Analysis API: fix redundant caret symbol in testdata 2022-01-02 21:56:54 +03:00
Ilya Kirillov 11c50a48ba Analysis API: add isSubclassOf tests 2022-01-02 21:56:53 +03:00
Ilya Kirillov e6fc434489 Analysis LC: fix isSubClass check for local LC 2022-01-02 21:56:53 +03:00
Ilya Kirillov b81316738e Analysis FIR: fix isSubClass check for local classes 2022-01-02 21:56:52 +03:00
Ilya Kirillov 1d6d67d0a1 FIR IDE: regenerate tests 2022-01-02 21:56:51 +03:00
Ilya Kirillov 5c22a03e82 FIR IDE: simplify test generation dsl 2022-01-02 21:56:51 +03:00
Ilya Kirillov b916c5116a Analysis LC: add missing text range for LC 2022-01-02 21:56:50 +03:00
Ilya Kirillov af789346f5 Analysis API: fix getKtExpressionType for array assignment target 2022-01-02 21:56:49 +03:00
Igor Laevsky a5ebd3c716 Re-generate built-ins 2022-01-01 21:46:55 +02:00
Igor Laevsky cfcbe9e1e2 [Wasm] Better preserve IR types after inlining 2022-01-01 20:04:44 +02:00
Xin Wang 9ae452e489 JVM_IR generate less bytecode for for-loops if possible(KT-22334). 2021-12-31 18:29:04 +03:00
Dmitry Petrov 3b928e1780 JVM_IR move increment intrinsic handling to JvmOptimizationLowering 2021-12-31 05:37:40 +00:00
sgmoore b71179065c Minor grammar fixes
Minor grammar fixes at lines 92, 118, 120, and 165.
2021-12-30 23:03:20 +01:00
Dmitry Petrov bcec952beb JVM_IR KT-50585 array constructor loop should end with IINC 2021-12-30 21:38:58 +03:00
Pavel Punegov cffdb2c3aa [K/N][test] Disable tail calls optimization for stack trace tests
Without disable_tail_calls attribute Clang optimizes these methods on
macos_aarch64 replacing invocation (BL) with simple branch (B) that
makes stacktrace have no test methods.
2021-12-30 17:29:19 +00:00
Kristoffer Andersen 27a2d7f614 [IR] Generalize fragment generation logic for wider use
Generalize the config specific to evaluator fragment compilation for wider
applicability.
2021-12-30 12:10:54 +01:00
Ilya Kirillov 27ab406445 Analysis: restore fix of ^KTIJ-16968 after move to PSI builder to kotlin repository 2021-12-30 13:44:30 +03:00
Dmitry Petrov 1e5fc1c3aa JVM_IR KT-27427 use checkNotNull with message in checked casts
This would prevent extra branching in 'as <not-null-type>', which
usually would not be covered.
2021-12-30 13:41:21 +03:00
Dmitry Petrov 9132c9b2d0 JVM don't choke on exceptions in ClassFileFactory#createText 2021-12-30 13:41:19 +03:00
Dmitry Petrov 4ad6cfcf53 JVM_IR fix cast to not-null type
We can't rely on argument type nullability here, because it still can
hold an uninitialized value on JVM.

KT-50577 KT-35272 KT-27427
2021-12-30 13:41:17 +03:00
Alexander Korepanov 4a29a8a7af [JS IR] Update an error on cross-module symbol redeclaration
The temporary solution for KT-50546.

The complete solution requires the understanding,
whether a cross-module symbol redeclaration is a valid case or not.
If the case is valid, the linker symbol table logic must be reworked.
2021-12-30 08:44:11 +00:00
Jinseong Jeon a153a1fefb FIR LC: create inline methods
unless the functions (or accessors) have reified type parameters
or inline-only annotations
2021-12-30 10:47:32 +03:00
Ilya Gorbunov 2954769296 KT-50059 Stop publishing artifacts with 'modular' classifier 2021-12-29 17:43:56 +00:00
Alexander Udalov d5372521f1 Add tests for obsolete issues
#KT-12126
 #KT-12189
 #KT-23628
 #KT-24209
 #KT-34338
 #KT-47279
 #KT-48498
2021-12-29 17:07:03 +00:00
mvicsokolova 5c3ce66e99 kotlinx.atomicfu compiler plugin (JS): delegated properties supported (#4692)
* kotlinx.atomicfu compiler plugin (JS): delegated properties supported

* NPE handling fixed

* Scoped delegated properties supported
2021-12-29 18:16:07 +03:00
Nikolay Krasko 0884782c60 Use relative paths in own kotlin klib artifacts
Old behaviour can be returned by kotlin.build.use.absolute.paths.in.klib
in local.properties

^KTI-730 In Progress
2021-12-29 17:39:51 +03:00
Dmitry Petrov 5946242d75 JVM_IR fix special bridges in mixed Java/Kotlin hierarchies
KT-50257 KT-50476
2021-12-29 13:29:19 +00:00
Dmitriy Dolovov 3f056bc086 [Native][tests] Gradle property kotlin.internal.native.test.compilerClasspath: when not specified compute the default value based on kotlin.internal.native.test.nativeHome property, or fallback to JAR artifact of :kotlin-native-compiler-embeddable project when kotlin.internal.native.test.nativeHome not specified. 2021-12-29 16:28:12 +03:00
Dmitriy Dolovov 52c1a339c4 [Native][tests] Simplify CacheKind.WithStaticCache setting 2021-12-29 16:27:39 +03:00
Dmitriy Dolovov c47f0f16d2 [Native][tests] Gradle property: kotlin.internal.native.test.target 2021-12-29 16:27:39 +03:00
Dmitriy Dolovov 1b241e04b2 [Native][tests] Extend logged environment variables and JVM properties 2021-12-29 16:27:39 +03:00
Dmitriy Dolovov dae71e3112 [Native][tests] Fix globs expansion on Windows 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov af4900e08f [Native][tests] Fix: Pass missing properties to K/N compiler JVM process 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov 3c6605fde5 [Native][tests] Depend on project(":kotlin-native-compiler-embeddable") only when K/N compiler classpath is not explicitly specified as Gradle property 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov d1083c51e2 [Native][tests] Depend on :kotlin-native:dist only when K/N path is not explicitly specified as Gradle property 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov 8b8eb23b96 [Native][tests] Minor. Fix typo 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov a338cc31cb [Native][tests] Gradle property: GCType 2021-12-29 16:27:37 +03:00
Dmitriy Dolovov 2b43dce1a5 [Native][tests] Gradle property: ThreadStateChecker 2021-12-29 16:27:37 +03:00
Dmitriy Dolovov 9dbb844742 [Native][tests] Gradle property: MemoryModel 2021-12-29 16:27:37 +03:00
Dmitriy Dolovov dbd7a05c7e [Native][tests] Gradle property: OptimizationMode 2021-12-29 16:27:37 +03:00