Dmitry Savvinov
77ebe1085d
[klib tool] Return unbound symbols for dump-ir mode
...
This is more convenient behaviour for debugging with klib-tool than
just failing.
Note that enabling Partial Linkage globally in klib-tool is undesirable,
as it can auto-tweak IR (e.g. when overrides do not match), thus
distorting the rendered IR
^KT-61143 Fixed
2024-01-22 17:11:56 +00:00
Pavel Kunyavskiy
09713bb89e
[Fir2IR] Don't add invisible fake overrides to Lazy class
...
^KT-65056
2024-01-22 13:30:05 +00:00
Vladimir Sukharev
e958e57c42
[K/N][Tests] Migrate test forwardDeclarationsCast.kt
...
^KT-61259
2024-01-22 12:29:57 +00:00
Vladimir Sukharev
2f3705f0eb
[K/N][Tests] Move funptr.kt to standalone tests due to OUTPUT_DATA_FILE directive
...
^KT-61259
2024-01-22 12:29:57 +00:00
Vladimir Sukharev
c286b0efd7
[K/N][Tests] Migrate tests forwardDeclarationsTwoLibs.kt
...
^KT-61259
2024-01-22 12:29:57 +00:00
Vladimir Sukharev
bd688b3ef7
[K/N][Tests] Migrate tests kt49034*.kt
...
^KT-61259
2024-01-22 12:29:57 +00:00
Artem Kobzar
57a4d09ad2
[K/Wasm] Add tests for nested external declarations + fix them
2024-01-22 11:55:09 +00:00
Ivan Kylchik
2c38685486
[IR] Report backend error if annotation's arg can't be evaluated
...
Just a safety measure to ensure that we will not produce the wrong code.
2024-01-22 11:03:16 +00:00
Vladimir Sukharev
5d60c52e30
[K/N] Remove platform-dependent check from IrObjCOverridabilityCondition
...
^KT-57640 Fixed
2024-01-22 09:50:15 +00:00
Igor Chevdar
006410641b
[IR][K/JS] Removed unused function
2024-01-22 09:34:42 +00:00
Igor Chevdar
978bf3d38d
[IR] Refactored a bit InlineFunctionResolver
2024-01-22 09:34:42 +00:00
Igor Chevdar
f3a807c507
[IR] Fixed a problem in FunctionInlining
...
#KT-64868 Fixed
2024-01-22 09:34:42 +00:00
Vladimir Sukharev
d2b810c373
[K/N][Tests] Polish sharing_with_weak.kt
...
^KT-61259
2024-01-19 18:37:43 +01:00
Vladimir Sukharev
39e2187d31
[K/N][Tests] Split filecheck part from test direct.kt
...
^KT-61259
2024-01-19 18:31:25 +01:00
Vladimir Sukharev
833e125450
[K/N][Tests] Polish test sharing_with_weak.kt
...
^KT-61259
2024-01-19 18:22:22 +01:00
Vladimir Sukharev
4aa8774c6e
[K/N][Tests] Migrate test direct.kt
...
^KT-61259
2024-01-19 18:22:22 +01:00
Vladimir Sukharev
e59a80bd69
[K/N][Tests] Migrate test overridabilityCondition.kt
...
^KT-61259
2024-01-19 18:22:21 +01:00
Vladimir Sukharev
2d0009ff99
[K/N][Tests] Migrate test illegal_sharing_with_weak.kt
...
^KT-61259
2024-01-19 18:22:21 +01:00
Vladimir Sukharev
647a907204
[K/N][Tests] Migrate kt48816 tests
...
^KT-61259
2024-01-19 18:22:21 +01:00
Vladimir Sukharev
cc13888dd0
[K/N][Tests] Migrate second ObjC test with framework
...
^KT-61259
2024-01-19 18:22:21 +01:00
Vladimir Sukharev
1b18f4ed1e
[K/N][Tests] Migrate first ObjC test with framework
...
^KT-61259
2024-01-19 18:22:20 +01:00
Vladimir Sukharev
6e2df0e086
[K/N][Tests] Migrate first Apple-specific test
...
^KT-61259
2024-01-19 18:22:20 +01:00
Ilya Chernikov
d6c9a492ad
K2 Scripting: disable K2 lightTree-based script tests
...
they were enabled by mistake and do not work properly until
LT parsing is implemented
depends on #KT-60127
2024-01-19 15:54:54 +00:00
Ilya Chernikov
a5c2eb66a2
K2 Scripting: add missing contracts resolving in scripts
...
#KT-64074 fixed
2024-01-19 15:54:53 +00:00
Ilya Chernikov
3b70b3d92d
K2 Scripting: restore some codegen scripting tests for K2
2024-01-19 15:54:53 +00:00
Mikhail Glukhikh
a83d2b7a67
FirJavaElementFinder: return packages with true isValid()
...
#KT-65111 Fixed
2024-01-19 15:52:14 +00:00
Mikhail Glukhikh
ae6aef3a63
K2: reproduce KT-65111
2024-01-19 15:52:14 +00:00
Sergej Jaskiewicz
bc5810ee67
[FIR2IR] Don't use descriptor manglers in FIR2IR
...
They don't do anything, only complicate the initial configuration.
KT-64990
2024-01-19 13:36:00 +00:00
Sergej Jaskiewicz
8b4cc050eb
[FIR2IR] Remove linkViaSignatures from Fir2IrConfiguration
...
^KT-64809 Fixed
2024-01-19 13:36:00 +00:00
Sergej Jaskiewicz
e8aa05928d
[FIR2IR] Unconditionally disable linkViaSignatures on JVM
...
It was an experimental compilation mode that we don't need anymore.
KT-64809
2024-01-19 13:35:59 +00:00
Artem Kobzar
7568ee5a79
[K/JS] Add VOID optimization on object properties + align with the optimization the JS Plain Object plugin
2024-01-19 13:03:06 +00:00
Alexander Udalov
b2c30921e4
JVM: support JVM-specific primitive/wrapper type overridability check
...
#KT-62045 Fixed
2024-01-19 12:30:48 +00:00
Alexander Udalov
39327a37cb
IR: pass also unsubstituted member to external conditions
...
In the future version of JavaIncompatibilityRulesOverridabilityCondition
for IR, we need to compute the original JVM signature of a declaration.
In descriptors, it's possible simply by using `original`.
2024-01-19 12:30:48 +00:00
Ivan Kylchik
e15894e98e
[FIR] Properly check when expression in FirConstCheckVisitor
...
Added proper checks for `FirWhenSubjectExpression` and
`FirElseIfTrueCondition`
2024-01-19 11:40:39 +00:00
Ivan Kylchik
6c3aa6568e
[FIR] Properly check constructor call in FirConstCheckVisitor
2024-01-19 11:40:39 +00:00
Ivan Kylchik
1423576d1a
[FIR] Properly check FirIntegerLiteralOperatorCall in FirConstCheckVisitor
2024-01-19 11:40:39 +00:00
Ivan Kylchik
c51d68e227
[FIR] Mark error expressions as valid consts in FirConstCheckVisitor
2024-01-19 11:40:39 +00:00
Ivan Kylchik
521306e5e9
[FIR] Move most property checks in corresponding fun in FirConstCheckVisitor
...
Basically moved property check code from
`visitQualifiedAccessExpression` into
`visitPropertyAccessExpression`
2024-01-19 11:40:39 +00:00
Ivan Kylchik
76268c941a
[FIR] Properly check FirPropertyAccessExpression in FirConstCheckVisitor
2024-01-19 11:40:39 +00:00
Ivan Kylchik
10c687fa32
[FIR] Move most of the expression's checks into FirConstCheckVisitor
...
The only ones left are checking expression's symbol instead
of the expression itself.
2024-01-19 11:40:39 +00:00
Ivan Kylchik
2657cafa7b
[FIR] Add session property to the FirConstCheckVisitor
2024-01-19 11:40:39 +00:00
Ivan Kylchik
7c9e5a1a4b
[FIR] Move const check utils functions into FirConstCheckVisitor
...
This is the first step of moving all const check code into
a visitor class.
2024-01-19 11:40:39 +00:00
Ivan Kylchik
4e8adc6693
[FIR] Add new VALID_CONST entry to the ConstantArgumentKind
2024-01-19 11:40:38 +00:00
Ivan Kylchik
c661f654ee
[FIR] Drop useless check cast to FirCall in FirConstChecks
2024-01-19 11:40:38 +00:00
Ilmir Usmanov
19283048a8
Replace bytecode text test with a stepping test
...
#KT-62965
2024-01-19 10:52:39 +00:00
Xin Wang
2e32e13466
JVM Codegen: Mark line number before calling of indy in SAM Conversion
...
Fixes: KT-62965
2024-01-19 10:52:39 +00:00
Pavel Kirpichenkov
ce3c05500e
[LL] Sort modules from the same KMP project in symbol providers
...
Sort dependency modules topologically if they belong to the same KMP
project, preserving their relative positions. Sorting all modules and
changing positions of unrelated modules can be harmful: in the case of
a classpath hell, IDE results can become different from runtime
behavior. Sorting in place can help to avoid this problem, because
conflicting declarations shouldn't be allowed in different source sets
of the same multiplatform project.
KTIJ-27569
2024-01-19 10:20:52 +00:00
Vladimir Sukharev
117ce133bf
[K/N] Remove platform-dependent overridability check for properties
...
^KT-57640 Fixed
2024-01-18 18:43:08 +00:00
Alexander Korepanov
f5d0c22736
[K2 JS] Unmute and link to issue some JS K2 tests
2024-01-18 15:48:55 +00:00
Ilya Kirillov
3a90cb00c7
[LL FIR] reuse the same function for registering K/N FIR session components as in the compiler
...
So, if a new component is registered in the compiler, it's not forgotten for the LL FIR
This registers `FirDelegatedMembersFilter` for K/N modules and fixes KT-64528
^KT-64528 fixed
2024-01-18 15:43:52 +00:00