Dmitriy Dolovov
59183a8142
[Commonizer] Replace j.u.HashMap by g.t.THashMap to reduce memory usage
2020-06-19 19:36:06 +07:00
Dmitriy Dolovov
70ea53315d
[Commonizer] Intern duplicated CirContainingClassDetails instances
2020-06-19 19:18:13 +07:00
Dmitriy Dolovov
63d549dfa1
[Commonizer] Intern duplicated CirFunctionModifiers instances
2020-06-19 19:18:07 +07:00
Dmitriy Dolovov
68e1acd2cb
[Commonizer] More detailed progress logging
2020-06-19 19:18:01 +07:00
Dmitriy Dolovov
6410aed1b4
Minor. Replace computeIfAbsent() by getOrPut()
2020-06-19 19:17:55 +07:00
Dmitriy Dolovov
6393667dda
[Commonizer] Rework preparation of CIR cache in TypeCommonizerTest
2020-06-19 19:17:49 +07:00
Dmitriy Dolovov
5cad8a793c
[Commonizer] Rework CommonizedGroup API to make it more usable
2020-06-19 19:17:43 +07:00
Dmitriy Dolovov
63575582c4
[Commonizer] Reduce memory consumption during approximation phase
...
^KT-39320
2020-06-19 19:17:33 +07:00
Dmitriy Dolovov
439808952d
[Commonizer] Fix incorrect merging KLIB dependencies
...
^KT-39609
2020-06-17 11:38:27 +07:00
Dmitriy Dolovov
af1dd6251e
[Commonizer] Fallback for const val properties with different values
2020-06-16 15:04:08 +07:00
Dmitriy Dolovov
0f10faabbf
[Commonizer] More precise approximation of callables
2020-06-15 16:11:49 +07:00
Dmitriy Dolovov
205510863a
[Commonizer] Stats collector: support aggregated stats
2020-06-15 16:11:34 +07:00
Dmitriy Dolovov
f7ceacb15c
[Commonizer] Update stats collector: report receivers & parameters
2020-06-15 16:11:23 +07:00
Dmitriy Dolovov
3b4cef1b56
Minor. Rename excludes list
2020-06-15 16:11:06 +07:00
Vyacheslav Gerasimov
3e3afac407
Build: Fix pom runtime scope for kotlin-klib-commonizer
2020-06-14 20:31:28 +03:00
Vyacheslav Gerasimov
4aa3040550
Build: Use runtimeOnly instead of deprecated runtime
...
maven-publish plugin uses `runtimeOnly` for runtime scope instead of
`runtime`
2020-06-14 20:31:26 +03:00
Vyacheslav Gerasimov
b85b733e42
Build: Remove explicit legacy maven plugin application
2020-06-14 20:31:25 +03:00
Dmitriy Dolovov
24568058e1
Minor. Remove unused code
2020-06-10 18:41:05 +07:00
Dmitriy Dolovov
84a4644490
[Commonizer] Speed-up serialization of commonized member scopes
2020-06-10 18:15:12 +07:00
Dmitriy Dolovov
9936468a5e
[Commonizer] Update stats collector to report lifted up declarations
2020-06-09 11:13:04 +07:00
Dmitriy Dolovov
611946a7c7
[Commonizer] Drop useless annotation tests
...
^KMM-238
^KMM-53
2020-06-09 11:12:59 +07:00
Dmitriy Dolovov
596363ea23
[Commonizer] Refactor/simplify marker interfaces
2020-06-09 11:12:55 +07:00
Dmitriy Dolovov
f3b400975e
[Commonizer] Drop useless "allowPrivate" flag in VisibilityCommonizer
2020-06-09 11:12:50 +07:00
Dmitriy Dolovov
d9bfe11ca1
[Commonizer] Source-based tests on lifting up identical type aliases
...
^KMM-55
2020-06-09 11:12:45 +07:00
Dmitriy Dolovov
e5885e9277
[Commonizer] Unit tests on lifting up identical type aliases
...
^KMM-55
2020-06-09 11:12:41 +07:00
Dmitriy Dolovov
d3c6dc362e
[Commonizer] Lift up identical type aliases
...
^KMM-55
2020-06-09 11:12:36 +07:00
Dmitriy Dolovov
e37a485aaa
[Commonizer] Process expect/actual cross-module dependencies in source-based tests
2020-06-09 11:12:31 +07:00
Dmitriy Dolovov
c8ba3fa8ed
[Commonizer] Clean-up in AbstractCommonizationFromSourcesTest
2020-06-09 11:12:26 +07:00
Dmitriy Dolovov
e51c7a79c7
[Commonizer] Minor. Fixed typo
2020-06-09 11:12:16 +07:00
Dmitriy Dolovov
3654da8a63
[Commonizer] Minor. Improve error reporting
2020-06-09 11:12:12 +07:00
Dmitriy Dolovov
be9e25a2e5
[Commonizer] Move fqNameWithTypeParameters extension val into CirType
2020-06-09 11:12:07 +07:00
Dmitriy Dolovov
719d5da641
[Commonizer] Move some extension functions into CirFunctionOrProperty
2020-06-09 11:12:02 +07:00
Dmitriy Dolovov
da9e0d3c02
[Commonizer] Simplify detection if property is lifted up
2020-06-09 11:11:52 +07:00
Leonid Startsev
7c8c5b057f
Extensible mechanism for plugin metadata during descriptor serialization
...
A mechanism that allows kotlinx.serialization plugin to preserve the
correct (program) order of properties after serializing/deserializing
descriptors to kotlin metadata, which is needed for correct and stable
json serialization of class hierarchies in incremental/multi-module scenario.
It uses protobuf extensions.
2020-06-01 17:48:16 +03:00
Dmitriy Dolovov
45260cee1e
[Commonizer] Update stats collector to report lifted up declarations
2020-05-28 12:12:40 +07:00
Dmitriy Dolovov
9f31931bb8
[Commonizer] Tests on lifting up identical const properties
...
^KMM-241
2020-05-28 12:12:39 +07:00
Dmitriy Dolovov
2ce1625989
[Commonizer] Lift up identical const properties
...
^KMM-241
2020-05-28 12:12:39 +07:00
Dmitriy Dolovov
36a29ce2dd
[Commonizer] Split different aspects of CIR
...
- Entity declaration
- Entity implementation
- Creation of new entities from descriptors
2020-05-28 12:12:29 +07:00
Dmitriy Dolovov
f26a3150ba
[Commonizer] Explicitly check if annotation constants are allowed
2020-05-28 12:11:11 +07:00
Dmitriy Dolovov
0827d2e8a3
[Commonizer] Fix Gradle module dependencies
2020-05-28 12:11:04 +07:00
Dmitriy Dolovov
b5245e2df6
[Commonizer] Avoid N^2 during merge of KLIB manifest dependencies
2020-05-28 12:10:58 +07:00
Svyatoslav Scherbina
fa152593ef
Fix false-positive @Throws error diagnostics in Native
...
Don't report
THROWS_LIST_EMPTY and MISSING_EXCEPTION_IN_THROWS_ON_SUSPEND
caused by unresolved arguments.
2020-05-26 20:24:34 +03:00
Svyatoslav Scherbina
242d0aa26e
Add Native diagnostics for @Throws suspend fun
...
`@Throws suspend fun` must have CancellationException accepted.
Also add more tests.
2020-05-26 20:24:32 +03:00
Kevin Most
4f26ac9a04
Fix "Koltin" typos throughout codebase ( #3383 )
...
* Fix "Koltin" typos throughout codebase
* Update K2MetadataKlibSerializer.kt
2020-05-20 15:12:32 +03:00
Ilya Matveev
5287ffb4a5
[Native] Don't use konan.home to determine a path to the K/N dist
...
A fix for KT-37550 requires us to stop using system properties when
the compiler is started from Gradle. This patch stops reading the
konan.home property to determine a path to the compiler and requires
this path to be explicitly specified in a constructor of the
Distribution class.
Issue #KT-37550
2020-05-19 18:57:39 +07:00
Konstantin Tskhovrebov
912fd556e5
Fix commonizer: merge klib manifest dependencies during commonization.
2020-05-15 18:27:13 +03:00
Dmitriy Dolovov
ac1e96500a
[Commonizer] Added README.md
2020-05-14 17:35:16 +07:00
Alexander Udalov
ea413cefb4
Remove TypeOfChecker for JVM frontend
...
This is needed to support typeOf with non-reified type parameters.
#KT-30279
2020-05-13 10:04:26 +02:00
Dmitriy Dolovov
e92adf3d4e
[Commonizer] Don't preserve annotations on types
...
This may lead to leakage of specific annotation classes to common module
^KMM-53
2020-05-08 23:52:24 +07:00
Dmitriy Dolovov
5bb5d7f892
[Commonizer] Limited annotation commonization. Tests
...
^KMM-238
^KMM-53
2020-05-08 23:52:17 +07:00