Stanislav Erokhin
f06087d5d3
[gradle] Deprecate kotlin-js plugin in favor of kotlin-multiplatform
...
#KT-57901 Verification Pending
2023-04-18 14:27:21 +00:00
Ilya Goncharov
e4b6f3c12a
[Gradle, JS] Not filter jar files in friendDependencies
...
^KT-56690 fixed
2023-04-18 14:25:54 +00:00
Kirill Rakhman
ff7072830f
[FIR] Make lambda parameters of dynamic function calls dynamic
...
#KT-57961 Fixed
2023-04-18 13:43:45 +00:00
Kirill Rakhman
a3bf61c3f7
[FIR] Fix false positive error for trailing lambda on dynamic call
...
#KT-57961
2023-04-18 13:43:44 +00:00
Ilya Goncharov
418132c240
[Gradle, JS] Fix destinations of js and wasm dists
...
^KT-57629 fixed
2023-04-18 13:34:00 +00:00
Dmitriy Novozhilov
faf212ca04
[FIR] Don't extract contracts in DFA during non-body resolution stages
2023-04-18 13:31:29 +00:00
Dmitriy Novozhilov
bde4d003be
[FIR] Extract contracts from original functions of fake overrides
...
^KT-57911 Fixed
2023-04-18 13:31:29 +00:00
Dmitriy Novozhilov
f8dc8057f0
[FIR] Prohibit referencing type parameters in contracts ...
...
...if they are not reified or not belong to owner declaration of the contract
KT-57911
2023-04-18 13:31:28 +00:00
Dmitriy Novozhilov
5a92eb2c67
[FIR] Properly track problems in contract description during effect extraction
2023-04-18 13:31:28 +00:00
Alexander Korepanov
79d378f2bd
[JS IR] Perform optimizations on the generated JS code
...
The patch adopts and reuses the optimizations from the legacy backend.
The optimizations remove useless temporary variables,
statements and simplify generated JS code.
The optimizations can be disabled by `-Xoptimize-generated-js=false`.
Related to KT-51139
2023-04-18 12:49:33 +00:00
Alexander Korepanov
84b5af3c89
[JS IR] Style fixes
2023-04-18 12:49:32 +00:00
Alexander Shabalin
9fd05632f0
[K/N] Track object counts during sweep ^KT-55364
...
Previously object count was tracked via allocator. It adds additional
burden on every allocation. Tracking via sweeper is better because
it mostly happens on the GC thread during a concurrent sweep.
2023-04-18 12:08:02 +00:00
Alexander Shabalin
63231f7b73
[K/N] Create ObjectFactory only w/o custom allocator ^KT-55364
2023-04-18 12:08:01 +00:00
Alexander Shabalin
cb7698a8c2
[K/N] Track current heap size ^KT-55364
2023-04-18 12:08:01 +00:00
Alexander Shabalin
18b6351d5d
[K/N] Tweak GC logs ^KT-55364
...
In info log one big chunk at the end of the GC iteration.
2023-04-18 12:08:00 +00:00
Alexander Shabalin
f4c89148b8
[K/N] Tweak runtime logging ^KT-55364
...
Print thread id and process uptime.
2023-04-18 12:08:00 +00:00
Vladimir Sukharev
a6d93797ee
[K2/N] Enable test interop_objc_foreignException
...
^KT-55909
Merge-request: KT-MR-9641
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-04-18 11:15:07 +00:00
Leonid Startsev
d9e16fb76e
Do not create cacheableChildSerializers unless it is necessary
...
Creation of this property in the SerializerIrGenerator.<init> can lead to
a 'Serializer not found' internal error when generator is applied to a fully-customized external serializer.
In that case, generator is still created, but none of the generateSave/Load functions are called,
so cacheableChildSerializers(Property) is not necessary.
#KT-57730 Fixed
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/2260
2023-04-18 11:04:56 +00:00
Svyatoslav Scherbina
54c07f5ebb
Ignore K2 expectPropertyAsDefaultArgument.kt test for K1/Native
...
It is not supposed to work with K1 on Native due to test infrastructure
limitations, and actually fails in one of the compilation modes in
nightly tests.
2023-04-18 10:43:51 +00:00
Mikhail Glukhikh
50f82c9094
FirBuilderInferenceSession: fix calculation of effectivelyEmptyCommonSystem
...
#KT-57873 Fixed
2023-04-18 09:23:20 +00:00
Mikhail Glukhikh
7bd5491498
K2: reproduce KT-57873
2023-04-18 09:23:20 +00:00
Dmitriy Dolovov
66797ff876
[PL] Temporarily disable PL for WASM
2023-04-18 09:22:54 +00:00
Dmitriy Dolovov
87125d0703
[PL] Fix: Don't run partial linkage on early stages when no external dependencies have been loaded yet
2023-04-18 09:22:54 +00:00
Dmitriy Dolovov
000cf47c21
[PL][JS] Fix: Pass PL CLI arguments properly
2023-04-18 09:22:53 +00:00
Dmitriy Dolovov
d9cd293eaa
[PL][JS] Disable PL for Kotlin2JsIrBeIncrementalCompilationIT.testRebuildAfterError
...
This test is not supposed to be ever successful with enabled PL.
2023-04-18 09:22:53 +00:00
Dmitriy Dolovov
9d3deb7e0e
[PL] Fix: Don't count value arguments vs value parameters for external functions
2023-04-18 09:22:52 +00:00
Dmitriy Dolovov
b644fc009d
[PL] Fix: Constructor of external class may delegate to kotlin.Any regardless of the actual superclass
2023-04-18 09:22:52 +00:00
Dmitriy Dolovov
997b6e6722
[PL] Fix: Don't try to implement non-implemented fake overrides in stdlib & co
2023-04-18 09:22:51 +00:00
Dmitriy Dolovov
dd8eedb8da
[PL] Fix: Don't try to implement non-implemented overridden callables in case of inheritance delegation to Nothing
2023-04-18 09:22:51 +00:00
Dmitriy Dolovov
16da1af525
[PL] Support handling IR error types
2023-04-18 09:22:50 +00:00
Dmitriy Dolovov
161c3fccb6
[PL] Enable partial linkage by default
...
#KT-51447
#KT-51443
2023-04-18 09:22:50 +00:00
Sebastian Sellmair
5d0bf2de24
[CLI] Restore K2JVMCompilerArguments.classpath and javaModulePath
...
to support IDEs < 2023.2
Reverts:
- 9dcd40d7b7
- fb66764c4d
KTIJ-25227
2023-04-18 09:18:10 +00:00
Sebastian Sellmair
7fe3c5c423
[Gradle] Demote FakeK2NativeCompilerArguments deprecation to 'WARNING'
...
KTIJ-25227
2023-04-18 09:18:10 +00:00
Sebastian Sellmair
0f5f4fd8fa
[Gradle] Overwrite setupCompilerArgs methods in compile tasks...
...
... to ensure compatibility with reflection code
in IDEs < 2023.2 which is looking for setupCompilerArgs methods
with specific compiler arguments type instead of a
generic function
KTIJ-25227
2023-04-18 09:18:10 +00:00
Sebastian Sellmair
9309a864ce
[Gradle] IdeCompilerArgumentsResolver: Do not resolve compile tasks DependencyClasspath
...
as it is not needed for JPS builds.
JPS will build the classpath by reading the IJ project model.
Classpath entries added as freeCompilerArgs will still be forwarded
KTIJ-25227
2023-04-18 09:18:09 +00:00
Sebastian Sellmair
62df30134f
[Gradle][Minor] CompilerArgumentAware: Remove unnecessary suppress
2023-04-18 09:18:09 +00:00
Alexander Korepanov
980d83eccd
[JS IR IC] Drop incremental cache after updating a klib set
...
Enabled Partial Linkage may replace entire IR expressions with a stub
during klib linking and loading. This may break the incremental cache
dependency graph. Dropping incremental cache files after updating klibs
(e.g. update klib version) covers almost all cases which
could not be tracked due to a broken dependency graph.
This patch could be reverted after fixing KT-57347
2023-04-18 09:06:07 +00:00
Justin Paupore
c9badd14a7
Split Parcelize for-ide support by frontend.
...
Create new targets for K1 and K2-specific jars for the IDE. (These
contain the diagnostics classes generated by the plugins, used to target
quickfixes.)
The existing `parcelize-compiler-plugin-for-ide` target remains
untouched with a K1 JAR dependency, because IJ currently depends on
this. Once IJ is cleaned up, we can remove the K1 reference from that
target, leaving only code shared between frontends.
^KT-57795
2023-04-18 09:11:00 +02:00
Vladimir Sukharev
ca740a4baf
[K2/N] Re-enable special backend checks
...
^KT-55598
Merge-request: KT-MR-9625
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-04-18 03:37:47 +00:00
Mikhail Glukhikh
bde0282fb1
K2: extract constant from Java enum entry properly
...
#KT-58002 Fixed
2023-04-17 21:05:04 +00:00
Mikhail Glukhikh
0a126a173e
K2: reproduce KT-58002
2023-04-17 21:05:03 +00:00
Mikhail Glukhikh
5cff8c15ab
K2: fix intrinsic analysis in FirToConstantValueChecker
...
#KT-57986 Fixed
2023-04-17 20:53:31 +00:00
Mikhail Glukhikh
c826c7301c
K2 JS/Native: reproduce KT-57986
2023-04-17 20:53:30 +00:00
Ivan Kochurkin
beaeb405d2
[K2, MPP] Build expect-actual map for type parameters from functions
...
^KT-57181 Fixed
2023-04-17 19:55:35 +00:00
Ivan Kochurkin
3a60b30dae
Minor: IrActualizationResult -> IrActualizedResult
2023-04-17 19:55:35 +00:00
Ivan Kochurkin
b7bb9c317f
[K2, MPP] Introduce FunctionDefaultParametersActualizerVisitor and use it in FunctionDefaultParametersActualizer
...
^KT-57263 Fixed
2023-04-17 19:55:34 +00:00
Ivan Kochurkin
1073797ed3
[IR] Extract ActualizerSymbolRemapper and ActualizerVisitor from ExpectActualLinker
...
It will provide the possibility to use them not only locally
Clarify code of IrActualizer pipeline
2023-04-17 19:55:34 +00:00
Mikhail Glukhikh
2ccad553e6
K1/K2: allow to apply suspend modifier to anonymous function
...
#KT-57991 Fixed
2023-04-17 18:05:44 +00:00
Mikhail Glukhikh
0dbf698653
K1: count anonymous function as function expression in checkers
...
Related to KT-57991
2023-04-17 18:05:44 +00:00
Mikhail Glukhikh
c8b74e5655
K2: reproduce KT-57991
2023-04-17 18:05:43 +00:00