Ilmir Usmanov
5ae01c8b2a
Do not duplicate $result in LVT
...
#KT-47749
2021-07-19 22:07:16 +00:00
Ilmir Usmanov
b4d356c5bd
Split LVT record for known nulls
...
Since they are not spilled, the logic for splitting LVT records, that
is applied for spilled variables, was not applied for known nulls.
Fix that by applying the logic to them.
#KT-47749
2021-07-19 22:07:15 +00:00
Mads Ager
83dddd73b0
Always add a local variable for its live ranges.
...
There used to be code that extended a previous range instead.
However, that does not work as that extension could have the
local cover code where it does not exists. Since we no longer
extend the range of locals, we should always introduce a new
one even if there was another one for a previous range.
2021-07-19 22:07:14 +00:00
Dmitry Petrov
e276dec4de
JVM don't merge local values in FixStackAnalyzer
...
We care only about stacks there.
This yields about 10-15% in a pathological case such as KT-41510.
2021-07-19 19:24:57 +03:00
Ilya Kirillov
c266d3e075
LL API: fix kt -> fir mapping for KtValueArgumentList
2021-07-19 18:45:34 +03:00
Ilya Kirillov
c0eb669191
LL API: add basic tests for kt -> fir mapping
2021-07-19 18:45:28 +03:00
Alexander Udalov
9b1de90452
Cache async-profiler when using -Xprofile
2021-07-19 15:14:57 +02:00
Dmitriy Novozhilov
c304363aea
[FE 1.0] Report WRONG_ANNOTATION_TARGET on annotations on type arguments
...
^KT-47772 Fixed
2021-07-19 14:00:24 +03:00
Andrey Zinovyev
046d886850
[FIR] Fix Nothing returning expressions when checking for not null
2021-07-19 13:40:32 +03:00
Andrey Zinovyev
7e9f27436a
[FIR] Fix cfg for safe call inside elvis
2021-07-19 13:40:31 +03:00
Andrey Zinovyev
c160511244
[FIR] Basic support for break inside try-finally blocks
...
Support single try expression only
2021-07-19 13:40:30 +03:00
Andrey Zinovyev
a6984c5198
[FIR] Add NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY diagnostic
2021-07-19 13:40:28 +03:00
Ilmir Usmanov
151478aa27
Raise deprecations of suspend calls with dangling lambda to error
...
#KT-22562
2021-07-19 08:36:36 +00:00
Dmitry Petrov
d41fc0b599
PSI2IR fix suspend conversion tests
...
- support chained suspend conversion + SAM conversion
- support suspend conversion in vararg elements
2021-07-17 09:10:19 +03:00
Victor Petukhov
0cc6fbbc6e
Add tests for converting expressions of function types to suspending functional types
2021-07-17 09:10:17 +03:00
Mads Ager
b51ff799cb
Fix IteratorNext intrinsic to cast its dispatch receiver to
...
the expected type.
^KT-47741 Fixed.
2021-07-16 21:07:11 +02:00
Victor Petukhov
6a1ec92d39
Introduce specific error for calls which could be resolved only with unrestricted builder inference
...
^KT-47747 Fixed
2021-07-16 19:32:36 +03:00
Victor Petukhov
357fda2efa
Initialize builder inference lambda anyway, even a call is inapplicable
...
^KT-47744 Fixed
2021-07-16 19:32:35 +03:00
Mikhael Bogdanov
5f53a2071d
Update test affected by ProperTypeInferenceConstraintsProcessing feature
2021-07-16 13:26:37 +00:00
Mikhael Bogdanov
392dce9a40
Update test affected by PrivateInFileEffectiveVisibility feature
2021-07-16 13:26:36 +00:00
Mikhael Bogdanov
c519003e13
Update test affected by ProhibitSimplificationOfNonTrivialConstBooleanExpressions feature
2021-07-16 13:26:36 +00:00
Mikhael Bogdanov
a657e63dbb
Update test affected by ForbidUsingExtensionPropertyTypeParameterInDelegate feature
2021-07-16 13:26:35 +00:00
Mikhael Bogdanov
70df4f10c5
Update test affected by AbstractClassMemberNotImplementedWithIntermediateAbstractClass feature
2021-07-16 13:26:34 +00:00
Mikhael Bogdanov
f05d470f6a
Update test affected by 'ProhibitJvmFieldOnOverrideFromInterfaceInPrimaryConstructor' feature
2021-07-16 13:26:33 +00:00
pyos
f5dd5ead1f
JVM: produce a better error on @JvmStatic external in interface
...
Java does not permit `static native` methods in interfaces, so this
never worked on any existing JRE.
#KT-43696 Fixed
2021-07-16 15:24:09 +02:00
pyos
ad7ed483f3
JVM_IR: copy correspondingProperty of static external functions
...
Required for correctly mapping their names.
#KT-47715 Fixed
2021-07-16 15:24:05 +02:00
Dmitriy Novozhilov
22f57220c1
[FE 1.0] Report INTEGER_OPERATOR_RESOLVE_WILL_CHANGE on rhs of assign
...
^KT-47729 Fixed
2021-07-16 15:18:46 +03:00
Dmitriy Novozhilov
afb7625d0c
[FE 1.0] Fix false positive INTEGER_OPERATOR_RESOLVE_WILL_CHANGE
...
^KT-47729 In progress
2021-07-16 15:18:44 +03:00
Dmitriy Novozhilov
2fb5f776d8
[FE 1.0] Report INTEGER_OPERATOR_RESOLVE_WILL_CHANGE on calls in parenthesis
...
^KT-47729 In progress
2021-07-16 15:18:38 +03:00
Victor Petukhov
ea4ab46765
Report implicit inferred Nothing only for own type parameters and in delegation resolve
...
^KT-47724 Fixed
2021-07-16 11:21:51 +03:00
Ilya Chernikov
c83614386e
[minor] FIR: (temporarily) fix testdata due to different builtins behavior
2021-07-16 02:24:45 +03:00
Ilya Chernikov
02bf745eef
IR: Remove some unused IrBuiltIns methods
2021-07-16 02:24:44 +03:00
Ilya Chernikov
51dc829aae
IR: Move unsigned classes loading from builtins back to symbols
...
see #KT-47540 for the motivation
2021-07-16 02:24:43 +03:00
Ilya Chernikov
808f5148f3
IR: implemented generic knownBuiltIns property
2021-07-16 02:24:42 +03:00
Ilya Chernikov
a7d494480c
[minor] FIR: minor fixes in FIR-based IrBuiltIns
2021-07-16 02:24:41 +03:00
Ilya Chernikov
56805dded8
[minor] IR: minor builtins infrastructure fixes
2021-07-16 02:24:40 +03:00
Ilya Chernikov
19f52d9aae
[minor] FIR: fix irbuiltins implementation after rebase
2021-07-16 02:24:38 +03:00
Ilya Chernikov
873a7c6ef1
FIR: Implement delayed binding of overriddens in the delegated members
...
fixes the problem when overridden symbols on delegated members were
build on the incomplete fake overrides leading to the incorrect
generation of the function for default parameter and thus to the
codegen error (see withDefaultsMultipleFilesOrder test for an example)
2021-07-16 02:24:37 +03:00
Ilya Chernikov
c9b6847d83
FIR: Add test on delegated member with default param in overridden...
...
sensitive to the file processing order, therefore failing on the
current fir2ir at least with the new irBuiltIns
2021-07-16 02:24:36 +03:00
Ilya Chernikov
a2385b5edd
[minor] FIR: Fix Fir2ir jvmmappedscope functions origins
2021-07-16 02:24:35 +03:00
Ilya Chernikov
6001a81a30
[minor] FIR: Fix IR builtins modality
2021-07-16 02:24:34 +03:00
Ilya Chernikov
5b2acea98f
FIR: Add analysis flag for loading IR builtins from sources
2021-07-16 02:24:32 +03:00
Ilya Chernikov
c2c02ddb27
FIR: refactoring IrBuiltIns initialization logic...
...
to allow to try to load them from dependencies first
and to intialize fake overrides properly
2021-07-16 02:24:31 +03:00
Ilya Chernikov
9de27bc4d8
FIR: Avoid "Mutating Fir2Ir lazy elements" error
...
for classes came from sources
2021-07-16 02:24:30 +03:00
Ilya Chernikov
8f5d5c3ace
FIR: Fixes in testdata after implementing FIR-specific IrBuiltIns
2021-07-16 02:24:29 +03:00
Ilya Chernikov
01f26ec699
FIR: Switch to FIR-based IrBuiltIns in FIR compilation
...
get rid of using old FE for builtins on FIR compilation
2021-07-16 02:24:28 +03:00
Ilya Chernikov
3b20ec46ef
FIR: Set correct modality to default accessors on deserialization
...
fixes some tests with new IrBuiltIns
2021-07-16 02:24:27 +03:00
Ilya Chernikov
5b677c068f
FIR: Refactor JvmMappedScope to fix container-related tests with new builtins
2021-07-16 02:24:25 +03:00
Ilya Chernikov
80a710a5c5
FIR: implementing IrBuiltIns over FIR
2021-07-16 02:24:24 +03:00
Ilya Chernikov
48a3c64901
IR: Refactor primitive arrays handling in the new IrBuiltIns
...
for better compatibility e.g. with native
2021-07-16 02:24:20 +03:00