Andrey Uskov
0b7244280f
Disable expect-actual tests for fir
...
FIR currently does not support MPP, thus IC tests involving expect-
actuals, should be disabled.
2022-07-12 05:53:10 +00:00
Andrey Uskov
deb2ef9a51
Add details about compilation rounds in IC tests
2022-07-12 05:53:09 +00:00
Andrey Uskov
318d955d64
[IC] Add tests for sealed classes (KT-45474)
2022-07-12 05:53:09 +00:00
Andrey Uskov
21e762458e
[IC] Fixed IC for when expressions involving sealed interfaces
...
#KT-45474 Fixed
2022-07-12 05:53:09 +00:00
Andrey Uskov
7b8188d344
[IC] Fixed IC when one file contains multiple expect-actual classes
2022-07-12 05:53:08 +00:00
Martynas Petuška
3e6253cede
KT-45789 Transitive npm dependencies
2022-07-11 16:05:28 +00:00
pyos
5a2ec4a0d5
FIR CFG: merge data flow if called-in-place lambda may not be called
2022-07-11 18:11:30 +03:00
pyos
06c7572ee5
FIR CFG: process called-in-place lambdas as loops
2022-07-11 18:11:30 +03:00
pyos
8214e4f806
FIR CFG: check lambda concurrency by data flow, not control flow
...
var p: String? = something
if (p != null) {
foo(
run { p = null; n() },
// This lambda executes strictly after the one above by CFG,
// but data flow for type inference comes from before the call
// so p would get smartcasted if not forbidden.
run { p.length; 123 }
)
}
2022-07-11 18:11:30 +03:00
pyos
82731802ee
FIR CFG: add one more test case
2022-07-11 18:11:30 +03:00
Victor Petukhov
7d945d9bdc
[FIR] Support loading rxjava3 nullability annotations on bounded wildcards
...
^KT-53041 Fixed
2022-07-11 12:44:08 +00:00
Victor Petukhov
cb2dbca0c3
[FE 1.0] Support loading rxjava3 nullability annotations on bounded wildcards
...
^KT-53041 Fixed
2022-07-11 12:44:07 +00:00
Victor Petukhov
9f72193d57
[FE 1.0] Support BB tests with foreign annotations
2022-07-11 12:44:07 +00:00
Victor Petukhov
2057deb91b
[FE 1.0] Create DONT_CARE type only for callable references with no expected type
...
Otherwise, it can be resolved safety
^KT-52270 Fixed
2022-07-11 12:44:06 +00:00
Victor Petukhov
fb21937eb1
[FE 1.0] Report INVISIBLE_MEMBER on all qualified expressions including safe call ones
...
^KT-47621 Fixed
2022-07-11 12:44:06 +00:00
Svyatoslav Scherbina
e63e889a1f
Bump Kotlin/Native version to 1.8.0-dev-287
2022-07-11 12:31:52 +00:00
Kristoffer Andersen
63f108b350
[KTIJ-21963] Move reflective access after default args lowerings
2022-07-11 13:13:09 +02:00
Igor Chevdar
9b402a42c7
[K/N] Fix for caches with LazyIR
2022-07-11 10:10:04 +00:00
Ilya Kirillov
c46c723a1b
[LL FIR] invalidate ValueWithPostCompute cache state on PCE
2022-07-10 23:20:33 +02:00
Ilya Kirillov
795b6656db
[LL FIR] fix possible race in cached value reading in ValueWithPostCompute
2022-07-10 23:17:22 +02:00
Igor Chevdar
747bff4036
[K/N][caches] Fixed parents for deserialized on demand inline function
...
#KT-52974 Fixed
2022-07-10 17:56:37 +00:00
Igor Chevdar
a61d05971e
[box-tests] Added a couple of multi-module box tests
2022-07-10 17:56:36 +00:00
Ilmir Usmanov
5144efc7ae
Do not split multimodule inliner tests into modules
2022-07-10 17:56:35 +00:00
Nikolay Krasko
f1ad1da9e5
Avoid re-settings d8Plugin.version during import in IDEA
...
Error:
Could not create task ':js:js.tests:invalidationTest'.
Configuration already finalized for previous property values
2022-07-08 21:34:26 +00:00
Igor Yakovlev
a0a66ffb96
[WASM] Refactoring wasm array copy functions
2022-07-08 16:29:45 +00:00
Sebastian Aigner
39844af876
Initial support for enforcedPlatform in Gradle MPP config
2022-07-08 14:35:06 +00:00
Jaebaek Seo
ef482bb126
FIR find usage: correctly set extendsList of FirLightInterfaceClassSymbol
...
The existing code does not set the list of bases that
FirLightInterfaceClassSymbol extends for "extendsList". It collects only
the set of interfaces for "extendsList" of FirLightInterfaceClassSymbol.
However, interfaces can "extend" other classes and/or interfaces, but
they cannot "implement" other interfaces. Therefore, we have to includes
all interfaces and classes that the child interface extends in
the "extendsList". Additionally, this commit adds `private fun
PsiClass.hasSuper(..): Boolean` to FirLightClassBase that returns
whether one of recursive super classes of the PsiClass is `baseClass`
or not. This commit lets `isInheritor()` method use
`PsiClass.hasSuper()`.
2022-07-08 10:36:55 +02:00
Bart van Helvert
21f65b2fe3
KTIJ-22157 Make KtCallError attachment name static
2022-07-07 16:36:04 +00:00
Bart van Helvert
0c50072436
KTIJ-22157 Don't leak user code in unresolved call exception
2022-07-07 16:36:03 +00:00
Igor Yakovlev
dab1ec7aff
[WASM] Download v8 with D8 gradle plugin and make version property in versions.properties
2022-07-07 16:50:40 +02:00
Nikita Nazarov
939a720686
Add android ignore directives for debug mode tests
2022-07-07 14:51:24 +03:00
Nikita Nazarov
7287be6879
Add tests on variable spilling with debug mode enabled
...
#KT-48678 Fixed
2022-07-07 14:51:24 +03:00
Nikita Nazarov
2ab92bcb7e
Add a key to enable spilling of all variables in a suspending context
...
This commit adds a new key that will allow users to enhance their
debugging experience in suspending contexts when using the IR backend.
After the key is enabled, the following things are changed:
1. All variables in a suspending context are spilled regardless their
liveness.
2. Their LVT records are not shrunk.
3. ACONST_NULL is not spilled to dead variables.
#KT-48678 In progress
(cherry picked from commit 38d97d0621 )
2022-07-07 14:51:24 +03:00
mvicsokolova
6c6717da5a
Revert renaming the kotlinx-atomicfu-runtime module
2022-07-07 00:37:06 +02:00
Ilya Kirillov
a6b6c79dc2
[PSI] do not throw exception on incorrect expression in KtPsiFactory.createExpressionIfPossible
2022-07-06 23:03:20 +02:00
Igor Yakovlev
0ea7e8b70a
[WASM] Add array copy intrinsic
2022-07-06 19:07:56 +00:00
Igor Yakovlev
8306b1bd71
[WASM] Remove deprecated wasm instructions
2022-07-06 19:07:56 +00:00
nataliya.valtman
3b84284743
Add tests for statistic report after build finish
2022-07-06 14:35:19 +00:00
nataliya.valtman
2520ef9232
Add build uuid into build scan
2022-07-06 14:35:18 +00:00
nataliya.valtman
4b0ac511b2
Add configuration_cache tag into statistic
2022-07-06 14:35:17 +00:00
Vladimir Sukharev
f8f01941a8
Generate typedef wrappers for nullable inline classes and method args (KT-36878, KT-39015, KT-39496)
...
Merge-request: KT-MR-6597
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2022-07-06 11:02:16 +00:00
Mikhail Glukhikh
777aa725c9
Add signature cache to FirBasedSignatureComposer
2022-07-06 10:02:12 +00:00
Mikhail Glukhikh
e95fe060d6
FIR2IR: don't create signatures also for accessors & constructors
2022-07-06 10:02:12 +00:00
Mikhail Glukhikh
2880cd8d5a
FIR2IR: provide more precise conversion type context at some use-sites
2022-07-06 10:02:11 +00:00
Mikhail Glukhikh
517614a190
FIR2IR: remove code duplication from CallAndReferenceGenerator
2022-07-06 10:02:10 +00:00
Mikhail Glukhikh
bb0191b7d5
FIR2IR: don't calculate signatures for callables when possible
2022-07-06 10:02:10 +00:00
Mikhail Glukhikh
45eb9238b3
Fir2IrClassifierStorage: don't calculate signature in registerClass
2022-07-06 10:02:09 +00:00
Ilya Goncharov
24c1380b2e
Upgrade yarn.lock
2022-07-06 08:44:33 +00:00
Stanislav Erokhin
d788a927c4
Change deprecations annotation order on Ranges#endExclusive property
...
We have [Int|Long|Char]Range classes in 2 different places:
- as separate class-files
- serialized in the kotlin_builtins file
For some reason our Kotlin compiler during the JVM compilation
re-arranging the order of the annotations, so in class file they
will be written in the following order:
- Deprecated
- SinceKotlin
- ExperimentalStdlibApi
But in the kotlin_builtins they will be stored the same way as
in the sources.
We need these 2 way to be synchronized, because stub's in IDE
cares about order.
After this commit IDE test BuiltInDecompilerConsistencyTest is fixed
2022-07-05 19:50:45 +00:00
Dmitriy Novozhilov
509ed69d28
[K1] Get rid of CONSERVATIVE_SET_INCLUSION_SEMANTICS rewrite policy
...
This policy didn't work in IDE, because trace in IDE always allow rewrites
to slices
^KT-53072 Fixed
2022-07-05 17:44:25 +00:00