Commit Graph

6392 Commits

Author SHA1 Message Date
Igor Chevdar 06f2ef17be [optmz] Fix for https://youtrack.jetbrains.com/issue/KT-41907 + test 2020-09-17 09:01:31 +03:00
Ilya Matveev 2c821351df [build] Fix stdlib caches in the light distribution
Latest changes in the cache layout has added a new bitcode_deps file
to a cache directory. But a task building a light distribution
bundle doesn't handle this. So such files for stdlib and
kotlinx.cli are missing in the light distribution. This causes
failures when building platform libs and caches at the user side.

This patch fixes this issue by taking the new cache layout into
account in the bundle task.
2020-09-17 12:20:23 +07:00
Ilya Matveev 83b8240dbb [build] Fix outputs for the cache task
A klib filename without extension was used to determine a name
of a cache directory for this klib. This is incorrect if the
klib is stored in a directory with dots in its name. This breaks
up-to-date checks, so Gradle doesn't rerun the task if the
cache directory was deleted.

This patch fixes this issue.
2020-09-17 12:20:23 +07:00
Pavel Punegov 251cf1220b Add more tests to exclude list 2020-09-16 16:35:01 +03:00
Pavel Punegov 269f6f5493 Support friend modules in external tests 2020-09-16 16:35:01 +03:00
Pavel Punegov 90d4246d22 Actualize exclude list 2020-09-16 16:35:01 +03:00
Pavel Punegov 646f2cb114 Fix insertion of packages and imports after the file annotation 2020-09-16 16:35:01 +03:00
Elena Lepilkina c50ff6dd07 Increase time for measurement for stabilizing work of LSD on benchmarks 2020-09-16 14:40:23 +03:00
SvyatoslavScherbina aa3b28919e Fix support for @OverrideInit constructors with default arguments
#KT-41910 Fixed
2020-09-16 14:24:14 +03:00
Mattia Iavarone b47a5e75fe Make gles31 depend on gles3 2020-09-16 17:23:05 +07:00
Mattia Iavarone d29521fb72 Add gles31.def to Android platform libs 2020-09-16 17:23:05 +07:00
Svyatoslav Scherbina c585751d78 Enable coverage_controlflow and coverage_smoke1 tests in two-stage mode 2020-09-16 11:44:50 +03:00
Svyatoslav Scherbina 3b496f3b54 Fix coverage for else branch in deserialized IR 2020-09-16 11:44:50 +03:00
Sergey Bogolepov fed14c4e60 [samples] Fix coverage sample compilation 2020-09-16 12:59:58 +07:00
Sergey Bogolepov da2a2b73e9 [samples] 1.4.10 2020-09-16 12:59:58 +07:00
Ilya Matveev c302ae895e Update Gradle: 6.6.1 2020-09-16 12:23:50 +07:00
Mattia Iavarone ae4c934f97 Add android/native_window_jni.h to Android platform libs 2020-09-15 18:54:05 +07:00
Vasily Levchenko f714514918 [build][jar-collision] added META-INF/deserialization.common.[jvm.]kotlin_module 2020-09-15 13:18:32 +02:00
Alexander Udalov fd84ca039d IR: minor, make IrClass.companionObject return IrClass
(cherry picked from commit c2f34c96f96fe52b3f3fbbe5de0313d7712f67f6)
2020-09-15 13:18:32 +02:00
Dmitriy Novozhilov 3d552ae7bb Update jar collision rules
(cherry picked from commit c92160b3639a0bfdc82b9e6dfc50a8eed8684d31)
2020-09-15 13:18:32 +02:00
Igor Chevdar 31908c568c [IR] Used new fake override builder for lowerings
(cherry picked from commit a6f63f61c4c0db689a678d5f4d808cef109894e5)
2020-09-15 13:18:32 +02:00
Vasily Levchenko 6ab5e16b56 [kotlin compiler][update] 1.4.30-dev-148
* 680dd64211 - (tag: build-1.4.30-dev-148) FIR2IR: pick return target based on matched IrFunction (vor 2 Stunden) <Jinseong Jeon>
* 6ebad9589a - FIR2IR: set proper IR origin for iterator in ranges (vor 2 Stunden) <Jinseong Jeon>
* 578e707ab9 - FIR2IR: set VARIABLE_AS_FUNCTION origin only for invoke receivers (vor 2 Stunden) <Mikhail Glukhikh>
* f0a2a62405 - [FIR2IR] Minor: coneTypeSafe -> coneType (vor 3 Stunden) <Mikhail Glukhikh>
* 89ffce22d8 - FIR2IR: set proper IR origin for variable as function (vor 3 Stunden) <Jinseong Jeon>
* bf3a7e5fea - (tag: build-1.4.30-dev-139) Add more tasks in Gradle build for running GradleIT in parallel (vor 13 Stunden) <Andrey Uskov>
* a7f57646bf - (tag: build-1.4.30-dev-137) Prevent rebuilding by avoid registering doFirst on source tasks (KTI-324) (vor 17 Stunden) <Nikolay Krasko>
* 9250d86915 - (tag: build-1.4.30-dev-135) JVM IR: generate field for private companion object in interface as synthetic (vor 26 Stunden) <Alexander Udalov>
* fc141a52da - IR: minor, make IrClass.companionObject return IrClass (vor 26 Stunden) <Alexander Udalov>
* 2f86554d5a - (tag: build-1.4.30-dev-129) IR: don't produce fake overrides for static and private declarations (vor 2 Tagen) <Alexander Udalov>
* 703150e3ad - (tag: build-1.4.30-dev-127) FIR IDE: Refactor `LowLevelFirApiFacade.kt` (vor 2 Tagen) <Roman Golyshev>
* edb277b30a - FIR Completion: Enable passing tests (vor 2 Tagen) <Roman Golyshev>
* dcc22d3e5d - FIR IDE: Fix completion in property setters (vor 2 Tagen) <Roman Golyshev>
* 5c1520305b - FIR IDE: Build symbols from any `FirValueParameter` (vor 2 Tagen) <Roman Golyshev>
* ae8933dbd2 - FIR IDE: Correctly handle properties in `KtFirCompletionCandidateChecker` (vor 2 Tagen) <Roman Golyshev>
* 6fd871d0ba - FIR IDE: Add building completion context for properties (vor 2 Tagen) <Roman Golyshev>
* 58965d1e71 - FIR IDE: Implement `RawFirBuilder::buildPropertyWithBody`, add tests (vor 2 Tagen) <Roman Golyshev>
* 5f57311015 - (tag: build-1.4.30-dev-125) JVM_IR: remove .toKotlinType() from intrinsics.Equals (vor 2 Tagen) <Georgy Bronnikov>
* 2c1735c211 - JVM_IR: remove descriptor usage from JvmOptimizationLowering (vor 2 Tagen) <Georgy Bronnikov>
* a14c9018b1 - JVM_IR: remove descriptor usage from SyntheticAccessorLowering (vor 2 Tagen) <Georgy Bronnikov>
* 3327524e18 - JVM_IR: remove descriptor usage from TypeAliasAnnotationMethodsLowering (vor 2 Tagen) <Georgy Bronnikov>
* 905978a458 - JVM_IR: remove descriptor usage from JvmCachedDeclarations (vor 2 Tagen) <Georgy Bronnikov>
* 92b03e7ede - JVM_IR: Remove descriptor usage from IrSourceCompilerForInline (vor 2 Tagen) <Georgy Bronnikov>
* 0a66dbf2b5 - JVM_IR: remove descriptor usage in CompareTo intrinsic (vor 2 Tagen) <Georgy Bronnikov>
* 370622087b - (tag: build-1.4.30-dev-112) Redundant nullable return type: false negative with return expression in local function or lambda (vor 3 Tagen) <Toshiaki Kameyama>
* de3907e8cc - Redundant nullable return type: fix false positive with non-local return (vor 3 Tagen) <Toshiaki Kameyama>
* 349cad7b9a - (tag: build-1.4.30-dev-110) Minor: migrate remaining scanReduceIndexed usages (vor 3 Tagen) <Ilya Gorbunov>
* 744f290fc4 - (tag: build-1.4.30-dev-107) A proper modality calculation was missing in IR fake override construction algorithm (vor 3 Tagen) <Alexander Gorshenev>
* 2886f48795 - (tag: build-1.4.30-dev-105) Improve spelling in Kotlin Test module's README.md (vor 3 Tagen) <Louis CAD>
* 64408c19f8 - (tag: build-1.4.30-dev-102) Add missing "The" article in kotlin.test doc (vor 3 Tagen) <Louis CAD>
* 175a8bec9d - (tag: build-1.4.30-dev-95) Make KotlinCoreEnvironment.disposeApplicationEnvironment() public (vor 3 Tagen) <Andrey Uskov>
* fca6436170 - (tag: build-1.4.30-dev-93) Fix IDE test after bcd33da6f8 (vor 3 Tagen) <Victor Petukhov>
* e08763f3dd - (tag: build-1.4.30-dev-89) [ULC] Add annotations for PsiTypes in UltraLight classes (vor 3 Tagen) <Igor Yakovlev>
* b82d8cd4f4 - [ULC] Fixed invalid access to lightclass infrastructure from UL (vor 3 Tagen) <Igor Yakovlev>
* 8fc94ddb8c - [UCL] Minor fixes (vor 3 Tagen) <Igor Yakovlev>
* 97ac86273a - [ULC] Add support of const fields to multifile facade (vor 3 Tagen) <Igor Yakovlev>
* 309bf49a83 - Update lightclass tests renderer (vor 3 Tagen) <Igor Yakovlev>
* c70383cc70 - [ULC] Add compiler flag -Xdisable-ultra-light-classes to fallback to light implementation in CLI (vor 3 Tagen) <Igor Yakovlev>
* e53db4c771 - Uast: fixing `WrappedUAnnotation` identifiers (vor 3 Tagen) <Nicolay Mitropolsky>
* 4b8f1bb362 - [ULC] Add LanguageVersionSettings to CliLightClassGenerationSupport (vor 3 Tagen) <Igor Yakovlev>
* 31b4a021a9 - [ULC] Add JvmDeclarationOriginKind.DELEGATION to DeclarationOriginKindForOrigin of delegated methods (vor 3 Tagen) <Igor Yakovlev>
* b263e1c924 - [ULC] Remove nullability annotation for UL backing fields of private props (vor 3 Tagen) <Igor Yakovlev>
* a36d53e086 - [ULC] Skip nullability annotation for backing field of lateinit property (vor 3 Tagen) <Igor Yakovlev>
* cd32cf7828 - [ULC] Add PsiElement overrides for UL elements with source (vor 3 Tagen) <Igor Yakovlev>
* 131c14626c - [ULC] Fix invalid alias search for UL classes (vor 3 Tagen) <Igor Yakovlev>
* 2c16ae968d - [ULC] Add support @receiver annotation site to UL classes (vor 3 Tagen) <Igor Yakovlev>
* dbb4337ac4 - [ULC] Fix invalid annotation resolve for KtUltraLightParameterForSetterParameter (vor 3 Tagen) <Igor Yakovlev>
* db6aa9140d - [ULC] Refactor for lightAnnotations classes (vor 3 Tagen) <Igor Yakovlev>
* c4cee35cca - [ULC] Fixed invalid UL facade annotations (vor 3 Tagen) <Igor Yakovlev>
* 6542ea9ba1 - [ULC] Add constant evaluation to light classes service (vor 3 Tagen) <Igor Yakovlev>
* 55bb8f24e3 - [ULC] Move UltraLightSupport to service provided bridge (vor 3 Tagen) <Igor Yakovlev>
* 7cb2631991 - [ULC] Fix light class Coherence test (vor 3 Tagen) <Igor Yakovlev>
* 7b0eb51f8d - [ULC] Add annotation support for UL facades (vor 3 Tagen) <Igor Yakovlev>
* a5e304f520 - [ULC] Better nullability annotations for light classes (vor 3 Tagen) <Igor Yakovlev>
* c3810dc223 - [ULC] Fixed UL backing field initializers (vor 3 Tagen) <Igor Yakovlev>
* 129979b0ff - [ULC] Improve UL facades for private properties without accessors (vor 3 Tagen) <Igor Yakovlev>
* 025e2f2fe9 - [ULC] Better support for UL MultifileFacade classes (vor 3 Tagen) <Igor Yakovlev>
* bc12fb0d6b - [ULC] Enable UL for script classes (vor 3 Tagen) <Igor Yakovlev>
* 1d248f1a00 - [ULC] Fixed invalid fqName for script inner classes (vor 3 Tagen) <Igor Yakovlev>
* 236e41e024 - [ULC] Fixed invalid super type for UL scripts (vor 3 Tagen) <Igor Yakovlev>
* 6accc8fcf9 - [ULC] Fixed invalid constructor parameter list for UL script (vor 3 Tagen) <Igor Yakovlev>
* bf91ada06c - (tag: build-1.4.30-dev-86) [NI] Suppress false positive IDEA warnings in NewConstraintSystemImpl (vor 3 Tagen) <Dmitriy Novozhilov>
* 178cef5631 - [FIR] Don't create synchronized lazy for constraint system in candidate (vor 3 Tagen) <Dmitriy Novozhilov>
* a528deef0a - [FIR] Update testdata due to previous commit and KT-37638 (vor 3 Tagen) <Dmitriy Novozhilov>
* 1dc3c93efa - [FIR] Don't assume types with not found symbol as error types (vor 3 Tagen) <Dmitriy Novozhilov>
* 7f692be11e - [FIR] Properly detect callable reference type according conversions (vor 3 Tagen) <Dmitriy Novozhilov>
* ec93e5886a - (tag: build-1.4.30-dev-85) [FIR2IR] Fix generation of accessors' extension receiver (f/o case) (vor 3 Tagen) <Mikhail Glukhikh>
* 36d2129fd3 - (tag: build-1.4.30-dev-81) Move common deserialization classes from :core:metadata modules (vor 3 Tagen) <Dmitriy Novozhilov>
* 07a3009d43 - Introduce new modules for common parts of deserialization (vor 3 Tagen) <Dmitriy Novozhilov>
* 2f4bd626fc - [FIR] Make constant values in fir serialization internal (vor 3 Tagen) <Dmitriy Novozhilov>
* 9e1e525343 - Fix circular dependency between :core:compiler:common.jvm and :core:metadata.jvm (vor 3 Tagen) <Dmitriy Novozhilov>
* c82d9ea9f4 - Remove dependency on :compiler:frontend.java from :compiler:fir:java (vor 3 Tagen) <Dmitriy Novozhilov>
* 1417fcecb8 - Move more common parts from :compiler:descriptors.jvm (vor 3 Tagen) <Dmitriy Novozhilov>
* 192e07a07b - [FIR] Remove dependency on FE 1.0 modules form :compiler:fir:fir-deserialization (vor 3 Tagen) <Dmitriy Novozhilov>
* 5d4d07066b - Move common deserialization components to :core:metadata and :core:metadata.jvm (vor 3 Tagen) <Dmitriy Novozhilov>
* cdab00fdc8 - [FIR] Remove dependency on :core:deserialization from :compiler:fir:fir-serialization (vor 3 Tagen) <Dmitriy Novozhilov>
* 9beeb51227 - [FIR] Implement fir-specific contract values and fix annotations serialization (vor 3 Tagen) <Dmitriy Novozhilov>
* e1ad1aabc4 - Move RequireKotlinConstants to :core:compiler.common (vor 3 Tagen) <Dmitriy Novozhilov>
* 8d2e89a9ea - Move ProtoEnumFlags to :core:metadata (vor 3 Tagen) <Dmitriy Novozhilov>
* e39ce91253 - (tag: build-1.4.30-dev-76) [IR] Fixed fake override builder for lowerings (vor 3 Tagen) <Igor Chevdar>
* 7f4bda0d52 - (tag: build-1.4.30-dev-70) Enable FUS internal mode on IDE launching (vor 4 Tagen) <Andrey Uskov>
* ae9c1af883 - (tag: build-1.4.30-dev-66) Do not use erroneous unsigned/signed comparison in UnsignedArraysTest (vor 4 Tagen) <Alexander Udalov>
* bcd33da6f8 - (tag: build-1.4.30-dev-63) Don't check an argument type during passing it to vararg in the named form to avoid false positives if the argument type is type variable yet (vor 4 Tagen) <Victor Petukhov>
* 2c4c8cdf01 - (tag: build-1.4.30-dev-62) [Wizard] Update versions in wizard (vor 4 Tagen) <Ilya Goncharov>
* 38854ce40b - (tag: build-1.4.30-dev-56) Disable profilerConfig for AHeavyInspectionsPerformanceTest (vor 4 Tagen) <Vladimir Dolzhenko>
* e3b07120bb - (tag: build-1.4.30-dev-54) Build: Don't retry tests in local builds (vor 4 Tagen) <Vyacheslav Gerasimov>
* 29f3811bab - (tag: build-1.4.30-dev-49) Update gradle tooling (vor 4 Tagen) <Kirill Shmakov>
* 60b812f452 - Reorder arguments in KotlinNativeTest for better debug (vor 4 Tagen) <Kirill Shmakov>
* ef58e0cd71 - (tag: build-1.4.30-dev-24) FIR2IR: refactor adapter generation (vor 4 Tagen) <Jinseong Jeon>
* 5fdd06676f - FIR: discriminate candidates with suspend conversion (vor 4 Tagen) <Jinseong Jeon>
* 6de8ba40c1 - FIR: initial support of suspend conversion on arguments (vor 4 Tagen) <Jinseong Jeon>
* 49679f3145 - (tag: build-1.4.30-dev-23) FIR: map arguments for overloading indexed access operator (vor 4 Tagen) <Jinseong Jeon>
* a73856be66 - (tag: build-1.4.30-dev-22) Add warn message to ReplaceWithIgnoreCaseEquals inspection. (vor 4 Tagen) <Vladimir Dolzhenko>
* 5036673187 - (tag: build-1.4.30-dev-21, tag: build-1.4.30-dev-18) Improve package caching in KotlinJavaPsiFacade (vor 4 Tagen) <Vladimir Dolzhenko>
* 05d3e48564 - (tag: build-1.4.30-dev-11) Implemented collecting statistics about JS target mode (vor 4 Tagen) <Andrey Uskov>
* 4716228500 - Add js generate executable default collecting statistics (vor 4 Tagen) <Ilya Goncharov>
* 405e271b68 - Add js generate externals collecting statistics (vor 4 Tagen) <Ilya Goncharov>
* 6f03e42ef7 - (tag: build-1.4.30-dev-10) Revert back Inspection: convert initialized val to non-null type (vor 4 Tagen) <Vladimir Dolzhenko>
* 12ebd429bc - (tag: build-1.4.30-dev-3) Revert "Light classes support for declarations in multipart classes." (vor 5 Tagen) <Vladimir Ilmov>
* d324ae6cda - (tag: build-1.4.20-eap-2, tag: build-1.4.20-dev-4619) Fix AS 4.0 compilation (vor 5 Tagen) <Vladimir Dolzhenko>
* 0492a52a6a - (tag: build-1.4.20-dev-4617) Minor. Regenerate tests (vor 5 Tagen) <Ilmir Usmanov>
* 52f9569d33 - Generate CHECKCAST Object inside the markers (vor 5 Tagen) <Ilmir Usmanov>
* e8a451072e - Minor. Add tests with same JvmType in covariant override (vor 5 Tagen) <Ilmir Usmanov>
* 7cbd067460 - Add tests with resume path (vor 5 Tagen) <Ilmir Usmanov>
* 1c97eafea8 - Check for COROUTINE_SUSPENDED inside callable reference (vor 5 Tagen) <Ilmir Usmanov>
* 4303e8126f - Do not generate suspend markers inside callable reference (vor 5 Tagen) <Ilmir Usmanov>
* ccc5b7afe0 - Box inline class in resume path of suspend call (vor 5 Tagen) <Ilmir Usmanov>
* 023cdd7cd4 - Support not boxing inline class of reference class (vor 5 Tagen) <Ilmir Usmanov>
* 5c011bc954 - (tag: build-1.4.20-dev-4615) Don't report when property is multi-line and action is MOVE (vor 5 Tagen) <Toshiaki Kameyama>
* 4569b85a16 - MoveVariableDeclarationIntoWhenInspection: report it if initializer is single line even if property is multi line (vor 5 Tagen) <Toshiaki Kameyama>
* 75d4c7e91c - Find stdlib usages test case (vor 5 Tagen) <Vladimir Ilmov>
* 8b239d89b6 - SourceNavigationHelper multifile classes support (vor 5 Tagen) <Vladimir Ilmov>
* 3764eeba25 - (tag: build-1.4.20-dev-4613) Build: Setup gradle.test-retry plugin for all test tasks in the project (vor 5 Tagen) <Vyacheslav Gerasimov>
* 3d7619421f - JVM IR: fix exception on star projection in type parameter upper bound (vor 5 Tagen) <Alexander Udalov>
* 685d16ec68 - (tag: build-1.4.20-dev-4610) NI: don't do substitution for unsupported callable descriptors to use as callable references (vor 5 Tagen) <Victor Petukhov>
* 668098f3a8 - (tag: build-1.4.20-dev-4606) [Gradle, JS] Add simple files without kotlinx.html (vor 5 Tagen) <Ilya Goncharov>
* 3ea51a982c - (tag: build-1.4.20-eap-1, tag: build-1.4.20-dev-4602) Light classes support for declarations in multipart classes. (vor 5 Tagen) <Vladimir Ilmov>
* a5d91339b5 - (lightClass) multifile classes facade in libraries added (vor 5 Tagen) <Vladimir Ilmov>
* ac22232b8d - (tag: build-1.4.20-dev-4601) Register disposable startup items in PluginStartupService (vor 5 Tagen) <Vladimir Dolzhenko>
* e5985ad98b - Rename PluginStartupService to PluginStartupApplicationService (vor 5 Tagen) <Vladimir Dolzhenko>
* c1ebd33833 - (tag: build-1.4.20-dev-4598) Capture flexible intersection types properly: take into account both bounds and use the same captured arguments for them (vor 5 Tagen) <Victor Petukhov>
* 140edb2215 - Consider intersection with ILT subtype of ILT (vor 5 Tagen) <Victor Petukhov>
* 7bd9c52732 - (tag: build-1.4.20-dev-4595) FIR Completion: Fix completion in function calls (`foo.bar<caret>()`) (vor 5 Tagen) <Roman Golyshev>
* 2d4d48b401 - FIR IDE: Invert the order of the scopes for completion (vor 5 Tagen) <Roman Golyshev>
* f748d8cf70 - (tag: build-1.4.20-dev-4592) [FIR] Extract ResolutionContext to separate file (vor 5 Tagen) <Dmitriy Novozhilov>
* 1a84ec9677 - [FIR] Mark all session components respectively to they have mutable state or not (vor 5 Tagen) <Dmitriy Novozhilov>
* 8686e3779e - [FIR] Make all session components abstract classes (vor 5 Tagen) <Dmitriy Novozhilov>
* caf325934c - [FIR] Unmake FirSamResolver as session component (vor 5 Tagen) <Dmitriy Novozhilov>
* 29addd2a2b - [FIR] Make InferenceComponents session component (vor 5 Tagen) <Dmitriy Novozhilov>
* 41b395b0aa - [FIR] Extract mutable state from InferenceComponents (vor 5 Tagen) <Dmitriy Novozhilov>
* d70858edfa - [FIR] Get rid of inference components in CheckerSink (vor 5 Tagen) <Dmitriy Novozhilov>
* 912676d868 - [FIR] Introduce ResolutionContext and get rid of components in Candidate (vor 5 Tagen) <Dmitriy Novozhilov>
* c53ffca34f - [FIR] Extract BodyResolveContext from FirAbstractBodyResolveTransformer (vor 5 Tagen) <Dmitriy Novozhilov>
* edb1273355 - [FIR] Report ResolutionDiagnostics instead of applicability in resolve (vor 5 Tagen) <Dmitriy Novozhilov>
* a148db9d81 - [FIR] Get rid of CandidateApplicability.SYNTHETIC_RESOLVED (vor 5 Tagen) <Dmitriy Novozhilov>
* 19707667fd - [FIR] Cleanup detection that applicability is successful (vor 5 Tagen) <Dmitriy Novozhilov>
* 68f3d84e22 - [FIR] Use CandidateApplicability from FE 1.0 (vor 5 Tagen) <Dmitriy Novozhilov>
* cd557ad178 - Change order of enum entries in CandidateApplicability (vor 5 Tagen) <Dmitriy Novozhilov>
* d1568c1ce6 - Rename `ResolutionCandidateApplicability` to `CandidateApplicability` (vor 5 Tagen) <Dmitriy Novozhilov>
* db2e3f219f - [FIR] Keep bare type for type alias case (vor 5 Tagen) <Mikhail Glukhikh>
* 3a5d0ab427 - (tag: build-1.4.20-dev-4581) JVM IR: fix HashCode intrinsic for generics substituted with primitives (vor 5 Tagen) <Alexander Udalov>
* c46c80822c - JVM IR: fix enclosing constructor for lambdas in inner classes (vor 5 Tagen) <Alexander Udalov>
* 228e329d1f - JVM IR: generate enclosing constructor only for lambdas in initializers (vor 5 Tagen) <Alexander Udalov>
* 2ab68b3245 - (tag: build-1.4.20-dev-4580) Wizard: move boolean setting description to the bottom (vor 6 Tagen) <Ilya Kirillov>
* ce00366c7f - Wizard: fix when first selected template cannot be applied (vor 6 Tagen) <Ilya Kirillov>
* 3a6011fae9 - Wizard: always generate android MPP tests (vor 6 Tagen) <Ilya Kirillov>
* 553c525701 - Wizard: fix Gradle buildscript formatting (vor 6 Tagen) <Ilya Kirillov>
* 0f799d593d - Wizard: specify test platform to use on JVM (vor 6 Tagen) <Ilya Kirillov>
* 7002e86d6b - Wizard: fix path & artifactId updating on name update (vor 6 Tagen) <Ilya Kirillov>
* 929b5f727d - (tag: build-1.4.20-dev-4575) Build: add :compiler:fir:entrypoint to compilerModules (vor 6 Tagen) <Alexander Udalov>
* 7fb7dc0210 - Fix deprecation warnings related to Project extensions (vor 6 Tagen) <Alexander Udalov>
* 196893bc4d - Build: fix more warnings about deprecated/Alpha MPP plugins (vor 6 Tagen) <Alexander Udalov>
* 06680452dc - (tag: build-1.4.20-dev-4571) [JVM_IR] Always look for default lambdas in the inliner. (vor 6 Tagen) <Mads Ager>
* a12e22bba4 - (tag: build-1.4.20-dev-4556) [Spec tests] Fix dependencies for spec tests generator (vor 6 Tagen) <anastasiia.spaseeva>
* 9d3426486b - (tag: build-1.4.20-dev-4549) [Gradle, JS] Support explicitApi in js plugin (vor 6 Tagen) <Ilya Goncharov>
* 28a83b04cd - [FIR] Minor. Fix code style (vor 6 Tagen) <Dmitriy Novozhilov>
* 67604dcb66 - [FIR] Add generator for checkers aliases and sets of checkers (vor 6 Tagen) <Dmitriy Novozhilov>
* 4de57fcac2 - [FIR] Initialize module for checkers generator (vor 6 Tagen) <Dmitriy Novozhilov>
* 6656669551 - [FIR] Fix typo (vor 6 Tagen) <Dmitriy Novozhilov>
* 3b9e86ccbf - [FIR] Remove empty file (vor 6 Tagen) <Dmitriy Novozhilov>
* a8a5ed3cd3 - [FIR] Get rid of `runCheck` in checkers components (vor 6 Tagen) <Dmitriy Novozhilov>
* 71a855112e - [FIR] Get rid of ParallelDiagnosticsCollector (vor 6 Tagen) <Dmitriy Novozhilov>
* 20a1ea0413 - [Wizard, JS] Change js compiler default (vor 6 Tagen) <Ilya Goncharov>
* 6746bd81d5 - (tag: build-1.4.20-dev-4548) PSI2IR tests for KT-41735 (vor 6 Tagen) <Dmitry Petrov>
* aa04c0b5df - Parent call already on KotlinBuiltInDecompiler.kt:79 (vor 6 Tagen) <Vladimir Ilmov>
* 44ffb1fb3e - (tag: build-1.4.20-dev-4543) Psi2Ir: Fix SAM conversion with new inference (vor 6 Tagen) <Steven Schäfer>
* 75891e860b - (tag: build-1.4.20-dev-4539) FIR2IR: split getIrPropertyOrFieldSymbol, handle locals there (vor 6 Tagen) <pyos>
* f198a19ab0 - FIR2IR: add local delegated property generation (vor 6 Tagen) <pyos>
* 4792be2522 - (tag: build-1.4.20-dev-4530) JVM IR: Optimize static property references (KT-36975) (vor 7 Tagen) <Steven Schäfer>
* 669fda6b77 - (tag: build-1.4.20-dev-4527) Do not add duplicate $completion when compiling JVM against JVM_IR (vor 7 Tagen) <Alexander Udalov>
* ae448ececb - Minor, add compileKotlinAgainstKotlin test case for KT-41374 (vor 7 Tagen) <Alexander Udalov>
* 9e357354fb - Add JVM/JVM_IR mixed compilation tests for compileKotlinAgainstKotlin/boxInline (vor 7 Tagen) <Alexander Udalov>
* e324733b01 - Tests: accept TargetBackend in KotlinBaseTest.createConfiguration (vor 7 Tagen) <Alexander Udalov>
* 0dea6b94c6 - JVM IR: unmute boxInline tests on enclosing method/class (vor 7 Tagen) <Alexander Udalov>
* 985088a3f1 - (tag: build-1.4.20-dev-4524) [Gradle, JS] Add test on dukat with both mode (vor 7 Tagen) <Ilya Goncharov>
* b694e3b009 - [Gradle, JS] Dukat with both create externals only once (vor 7 Tagen) <Ilya Goncharov>
* 210cd982f0 - (tag: build-1.4.20-dev-4521) [Gradle, JS] Use webpack config's required dependencies in karma (vor 7 Tagen) <Ilya Goncharov>
* b5aca450b1 - (tag: build-1.4.20-dev-4520) Make cancellation checks when building resolution anchor caches (vor 7 Tagen) <Pavel Kirpichenkov>
* 54811613f4 - Minor: drop unnecessary wrapper for utility function (vor 7 Tagen) <Pavel Kirpichenkov>
* 1ff064d98d - Make Kotlin OOCBM updater for modules internal again (vor 7 Tagen) <Pavel Kirpichenkov>
* 9d6bdc6fc4 - Support modification tracking for source-dependent LibraryInfo (vor 7 Tagen) <Pavel Kirpichenkov>
* 6abd708d42 - Preserve order entry to module info mapping in IdeaModelInfosCache (vor 7 Tagen) <Pavel Kirpichenkov>
* 24d8aee2bb - Prioritize resolution anchors during resolution (vor 7 Tagen) <Pavel Kirpichenkov>
* f8ee976720 - Use union of all available descriptors in composite importing scope (vor 7 Tagen) <Pavel Kirpichenkov>
* 5892bdf3f4 - Extend import resolution for library-to-source analysis (vor 7 Tagen) <Pavel Kirpichenkov>
* 8c876e4621 - (tag: build-1.4.20-dev-4518) FIR IDE: Get rid of `originalPosition` in `KtFirCompletionCandidateChecker` (vor 7 Tagen) <Roman Golyshev>
* 828fc2520c - FIR IDE: Refactor `KtFirCompletionCandidateChecker` (vor 7 Tagen) <Roman Golyshev>
* 33ac487a42 - (tag: build-1.4.20-dev-4509) [FIR-IDE] Fix leaking KtAnalysisSession (vor 7 Tagen) <Pavel Kirpichenkov>
* 909d418dd1 - (tag: build-1.4.20-dev-4508) Improve diagnostics in `KtElementImplStub::getContainingKtFile` (vor 7 Tagen) <Roman Golyshev>
* 5b53663eb8 - (tag: build-1.4.20-dev-4505) PSI2IR KT-41181 don't generate deep trees in hashCode (vor 7 Tagen) <Dmitry Petrov>
* ade1a346e1 - JVM: add test for KT-40123 (vor 7 Tagen) <Dmitry Petrov>
* 45c67a90c2 - (tag: build-1.4.20-dev-4502) (CoroutineDebugger) Disposing under IW lock. (vor 7 Tagen) <Vladimir Ilmov>
* 01143f24a4 - (tag: build-1.4.20-dev-4494) Add KotlinClassConstructorInfoHandler for showing parameter info of parameterized super class constructor. (vor 7 Tagen) <Sebastian Kaspari>
* d674f519fd - (tag: build-1.4.20-dev-4491) [FIR-IDE] Fix completion check for generic extensions (vor 7 Tagen) <Pavel Kirpichenkov>
* 60dfa8cc84 - (tag: build-1.4.20-dev-4488) Ignore ProcessCancelledException in VirtualFileKotlinClass (vor 7 Tagen) <Vladimir Ilmov>
* 3de32e13ea - (tag: build-1.4.20-dev-4487) Clean up declarationAccessorNames debug check in UnusedSymbolInspection (vor 7 Tagen) <Vladimir Dolzhenko>
* 127257aa27 - Provide setter-method for LC for private property setter (vor 7 Tagen) <Vladimir Dolzhenko>
* b5b319803b - Add more diagnostics to tackle exception in KotlinFunctionParameterInfoHandler (vor 7 Tagen) <Vladimir Dolzhenko>
* 87e70cf690 - Handle project disposed in ScriptDefinitionsManager (vor 7 Tagen) <Vladimir Dolzhenko>
* 4e3b1f141e - Use runReadActionInSmartMode instead of runReadAction in ConfigureKotlinInProjectUtils (vor 7 Tagen) <Vladimir Dolzhenko>
* 02be470e91 - Check if vFile is still valid in ScriptClassRootsUpdater#updateHighlighting (vor 7 Tagen) <Vladimir Dolzhenko>
* ba027a785c - Fix NPE in GradleScriptInfo (vor 7 Tagen) <Vladimir Dolzhenko>
* 698f51079f - Perform paste reference resolve in smart mode (vor 7 Tagen) <Vladimir Dolzhenko>
* b00ce872ea - (tag: build-1.4.20-dev-4486) JVM: record JVM signature for equals/hashCode/toString in inline classes (vor 7 Tagen) <Dmitry Petrov>
2020-09-15 13:18:32 +02:00
Sergey Bogolepov 612a503e31 [KT-41655] Add test for incomplete types 2020-09-15 15:47:19 +07:00
Sergey Bogolepov 6d3839c125 [KT-41655] Fix support for forward declarations.
Fix type translation for forward declarations by converting it to LazyIR.
2020-09-15 15:47:19 +07:00
SvyatoslavScherbina 4f8b7d1266 Fix cache testing on cross targets 2020-09-15 11:46:46 +03:00
Sergey Bogolepov 31bad64728 [Linkage][Lowering] InternalABI
To effectively access enum entries during separate compilation (in other words, when compiling with caches), we need to reference
Enum.$OBJECT.get-VALUES function. It is not a part of a public API because it is generated during EnumClassLowering. What are possible solutions?
1. Lazy IR. It is no-go, because there is no descriptor for it.
2. Generate IrFiles and appropriate packages during lowering. We can't do it, because lowerings are file-based and ConcurrentModificationException will occur.
2.1. Store declarations in list and add file later? Still not an option, because .parent (or module) for these declaration won't be initialized which breaks lowerings.
3. Something ugly. Here we go! We add a special file before lowerings which stores all declaration that form an internal ABI.
2020-09-15 15:44:27 +07:00
Sergey Bogolepov 9ea3ee9ad2 [Linker][Interop] Emit Lazy IR for cached structs and enums
We don't need to create IrClass declarations for structs
and enums from cached interop libraries, because these declarations are stored in caches already.
2020-09-15 15:44:27 +07:00
Sergey Bogolepov ea7117d9ab Move PSI to IR translation to separate file 2020-09-15 15:44:27 +07:00
Sergey Bogolepov 0fc0cb221e Update kotlinx-metadata-klib version
The new version drops dependency on descriptors
2020-09-15 14:20:25 +07:00
Elena Lepilkina c4293a8e58 Replace request to get branch name from TC in order to get right info in builds with several projects 2020-09-15 10:10:13 +03:00
Elena Lepilkina 7e439432cd Fix configurations on Mac and Windows 2020-09-15 09:20:04 +03:00
Elena Lepilkina 8b2fed994a Added possibility to use cset to run benchmarks in the isolated cpus 2020-09-14 20:16:39 +03:00
Sergey Bogolepov e9dd7cb3b6 [KT-34261][Linker] Pre-link static caches
Use `ld -r` on darwin-based targets to pre-link static caches
before final linker invocation. It allows to hide symbols from
caches to avoid linkage problems when linking 2 or more
Kotlin-produced binaries.

