Dmitry Petrov
041773fd25
JVM optimize out temporary variables in bytecode
2021-08-24 18:56:11 +03:00
Dmitry Petrov
bddfd086f6
JVM minor reuse updateMaxStack in CoroutineTransformerMethodVisitor
2021-08-24 18:56:10 +03:00
Dmitry Petrov
7b3d5b7863
JVM minor: extract base class from FixStackInterpreter
2021-08-24 18:56:09 +03:00
Alexander Udalov
4f29c113b7
Remove KotlinCompilerVersion.IS_PRE_RELEASE
...
Now, milestones of major Kotlin releases (e.g. 1.6.0-M1) will NOT
generate prerelease binaries anymore.
The reason for that is it's proven to be quite a complicated process to
turn on IR_PRE_RELEASE after the release is branched, perform double
bootstrap and fix tests, and then do it again in reverse just before
release. With the new release cadence, we don't have that much time to
do it and verify that everything works as intended.
Note that this only removes the "global" prerelease flag. Compiler will
still generate prerelease binaries if a non-stable language version is
used. For example, Kotlin 1.6.0-M1 with `-language-version 1.7` will
generate prerelease binaries.
2021-08-24 16:23:42 +02:00
nataliya.valtman
260d301100
Report compiler performance data to ES
2021-08-24 16:33:13 +03:00
Stanislav Erokhin
9becb2c468
Add compiler performance metrics
...
WIP
2021-08-24 16:33:12 +03:00
nataliya.valtman
64da19cb2d
Add Artifact Transform stat into ES
2021-08-24 16:33:11 +03:00
Alexander Udalov
75b8d44be5
Minor, fix some typos/errors in test-infrastructure ReadMe
2021-08-24 12:28:31 +02:00
Alexander Udalov
8d4f26cf84
IR: use inlineClassRepresentation in getInlineClassUnderlyingType
...
Looking for the primary constructor manually doesn't work if it's
private in the other module on JVM, because private declarations are
skipped in IrLazyClass.
2021-08-24 12:28:31 +02:00
Alexander Udalov
66dbd91851
IR: minor, remove unused 'isInlined'
2021-08-24 12:28:31 +02:00
Mikhail Glukhikh
12726bde15
Deprecate smart cast on alien derived property #KT-48101 Fixed
2021-08-24 12:32:30 +03:00
Mikhail Glukhikh
3f8734f694
FIR: determine synthetic accessor modality more precisely
...
Related to KT-47542
2021-08-24 12:32:30 +03:00
Mikhail Glukhikh
bbb76aae3f
Provide more precise check for ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED
...
#KT-47542 Fixed
2021-08-24 12:32:30 +03:00
Roman Artemev
22cd20781e
[JS IC] Support per-file invalidation in CLI
...
- now disabled
2021-08-24 01:09:18 +03:00
Roman Artemev
001d3d8bc2
[JS IC] Implement per-file cache invalidation algorithm
...
- track inline graph
- not finished yet, it's a POW
2021-08-24 01:09:18 +03:00
Roman Artemev
cccca56c18
[JS IC] Implement inline call graph tracker and inline hash computer
2021-08-24 01:09:17 +03:00
Roman Artemev
1f11aa00c0
[JS IC] Implement IC cache provider and consumer to access IC data
2021-08-24 01:09:16 +03:00
Roman Artemev
76690c081a
[KLIB] Provide required API for IC invalidation
2021-08-24 01:09:16 +03:00
Roman Artemev
4ad2572085
[JS IC] Delete only PIR related part of IC Cache, not the whole dir
2021-08-24 01:09:14 +03:00
Roman Artemev
03b66ab51e
[IR] Add API into IdSignature to filter inaccessible function in IC
2021-08-24 01:09:14 +03:00
Roman Artemev
35e16d2db6
[JS IC] Extract PIR cache IO into separate functions
2021-08-24 01:09:13 +03:00
Roman Artemev
7d8c86caf1
[KLIB] Add API to access file's part of data as ByteArray
...
It requires for computing fingerprint of IrFile in IC infra
2021-08-24 01:09:12 +03:00
Roman Artemev
e4c2d4937f
[KLIB] Extract signature deserialization into separate class
2021-08-24 01:09:11 +03:00
Steven Schäfer
f05f9882ab
IR: Handle annotation instantiations in constructor calls
2021-08-23 23:04:35 +02:00
Steven Schäfer
6d518c8e57
JVM IR: Mark annotation implementation classes as anonymous
...
And add tests to ensure that annotation implementation classes are
handled correctly in jvm-abi-gen.
2021-08-23 18:25:33 +02:00
Steven Schäfer
8de6a5224f
jvm-abi-gen: Mark annotation implementation classes as public...
...
...if they are used from public inline functions in the same file.
2021-08-23 18:25:33 +02:00
Steven Schäfer
5059513106
jvm-abi-gen: Strip inline functions in private classes
...
Inline functions in private classes can only be accessed from Java and
we do not need to preserve their bodies for the abi.
2021-08-23 18:25:33 +02:00
Steven Schäfer
3ffe495346
jvm-abi-gen: Mark all anonymous objects in inline function scope as public
...
Anonymous objects inside of a private inline function nested in a public
inline function can still escape.
2021-08-23 18:25:33 +02:00
Steven Schäfer
1b5214a2dc
JVM: Fix usage of ClassBuilder API in AnonymousObjectTransformer
2021-08-23 18:25:33 +02:00
Steven Schäfer
c9b0cc5b32
JVM: Only produce inline SAM wrappers in public inline scope
2021-08-23 18:25:33 +02:00
Steven Schäfer
50bbf4f269
JVM IR: Remove special descriptor origin for lambdas.
...
This was a hack to allow plugins to identify anonymous classes in
inline function scope. However, this stopped working for anonymous
objects with the introduction of IrBasedDescriptors and became redundant
with the public ABI bit in the Kotlin Metadata annotation.
2021-08-23 18:25:33 +02:00
Steven Schäfer
a54503cede
JVM: Add an extension point for file output
2021-08-23 18:25:33 +02:00
Steven Schäfer
de9d2919a8
JVM Metadata: Add a bit to mark anonymous objects in inline functions
...
Anonymous objects in the scope of an inline functions are copied to
all call-sites. This makes them part of the public ABI of a Kotlin
library.
We introduce a flag to mark all classes in the scope of an inline
function. When compiling with assertions enabled, we check that
this flag is set whenever we inline an anonymous object from another
module.
2021-08-23 18:25:33 +02:00
Ilya Chernikov
caa44e413d
Abstract FIR cli pipeline from core environment and related entities
2021-08-23 16:50:40 +03:00
Dmitriy Novozhilov
40614507d3
[FE 1.0] Report warning about new IL operator resolve in initializers and default values
...
^KT-48361 Fixed
2021-08-23 16:20:41 +03:00
pyos
a15a5aa429
JVM_IR: generate instance fields even when reification is needed
...
The inliner supports that, we just need to generate the reification
markers on GETFIELD to instance fields.
2021-08-23 14:27:51 +02:00
Ilmir Usmanov
c01c356817
Do not extend LVT ranges during inplace arguments inlining
...
Otherwise, R8 does not transform kotlin-reflect, failing bootstrap.
Leaving end label the same is safe, since we do not remove labels during
transformation.
2021-08-23 11:51:30 +00:00
Mikhael Bogdanov
92e94a4068
Add JDK 17 test configuration
2021-08-23 13:48:35 +02:00
Dmitriy Novozhilov
27ac7dbf9a
[Test] Unmute passing codegen tests
2021-08-23 14:29:12 +03:00
pyos
17afe1b546
Fail on redundant IGNORE_BACKEND directives, as before
2021-08-23 14:29:10 +03:00
Mikhail Glukhikh
255eb87375
Provide more clear API around AnnotationChecker.applicableTargetSet
2021-08-23 14:18:38 +03:00
Mikhail Glukhikh
19ab0ab2f8
FIR: approximate intersections in public position properly
...
#KT-48166 Fixed
2021-08-23 14:18:36 +03:00
Mikhail Glukhikh
7b0e5927cb
Report EXPERIMENTAL_ANNOTATION_ON_WRONG_TARGET without explicit @Target
...
#KT-48349 Fixed
2021-08-23 14:18:34 +03:00
Andrey Zinovyev
865fccdd29
[FIR] Add messages for JvmRecord diagnostics
...
Also fix some tests
2021-08-23 10:33:24 +00:00
Andrey Zinovyev
a3049b35c2
[FIR] Add ILLEGAL_JAVA_LANG_RECORD_SUPERTYPE diagnostic
2021-08-23 10:33:24 +00:00
Andrey Zinovyev
09a1d54865
[FIR] Add JVM_RECORD_EXTENDS_CLASS diagnostic
2021-08-23 10:33:23 +00:00
Andrey Zinovyev
8c2d37917f
[FIR] Add DELEGATION_BY_IN_JVM_RECORD diagnostic
2021-08-23 10:33:23 +00:00
Andrey Zinovyev
3314c8faac
[FIR] Add FIELD_IN_JVM_RECORD diagnostic
2021-08-23 10:33:23 +00:00
Andrey Zinovyev
dbc1e31e67
[FIR] Add INNER_JVM_RECORD diagnostic
2021-08-23 10:33:22 +00:00
Andrey Zinovyev
49484c4292
[FIR] Add JVM_RECORD_NOT_LAST_VARARG_PARAMETER diagnostic
2021-08-23 10:33:22 +00:00