Vyacheslav Gerasimov
bfcac5b091
Build: Update kotlin-build-gradle-plugin to 0.0.4
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
283933ace5
Build: Add localBuildCacheEnabled property
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
729b4d33cf
Build: Replace deprecated compile configuration with implementation in build script of buildSrc
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
85dcc65695
Build: Use kotlin-build-gradle-plugin in build script of buildSrc
2019-12-13 20:11:18 +03:00
Alexander Shustanov
c9cba34d67
KT-35454 Weird implementation of KtUltraLightFieldImpl.isEquivalentTo
2019-12-13 20:07:45 +03:00
Dmitry Savvinov
f45c11c6f2
Use constantSdkDependencyIfAny in getKeyForSdk as well
2019-12-13 19:11:02 +03:00
Dmitriy Dolovov
5b8be16f13
Kotlin/Native IDE plugin clean-up
...
- Re-organize classes
2019-12-13 15:52:25 +03:00
Dmitriy Dolovov
36ed29d4d5
Convert KotlinNativeMetaBinary from Java to Kotlin
2019-12-13 15:52:17 +03:00
Dmitriy Dolovov
511a4089ca
Kotlin/Native IDE plugin clean-up
...
- Drop KotlinNativeMetadataVersion in favor of KlibMetadataVersion
- Drop KotlinNativeProtoBasedClassDataFinder in favor of KlibMetadataClassDataFinder
2019-12-13 15:52:10 +03:00
Dmitriy Dolovov
992a702762
Minor: organized imports
2019-12-13 15:52:03 +03:00
Dmitriy Dolovov
deb4025987
Fix: Use more precise KLIB compatibility check (by metadata version)
...
Issue #KT-34811
2019-12-13 15:51:54 +03:00
Denis Zharkov
34e1ab4e7a
FIR: Leave single implementation of ConeInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
28f4d62ccf
FIR: Add different extension for FirSession.inferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
b33d0c2594
Minor. Reformat ConeInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
0baf1e8fa7
Minor. Get rid of UniversalConeInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
bbc9927bce
Minor. Get rid of DataFlowInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
0064429339
Avoid using TypeSystemInferenceExtensionContextDelegate in FIR
...
It's only needed in old FE to avoid clashes when initializing DI
The main idea is gettind rid of intermediate interfaces because
each of them adds another intermediate DefaultImpls call
2019-12-13 14:39:06 +03:00
victor.petukhov
25fdbdfecb
NI: Update FIR test data
2019-12-13 11:49:32 +03:00
Yan Zhulanow
a19f8ffe6a
Revert "Debugger: Add IR-powered ranking tests"
...
This reverts commit ce21a559
Because of the erroneous behavior in 'BuilderFactoryForDuplicateSignatureDiagnostics.groupMembersDescriptorsBySignature', two functions with arguments of different inline class types are considered to have the same JVM signature.
Before the error wasn't reported, as classes didn't have proper source elements.
This issue has to be fixed before enabling ranking tests.
2019-12-13 12:23:24 +09:00
Victor Petukhov
1534e2b76d
NI: Actualize FIR test after 2d5a05466d
2019-12-13 00:17:37 +03:00
Victor Petukhov
07269661b4
NI: Allow to resolve to functions with SAM conversion and passing array without spread as vararg (with warning)
...
^KT-35224 Fixed
2019-12-12 23:46:16 +03:00
Simon Ogorodnik
fe875d628d
Revert "[FIR] Fix outputs for logs of modularized test"
...
This reverts commit ae15fa76
2019-12-12 21:23:27 +03:00
Simon Ogorodnik
60cc9fa6f5
Revert "[FIR] Fix outputs for logs of modularized test"
...
This reverts commit ae15fa76
2019-12-12 20:55:13 +03:00
victor.petukhov
71cb65c064
NI: Add flexible Nothing to trivial constraints to filter it
2019-12-12 18:45:11 +03:00
victor.petukhov
2d5a05466d
NI: Fix some unwanted exclusions constraints with remained corresponding optimization
2019-12-12 18:45:07 +03:00
Juan Chen
15f6beed57
Fix Compose extension points in compiler.xml
2019-12-12 18:30:54 +03:00
Mikhael Bogdanov
b95e7dfb6f
Don't mark super call to method from any as interface one
...
#KT-35426 Fixed
2019-12-12 15:29:53 +01:00
Igor Chevdar
df2adb060c
Bumped K/N version
2019-12-12 16:53:59 +03:00
Igor Chevdar
a7b3f26cef
[native-gradle-plugin] Supported klib cache (building and using)
2019-12-12 16:53:59 +03:00
Ilya Goncharov
364d6a5afa
[Gradle, JS] Actualize NPM dependencies
2019-12-12 16:44:30 +03:00
Dmitriy Novozhilov
f1f2e1830b
[FIR-TEST] Fix incorrect testdata
2019-12-12 16:11:47 +03:00
Dmitriy Novozhilov
4faa2c0c2c
[FIR] Replace static cone types for integers with default classIds in ILT
2019-12-12 16:11:47 +03:00
Dmitriy Novozhilov
c6b9593157
[FIR-TEST] Add identity checker of old frontend and fir testdata to old FE diagnostics tests
2019-12-12 16:11:47 +03:00
Dmitriy Novozhilov
579cb5014a
[FIR-TEST] Add !FIR_DUMP directive to diagnostics tests from old frontend
2019-12-12 16:11:47 +03:00
Dmitriy Novozhilov
2536fa0cd5
[FIR-TEST] Add new testdata generated after changes in previous commit
2019-12-12 16:11:46 +03:00
Dmitriy Novozhilov
e9c02a1cca
[FIR-TEST] Add fir diagnostics test based on diagnostics tests from old frontend
2019-12-12 16:11:46 +03:00
Dmitriy Novozhilov
e7f8c8e155
[TEST] Regenerate tests after previous commit
2019-12-12 16:11:45 +03:00
Dmitriy Novozhilov
5b1f96ba1b
[TEST] Add ability to exclude some testdata with pattern in test generator
2019-12-12 16:11:42 +03:00
Dmitriy Novozhilov
ae15fa7676
[FIR] Fix outputs for logs of modularized test
2019-12-12 16:11:42 +03:00
Georgy Bronnikov
bb301f8aca
JVM_IR: fix wrong check in skipping captured vars
2019-12-12 15:38:18 +03:00
Mikhael Bogdanov
26032e4297
Split exception table on finally insertion before non-local return
...
in nested try blocks without finally
#KT-31653 Fixed
2019-12-12 13:33:40 +01:00
Mikhael Bogdanov
c335015c05
Generate proper exception table
...
Don't forget to split nested try blocks without finally block
on generating finally blocks from outer ones.
#KT-31923 InProgress
2019-12-12 13:33:39 +01:00
Igor Chevdar
078cfc02a5
[IR] Removed wrong validation
...
IrEnumConstructorCall behaves differently whether it is inside IrEnumEntry or not.
Remove the validation for now.
2019-12-12 15:05:47 +03:00
Alexander Udalov
62ef280c53
Add compiler:ir.serialization.jvm to IDEA plugin
...
This fixes a problem caught by the Plugin Verifier. Kotlin IDEA plugin
depends on the JVM IR backend, which depends on ir.serialization.jvm now
2019-12-12 15:03:47 +03:00
Alexander Udalov
5f367278c1
Psi2ir: support generic properties in class delegation
...
Since property accessor descriptors (unlike corresponding IR elements)
do not have type parameters, we need to take them from the corresponding
property to ensure the correct IR for delegated property accessors.
2019-12-12 15:02:32 +03:00
Alexander Udalov
025360edc4
JVM IR: lookup symbols by name in ProgressionHandlers in known classes only
...
Alternatively, we could improve the lookup utilities and their usages to
always find the exact override of a symbol from
Collection/Iterable/CharSequence/etc, but since we need to load the
original symbol anyway in cases when the loop subject's type is a type
parameter, we might as well simplify everything and always reference the
original symbol.
Also improve exception message and removed unused declarations in
IrBackendUtils.kt.
2019-12-12 14:55:47 +03:00
Dmitriy Dolovov
359e49fa02
[Commonizer] Blacklist conflicting K/N functions from commonization
2019-12-12 14:52:31 +03:00
Dmitriy Dolovov
c79fcb8cf3
[Commonizer] Add compatible metadata version checks
2019-12-12 14:52:18 +03:00
Dmitriy Dolovov
503fc4883c
[Commonizer] Log duration of each CLI phase
2019-12-12 14:52:10 +03:00
Dmitriy Dolovov
18117ed1f3
[Commonizer] Serialize commonized metadata for KLIB writer
...
- introduce EmptyDescriptorTable
- wipe out unused BindingContext from KlibMetadataSerializer
2019-12-12 14:52:02 +03:00