Dmitriy Novozhilov
8a549cafec
[FIR] Cleanup CheckerContext.kt
2021-04-06 12:30:37 +03:00
Dmitriy Novozhilov
2271bb5d61
[FIR] Add positioning strategy for return keyword
2021-04-06 12:30:36 +03:00
Dmitriy Novozhilov
76f2e349cc
[FIR] Introduce FirReturnExpressionChecker
2021-04-06 12:30:35 +03:00
Dmitriy Novozhilov
5ebd24eac5
[FIR] Save inline status of lambda after resolution
2021-04-06 12:30:34 +03:00
Svyatoslav Scherbina
a4b9e2502c
Native: don't use frame pointer in leaf functions on ARM64 targets
...
Clang 8 and Clang 11 both have this optimization, but it was moved
from LLVM to Clang:
https://github.com/llvm/llvm-project/compare/c5b890e922432bd80a5e3c6d82994ef4cdc41900...a0aa58dad53f2e5e90a9b7079ec31bf7c3144fc7
So Kotlin/Native compiler now has to enable this optimization explicitly.
2021-04-06 08:44:12 +00:00
Svyatoslav Scherbina
2b6d8ab975
Native: replace no-frame-pointer-elim* LLVM attributes by frame-pointer
...
LLVM 8 and LLVM 11 understand both, but *frame-pointer-elim*
are obscure and obsolete.
2021-04-06 08:44:12 +00:00
Him188
f90cbb0ce7
Support properties from primary constructor in JvmFieldApplicabilityChecker
...
#KT-32753 In progress
2021-04-06 11:40:44 +03:00
Dmitriy Novozhilov
e4ebeec275
Build: explicitly disable -Xuse-fir arg for some modules
2021-04-06 11:40:43 +03:00
Dmitriy Novozhilov
99e681ec1d
[NI] Assume that ILT is number type in inference
...
#KT-41679 Fixed
2021-04-06 11:40:42 +03:00
Dmitriy Novozhilov
a107e3d160
Support actualization of expect sealed class with typealias in CliSealedClassInheritorsProvider
2021-04-06 11:40:40 +03:00
Dmitriy Novozhilov
fe81078366
Allow sealed inheritors for expect sealed classes in MPP submodules
...
KT-45842 Fixed
KTIJ-7068
2021-04-06 11:40:39 +03:00
Dmitriy Novozhilov
1633190478
Refine expect classes in CliSealedClassInheritorsProvider
...
KT-45796 Fixed
2021-04-06 11:40:36 +03:00
Mikhail Glukhikh
2ee8ac2e15
FirPropertyAccessorChecker: extract checkSetter, suppress properly
2021-04-06 11:13:17 +03:00
Jinseong Jeon
68fb15f9a4
FIR checker: consolidate property accessor checks
2021-04-06 11:13:16 +03:00
Elena Lepilkina
85cb8eb959
[Native][perf] Increase heap space for K/N compiler in performance project
2021-04-06 09:27:28 +03:00
nataliya.valtman
bce677f7f7
Generate tests for companion constant changes
2021-04-06 07:13:13 +03:00
Leonid Startsev
70fa6d50d3
Prohibit serializable inner classes
...
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1101
2021-04-05 18:26:25 +03:00
Leonid Startsev
c66cddc442
Prohibit serializable annotation on local classes and anonymous objects
...
#KT-45541 Fixed
2021-04-05 18:26:24 +03:00
Leonid Startsev
3b789448a3
Support static final write$Self method inside serializable classes on IR
...
to properly serialize class hierarchies with/or private fields.
JVM only for now, because Native/JS do not have private fields.
Update tests and test data and rebase fix.
Unify formEncodeDecodePropertyCall functions.
Fix incorrect reference to object in writeSelf,
so properties dependent on other properties would be correctly compared
with defaults.
2021-04-05 18:25:46 +03:00
Leonid Startsev
9be5421e7c
Use .nullable extension instead of NullableSerializer() constructor
...
Use correct projection in createClassReference()
so primitive-boxes arrays behave correctly on JVM
2021-04-05 18:25:45 +03:00
Dmitry Petrov
120eba8d3d
Minor: add tests for KT-45893
2021-04-05 17:50:43 +03:00
Andrey Zinovyev
e10df86037
[FIR] Add UPPER_BOUND_IS_EXTENSION_FUNCTION_TYPE diagnostic
2021-04-05 17:15:32 +03:00
Alexander Shabalin
451fc8e9df
Fix enum isFrozen for wasm
2021-04-05 14:07:29 +00:00
yantimirov-timur
9e7f6332d1
[FIR] Complete WRONG_SETTER_TYPE_PARAMETER checker
2021-04-05 16:17:34 +03:00
Julia
5472199bb1
[FIR] Introduce supertypes-for-annotation-class checker
2021-04-05 15:54:57 +03:00
Mikhail Glukhikh
caeb0b43be
FIR: introduce JvmPlatformOverloadsConflictResolver
...
The added here JvmPlatformOverloadsConflictResolver prefers Java field
to property in case of conflicts.
2021-04-05 15:54:49 +03:00
Ilya Goncharov
9b3c154bef
[Gradle, JS] Remove source maps flags in IR
2021-04-05 15:12:53 +03:00
Andrey Zinovyev
67505a0071
[FIR] Add FINAL_UPPER_BOUND checker
2021-04-05 14:51:44 +03:00
Elena Lepilkina
d0513c9ece
[Native][perf] Removed unneeded workaround
2021-04-05 10:52:55 +00:00
Elena Lepilkina
1fea08aac1
[Native][Performance server] Fix request for new composite build numbers
2021-04-05 10:52:54 +00:00
Denis.Zharkov
0637748f10
FIR: Introduce NAMED_PARAMETER_NOT_FOUND diagnostic
2021-04-05 12:58:07 +03:00
Jinseong Jeon
2d42e64c17
FIR: prefer flexible type over other equal types when computing intersection
2021-04-05 10:39:51 +03:00
Jinseong Jeon
0d3969597c
FIR: more accurate nullability of intersection of flexible types
2021-04-05 10:39:51 +03:00
Jinseong Jeon
871b5a2174
FIR: fix nullability computation of intersection of flexible types
...
Without this, currently,
it(ft(J..J?), ft(J..J?) => J
which should be ft(J..J?) instead.
2021-04-05 10:39:51 +03:00
Dmitriy Novozhilov
0cb039eea7
Fix compilation of :kotlin-gradle-plugin:functionalTest
2021-04-03 17:04:27 +03:00
Dmitriy Novozhilov
f1cef0fc95
Update testdata
2021-04-03 16:52:05 +03:00
Dmitriy Novozhilov
13d9520a4a
Revert "[TMP] Add -Xskip-prerelease check to maven projects"
...
This reverts commit 57929ab5
2021-04-03 14:31:46 +03:00
Dmitriy Novozhilov
9c4d35747a
Revert "[TMP] Disable maven itnegration tests"
...
This reverts commit 4a10de0c
2021-04-03 14:31:40 +03:00
Dmitriy Novozhilov
e10792e1c6
Advance bootstrap to 1.5.20-dev-4401
2021-04-03 14:31:34 +03:00
Dmitriy Novozhilov
e97140a4a7
Advance bootstrap to 1.5.20-dev-4399
2021-04-03 13:52:47 +03:00
Dmitriy Novozhilov
4a10de0ce3
[TMP] Disable maven itnegration tests
...
This commit will be reverted after bootstrap to stable stdlib
2021-04-03 13:31:34 +03:00
Dmitriy Novozhilov
57929ab587
[TMP] Add -Xskip-prerelease check to maven projects
...
This commit will be reverted after bootstrap to stable stdlib
2021-04-03 13:31:33 +03:00
Dmitriy Novozhilov
69aef01b25
Switch IS_PRE_RELEASE flag to false
2021-04-03 13:13:32 +03:00
Ilya Gorbunov
35ae913a5e
Stabilize new string and char case conversion API KT-45873
2021-04-03 10:39:17 +03:00
Ilya Gorbunov
256f634e61
Support all digit chars in digitToInt on JVM KT-23451
2021-04-03 10:30:50 +03:00
Ilya Gorbunov
8b85bae020
Stabilize Char-to-Int conversions KT-45874
2021-04-03 10:30:50 +03:00
Vladimir Ivanov
c5f06d6e3f
Patch expectedLazyNoGenerics.h to corresond with new test ( #4271 )
2021-04-02 19:38:22 +03:00
Ilya Kirillov
5f9d18d8bc
FIR IDE: resolve argument type super types & type args when checking for overridden
...
When we check overrides from IDE, we need to check argument types for subtyping.
When checking for subtyping, we need type parameters declared
in defining classes to be resolved to TYPES phase
and super types to be resolved to SUPER_TYPES phase.
Otherwise, they will be resolved to RAW_FIR and subtyping will throw
"ISE Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImpl"
2021-04-02 17:24:27 +02:00
Ilya Kirillov
5ceec858aa
FIR IDE: do not search for sealed class inheritors on every class resolve
2021-04-02 17:15:30 +02:00
Ilya Gorbunov
0e93924ff3
Duration: inWholeUnits properties instead of inUnits
...
Introduce conversion properties returning Long values,
deprecate the old ones returning Doubles.
2021-04-02 17:44:10 +03:00