Sadly, it has several problems:
1. `ld -r` is slow.
2. There is no obvious way to make common symbols private.
These are the reasons why we don't enable `-Xpre-link-cached` by default.
2020-09-14 22:45:54 +07:00
Sergey Bogolepov a710a478a5 Minor linker code clean-up 2020-09-14 22:45:54 +07:00
Igor Chevdar 5bc03a45a7 [IR] Rewrote debug output using Context.log 2020-09-14 15:06:25 +03:00
Vladimir Ivanov c4ce945262 Use ForeignException wrapper to handle native exception [KT-35056] (#4307)
* Use ForeignException wrapper to handle native exception [KT-35056]

* Add test

* Use Any? instead of NativePtr for automagic memory management

* Use clauseNSException specific clause, similar to `catch (NSException* e)

* cleanup + test fix

* Terminate on anything else but NSException

* Use ForeignException message for NSException details

* Code generated for AppleFamily only + move stuff to kotlinx.cinterop package

* Cleanup

* Fix platform-dependent code generation

* Fix test allocException

* wip: ForeignExceptionMode option: cinterop part

* ForeignExceptionMode support in compiler

* rework test for foreignExceptionMode option

* More tests on foreignExceptionMode option

* PR feedback: resolveFakeOverride and more

* Test reworked and extended

Co-authored-by: Vladimir Ivanov <vladimir.d.ivanov@jetbrains.com>
2020-09-14 13:50:32 +03:00
dependabot[bot] 0e6bfa062a Bump node-fetch from 2.6.0 to 2.6.1 in /tools/performance-server
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-14 09:42:40 +03:00
LepilkinaElena fc083fc134 Fix searching of executable file (#4368) 2020-09-10 13:22:47 +03:00
Igor Chevdar 0a5e64f617 [runtime][codegen] Added lifetime constraint check
Current memory model forbids a heap object to reference a stack object,
so check that explicitly on each field store for now
2020-09-10 09:16:48 +03:00
Igor Chevdar d7a8dd8277 Bump konanVersion: 1.4.30 2020-09-09 18:53:55 +03:00
Igor Chevdar e542e80b76 [runtime] Made IsInstanceOfClassFast pure function 2020-09-09 16:40:42 +03:00
Igor Chevdar 583b51aa1e [optmz] Some tests on escape analysis 2020-09-09 16:40:42 +03:00
Igor Chevdar 31f4655ebd [optmz][codegen] Rewrote escape analysis 2020-09-09 16:40:42 +03:00
Igor Chevdar 981b1e5632 [optmz] Made DataFlowIR aware of internal magic of ObjC.instanceOf 2020-09-09 16:40:42 +03:00
Igor Chevdar dc0b4ad238 [optmz] DataFlowIR: Added scopes for loops 2020-09-09 16:40:42 +03:00
Igor Chevdar 2f35bbec41 [IR] Removed DFG serializer 2020-09-09 16:40:42 +03:00
SvyatoslavScherbina 46f3348b27 Increase timeout in worker11 test
(see 94cc0a24 for details)
2020-09-09 14:10:45 +03:00
Igor Chevdar 61c3f15826 [IR] Fix for https://youtrack.jetbrains.com/issue/KT-41394 + test
It is redundant to initialize the "label" field with null, since all freshly allocated objects are zeroed out
2020-09-09 13:53:29 +03:00
Igor Chevdar 125c6ac703 [IR] Optimization for 2-element string concatenation 2020-09-08 14:28:12 +03:00
LepilkinaElena 57b9185909 Fix searching executable on MacOSX (#4360) 2020-09-08 13:59:35 +03:00