Commit Graph

95784 Commits

Author SHA1 Message Date
Ilya Goncharov 8dbdfb4591 [Gradle, JS] Generate externals inside top level dependencies with deprecation 2022-11-01 14:08:54 +00:00
Alexander Korepanov dbf31b206c [Common IR] Move local class from function to avoid a leak 2022-11-01 13:46:39 +00:00
Pavel Punegov 00e9544670 [K/N][perf] Set project properties for benchmarksAnalyzer build
Merge-request: KT-MR-7520
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2022-11-01 13:44:29 +00:00
Igor Yakovlev 97123e9959 [WASM] Emit when expression in more canonical way (subject first for equals expression) 2022-11-01 13:15:12 +00:00
Igor Yakovlev 5d44766752 [WASM] Table switch optimisation for reversed arguments 2022-11-01 13:15:12 +00:00
Igor Yakovlev 0e54e00e48 [WASM] Make object creation inside constructors 2022-11-01 13:15:11 +00:00
Igor Yakovlev 346b2f162c [WASM] Optimize varargs without spreads 2022-11-01 13:15:11 +00:00
Igor Yakovlev 913ce9d817 [WASM] Remove redundant code 2022-11-01 13:15:10 +00:00
Igor Yakovlev 8d8430cde7 [WASM] Remove unnecessary boxing/unboxing 2022-11-01 13:15:10 +00:00
Igor Yakovlev 0e16889f45 [WASM] Fast load string literals from data section 2022-11-01 13:15:09 +00:00
Igor Yakovlev 033e2c45f1 [WASM] Caching string literals in global pool 2022-11-01 13:15:09 +00:00
Denis.Zharkov f95bfccf59 K1: Prolong deprecation for KT-46727
The language committee ticket has not yet been prepared
2022-11-01 12:03:26 +00:00
Vladimir Dolzhenko 2ff97271e0 Fix addDeclaration in case of neigbour PsiErrorElement
Relates to #KTIJ-20214
2022-11-01 12:00:34 +00:00
Alexander Udalov 3d00c173f3 Fix binary compatibility for inlined local delegated properies
#KT-54650 Fixed
2022-11-01 12:34:33 +01:00
Alexander Shabalin 5ef9a5a240 [K/N] Crash with OOM on large array allocations ^KT-54659
Merge-request: KT-MR-7507
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-11-01 11:00:23 +00:00
Aleksei.Cherepanov cc4d22b4c9 Update artifact versions in previously added components.xml
User pull request: https://github.com/JetBrains/kotlin/pull/1501

#KT-29346 Fixed
2022-11-01 11:36:08 +01:00
Clark Perkins 1adc242602 Added components.xml to automatically compile kotlin maven projects 2022-11-01 11:32:47 +01:00
Alexander Udalov 54ab66cd4e Add regression test for KT-54707 2022-11-01 11:24:03 +01:00
Alexander Udalov 8e52babb42 Minor, remove leftover module ir.tree.impl
#KTI-967 Fixed
2022-11-01 01:00:29 +00:00
pyos a30d19b655 jvm-abi-gen: consider private type aliases to be public API
They can be referenced from public declarations right now.

^KT-54500 Fixed
2022-10-31 22:13:21 +01:00
Ilya Goncharov 05fd437d42 [JS IR] Regenerate tests 2022-10-31 16:08:26 +00:00
Ilya Goncharov 36935702b9 [JS IR] Make cast in bridge nullable in case of default parameter method 2022-10-31 16:08:25 +00:00
Ilya Goncharov 372a512c91 [JS IR] Add case with bridge for method with default parameters 2022-10-31 16:08:24 +00:00
Ilya Chernikov 23144b92d8 Fix FastJarFS caches cleaning
- add FastJarFS cache cleaning to the daemon implementation, so
the behavior is now the same as for CoreJarFS
- clear not only mappings but also handlers cache: this may result some
slowdown on comparison with the previous cleaning implementation,
but should avoid unreliable behavior on heavy parallel build usages.
2022-10-31 16:02:50 +00:00
Denis.Zharkov 82100a414f FIR: Preserve K1 behavior for rawTypeValue ?: nothingTypedValue
It's been approximated to the non-raw version back then

