Nikolay Krasko
ec04af9eea
Update cache redirector list
2021-07-13 22:36:50 +03:00
Dmitry Petrov
dc16d66fb1
Minor: regenerate tests
2021-07-13 21:23:17 +03:00
pyos
3dc7b6c3ee
IR: preserve argument evaluation order more carefully
...
1. receivers should be evaluated before named arguments;
2. just because an argument has no side effects doesn't mean it is not
affected by the other arguments' side effects - in that case it
should still be evaluated in source order.
#KT-47660 Fixed
2021-07-13 21:23:15 +03:00
Roman Artemev
b5942204dc
[KLIB] Enable accidentally disabled IC for klibs in K/JS
2021-07-13 18:58:57 +03:00
Roman Artemev
ece9307471
[JS IR] Fix destination directory in Incremental compiler runner for JS
2021-07-13 18:58:56 +03:00
Aleksei.Cherepanov
d2881a7920
Improve performance of Lookup storage
...
Reduce size of lookup map after rebuild, reduce waiting time by replacing operations of read+write with append, also split remove garbage process into smaller operations in get
#KT-46804 Fixed
2021-07-13 18:39:38 +03:00
Alexander Udalov
35f6337de3
Remove obsolete kotlin.build.useIR flag
...
(cherry picked from commit 91e47f1fd7 )
2021-07-13 14:01:19 +02:00
Elena Lepilkina
c401cf961d
[K/N][C interop] Support Kotlin special names processing (KT-47209 fixed)
2021-07-13 11:56:31 +00:00
Roman Artemev
0326518fc9
[KLIB] Cutting down usages of moduleDescriptor in linker
...
Replace map key `ModuleDescriptor` with `String` which is module name
2021-07-13 14:43:42 +03:00
Roman Artemev
eadf252de9
[KLIB] Provide KotlinLibrary for Konan Interop Deserializer
2021-07-13 14:43:41 +03:00
Roman Artemev
0a49b24320
[JS IR] Move klib resolution from cli into compiler
...
Simplify CLI -> Compiler API
Clean up code
2021-07-13 14:43:40 +03:00
Roman Artemev
103e4ef2a5
[JS IR] Disable ts export check in PIR mode in box tests
...
Since that feature is not declared as working yet
2021-07-13 14:43:38 +03:00
Elena Lepilkina
025e572462
[K/N] Fixed case with parameter which can be optimized with BCE
2021-07-13 09:22:13 +00:00
Elena Lepilkina
2477ea80c6
Reverted loops order processing in ForLoopsLowering
2021-07-13 09:22:12 +00:00
Elena Lepilkina
c096e6a3eb
[K/N] Analyze vals in bounds check elimination
2021-07-13 09:22:11 +00:00
Elena Lepilkina
9503627864
Changed an order of processing loops in ForLoopsLowering
2021-07-13 09:22:11 +00:00
Elena Lepilkina
0e04c21625
[K/N] Bounds check elimination in basic for loops forms
2021-07-13 09:22:10 +00:00
Elena Lepilkina
7975311ca2
[K/N] Added tests for bounds checks
2021-07-13 09:22:09 +00:00
Elena Lepilkina
ac074207c7
[K/N] ForLoopsLowering: Use get without bounds check in ArrayIterationHandler
2021-07-13 09:22:08 +00:00
Dmitriy Novozhilov
f33f3c769f
Fix USELESS_IS_CHECK warnings in compiler code
2021-07-13 10:35:05 +03:00
Dmitriy Novozhilov
968f823b72
[JVM IR]Fix detecting annotation retention
2021-07-13 10:35:04 +03:00
Dmitriy Novozhilov
47b0071560
[FE 1.0] Properly handle intersection types in check if cast possible or not
...
^KT-47685 Fixed
2021-07-13 10:35:03 +03:00
Dmitriy Novozhilov
f0c4d06fc9
[FE 1.0] Cleanup PatternMatchingTypingVisitor.kt
2021-07-13 10:35:02 +03:00
Dmitriy Novozhilov
7b5a5f5682
[FE 1.0] Report USELESS_IS_CHECK if is expression is always false
...
^KT-47684 Fixed
2021-07-13 10:35:01 +03:00
Dmitriy Novozhilov
785e2f862c
[PSI] Ignore when failed to get file text
...
This is change from 36ff952 which was forgotten when applying 203 bunch
2021-07-13 10:34:59 +03:00
Dmitriy Novozhilov
daa4c708a2
[FIR] Remove unused parameter from ensureResolvedForCalls
2021-07-13 10:31:36 +03:00
Dmitriy Novozhilov
c3b20c9ccb
[FIR IDE] Add forgotten space to renderer in diagnostic generator
2021-07-13 10:31:34 +03:00
Dmitriy Novozhilov
22a4da024b
[FIR] Fix all illegal usages of symbol.fir in checkers module
2021-07-13 10:31:34 +03:00
Dmitriy Novozhilov
e94d75d433
[FIR] Add opt-in annotation which prevents from using symbol.fir
2021-07-13 10:31:32 +03:00
Dmitriy Novozhilov
c99a02796f
[FIR] Replace getContainingClass usages with getContainingClassSymbol
2021-07-13 10:31:31 +03:00
Dmitriy Novozhilov
48a25e2fe6
[FIR] Add some status utils over symbols to addition to utils over fir
2021-07-13 10:31:30 +03:00
Dmitriy Novozhilov
b2c6dd8d53
Convert ClassKind.java to Kotlin
2021-07-13 10:31:29 +03:00
Dmitriy Novozhilov
0062f1ba27
Rename ClassKind.java to ClassKind.kt
2021-07-13 10:31:28 +03:00
Dmitriy Novozhilov
22938522b3
[FIR] Add forgotten updating phase of value parameters
2021-07-13 10:31:27 +03:00
Dmitriy Novozhilov
d3966e8844
[FIR] Add accessors to parts of signatures to symbols
2021-07-13 10:31:26 +03:00
Dmitriy Novozhilov
0f06ab537f
[FIR] Remove useSiteSession parameter from ensureResolved
2021-07-13 10:31:25 +03:00
Dmitriy Novozhilov
92cfaf68bb
[FIR] Remove unused FirFunctionSymbol.parameters
2021-07-13 10:31:24 +03:00
Dmitriy Novozhilov
4deb935f76
[FIR] Mark value classes as inline in raw fir building
2021-07-13 10:31:23 +03:00
Dmitriy Novozhilov
8df56af068
[FIR] Add forgotten settings of resolve phase
2021-07-13 10:31:22 +03:00
Dmitriy Novozhilov
9f161f16b3
[FIR] Move FirPhaseManager to :compiler:fir:tree
2021-07-13 10:31:21 +03:00
Dmitriy Novozhilov
51fc2e453f
[FIR] Unity FirCallableDeclaration and FirCallableMemberDeclaration
...
After removal of all diamonds in FirDeclaration hierarchy
FirCallableMemberDeclaration was only one inheritor of
FirCallableDeclaration, so there is no need to keep them both
2021-07-13 10:31:20 +03:00
Dmitriy Novozhilov
adc45fd3dd
[FIR] Remove useless generic parameter from deprecation utils
2021-07-13 10:31:18 +03:00
Dmitriy Novozhilov
c50fe4e399
[FIR] Move some components implementations from :entrypoint to appropriate modules
2021-07-13 10:31:17 +03:00
Alexander Udalov
173e194dac
Remove dependency on JVM specifics in serialization.common
...
Move handling of EnhancedNullability to JVM subclasses in
serialization.jvm. Looks like this was possible because of accidental
dependency of frontend on compiler.common.jvm introduced in 564d382b9d .
Also fix a minor typo in the file name typeEnhancementUtils.kt.
2021-07-13 01:54:41 +02:00
Alexander Udalov
7a42f603f2
JVM IR: rename mangler implementation classes
2021-07-13 01:54:41 +02:00
Alexander Udalov
1e16c7d8d4
Minor, update kotlinx-metadata-jvm changelog
...
According to changes in 1e7295c6 .
2021-07-12 22:40:02 +02:00
pyos
d988853c11
JVM_IR: optimize out redundant delegated property receiver fields
...
Now this:
class C {
val x = something
val y by x::property
}
is *exactly* the same as this:
class C {
val x = something
val y get() = x.property
}
(plus a `getY$delegate` method)
2021-07-12 22:38:45 +02:00
pyos
2fe7cf27ad
kotlinp: use JVM_IR backend for compiling tests
...
Also, test optimized delegated properties.
2021-07-12 22:38:45 +02:00
pyos
791fa411d8
JVM_IR: write correct lambda invoke() signature in metadata
2021-07-12 22:38:45 +02:00
pyos
a7c13db575
JVM_IR: add $delegate methods to a few exclusion lists
...
1. they don't need type annotations;
2. internal ones include the module name before the `$delegate` part,
so further mangling is redundant
3. they don't need multifile facade bridges.
Unlike `$annotations`, delegated properties don't appear in interfaces,
so exclusions in InterfaceLowering would be redundant.
2021-07-12 22:38:45 +02:00