Dmitry Petrov
e72d24960d
JVM we don't merge frames in stack normalization
2021-07-20 19:51:03 +03:00
Dmitry Petrov
91afa3335c
JVM represent uninitialized values explicitly in stack normalization
2021-07-20 19:51:02 +03:00
Dmitry Petrov
bb202318ee
Minor: regenerate tests
2021-07-20 19:51:01 +03:00
Dmitry Petrov
35b4a9d4cc
JVM treat all variable loads as "initialized" in stack normalization
2021-07-20 19:51:00 +03:00
Dmitry Petrov
c8b705fd2d
JVM update license for HackedFixStackMethodAnalyzerBase.kt
2021-07-20 19:50:59 +03:00
Dmitry Petrov
8763235053
JVM specially hacked method analyzer for FixStack
2021-07-20 19:50:58 +03:00
Dmitry Petrov
3ecd612ce7
JVM FixStackValue & FixStackInterpreter
2021-07-20 19:50:57 +03:00
Ilya Chernikov
8eb7e719d3
[minor] fix compiler warnings in scripting modules
2021-07-20 19:42:34 +03:00
Roman Golyshev
59304ba70c
FIR IDE: use correct out of block modification tracker
...
Follow-up to eead868cd2
2021-07-20 19:15:38 +03:00
Roman Golyshev
4e67afcaba
FIR IDE: Use write lock in KtFirOverrideInfoProvider implementation
...
`withFir` takes read lock, but checking visibility or implementation
status actually requires resolving declaration to `STATUS` phase. But
resolve cannot be done in `withFir` function, since resolve requires
write lock, and you cannot take both read and write lock
Now we use `withFirWithPossibleResolveInside`, which takes write lock
and allows to perform resolve in it
This should fix failing `FirOverrideImplementTest` tests
in Kotlin IDE plugin
2021-07-20 19:02:26 +03:00
Roman Golyshev
f3bdadb7d9
FIR IDE: Use correct class symbol in getImplementationStatus
...
The previous check `if (parentClassSymbol !is FirClassSymbol<*>)`
always succeeded, because `parentClassSymbol` was a declaration,
not a symbol
2021-07-20 19:02:24 +03:00
Abduqodiri Qurbonzoda
b65c477e68
Regex.splitToSequence, CharSequence.splitToSequence(Regex) #KT-23351
2021-07-20 14:09:24 +00:00
Abduqodiri Qurbonzoda
1fee6b191f
Fix typo in Sequence.constrainOnce() doc
2021-07-20 14:09:24 +00:00
Mikhael Bogdanov
ff26a471b4
Update diagnostics test affected by ApproximateIntegerLiteralTypesInReceiverPosition and ProhibitSimplificationOfNonTrivialConstBooleanExpressions features
2021-07-20 12:19:57 +00:00
Mikhael Bogdanov
fd605a13d7
Update box tests affected by ApproximateIntegerLiteralTypesInReceiverPosition feature
2021-07-20 11:42:29 +00:00
Andrey Zinovyev
6ef4523555
[FIR] Cache callable names in some composite scopes
2021-07-20 14:25:16 +03:00
Andrey Zinovyev
15be38192b
[FIR] Mark implicit types in accessors as fake
...
To not check their types in deprecation checker
2021-07-20 14:25:14 +03:00
Yahor Berdnikau
caa6b630ab
Apply 'kotlin-android' plugin dynamically.
...
Only apply when one of android plugins are also applied to the project.
If none of AGP plugins are applied and 'kotlin-android' is - exception
in 'afterEvaluate {..}' will be thrown.
^KT-46626 Fixed
2021-07-20 13:44:45 +03:00
Dmitriy Novozhilov
f3116cb64a
Fix NON_EXHAUSTIVE_WHEN_STATEMENT warnings in project code
2021-07-20 13:33:46 +03:00
Dmitriy Novozhilov
a6edd852ff
[FIR] Report NON_EXHAUSTIVE_WHEN_STATEMENT/NO_ELSE_IN_WHEN for when's on logical types
...
^KT-47709 In Progress
2021-07-20 13:33:44 +03:00
Dmitriy Novozhilov
ef635f6a96
[FE 1.0] Report NON_EXHAUSTIVE_WHEN_STATEMENT/NO_ELSE_IN_WHEN for when's on logical types
...
^KT-47709 In Progress
2021-07-20 13:33:43 +03:00
Dmitriy Novozhilov
85c7f386eb
Add Kotlin 1.7 language version
2021-07-20 13:33:41 +03:00
Andrey Zinovyev
4a37de51bb
[FIR] Add ANONYMOUS_INITIALIZER_IN_INTERFACE diagnostic
2021-07-20 13:29:00 +03:00
Yahor Berdnikau
304d01127f
Fix false positive on Java/Kotlin JVM target validation.
...
Fix false positive case when java toolchain was set to <JDK1.8. In such
case Java tasks return '8' (or less) for target instead of '1.8'.
^KT-47520 Fixed
2021-07-20 09:25:06 +00:00
nataliya.valtman
f76864260a
Log changed files into ES statistic
2021-07-20 11:26:55 +03:00
Dmitriy Novozhilov
9b3b386f0a
[FIR IDE] Ignore HMMP compiler test
2021-07-20 10:33:54 +03:00
Dmitriy Novozhilov
749dbf4d44
[FIR] Safe dependency symbol provider in IDE session
2021-07-20 10:33:53 +03:00
Dmitriy Novozhilov
37c096cb10
[FIR] Support creation of IR of common + platform sources in FirAnalyzerFacade
2021-07-20 10:33:52 +03:00
Dmitriy Novozhilov
df11ccf755
[FIR] Fix dependency on jvm descriptors for running fir2ir tests with JPS
2021-07-20 10:33:51 +03:00
Dmitriy Novozhilov
5354e4afe4
[FIR] Ignore some MPP backend tests
...
FIR doesn't support actual declarations in same module where expect
declarations lay
2021-07-20 10:33:50 +03:00
Dmitriy Novozhilov
c3060e861f
[FIR] Add expect actual checker
2021-07-20 10:33:49 +03:00
Dmitriy Novozhilov
faadb08174
[FIR-IDE] Fix generating conversions for pair with non-trivial converters
2021-07-20 10:33:48 +03:00
Dmitriy Novozhilov
b363d95160
[FIR-IDE] Add conversion for Map type
2021-07-20 10:33:47 +03:00
Dmitriy Novozhilov
3b2df7ade3
[FIR] Inherit expect modifier from outer classes
2021-07-20 10:33:46 +03:00
Dmitriy Novozhilov
18af4155b8
[FIR] Properly infer open modality for functions of expect interfaces
2021-07-20 10:33:45 +03:00
Dmitriy Novozhilov
3991383853
[FIR] Provide compiler light classes from all source modules
2021-07-20 10:33:44 +03:00
Dmitriy Novozhilov
8729421e7a
[FIR] Add kind to all FirSessions
2021-07-20 10:33:43 +03:00
Dmitriy Novozhilov
2c1ada131d
[FIR] Don't generate implicit primary constructor for expect classes
2021-07-20 10:33:42 +03:00
Dmitriy Novozhilov
b1e47a46cd
[FIR] Inherit isExpect flag of members from containing class
2021-07-20 10:33:41 +03:00
Dmitriy Novozhilov
9fd25af1a7
[FIR] Add pretty toString to FirSession and ModuleData
2021-07-20 10:33:40 +03:00
Dmitriy Novozhilov
55775a7beb
[FIR] Use proper moduleData in fake override generator
2021-07-20 10:33:38 +03:00
Dmitriy Novozhilov
7f20b83159
[FIR] Use proper moduleData in synthetic properties scope
2021-07-20 10:33:37 +03:00
Dmitriy Novozhilov
7008f02962
[FIR] Create fir classes for java annotations and enums with Final modality
2021-07-20 10:33:34 +03:00
Dmitriy Novozhilov
6e83820f97
Move ExpectActualCompatibility to :compiler:resolution.common
2021-07-20 10:33:33 +03:00
Dmitriy Novozhilov
950db81aa4
[FIR] Split compileModulesUsingFrontendIR to multiple functions
2021-07-20 10:33:32 +03:00
Dmitriy Novozhilov
ec1651df92
[FIR] Store dependencies symbol provider as separate session component
2021-07-20 10:33:31 +03:00
Ilya Matveev
1c5361dacd
[K/N] disable throwThroughBridge test for wasm32
2021-07-20 07:19:38 +00:00
Hung Nguyen
ecf6001365
KotlinCompile: Prepare for classpath snapshotting and diffing
...
This commit prepares necessary components only. The core parts of
classpath snapshotting and diffing will be implemented next.
Bug: KT-45777
Test: Existing IncrementalCompilationClasspathSnapshotJvmMultiProjectIT
and IncrementalJavaChangeClasspathSnapshotIT
2021-07-20 04:04:43 +03:00
Hung Nguyen
41345b2c50
Pass classpath changes from KotlinCompile task to Kotlin compiler
...
This commit wires necessary components only. The actual classpath
changes will be provided later.
Bug: KT-45777
Test: Existing IncrementalCompilationClasspathSnapshotJvmMultiProjectIT
and IncrementalJavaChangeClasspathSnapshotIT
2021-07-20 04:04:43 +03:00
Hung Nguyen
c8b3b6df9c
KotlinCompile: Set up artifact transform to take classpath snapshot
...
This commit sets up the artifact transform only. The actual classpath
snapshotting and computation of classpath changes will be done later.
Bug: KT-45777
Test: Existing IncrementalCompilationClasspathSnapshotJvmMultiProjectIT
and IncrementalJavaChangeClasspathSnapshotIT
2021-07-20 04:04:43 +03:00