Jinseong Jeon
40eaabdbb5
FIR UAST: prototype plugin entrypoint, declarations, test infra
2021-05-05 14:22:40 +02:00
Jinseong Jeon
225e3a747c
LC: introduce light class interface for facade
...
so that FIR-based light class for facade can work well in LC utils
2021-05-05 14:11:48 +02:00
Jinseong Jeon
efba90c6f1
LC: rename KtLightClassForFacade to ...Impl
...
before introducing a common interface for light class for facade
This is a mechanical refactoring.
2021-05-05 14:11:48 +02:00
Alexander Udalov
c14a890e7e
IR: fix capturing of type parameters in local functions
...
collectPotentiallyCapturedTypeParameters no longer stops on the first
class when going through parents. This is needed because otherwise type
parameters of the containing class, and its outer classes, were never
considered "captured", and thus not duplicated/remapped later in
LocalDeclarationsLowering.
This led to the IR where a local function referenced generic type
parameters of the outer class. On JVM, local function is generated into
a private static function in that container class, and static functions
can't use generic type parameters, which crashed some bytecode
processing tools.
Also, add another explicit call to `seeType` to cover references to
generic type parameters in function return types.
#KT-45941 Fixed
2021-05-04 21:10:56 +02:00
Vasily Levchenko
b389fd6667
[performance][build][kotlin-build-gradle-plugin] version 0.0.27 (fix)
2021-05-04 15:44:19 +00:00
Stanislav Erokhin
d9be05fea8
Support getContainer for the synthetic it value parameter
...
Also fixed incorrect KtSymbolOrigin:
it was SOURCE instead of SOURCE_MEMBER_GENERATED
2021-05-04 17:25:34 +02:00
Stanislav Erokhin
c24ad0ba51
Use KtFunctionLiteral as key for KtAnonymousFunctionSymbol retrieving
...
It seems logical to do, because KtFunctionLiteral is KtDeclaration
and KtLambdaExpression is not. Also FirAnonymousFunction use it as
realPsi reference
2021-05-04 14:01:30 +02:00
Dmitriy Dolovov
75d2e415e1
[K/N][IR] Generate missing return statement, p. 2
...
^KT-42832
2021-05-04 13:26:02 +03:00
Alexander Shabalin
5e456ed82b
Put GC implementations into separate modules.
...
The mm module now compiles separately for each GC implementation.
2021-05-04 10:23:16 +00:00
Ilya Kirillov
41ab97ff1f
FIR IDE: introduce single function for checking if declaration can be lazily resolved
2021-05-04 08:19:50 +02:00
Ilya Kirillov
babf079c31
FIR IDE: fix resolving of inner type aliases
2021-05-04 08:19:50 +02:00
Ilya Kirillov
9e1bc5680d
FIR IDE: do not consider KtEnumEntry as ktClassOrObject
2021-05-04 08:19:50 +02:00
Ilya Kirillov
ef5f0e77ec
FIR IDE: use KtClassLikeDeclaration.classId instead of hacks
2021-05-04 08:19:50 +02:00
Ilya Kirillov
aff807e3af
Stubs: bump stubs version
2021-05-04 08:19:50 +02:00
Ilya Kirillov
4942f5eb66
Stubs: add classId to KtTypeAlias stubs
2021-05-04 08:19:50 +02:00
Ilya Kirillov
fdb091d98e
Stubs: add classId to KtClassOrObject stubs
2021-05-04 08:19:49 +02:00
Ilya Kirillov
09a94f3200
FIR IDE: ignore non-passing tests in compiler based tests
2021-05-04 08:19:49 +02:00
Ilya Kirillov
3503a54437
FIR IDE: run tests in parallel in module idea-fir-low-level-api
2021-05-04 08:19:49 +02:00
Ilya Kirillov
65ce641b22
FIR IDE: introduce diagnostics tests bases on FIR diagnostics tests
2021-05-04 08:19:49 +02:00
Mads Ager
0c77565104
JVM_IR: Add more local variable tests for finally code.
2021-05-03 07:43:38 +02:00
Mads Ager
6095d8a7fa
[JVM] Split the variable range for external finally blocks in inliner
...
When external finally blocks are inlined none of the current locals
are in scope of the finally block.
2021-05-03 07:43:37 +02:00
Mads Ager
6d9f02cfc6
[JVM_IR] Fix range of locals in connection with finally blocks.
...
For code such as:
```
try {
var y = "y"
for (i in 0 until 1) {
return y
}
} finally {
println("finally")
}
```
The local variables `y` and `i` ended up covering the finally block as
well in the debugger.
This change splits the range of the locals so that they do
not cover the finally block.
This change does not change the inliner to do similar transformations,
so the range of locals is still wrong win finally blocks when inlined
into an inline function. Added a failing test to that effect.
2021-05-03 07:43:37 +02:00
Mikhail Glukhikh
0764a0601c
Fix FIR IDE test data broken by 80a44986
2021-05-01 19:12:05 +03:00
sebastian.sellmair
a1ed81146e
[Commonizer] Logging: NativeDistributionCommonizationCache: Log in level 'quite' on cache misses
...
^KT-36679 Verification Pending
2021-05-01 14:36:18 +03:00
sebastian.sellmair
b48850c993
[Commonizer] Logging: Implement CommonizerLogLevel and hide verbose output by default
...
^KT-36679 Fixed
2021-05-01 14:36:18 +03:00
sebastian.sellmair
7349ec8f2f
[Commonizer] Logging: Implement ProgressLogger.fork
...
^KT-36679
2021-05-01 14:36:16 +03:00
sebastian.sellmair
ec440aecf6
[Commonizer] Logging: Remove 'COMMONIZATION' prologue
...
^KT-36679
2021-05-01 14:36:15 +03:00
sebastian.sellmair
9d9e11d6d8
[Commonizer] Logging: 'Preparing commonized Kotlin/Native libraries': show outputTarget instead of flat list of targets
...
^KT-36679
2021-05-01 14:36:14 +03:00
sebastian.sellmair
0d9e32f963
[Commonizer] Logging: Show [Step x of y] only when more than one task is scheduled
...
^KT-36679
2021-05-01 14:36:13 +03:00
Victor Petukhov
9eaec8d919
Use platform-independent line separator in jspecify tests handler
2021-05-01 13:39:28 +03:00
Nikolay Krasko
2a2fa31577
Allow emulate sonatype publishing when publishing to folder (KTI-552)
2021-05-01 01:41:30 +03:00
Nikolay Krasko
624740a80a
Force usage of passed deploy url for sonatype publication (KTI-552)
2021-05-01 01:41:28 +03:00
Nikolay Krasko
2eda82f178
Allow in memory signing (KTI-552)
2021-05-01 01:41:27 +03:00
Nikolay Krasko
8f97d8a78e
Drop legacy publishing
2021-05-01 01:37:09 +03:00
Mads Ager
df225c0c7f
[JVM] Fix uninitialized locals after coroutine transformation.
...
The coroutine transformation would leave locals in the local
variable table across the code that reloads local variables from
the continuation on reentry. However, when reentering the function
the local has no value until after the reloads from the
continuation.
This change splits the locals in the local variable table to
avoid such uninitialized locals. A local alive across a
suspension point has its range split in two. One that goes
from the original start to the state label for the restart
after the suspension. The other goes from after the local
has been reloaded from the continuation until the previous
end of the local.
2021-04-30 22:24:03 +02:00
Dmitry Petrov
83e3a702c5
JVM_IR KT-46408 properly map fake overrides in method handles
2021-04-30 22:24:02 +03:00
Vasily Levchenko
ef2c2c2c9e
[kotlin][tests][compiler/testData/debug/stepping] kt-42208 test added.
2021-04-30 18:44:55 +00:00
Vasily Levchenko
3160fc84fa
[kotlin-native][tests] kt-42208 test added.
2021-04-30 18:44:54 +00:00
Vasily Levchenko
a6a7da31c9
[IR][provisional function expression] do generate function reference with offset of call site.
2021-04-30 18:44:54 +00:00
Tianyu Geng
b6bd4ae8e6
FIR: check DELEGATE_SPECIAL_FUNCTION_RETURN_TYPE_MISMATCH
2021-04-30 19:58:50 +03:00
Mikhael Bogdanov
84e67da2af
Mute test on JDK 6
2021-04-30 18:24:10 +02:00
Mikhael Bogdanov
95d95f9a9b
Put reification markers came from super object signature
...
#KT-44770 Fixed
#KT-30696 Open
2021-04-30 17:34:16 +02:00
Sergey Shanshin
8dd307573a
Fix IR compilation of external serializers in native
2021-04-30 18:17:08 +03:00
Mikhail Glukhikh
80a449862e
FIR: implement diagnostics for qualifier as stand-alone expression case
2021-04-30 17:59:45 +03:00
Mikhail Glukhikh
84ccf7bbb1
FIR: use Java 8 rules in not implemented checker
2021-04-30 17:59:38 +03:00
Mikhail Glukhikh
5de8401494
Reset FirQualifiedNameResolver properly
2021-04-30 17:59:32 +03:00
Victor Petukhov
4fb78fab93
Temporary disable failing jspecify tests on Windows
2021-04-30 17:50:56 +03:00
Victor Petukhov
c9568c0744
Fix FIR tests
2021-04-30 16:49:56 +03:00
Victor Petukhov
7c62e9aecd
Introduce warnings reporting by missed constraints because of incorrect optimization in the constraints processor
2021-04-30 15:46:04 +03:00
Victor Petukhov
e110b49cab
Revert "Don't stop constraints processing if all type variables have proper equality constraints"
...
This reverts commit b87c2a15
2021-04-30 15:46:03 +03:00