Svyatoslav Scherbina
940774caaf
Native: remove README.md from binary distributions
...
It is outdated, and the presumed contents are covered by other docs.
2021-03-24 10:56:35 +00:00
Ilya Muradyan
14d386223b
[REPL] Fix unresolved imports caching
...
Before this fix, if some imports were not resolved during compilation,
this result had been saved in caches, and this import couldn't been
resolved during following compilations even if it was added to the
module dependencies. This commit adds special handling of resolution
caches for the REPL compiler.
2021-03-24 13:35:33 +03:00
Ilya Muradyan
ae5fefce51
[REPL] Fix performance problem
...
Configuration updating was done incorrectly,
and it led to performance degradation.
2021-03-24 13:35:33 +03:00
Dmitriy Novozhilov
e00e726bcb
[FIR] Add test for KT-45584
2021-03-24 12:56:17 +03:00
Dmitriy Novozhilov
f4afc2ef44
[FIR] Map dispatch receiver type of function in JvmMappedScope
2021-03-24 12:56:16 +03:00
Dmitriy Novozhilov
b0969f626e
[FIR] Rename SyntheticPropertySymbol to FirSyntheticPropertySymbol
2021-03-24 12:56:15 +03:00
Dmitriy Novozhilov
714871e4a5
[FIR2IR] Add proper toString to Fir2IrBindableSymbol
2021-03-24 12:56:15 +03:00
Dmitriy Novozhilov
7dc3be3b9b
[FIR2IR] Replace star projections with upper bounds for SAM conversion types
2021-03-24 12:56:15 +03:00
Dmitriy Novozhilov
50f2666eba
[IR] Properly render type arguments in error messages
2021-03-24 12:56:14 +03:00
Dmitriy Novozhilov
ee7c90791e
Add workaround for KT-45553
...
This is needed to compile this code with FIR
2021-03-24 12:56:14 +03:00
Dmitriy Novozhilov
de03124f50
[FIR] Fix reporting EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR warning
2021-03-24 12:56:14 +03:00
Dmitriy Novozhilov
21b1d97b30
Add predefined run configuration for FIR tree generation
2021-03-24 12:56:13 +03:00
Dmitriy Novozhilov
3b6d3e5a08
[FIR] Don't record isFromVararg attribute to all properties from constructor
2021-03-24 12:56:13 +03:00
Dmitriy Novozhilov
094287741c
[FIR] Add FirSourceElement.text extension for debug purposes
2021-03-24 12:56:13 +03:00
Dmitriy Dolovov
9aa16faa27
Test integer overflow on div/rem of Int.MIN_VALUE by -1
...
^KT-45136
2021-03-24 09:55:52 +03:00
Dmitriy Dolovov
dfd3b54ee4
Native: Handle integer overflow on div/rem of Int.MIN_VALUE by -1
...
^KT-45136
2021-03-24 09:55:46 +03:00
Vyacheslav Gerasimov
7fe0df2816
Build: Drop include/* project previously used in composite build
2021-03-23 22:52:40 +03:00
Dmitry Petrov
4f250ed498
JVM_IR KT-45377 rewrite constants again after AddContinuationLowering
2021-03-23 16:05:24 +03:00
Ilya Kirillov
0f2aca3280
FIR: use session symbolProvider from symbol for getting it's file
2021-03-23 13:41:03 +01:00
Yahor Berdnikau
d46ad6c0ad
Fix kapt creates output directories on configuration phase.
...
Gradle will create such directories itself. Also it should fix build
cache issue with kapt tasks - build cache was disabled
due to the 'overlapping outputs'.
^KT-45532 Fixed
2021-03-23 15:20:35 +03:00
Ilmir Usmanov
5abc45e6ff
IC IDE: Add description of intention to add @JvmInline to value class
...
#KTIJ-5663
2021-03-23 12:13:05 +01:00
Ilmir Usmanov
823d2d0748
IC IDE: Add intention to add @JvmInline annotation to value class on JVM
...
#KTIJ-5663 Fixed
2021-03-23 12:13:03 +01:00
Alexander Udalov
ea01c97a8e
Write underlying property name & type for inline class to metadata
...
This will be used in the compiler starting from 1.5.20 instead of the
currently used approach of looking for the single value parameter of the
primary constructor. The problem with the current approach is that
primary constructor can be private (since 1.4.30) and the property could
always be private. Relying on private declarations from metadata is
dangerous; for example lazy IR doesn't usually create stubs for private
declarations, and it didn't create stubs for private inline class
constructors before b5f9b1df , which led to the problem reported in
KT-44723.
2021-03-23 11:45:22 +01:00
Mark Punzalan
5baa2e0e7c
FIR IDE: Simplify the diagnosticFixFactory() API by removing
...
HLApplicatorWithTargetAndInput and making HLQuickFix public.
2021-03-23 11:04:33 +01:00
Mark Punzalan
062adf21de
FIR IDE: Use KtFirExpressionTypeProvider.getExpectedType() in
...
ReplaceCallFix.
2021-03-23 11:04:33 +01:00
Mark Punzalan
e9298d1d71
FIR IDE: Allow FIR-specific "after" files for
...
AbstractHighLevelQuickFixTest.
2021-03-23 11:04:33 +01:00
Mark Punzalan
14ca2d207d
FIR IDE: Additional support for
...
KtFirExpressionTypeProvider.getExpectedType():
- Infix function parameter
- Variable assignment
- Property declaration
- Function expression body
2021-03-23 11:04:33 +01:00
Mark Punzalan
164d7d80b6
FIR IDE: Enable ReplaceCallFix for UNSAFE_CALL.
2021-03-23 11:04:33 +01:00
Mark Punzalan
3ebdfa3850
FIR IDE: Implement applicatorByQuickFix() to re-use quick fix actions
...
from idea-frontend-independent.
2021-03-23 11:04:33 +01:00
Mark Punzalan
1b649fa4cb
FIR IDE: Generate quickfix tests related to ReplaceCallFix.
2021-03-23 11:04:33 +01:00
Mark Punzalan
05deecaafa
FIR IDE: Move ReplaceCallFix to idea-frontend-independent.
2021-03-23 11:04:33 +01:00
Andrei Klunnyi
482c677274
KT-44299 [Sealed Interfaces]: when exhaustiveness in IDE considers java inheritor
...
^KT-44299 fixed
2021-03-23 10:55:20 +01:00
hungvietnguyen
7c4225b9d1
[Kapt] Ensure flag names and default values are consistent
...
Group flag names and default values in one place to make the code easier
to read and prevent mistakes and inconsistencies.
2021-03-23 10:41:28 +03:00
Igor Chevdar
752be27557
[K/N][tests] Disabled failing test for now
2021-03-23 11:57:56 +05:00
Svyatoslav Scherbina
818659f2bb
Native: fix bug in KType support affecting only stdlib
...
Don't use IrClass.declarations to find enum entries during lowerings,
because this enum might already be lowered and thus have all entries
removed.
2021-03-23 09:45:40 +03:00
Ilmir Usmanov
886e3e6655
Update tests, which check -X... flag in LauncherScriptTest
...
Previously, -Xallow-result-return-type was used to test, whether the
launcher parses -X... flags correctly, however, it has no effect -
returning Result is allowed anyway. So, instead, use -Xno-inline and
check runtime behavior.
2021-03-22 23:14:23 +00:00
Vyacheslav Karpukhin
499ffd610a
AndroidDependencyResolver: codestyle fixes after review
2021-03-22 22:29:12 +01:00
Vyacheslav Karpukhin
ac8d135a21
AndroidDependencyResolver:
...
1. Correctly process project dependencies
2. Don't include variant-specific dependencies into more generic sourcesets
2021-03-22 22:29:12 +01:00
Vyacheslav Karpukhin
3ce00f6eb4
AndroidDependencyResolver: when operating without Android IDE plugin, don't duplicate dependencies for Android sourcesets
2021-03-22 22:29:12 +01:00
Alexander Udalov
b5f9b1dfc0
JVM IR: support inline classes with private constructors from other modules
...
#KT-44723 Fixed
2021-03-22 21:57:07 +01:00
Alexander Udalov
dac218dc39
Minor, regroup compileKotlinAgainstKotlin tests on inline classes
2021-03-22 21:57:04 +01:00
Ilmir Usmanov
3124a4ddae
Minor. Update test data
2021-03-22 17:35:08 +01:00
Mads Ager
571971c5db
JVM: Fix local variable ranges in state machine transform.
...
When a suspension point is inlined, the inlining local spans
unspilling code where the local slot has not been initialized.
The transformer already inserted initialization code for the local,
however, it did not split the local variable table. Therefore,
the inlining local is defined on instructions where the local
slot has no value (namely the instructions that initialize
the local slot on the unspilling path).
This change adds splitting of the local variable table as well.
When updating to a new version of D8, the uninitialized local
slot showed up. D8 will repair it in this case, but it is
better to not generate such code.
2021-03-22 17:35:06 +01:00
Aleksei.Cherepanov
911c24d594
Additional trust artifacts for JPS build
2021-03-22 19:08:36 +03:00
Svyatoslav Scherbina
0730833135
Remove kotlin-native/common/src/hash
...
It is no longer used.
2021-03-22 16:03:31 +00:00
Svyatoslav Scherbina
ce239ccc3e
Native runtime: remove unused dependency on common/src/hash
...
No longer required after c8633d8bda .
2021-03-22 16:03:30 +00:00
Svyatoslav Scherbina
2a7ccb11e8
Native compiler: remove unused dependency on common/src/hash
2021-03-22 16:03:29 +00:00
Svyatoslav Scherbina
a471bbc185
Native compiler: remove unused hashing code
...
It was used to compute hashes for class names, but this is no longer
required after c6ac807034 .
2021-03-22 16:03:28 +00:00
Svyatoslav Scherbina
39d748dbbb
Native compiler: replace C++ CityHash64 impl by Kotlin one
2021-03-22 16:03:28 +00:00
Ilya Kirillov
32be3cc703
FIR IDE: do not require read action to collect diagnostics
2021-03-22 16:18:24 +01:00