Victor Petukhov
54f0794ce3
[FE] Substitute erased type parameters as covariant
2022-04-27 19:50:28 +00:00
Victor Petukhov
4293b546ba
[FE] Provide org.jetbrains.kotlin.load.java.components.TypeUsage as an alias of org.jetbrains.kotlin.types.TypeUsage for IDEA
2022-04-27 19:50:27 +00:00
Victor Petukhov
fb76d819f0
[FE] Erase type parameters of super types during intersection type emptiness check as well
2022-04-27 19:50:27 +00:00
Victor Petukhov
0f1d212fc5
[FE] Fix tests
2022-04-27 19:50:27 +00:00
Victor Petukhov
12a39d0330
[FE 1.0] Report errors due to inferred empty intersection on those candidates which were already previously discriminated by CompatibilityOfTypeVariableAsIntersectionTypePart
2022-04-27 19:50:26 +00:00
Victor Petukhov
38913b68b2
[FE] Add additional test for marking with warnings a call resolve of which is going to be changed
2022-04-27 19:50:26 +00:00
Victor Petukhov
39d13442be
[FE] Support intersection type emptiness checking for interfaces
2022-04-27 19:50:25 +00:00
Victor Petukhov
1da52ab197
[FE] Add test for KT-51016
2022-04-27 19:50:25 +00:00
Victor Petukhov
b32887380a
[FE] Move empty intersection tests into separate directory
2022-04-27 19:50:24 +00:00
Victor Petukhov
e0a1f1c405
[FE] Review fixes
2022-04-27 19:50:24 +00:00
Victor Petukhov
c71ae4301c
[FE 1.0] Get rid of absolute CompatibilityOfTypeVariableAsIntersectionTypePart
2022-04-27 19:50:24 +00:00
Victor Petukhov
47d6236a2d
[FIR] Support determining emptiness of an intersection type with type parameters' types
2022-04-27 19:50:23 +00:00
Victor Petukhov
313da6f41e
[FIR] Unbind type parameter erasing from java
2022-04-27 19:50:23 +00:00
Victor Petukhov
f31cf90de2
[FE 1.0] Unbind type parameter erasing from java
2022-04-27 19:50:22 +00:00
Victor Petukhov
5bfe6cd20a
[FE] Implement discussed rules to report empty intersection errors
2022-04-27 19:50:22 +00:00
Victor Petukhov
b96708c3e2
[FE] Support reporting INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION for empty intersection types with type parameters
2022-04-27 19:50:21 +00:00
Victor Petukhov
c16ae81a48
[FIR] Report errors for upper bounded type variables by an empty intersection type
...
^KT-51221 Fixed
2022-04-27 19:50:21 +00:00
Victor Petukhov
65213e9a42
[FE 1.0] Report warnings or errors for upper bounded type variables by an empty intersection type
2022-04-27 19:50:21 +00:00
Victor Petukhov
9474406375
[FIR] Check if type variable is bounded in upper by incompatible types (resolution stage)
2022-04-27 19:50:20 +00:00
Victor Petukhov
095a5d1fdf
[FIR] Get rid of unnecessary opt ins
2022-04-27 19:50:20 +00:00
Victor Petukhov
9885094472
[FIR] Don't turn constraint storage into FREEZED stage during resolution
2022-04-27 19:50:19 +00:00
Victor Petukhov
e7bd464a3c
[FE 1.0] Check if type variable is bounded in upper by incompatible types (resolution stage)
...
^KT-51221 Fixed
2022-04-27 19:50:19 +00:00
Victor Petukhov
9e9e0211eb
[FE] Check if type variable is fixed into an empty intersection type and report resolution warnings/errors if needed (completion stage)
...
^KT-51221 Fixed
2022-04-27 19:50:18 +00:00
Victor Petukhov
8e834fc7bb
[FIR] Move subtyping helpers into TypeUtils.kt
2022-04-27 19:50:17 +00:00
Hung Nguyen
a7403fc615
[New IC] Remove "-dontwarn com.google.gson.**" from compiler.pro
...
This line was added in commit 8c611e0 to allow the
`incremental-compilation-impl` module to use Gson.
This module is no longer using Gson now (only used by its unit tests),
so we can revert that commit.
^KT-52141 Fixed
2022-04-27 15:26:27 +00:00
Hung Nguyen
9eb3c7ed76
[New IC] Optimize Java class snapshotting with ASM ClassWriter
...
To snapshot a Java class (+ its fields and methods), previously we used
Gson to serialize a class field/method to a string via reflection, and
hash that string.
We now use an ASM ClassWriter to write a placeholder class containing
the field/method of interest and hash the bytecode of that class.
One experiment showed that this new approach is ~10 times faster than
the previous approach (140s down to 16s when snapshotting 600 jars).
Test: Updated expectation files for JavaClassSnapshotterTest unit tests
+ Existing integration tests to prevent regression
^KT-52141 In Progress
2022-04-27 15:26:26 +00:00
Sergey Bogolepov
5a0c3920a5
[K/N] Properly support watchosArm64
2022-04-27 14:46:35 +00:00
Sergey Bogolepov
7401760d23
[K/N] Remove obsolete hack in ClangArgs
...
Fixes backend.native:tests for watchosArm64 target.
2022-04-27 14:46:34 +00:00
Yahor Berdnikau
0d38f293d5
Properly set jvmTarget from toolchain for KaptGenerateStubsTask
...
^KT-51415 Fixed
2022-04-27 14:01:05 +00:00
Alexander Shabalin
663e843544
[K/N] Refactor allocators ^KT-52130
...
Merge-request: KT-MR-6135
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2022-04-27 14:00:27 +00:00
nataliya.valtman
a05bb3c77c
Store module info under own module name for incremental compilation
...
#KT-51463 Fixed
2022-04-27 13:17:07 +00:00
Svyatoslav Scherbina
5fd468c066
Native: mention the way to suppress Xcode version check in the build
...
When building Kotlin/Native from sources on macOS, build scripts check
that installed Xcode has specific major version. It is possible to
suppress the version mismatch error (with caution), but the error
message didn't mention that.
Fix that by adding a hint to the error message.
2022-04-27 12:41:53 +00:00
Igor Chevdar
04ef856780
[IR] Replaced K/N findPackage with common getPackageFragment
2022-04-27 11:19:17 +00:00
Yahor Berdnikau
78b23eea10
Make deprecated 'classpath' input Kotlin/DSL user-friendly
...
This should simplify user migration.
^KT-52189 Fixed
2022-04-27 10:50:42 +00:00
Ilya Goncharov
f95d1d89f1
Update qunit dependency for tests
...
Update qunit call
Update qunit dependency for tests
Merge-request: KT-MR-6169
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com >
2022-04-27 10:32:28 +00:00
Artem Kobzar
ccc2aae841
fix(KT-50270): inline properties accessor for child classes too.
2022-04-27 10:21:38 +00:00
Igor Laevsky
3de1235fda
[WASM] Add command line option to enable/disable assertions
2022-04-26 20:41:52 +00:00
Nkolay Krasko
c38985c93e
Remove findShadowJarsInClasspath logic from the build
2022-04-26 19:47:23 +00:00
Nkolay Krasko
5f0fce115c
Remove zipPlugin task as we don't have a plugin in the repository anymore
2022-04-26 19:47:23 +00:00
Nkolay Krasko
b428b5c1b8
Remove kaptIdeTest, kaptTests task is used instead
2022-04-26 19:47:22 +00:00
Dmitriy Novozhilov
19f4c3edda
[CLI] Report compilation error if compiler plugins are enabled alongside with K2 compiler
...
^KT-52037 Fixed
2022-04-26 21:03:04 +04:00
Dmitry Gridin
e5bfb8295e
[jps][tests] migrate from 1.6 to 1.8 jdk
...
^KTIJ-20456
2022-04-26 21:41:36 +07:00
Alexander Korepanov
7920b8302c
[JS IR] Fix race condition of IC hash calculator
...
^KT-52154 Fixed
2022-04-26 11:30:00 +00:00
Dmitry Gridin
0be0627e34
[jps][tests] remove hardcoded js-ir-runtime path
...
^KTIJ-20456
2022-04-26 13:19:35 +07:00
Kristoffer Andersen
4f8ef8c315
[EE-IR] Support Local Functions
...
This commit introduces support for calling and referencing local functions and
objects in evaluate expression on the IR backend.
The primary incision is a lowering inserted after Local Declaration Lowering,
that uses the intermediate data structures recorded by LDL to rewrite calls to
local functions to the appropriate function in the binary, instead of predicting
the compilation strategy. The required changes to the rest of the pipeline
facilitate piping the required data around.
The key to this transformation is that _captures by the local function_ must be
introduced as _captures by the fragment function_, such that the evaluator
infrastructure can find the appropriate values at run-time. This is necessary
due to the strategy of compiling local functions to static functions instead of
closures.
Additional test coverage of stepping behavior support the corresponding changes
in the Evaluator, part of the Kotlin Debugger plug-in.
2022-04-25 16:59:04 +03:00
Yahor Berdnikau
5af9303a16
Add Kvision project to build regression benchmarks
...
This project covers Kotlin/JS build performance
^KT-51380 Fixed
2022-04-25 14:08:24 +02:00
Yahor Berdnikau
ce0116e1f2
Color percents
...
Depending on the percent color it to highlight problematic place
^KT-51360 Fixed
2022-04-25 14:08:24 +02:00
Yahor Berdnikau
fbc3608959
Show difference in percent
...
For configuration and execution phases from previous stable release
^KT-51360 In Progress
2022-04-25 14:08:23 +02:00
Yahor Berdnikau
c890e42ae6
Increase cell limit for benchmark result html
...
^KT-51360 In Progress
2022-04-25 14:08:23 +02:00
Yahor Berdnikau
375eff4993
Update kotlin-dataframe to 0.8.0-dev-952
...
This version contains fix for https://github.com/Kotlin/dataframe/issues/101
^KT-51360 In Progress
2022-04-25 14:08:23 +02:00