Dmitriy Dolovov
4cb6dfcec8
[IR] Relax condition in KonanIrLinker.tryDeserializeIrSymbol()
...
^KT-52478
2022-07-18 17:29:50 +02:00
Dmitriy Dolovov
ce04a24b26
[IR][tests] Removal of class used as variable type and constructor call
2022-07-18 17:29:50 +02:00
Dmitriy Dolovov
d5ded97ccb
[IR][tests] Removal of inlined class case
...
^KT-52478
2022-07-18 17:29:50 +02:00
Dmitriy Dolovov
7b5e33b6ca
[IR][tests] Add tests for removal-of-typealias case
2022-07-18 17:29:49 +02:00
Dmitriy Dolovov
89a188d199
[IR][tests] Add tests for remove-inlined-callable member case
2022-07-18 17:29:49 +02:00
Dmitriy Dolovov
9c1c712057
[IR][tests] Add tests for removal-of-overridden open callable case
2022-07-18 17:29:49 +02:00
Pavel Mikhailovskii
846537b367
KT-45375 Lightweight lambdas; KT-52817 introduce @JvmSerializableLambda
2022-07-18 17:10:07 +02:00
Artem Kobzar
1557f919f5
chore: split huge declarations.d.ts test on few smaller tests.
2022-07-18 12:59:21 +00:00
Alexander Udalov
bd0fe2f146
Remove dependency of compiler tests on fir2ir tests
...
Compiler tests use the old test infrastructure, but fir2ir tests use the
new one (tests-common-new). Removing this dependency means that now the
two big modules, `:compiler:compileTestKotlin` and
`:compiler:tests-common-new:compileTestKotlin` can be compiled in
parallel, which improves the total build time.
2022-07-18 13:13:01 +02:00
Pavel Mikhailovskii
fd5800e8b5
KT-53090 Support -Xlambdas=indy for anonymous functions
2022-07-18 08:18:05 +00:00
Sergey Bogolepov
2693a29ab6
[K/N] Disable constant inline phase until we fix macOS AArch 64.
...
This phase causes assertEquals(0x7FF80000_00000000L, Double.NaN.toBits())
to fail.
2022-07-16 06:09:12 +00:00
Alexander Udalov
b50d2ff20a
Revert "JVM IR: Move direct invoke optimization into a separate pass"
...
This reverts commit f0760e0550 .
The reason is that it leads to KT-53202.
2022-07-15 18:29:07 +02:00
Rick Clephas
497bb9a05c
Add wrapped function test
2022-07-15 19:14:11 +03:00
Rick Clephas
85d4e3071c
Include mainFile header for modules def file
2022-07-15 19:14:11 +03:00
Rick Clephas
fd22add3ca
Create test
2022-07-15 19:14:11 +03:00
Vsevolod Tolstopyatov
59ac756f22
Initial implementation of EnumEntries
...
KT-53152
Merge-request: KT-MR-6656
Merged-by: Vsevolod Tolstopyatov <vsevolod.tolstopyatov@jetbrains.com >
2022-07-15 14:26:50 +00:00
Pavel Kirpichenkov
3051c36780
[MPP] add extension for non-HMPP common KLIBs
...
Add an analysis parameter that can be used to create a
package fragment provider for a common KLIB library
when composite analysis aka HMPP support in IDE is disabled.
Such KLIBs can appear since 1.6.20, when hierarchical
project structure was enabled by default. This means, that even
if HMPP is explicitly disabled in KGP via the Gradle property,
common code is still represented by KLIBs and not by
.kotlin_metadata as it used to be. IDE can't resolve
agains common KLIB dependencies without a corresponding
package fragment provider that can read KLIB libraries.
KT-53164
2022-07-15 12:37:50 +00:00
Vladimir Sukharev
2b7ae20ac1
Don't create unnecessary temp vals during monomorphic callsite devirtualization
...
Merge-request: KT-MR-6633
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2022-07-15 10:52:45 +00:00
Hung Nguyen
5b6afef67d
Rename ICReporter.report/reportVerbose to info/debug
...
to make it clear what severity levels they are mapped to.
^KT-52839 Fixed
2022-07-15 10:48:34 +00:00
Hung Nguyen
e01c2bc651
Warn in Gradle log when incremental compilation fails
...
When incremental compilation fails, we currently log it at the `debug`
level (and fall back to non-incremental compilation). This commit will
change it to `warning` so that we can get more user reports, which will
allow us to fix the root cause.
Also make sure the warning includes a stack trace.
Additionally, let ReportSeverity.fromCode() return a non-null value
or throw an exception otherwise as that case is not expected.
^KT-52839 In Progress
2022-07-15 10:48:34 +00:00
Mikhail Glukhikh
623f832bfd
FIR: fix private-to-this corner case with outer class type parameter
...
Related to KT-49875
2022-07-15 07:57:42 +00:00
Mikhail Glukhikh
d16e5e5e50
FIR: Support checking PRIVATE_TO_THIS visibility #KT-49875 Fixed
2022-07-15 07:57:41 +00:00
Mikhail Glukhikh
83200f8774
FIR: Support inferring PRIVATE_TO_THIS visibility see KT-49875
2022-07-15 07:57:41 +00:00
Alexander Udalov
3b613b3745
Fix some tests related to direct invoke optimization
...
- Fix test data of light class tests
(SymbolLightClassesForLibraryTestGenerated).
- Revert the changes in kt8666.kt because they fail on JS IR, and it
seems that this test is mostly needed for JS anyway.
- Use 'invoke(' as the pattern in bytecode text tests because plain
'invoke' is used when these tests are run on JDK 11, where indy string
concatenation is enabled by default and therefore we reference
`java/lang/invoke/StringConcatFactory`.
2022-07-15 02:29:01 +02:00
Steven Schäfer
8014712569
JVM IR: Check that we generate callable references in tests
2022-07-14 23:24:18 +02:00
Steven Schäfer
2acfb3a41f
JVM IR: Avoid direct lambda invokes in inline tests
2022-07-14 23:24:18 +02:00
Steven Schäfer
f0760e0550
JVM IR: Move direct invoke optimization into a separate pass
...
This also changes the transformation to inline the body of a directly
invoked lambda rather than producing a call to an anonymous local
function. The latter is unsupported in inline functions and problematic
from an ABI perspective, since it results in functions whose name
depends on the entire source code up to this point.
2022-07-14 23:24:18 +02:00
Steven Schäfer
7d59c7689c
JVM IR: Avoid direct invokes in callable reference tests
...
Due to the direct invoke optimization, most callable reference tests
were not generating callable references/lambdas.
2022-07-14 23:24:18 +02:00
Steven Schäfer
f0238766df
JVM IR: Avoid patchDeclarationParents after inlining
...
The code in IrInlineUtils.kt already updates declaration parents.
2022-07-14 23:24:18 +02:00
Stanislav Erokhin
a18ac2ac91
Restore JvmIrCodegenFactory constructor for compatibility with AS 221
2022-07-14 16:30:12 +00:00
Alexander Likhachev
a9e5074330
[Gradle, JS] Update IC test project with multiple artifacts
2022-07-14 13:21:07 +00:00
Alexander Likhachev
e3f6ba4502
[Gradle, JS] Handle empty directories in task outputs backups
...
#KT-52925 Fixed
2022-07-14 13:21:07 +00:00
Alexander Likhachev
10146a7028
[Gradle, JS] Make the KT-51801 test to cover KT-52925
2022-07-14 13:21:06 +00:00
Denis.Zharkov
9f84e7651b
Add issue link to deprecation warning message
...
^KT-29168 Fixed
2022-07-14 13:04:35 +00:00
Alexander Likhachev
5cae57cf28
[IC] Flush incremental caches on close
...
#KT-53168 Fixed
2022-07-14 12:55:30 +00:00
Aleksei.Cherepanov
0950205a47
[IC] Add test for lookups flushing
...
#KT-53168
2022-07-14 12:55:29 +00:00
konstantin.tskhovrebov
7d6cf449b1
[KT-53174] Add platform version to synthetic generated Podfile.
2022-07-14 12:20:39 +00:00
Pavel Mikhailovskii
b26155dd9e
KT-53007 Fix accessibility checks when calling a protected member via super@Outer
2022-07-14 13:09:42 +02:00
Yahor Berdnikau
603d043abc
Move Kotlin/Native compiler arguments into :compiler:cli:cli-common
...
This allows to reference them in the Gradle plugins without enabling
kotlin-native part of the repository
^KT-53108 In Progress
2022-07-14 10:57:28 +00:00
Mikhail Glukhikh
13713323cf
Make FirRenderer inherit FirRendererComponents instead of FirPrinter
...
#KT-53024 Fixed
2022-07-14 09:38:46 +00:00
Mikhail Glukhikh
7ce5100946
FirRenderer: slightly change/refactor declaration rendering
2022-07-14 09:38:45 +00:00
Mikhail Glukhikh
ac34fe3306
FirRenderer: code cleanup & move parts to contract renderer
2022-07-14 09:38:44 +00:00
Mikhail Glukhikh
801426d0e6
Simplify creation of FirRenderer
2022-07-14 09:38:44 +00:00
Mikhail Glukhikh
f9fdb5d3bc
Extract separate FirResolvePhaseRenderer
2022-07-14 09:38:43 +00:00
Mikhail Glukhikh
42b3adf33a
Extract separate ConeIdRenderer and get rid of FirRenderer.RenderMode
2022-07-14 09:38:42 +00:00
Mikhail Glukhikh
e484a4a946
Make ConeContractRenderer a renderer component
2022-07-14 09:38:41 +00:00
Mikhail Glukhikh
31a46866b6
Extract separate FirPropertyAccessorRenderer
2022-07-14 09:38:41 +00:00
Mikhail Glukhikh
9f1f777e0d
Extract separate FirValueParameterRenderer
2022-07-14 09:38:40 +00:00
Mikhail Glukhikh
76d5d3a2ec
Extract separate FirModifierRenderer
2022-07-14 09:38:39 +00:00
Mikhail Glukhikh
3fe35e6997
Extract separate FirCallArgumentsRenderer
2022-07-14 09:38:39 +00:00