Sergej Jaskiewicz
ba7f5afebe
[JS IR] Generate debug info for catch parameters
...
We will need it to generate original names for catch parameters in
sourcemaps.
Also, don't generate redundant debug info for compiler-generated
exception handling control flow operators.
See the doc comment to the MultipleCatchesLowering class
#KT-46276
2022-11-02 13:14:01 +00:00
Sergej Jaskiewicz
871d445b4e
[JS IR] Generate debug info for global property initializers
2022-11-02 13:14:01 +00:00
Sergej Jaskiewicz
4ae03ea74a
[JS IR] Improve debug info for if and when statements
...
#KT-46276
2022-11-02 13:14:01 +00:00
Sergej Jaskiewicz
ccbb2a08a0
[JS IR] Improve debug info for functions with default parameters
...
Don't generate unnecessary mappings so that the user doesn't need to
step in many times to get where they want
#KT-46276
2022-11-02 13:14:00 +00:00
Sergej Jaskiewicz
43c5c8b44f
[JS IR] Fix debug info for Char, Long, and unsigned integer literals
...
Map class constructor calls to the literals they were generated
from.
#KT-46276
2022-11-02 13:13:59 +00:00
Sergej Jaskiewicz
512a2bfd7a
[JS IR] Improve debug info for callable references and lambdas
...
#KT-46276
2022-11-02 13:13:59 +00:00
Sergej Jaskiewicz
fe0e9db3aa
[JS IR] Generate debug info for JS switch statements
...
#KT-46276
2022-11-02 13:13:59 +00:00
Sergej Jaskiewicz
b2b7958b62
[JS IR] Generate debug info for secondary constructors
...
#KT-46276
2022-11-02 13:13:58 +00:00
Sergej Jaskiewicz
ec18dce7cb
[JS IR] Improve debug info for suspend functions
...
- Map generated explicit Unit returns to the closing brace of
the original body
- Name the continuation parameter as `$completion` to match the JVM BE,
and generate debug info for it (so that it appears in the 'names'
array in sourcemaps)
- Don't generate debug info for coroutine instantiation ceremony
(so that the user doesn't need to step in many times to get where they
want)
#KT-46276
2022-11-02 13:13:58 +00:00
Xin Wang
4d9c2d3d14
Don't treat java constructor as 'hidden' one
...
Fix KT-54656
2022-11-02 12:56:38 +01:00
Simon Ogorodnik
928c6badd1
FIR Tests. Setup defineJDKEnvVariables for JDK_1_8, JDK_11_0, JDK_17_0
2022-11-02 11:26:38 +00:00
Sergej Jaskiewicz
37b32907ab
Fix a compatibility issue with AnnotationDescriptor
...
The `getSourceForArgument` method should be in the interface,
but adding it is a breaking change for Java usages,
since the module is not built with -Xjvm-default (KT-54749).
Move the method to an extension. This doesn't change the behavior,
since it was only ever called on LazyAnnotationDescriptor.
2022-11-02 11:07:07 +00:00
Dmitriy Novozhilov
af8b9e6700
[Build] Remove K/Native modules from projectsWithDisabledFirBootstrap list
...
^KT-54123 Fixed
2022-11-02 10:11:27 +02:00
Dmitriy Novozhilov
567ef1d905
Advance bootstrap to 1.8.20-dev-1815
2022-11-02 10:10:30 +02:00
Ivan Kochurkin
952274e046
[Lexer] Restore KtToken constructors without tokenId parameter
...
Mark them as @Deprecated, ^KT-54745 Fixed
2022-11-01 18:35:08 +00:00
Pavel Punegov
8483f0a227
[K/N][build] Fix kotlin-native.jar compiler dependencies
...
Merge-request: KT-MR-7553
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2022-11-01 16:46:23 +00:00
pyos
7787638737
FIR: fix substitution of anonymous type's supertype again
...
^KT-51418 Fixed
2022-11-01 15:28:41 +00:00
Vladimir Sukharev
f099c190f7
Parallelize platformLibs build on macos_arm64
2022-11-01 15:07:07 +00:00
Ilya Goncharov
54a166b2a3
[Gradle, JS] Deprecate for users to not use on their scripts
2022-11-01 14:08:55 +00:00
Ilya Goncharov
8e088af337
[Gradle, JS] Fix gradle plugin api
2022-11-01 14:08:54 +00:00
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