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
Dmitriy Dolovov
ce376f49fd
[Commonizer] CLI for Kotlin/Native KLIBs
2019-12-12 14:51:55 +03:00
Dmitriy Dolovov
5bc2a4e1e8
[Commonizer] Fix: Don't commonize contents of stdlib
2019-12-12 14:51:44 +03:00
Dmitriy Dolovov
ee42e8c64c
[Commonizer] Fix: Correct resolution of nested classes
2019-12-12 14:51:36 +03:00
Dmitriy Dolovov
a74e364849
[Commonizer] Support Kotlin/Native forward declarations
2019-12-12 14:51:29 +03:00
Dmitriy Dolovov
f4780206d9
[Commonizer] Fix: Skip KNI bridge functions
2019-12-12 14:51:21 +03:00
Dmitriy Dolovov
0a6c132241
[Commonizer] Fix: Cache package fragments with module name
2019-12-12 14:51:14 +03:00
Dmitriy Dolovov
a3e3b43aed
[Commonizer] Fix: approximate signatures with type parameter upper bounds
2019-12-12 14:51:05 +03:00
Dmitriy Dolovov
92656a53ae
[Commonizer] Fix: don't process same package fragments more than once
2019-12-12 14:50:56 +03:00
Pavel Kirpichenkov
8dc2784fc4
Reapply "Drop deprecated displayName from descriptor visibility"
...
Cancel revert due to update in kotlin-mirror/master in native
This reverts commit 39e0c6d55b
2019-12-12 13:57:52 +03:00
Ilya Goncharov
6e19004a4f
[Gradle, JS] Add comment for test
2019-12-12 12:42:35 +03:00
Ilya Goncharov
1bc47b3f6f
[Gradle, JS] Add test for package.json deserializing
2019-12-12 12:42:35 +03:00
Ilya Goncharov
b9a529d7d0
[Gradle, JS] Hack for GSON to get non-null values
2019-12-12 12:42:35 +03:00
Ilya Goncharov
7d98d33e3d
[Gradle, JS] Hack for GSON to get non-null values
2019-12-12 12:42:34 +03:00
Dmitriy Novozhilov
53480c2266
[FIR] Fix fir2ir testdata broken in 4777dd6
2019-12-12 10:04:12 +03:00
Pavel Kirpichenkov
39e0c6d55b
Revert "Drop deprecated displayName from descriptor visibility"
...
This reverts commit 6fa11d1573 .
2019-12-11 18:30:24 +03:00
Pavel Kirpichenkov
d9ef7d0c8a
[NI] Update / mute diagnostics
...
Update diagnostics for new inference.
'Not enough information for parameter' should not be reported for
fake calls and functions with error return type, muted in tests.
2019-12-11 17:53:43 +03:00
Pavel Kirpichenkov
6fa11d1573
Drop deprecated displayName from descriptor visibility
...
Deprecated displayName has been replaced with internal and external display
names for better diagnostic messages.
2019-12-11 17:30:29 +03:00
Simon Ogorodnik
ebc1562b32
Filter out non-xml model files in modularized test
2019-12-11 17:21:02 +03:00
Simon Ogorodnik
48a05e3688
Support prefixed modularized test-data installation
2019-12-11 17:21:01 +03:00
pyos
498b41b148
JVM_IR: do not do invokeinterface on Object methods
...
This works on HotSpot, but might confuse other VMs.
2019-12-11 15:09:37 +01:00
Ilmir Usmanov
df0a86ea57
Add NOP as first instruction in coroutine's try blocks
...
#KT-35035 Fixed
2019-12-11 15:01:41 +01:00
Mark Punzalan
4777dd652b
[FIR] Add tests to catch issues with smartcasting of accesses to functions
...
and properties (type information is stored for the symbol and ALL accesses
to the same symbol are smartcasted).
2019-12-11 16:57:41 +03:00
Mark Punzalan
f031b47363
[FIR] Fix issue with multiple smartcasts of this.
2019-12-11 16:57:41 +03:00
Mark Punzalan
91f97fa611
[FIR] Support FirCheckNotNullCall in HTML dump.
2019-12-11 16:54:15 +03:00
Mark Punzalan
6e00df06e8
[FIR] Add data flow analysis for FirCheckNotNullCall.
2019-12-11 16:54:15 +03:00
Mark Punzalan
692a83f7bb
[FIR] Add FirCheckNotNullCall converted to CHECK_NOT_NULL intrinsic
...
function call.
2019-12-11 16:54:15 +03:00
Ilya Matveev
6bc0fe121a
Gradle: Escape TC service messages in debug logs
...
The MPP plugin uses TC service messages to interact with JS and
native test runs an writes received messages to a debug log. But
if a build is executed by TeamCity, these log messages may be
treated by TC as actual service messages.
This patch transforms the logged messages to avoid this issue.
2019-12-11 19:57:22 +07:00
Ilya Matveev
33df86338b
Gradle, tests: Improve tests for running simulator unit-tests
2019-12-11 19:57:22 +07:00
Ilya Matveev
254864a49d
Gradle, native, JS: Support excluding tests using TestFilter
...
TestFilter.excludePatterns was introduced in Gradle 5.0. This
patch adds support for this API in native and JS test tasks
and deprecates the old property used for test excludes.
2019-12-11 19:57:21 +07:00
Ilya Matveev
cc3438f20c
Gradle, native: Add separate classes for targets with different tests
2019-12-11 19:57:21 +07:00
Ilya Matveev
e6ab70c18d
Gradle, native: Support simulator tests
2019-12-11 19:57:21 +07:00
Mikhael Bogdanov
8225c5a9ce
Remove obsolete logic to IS_BUILT_WITH_ASM6
2019-12-11 13:49:34 +01:00
victor.petukhov
a92f58b1ac
Revert "NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed ^KT-32435 Fixed"
...
This reverts commit 09c2b92b
2019-12-11 15:32:46 +03:00
Ilya Goncharov
ccea2b73da
[Gradle, JS] Add using Debuggable non headless chrome
2019-12-11 14:29:12 +03:00
Ilya Chernikov
354be2b14f
[minor] Change expression evaluation cli argument to -Xexpression
2019-12-11 12:20:49 +01:00
Ilya Chernikov
ba056bf78c
[minor] Remove irrelevant part of the test
2019-12-11 12:20:48 +01:00