^KT-54526 Fixed
2022-10-31 14:28:56 +00:00
Denis.Zharkov 52eb535a7d FIR: Use platform specific overridability rules for platform members
^KT-54570 Fixed
2022-10-31 14:28:55 +00:00
Denis.Zharkov 1e368bcd86 FIR: Allow to skip specifying type arguments for members from raw type
^KT-54666 Fixed
^KT-54526 Related
2022-10-31 14:28:54 +00:00
Denis.Zharkov c0e0900344 FIR: Preserve K1 behavior for synthetic properties on raw type
^KT-54502 Fixed
2022-10-31 14:28:53 +00:00
Denis.Zharkov 7b15b28ee2 FIR: Properly support raw types in type parameter upper bounds
^KT-49345 Fixed
2022-10-31 14:28:52 +00:00
Denis.Zharkov 73cffa315d FIR: Do not re-initialize type parameter bounds for Java classes 2022-10-31 14:28:51 +00:00
Denis.Zharkov 80d7404faf Minor. Reformat TypeUtils.kt 2022-10-31 14:28:51 +00:00
Denis.Zharkov e5d2f4712a Minor. Reformat JavaTypeConversion.kt 2022-10-31 14:28:50 +00:00
Denis.Zharkov 5cc31114cd FIR: Support special scope for raw types
^KT-46369 Fixed
^KT-41794 Fixed
^KT-49351 Fixed
2022-10-31 14:28:50 +00:00
Pavel Mikhailovskii 1215ae0fe7 KT-1436 Nicer compiler errors when the feature isn't supported 2022-10-31 13:49:57 +00:00
Denis.Zharkov e6900ec0f2 Turn of LINE_BREAK_AFTER_MULTILINE_WHEN_ENTRY code style requirement 2022-10-31 11:11:01 +00:00
Alexander Shabalin 3a35dd2947 [K/N] Mute stress_gc_allocations on mingw_x64 ^KT-54727
Merge-request: KT-MR-7528
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-10-31 11:09:50 +00:00
Ilya Chernikov 5d968bc2f4 Fix gradle scripts detection in the sources
#KT-54325 fixed
2022-10-31 09:30:13 +00:00
Alexey Belkov 2036b65b78 K1: render receiver DNN type as parenthesized
^KTIJ-20849
2022-10-28 12:52:22 +04:00
Sergej Jaskiewicz 7692423e44 [test] Factor out helper classes of LocalVariableDebugRunner
We want to use them in non JVM-specific tests.
2022-10-27 22:51:18 +00:00
Igor Chevdar 873b84491d [K/N][codegen] Fixed bug with huge arrays during escape analysis
Escape analysis tried to allocate some very big arrays on the stack
because an overflow happened during size computation
2022-10-27 16:23:43 +03:00
Sergey.Shanshin d4cfb002d0 Added support of named companion in serializable class to the FIR
Merge-request: KT-MR-7472
2022-10-27 12:48:29 +00:00
Jinseong Jeon 8d8d0d9922 SLC: add marker interface for collection inheritor 2022-10-27 14:41:24 +02:00
Yahor Berdnikau e15d8fc56f More fine-grained substitution for stdlib-jdk7{,8} dependencies
Before if one of the configurations has 'kotlin-stdlib:1.8+' dependency
- all other configurations will also apply substitution. But this may
break build/tools that want to use specific set of dependencies to run
itself. For example, Android Lint still uses older stdlib versions in
classpath.

Now substituion only applies to configuration (if it is resolvable) and
its resolvable children.

^KT-54653 Fixed
2022-10-27 11:37:58 +00:00
Sergej Jaskiewicz b429e2f34f Remove a test that doesn't make sense anymore 2022-10-27 11:28:01 +00:00
Sergej Jaskiewicz 6a40a7e471 [JS IR] Don't forget to enable lazy property initialization 2022-10-27 11:27:59 +00:00
Nikita Bobko cdbfcdc465 Cleanup: LanguageFeature.defaultState -> LanguageFeature.isEnabledWithWarning
Review: https://jetbrains.team/p/kt/reviews/7418

`State` enum contains `DISABLED` item which is redundant for
`LanguageFeature`. It's redundant because `sinceVersion = null` is used
to express the same semantic.

I had to reorder some items in the enum because otherwise
`testLanguageFeatureOrder` fails. I could keep the same logic in
`testLanguageFeatureOrder` but I would need to make
`isEnabledWithWarning` public which I don't want to. Anyway, it's not
obvious what is more readable: keep `isEnabledWithWarning = true` items
at the end or at the beginning.

Also all effectively disabled features (`sinceVersion = null` or
`defaultState = State.DISABLED`) are now moved to the "Experimental"
section at the end which is obviously better.
2022-10-27 13:16:44 +02:00
Nikita Bobko 49a5186f15 Enable EnumEntries language feature by default
Related issue: KT-48872
Review: https://jetbrains.team/p/kt/reviews/7418

If we want to make the feature experimental then specifying
`sinceVersion` higher than the current compiler version is enough.
`defaultState = State.DISABLED` is redundant
2022-10-27 13:16:10 +02:00
Nikita Bobko 4e69d1248a Cleanup: drop unused LanguageFeature.State.ENABLED_WITH_ERROR
Review: https://jetbrains.team/p/kt/reviews/7418
2022-10-27 13:16:10 +02:00
Dmitriy Novozhilov e73049dfb0 [Native] Add workaround for KT-54668 2022-10-27 11:08:57 +00:00
Dmitriy Novozhilov bc9bc26cc8 [Test] Add test for KT-54668 2022-10-27 11:08:56 +00:00