Pavel Mikhailovskii
65b2cee913
KT-23397 Optimize out field for property delegate when it's safe (JVM)
2022-06-07 10:46:01 +00:00
Ilmir Usmanov
f922684169
Minor. Add regression test
...
#KT-52561 Fixed
2022-06-02 13:26:24 +00:00
Denis.Zharkov
c1904004c4
FIR: Fix case when smartcast receiver is used for call to private method
...
^KT-54432 Fixed
2022-06-01 16:02:30 +00:00
Victor Petukhov
96d1f89836
[BE] Support until operator in back-ends
2022-05-31 08:42:56 +00:00
Alexander Shabalin
ed881f3f31
[K/N] Make PlatformManager serializable
...
Merge-request: KT-MR-6358
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2022-05-30 15:52:08 +00:00
Pavel Mikhailovskii
2ceccec2b8
KT-52551 Create a static initialization section in case of delegation to a property reference from a file class
2022-05-30 14:16:18 +00:00
Ivan Kochurkin
0ef043b074
[FIR2IR] Consider property init value from nested class, ^KT-52057 Fixed
2022-05-29 23:41:23 +03:00
Dmitriy Dolovov
48c4d4cf21
[Native][tests] Rename MemoryModel.DEFAULT to MemoryModel.LEGACY
2022-05-28 22:59:58 +03:00
Victor Petukhov
0199c76c06
[FE 1.0] Check callable reference return type safety during resolution
...
^KT-51844
^KT-52503 Fixed
2022-05-27 13:56:34 +00:00
Victor Petukhov
51551998c7
Revert "[FE 1.0] Take care callable reference candidates with recursive candidate return type"
...
This reverts commit d04beaa8bb49c99ceb993f3f7b32169c393b39f4.
2022-05-27 13:56:33 +00:00
Victor Petukhov
b411eb36e8
[FE 1.0] Take care standalone lambdas during updating types in the builder inference
...
^KT-50520 Fixed
2022-05-27 13:56:32 +00:00
Dmitriy Dolovov
992ef3db44
[Native][tests] Lower memory requirements for Gradle test tasks
2022-05-25 17:01:26 +03:00
Dmitriy Dolovov
93dad4837c
[Native][tests] Don't log memory usage in Gradle build
...
Memory logging has been moved to the Native test infrastructure. It is performed during Gradle test runner execution.
2022-05-24 10:39:31 +00:00
Dmitriy Dolovov
70aaa212a5
[Native][tests] Track and report memory usage while tests are running
2022-05-24 10:39:30 +00:00
Dmitriy Dolovov
009e7f5c3a
[Native][tests] Special logger to pass messages directly to Gradle console
2022-05-24 10:39:29 +00:00
Dmitriy Dolovov
1b9768a385
[Native][tests] Fix passing max heap space for Native compiler
2022-05-24 10:39:29 +00:00
Georgy Bronnikov
7605494f2b
Fir2Ir: provide fake file-level signatures for toplevel privates
...
We need to supply signatures for private declarations even when their
containing file is not known. In situations where the FirDeclaration in
question is already known (i.e. where we are never going to serach for
the declaation based on that signature), FirDeclaration itself is
sufficient as a key.
2022-05-19 12:02:44 +02:00
Georgy Bronnikov
3a4b8962f9
Fir2Ir: simplify getCachedIrTypeParameter
...
I could not figure out the reason for the special case in that function.
Tests do not show anything useful.
2022-05-19 12:02:44 +02:00
Georgy Bronnikov
49576e0cbb
Fir2Ir: handle nested class references in type parameter bounds
2022-05-19 12:02:44 +02:00
Georgy Bronnikov
39bba7973c
Fir2Ir: create file level signatures where appropriate
...
This is godugly code, where a flag for file level signatures is passsed
around.
An alternative would be not to create file level signatures for toplevel
private clases, since those still need unique names, at least on JVM.
But that would break binary compatibility.
Signatures are due for overhaul anyway. Hopefully this code can be
reverted at that point.
2022-05-19 12:02:43 +02:00
Dmitriy Dolovov
deb9039b0f
[IR][tests] Add tests for IR linkage issues related to properties
2022-05-18 18:05:05 +03:00
Dmitriy Dolovov
8e8ecc48ad
[IR][tests] Add tests for removal-of-abstract-fun IR linkage case
...
^KT-50771
2022-05-18 18:04:26 +03:00
Dmitriy Dolovov
ec155653f0
[Native][tests] Log memory usage in Gradle build
2022-05-18 09:44:28 +00:00
pyos
513ef575ce
JVM: correctly merge typed null values
...
1. merge(null of type A, null of type B) = null of unknown type;
2. merge(null of type A, something of type B) = merge(unknown null, B).
^KT-52311 Fixed
2022-05-17 11:58:06 +00:00
Dmitriy Dolovov
6cf945f512
[Native][tests] Don't enforce test mode for KLIB ABI tests
2022-05-16 13:42:01 +00:00
Pavel Kunyavskiy
9801a21abb
[K/N] Enable new mm for native by default
2022-05-11 10:26:13 +00:00
Ilmir Usmanov
4f53b085ec
Do not override collection stub, if the override is suspend
...
but the stub is not. The other way around should be OK.
#KT-52237 Fixed
2022-05-09 23:16:58 +00:00
pyos
b19b265735
JVM_IR: generate continuation classes for suspend inline references
...
This is somewhat suboptimal since this results in `::suspendInline`
generating 2 classes while `{ suspendInline() }` only creates 1, but
it's the best allowed by the existing hierarchy of classes in stdlib. At
least it works?
^KT-50832 Fixed
2022-05-09 23:15:05 +00:00
Victor Petukhov
9f31f074da
[FE 1.0] Take care callable reference candidates with recursive candidate return type
...
^KT-51844 Fixed
2022-05-09 19:23:43 +00:00
Victor Petukhov
7675361380
[FE 1.0] Continue completion of calls inside that builder inference call postponed type variables of which has already been inferred
2022-05-09 12:38:39 +00:00
Victor Petukhov
6027c2a9aa
[FE] Substitute fixed type variables with inferred stub types
...
Actually, a type variable might be fixed into a stub type. Such stub type should be substituted before sub calls completion
^KT-51988 Fixed
2022-05-09 12:38:37 +00:00
Dmitriy Dolovov
50de3d6257
[Native][tests] Add "compile only tests" mode
2022-05-06 15:02:59 +00:00
Dmitriy Dolovov
e15000a6c2
[Native][tests] Add "force standalone tests" mode
2022-05-06 15:02:58 +00:00
Dmitriy Dolovov
ebcbb9a6a6
Minor: Code style fix
2022-05-06 15:02:57 +00:00
Alexander Udalov
6d664bcd10
JVM IR: fix operand type for CompareTo intrinsic
...
It's incorrect to take the first parameter type from the expression
itself because it can be nullable if smart casts are used. And if it's
nullable, it's mapped to the wrapper type and calling
`comparisonOperandType` for it makes no sense. Instead, take the type
from the callee function, as it's guaranteed to be mapped to a JVM
primitive type.
E.g. in `test1` function in the added test, the problem was that the
dispatch receiver type of the call expression is `Double?`, which is
mapped to `java/lang/Double`, whereas we clearly wanted to obtain the
primitive `D` (double) type.
#KT-52163 Fixed
2022-05-05 23:06:21 +02:00
Zalim Bashorov
2c20a71d08
[Codegen tests] Specify JVM as target backend for inferenceFlexibleTToNullable.kt
2022-05-05 21:03:37 +00:00
Victor Petukhov
fb76d819f0
[FE] Erase type parameters of super types during intersection type emptiness check as well
2022-04-27 19:50:27 +00:00
Victor Petukhov
0f1d212fc5
[FE] Fix tests
2022-04-27 19:50:27 +00:00
sebastian.sellmair
204bc4ca95
[Commonizer] Provide union of forwardDeclarations as common dependencies
...
^KT-52050 Verification Pending
The issue described in KT-52050 happened, because forwardDeclarations
were not carried into next commonization steps. For commonization
it is fair to choose the union of all modules forwardDeclarations
as common dependency (instead of a union), since we can assume that
all those forward declarations will be provided.
2022-04-22 08:47:39 +00:00
Dmitriy Dolovov
c1a3bf1343
[Native][tests] Update testing information in HACKING.md
2022-04-19 16:02:46 +03:00
Dmitriy Dolovov
59a136574a
[Native][tests] New test infra: fail immediately if static cache for libs from the distribution is required but there is no such cache
2022-04-15 15:11:41 +03:00
Dmitriy Dolovov
3b3dab3d43
[Native][tests] Forbid using thread state checker with cache
2022-04-15 15:11:41 +03:00
Igor Chevdar
231fe42c0a
[klibs] Fixed a bug in the signature-to-descriptor searcher
...
#KT-51927 Fixed
2022-04-14 07:33:56 +00:00
Yahor Berdnikau
78cc2365b0
Fix gradle api dependency version in variants
...
Common SourceSet was forcing gradle api version to be the same
in all plugin variants via 'extendsFrom(..)'.
^KT-49227 In Progress
2022-04-12 14:48:48 +00:00
Dmitriy Dolovov
24552a625c
[Native][tests] Reorganize OUTPUT_DATA_FILE directive
...
Use it as one of [TestRunCheck]s.
2022-04-09 19:06:26 +00:00
Dmitriy Dolovov
996ff5085d
[Native][tests] Introduce EXIT_CODE directive
...
It allows to specify the expected exit code for STANDALONE_NO_TR tests.
2022-04-09 19:06:25 +00:00
Dmitriy Dolovov
261e177b39
[Native][tests] Introduce EXPECTED_TIMEOUT_FAILURE directive
...
It allows to correctly handle tests that were failed by timeout where such failure is the expected behavior.
2022-04-09 19:06:24 +00:00
Dmitriy Dolovov
7cf3ca29af
[Native][tests] Fix: Avoid including similar but mutually exclusive shared modules into the same compilation
2022-04-09 19:06:24 +00:00
Ilmir Usmanov
1e3f84402d
Safely check for suspend function parent
...
The issue here is that the function can be in unlowered file, and
thus its parent package fragment and not class.
#KT-49317 Fixed
2022-04-08 23:31:49 +02:00
Pavel Punegov
3138b29fb2
[build] Requre common capability for gradle plugin test dependency
2022-04-08 18:06:41 +03:00