Commit Graph

5506 Commits

Author SHA1 Message Date
Pavel Punegov 66e8ce4cb2 Fix coroutineTestUtil: add missing parameter 2019-12-13 13:39:48 +03:00
LepilkinaElena 736bbf0a86 Separate bits combination in object header for local variables on stack (#3659) 2019-12-12 16:35:39 +03:00
Nikolay Igotti 607210bea3 Allow stateless and constant objects compile-time init . (#3645)
Allow stateless and constant objects compile-time init.
2019-12-12 16:24:43 +03:00
Vasily Levchenko 8f9d3ccfe4 [kotlin compiler][update] 1.3.70-dev-2665
* df0a86ea57 - (tag: build-1.3.70-dev-2665) Add NOP as first instruction in coroutine's try blocks (19 hours ago) <Ilmir Usmanov>
* 4777dd652b - [FIR] Add tests to catch issues with smartcasting of accesses to functions and properties (type information is stored for the symbol and ALL accesses to the same symbol are smartcasted). (19 hours ago) <Mark Punzalan>
* f031b47363 - [FIR] Fix issue with multiple smartcasts of `this`. (19 hours ago) <Mark Punzalan>
* 91f97fa611 - [FIR] Support FirCheckNotNullCall in HTML dump. (19 hours ago) <Mark Punzalan>
* 6e00df06e8 - [FIR] Add data flow analysis for FirCheckNotNullCall. (19 hours ago) <Mark Punzalan>
* 692a83f7bb - [FIR] Add FirCheckNotNullCall converted to CHECK_NOT_NULL intrinsic function call. (19 hours ago) <Mark Punzalan>
* 6bc0fe121a - (tag: build-1.3.70-dev-2660) Gradle: Escape TC service messages in debug logs (20 hours ago) <Ilya Matveev>
* 33df86338b - Gradle, tests: Improve tests for running simulator unit-tests (20 hours ago) <Ilya Matveev>
* 254864a49d - Gradle, native, JS: Support excluding tests using TestFilter (20 hours ago) <Ilya Matveev>
* cc3438f20c - Gradle, native: Add separate classes for targets with different tests (20 hours ago) <Ilya Matveev>
* e6ab70c18d - Gradle, native: Support simulator tests (20 hours ago) <Ilya Matveev>
* 8225c5a9ce - (tag: build-1.3.70-dev-2659) Remove obsolete logic to `IS_BUILT_WITH_ASM6` (20 hours ago) <Mikhael Bogdanov>
* a92f58b1ac - (tag: build-1.3.70-dev-2657) Revert "NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed ^KT-32435 Fixed" (21 hours ago) <victor.petukhov>
* ccea2b73da - (tag: build-1.3.70-dev-2654) [Gradle, JS] Add using Debuggable non headless chrome (22 hours ago) <Ilya Goncharov>
* 354be2b14f - (tag: build-1.3.70-dev-2653) [minor] Change expression evaluation cli argument to -Xexpression (22 hours ago) <Ilya Chernikov>
* ba056bf78c - [minor] Remove irrelevant part of the test (22 hours ago) <Ilya Chernikov>
* 748cbd7eec - (tag: build-1.3.70-dev-2652) Import Kotlin JUnit run configuration settings from Gradle (22 hours ago) <Yan Zhulanow>
* 0a9a08eab6 - Rename Kotlin-specific Gradle configuration to "Kotlin Gradle" to avoid disambiguation (22 hours ago) <Yan Zhulanow>
* 1bdff8f884 - Rename Kotlin-specific JUnit configuration to "Kotlin JUnit" to avoid disambiguation (22 hours ago) <Yan Zhulanow>
* 8477c1935c - Run configuration: do not contain FQN in name (22 hours ago) <Toshiaki Kameyama>
* ce21a55943 - Debugger: Add IR-powered ranking tests (22 hours ago) <Yan Zhulanow>
* 31596f0d0b - Formatter: fix some cases of call chain with `wrap first call chain` #KT-35388 Fixed (22 hours ago) <Dmitry Gridin>
* e7ff0315d4 - Formatter: fix line break before value parameter with annotation #KT-23811 Fixed (22 hours ago) <Dmitry Gridin>
* f05a452ef2 - (tag: build-1.3.70-dev-2650) [coroutine][debugger] Unit test support added for Gradle run configurations. (22 hours ago) <Vladimir Ilmov>
* 82cdcb421b - jdi.StringReferenceImpl references replaced with StringReference (22 hours ago) <Vladimir Ilmov>
* e2010cb90d - (tag: build-1.3.70-dev-2646) Do not cast to jdi impl classes (23 hours ago) <Egor Ushakov>
* 038ec8edcf - (tag: build-1.3.70-dev-2644) Rethrow ProcessCanceledException in FIR resolve (23 hours ago) <Mikhail Glukhikh>
* 2b82618715 - Fix unresolved references in bunch generate tests (23 hours ago) <Mikhail Glukhikh>
* 9e263b6af2 - FIR IDE: use registry to obtain kotlin.use.fir.resolution (23 hours ago) <Mikhail Glukhikh>
* cad0d7ff7f - (tag: build-1.3.70-dev-2643) Fix compilation of maven-plugin test after 508330e0bb (23 hours ago) <Mikhail Zarechenskiy>
* 09c2b92b1d - (tag: build-1.3.70-dev-2640) NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed ^KT-32435 Fixed (24 hours ago) <Victor Petukhov>
* 78dfcef160 - (tag: build-1.3.70-dev-2635) JVM_IR: move generateParameterNames to FunctionCodegen.kt (26 hours ago) <pyos>
* 13a2879b78 - JVM_IR: generate more correct parameter metadata (26 hours ago) <pyos>
* cf86dc9a89 - (tag: build-1.3.70-dev-2634) KT-20357: Add sample for Collections distinct and distinctBy methods (28 hours ago) <Tillmann Berg>
* f0e67f8397 - (tag: build-1.3.70-dev-2633) Fix coreLibsInstall composite task (30 hours ago) <Ilya Gorbunov>
* 6792d22c31 - (tag: build-1.3.70-dev-2613) Fix minor bugs for UL methods and parameters representation (2 days ago) <Igor Yakovlev>
* 094de9fb5e - (tag: build-1.3.70-dev-2606) IR: Do not capture variables from method calls in ClosureAnnotator (2 days ago) <Georgy Bronnikov>
* 344bc33096 - (tag: build-1.3.70-dev-2602) [FIR TEST]: add problematic test with WeakHashMap.get ambiguity (2 days ago) <Mikhail Glukhikh>
* 12f17a6724 - (tag: build-1.3.70-dev-2600) "Add constructor parameters" quick fix should add default parameters from super class (#2869) (2 days ago) <Toshiaki Kameyama>
* f0298aad77 - (tag: build-1.3.70-dev-2598) FIR: Refine SAM support for methods with names from j.l.Object (2 days ago) <Denis Zharkov>
* e89c777fc6 - FIR: Create DefinitelyNotNull only for annotated types (2 days ago) <Denis Zharkov>
* 56cae75404 - (tag: build-1.3.70-dev-2595) Fix StringBuilder reverse test (2 days ago) <Abduqodiri Qurbonzoda>
* edf5675415 - (tag: build-1.3.70-dev-2593) [FIR TEST]: add problematic test with covariant array as receiver (2 days ago) <Mikhail Glukhikh>
* 7d62e3ce56 - FIR: fix hasTopLevelClassOf optimization in deserialized provider (2 days ago) <Mikhail Glukhikh>
* fa89aa0b49 - Do not use member scope provider from FIR resolution API (2 days ago) <Mikhail Glukhikh>
* 718a679b72 - FIR IDE API: add preliminary control of file in-block modifications (2 days ago) <Mikhail Glukhikh>
* 83ccd7dd1c - FIR: implement separate diagnostic collector/reporter for IDE (2 days ago) <Mikhail Glukhikh>
* fbf1dbf2da - FIR: introduce error message renderer (2 days ago) <Mikhail Glukhikh>
* e07b85ff34 - FIR Java providers: insert some protection against ProcessCanceledException (2 days ago) <Mikhail Glukhikh>
* cd089658bd - IdeFirProvider: insert protection against ProcessCanceledException (2 days ago) <Mikhail Glukhikh>
* fc117466a8 - AbstractFirPsiCheckerTest: do partial error diagnostic comparison for some cases (2 days ago) <Mikhail Glukhikh>
* 4b251eb986 - FIR IDE: lock FIR files before calling runResolve on them (2 days ago) <Mikhail Glukhikh>
* 63121df6ba - Synchronized IdeFirProvider.getOrBuild file, don't share RawFirBuilder (2 days ago) <Mikhail Glukhikh>
* ccb343e26b - FIR: preliminary implementation of diagnostics highlighter (~30% supported) (2 days ago) <Mikhail Glukhikh>
* 34202faaa5 - Code cleanup: KotlinPsiChecker (2 days ago) <Mikhail Glukhikh>
* 1d6d88b50c - FIR reference resolve test: observe mute tests which are actually passing (2 days ago) <Mikhail Glukhikh>
* f8c86d2f9f - FIR reference resolve test: mute 37/107 cases which aren't yet supported (2 days ago) <Mikhail Glukhikh>
* 900227fdfa - KtReferenceResolver: implement resolveToPsiElements() via FE IR (~60% supported) (2 days ago) <Mikhail Glukhikh>
* 809b7d8381 - FirResolution: store enabled value in field with initial reading from component (2 days ago) <Mikhail Glukhikh>
* 0d2d76696c - Add FirResolution.enabled wrapper (2 days ago) <Mikhail Glukhikh>
* 00112d4227 - (tag: build-1.3.70-dev-2588) [FIR] Copy receiver of delegateProvider in fir building (2 days ago) <Dmitriy Novozhilov>
* 51560f2f17 - [FIR] Fix order of resolving children of FirProperty (2 days ago) <Dmitriy Novozhilov>
* e281d224a3 - [FIR] Fix testdata broken in b76c984b (2 days ago) <Dmitriy Novozhilov>
* a89e9966e6 - [FIR] Fix call completion of complex constant expressions with integer contants (2 days ago) <Dmitriy Novozhilov>
* f8b1e95830 - (tag: build-1.3.70-dev-2583, origin/rr/gradle/ilgonmic/debugger-js) [Gradle, JS] Inline single used method for prefix matching (2 days ago) <Ilya Goncharov>
* 8c6941dc5b - [Gradle, JS] Java and JS difference in fqn should affect exclude patterns too (2 days ago) <Ilya Goncharov>
* 770e5147d0 - [Gradle, JS] Java and JS difference in fqn should affect exclude patterns too (2 days ago) <Ilya Goncharov>
* da16d48068 - (tag: build-1.3.70-dev-2580) [Gradle, JS] Remove debug console (2 days ago) <Ilya Goncharov>
* 096a6c9551 - [Gradle, JS] Fix failing Karma tests for empty tests (2 days ago) <Ilya Goncharov>
* 36d87c9905 - (tag: build-1.3.70-dev-2579) Mute GradleMultiplatformWizardTest (2 days ago) <Natalia Selezneva>
* b66fdad80c - Set since build to IDEA 192.7142.36 for 192 bunch (2 days ago) <Natalia Selezneva>
* 19e001afad - (tag: build-1.3.70-dev-2571, tag: build-1.3.70-dev-2570) Commonize Float.rangeTo(Float) #KT-35299 (3 days ago) <Abduqodiri Qurbonzoda>
* b76c984b26 - (tag: build-1.3.70-dev-2563) [FIR] Support IntegerLiteralTypes (3 days ago) <Dmitriy Novozhilov>
* 5577f0f8cb - [TMP] Make context in inference components universal (3 days ago) <Dmitriy Novozhilov>
* 4f3ff84d30 - [FIR] [TMP] Complete lambdas that are not part of some call (3 days ago) <Dmitriy Novozhilov>
* e560a67a89 - [FIR] Resolve this reference in delegating constructors (3 days ago) <Dmitriy Novozhilov>
* 583e07b3e4 - [FIR] Don't analyze properties twice (3 days ago) <Dmitriy Novozhilov>
* 99b0435de5 - (tag: build-1.3.70-dev-2529) Add possibility for JDKs substitution in the build script... (6 days ago) <Ilya Chernikov>
2019-12-12 12:07:19 +01:00
Pavel Punegov 4bf2fb0811 Replace deprecated displayName.
(cherry picked from commit d1cbeb355748590e8f0f20e1c7ae36e720870ea4)
2019-12-12 12:07:19 +01:00
Nikolay Igotti 2b44c908eb Properly disable tests on WASM. (#3665) 2019-12-12 11:06:04 +03:00
Igor Chevdar 7abca91838 Link with exceptionsSupport only for dynamic caches 2019-12-11 18:34:28 +03:00
Igor Chevdar cc3947c8eb Path fix 2019-12-11 14:25:29 +03:00
Igor Chevdar 6ec5443aef Fixed -make-cache option and tests on caches 2019-12-11 14:25:29 +03:00
Pavel Punegov 298ac706a5 SIMD test is expected to fail on wasm because it relies on exeptions 2019-12-11 12:51:10 +03:00
Pavel Punegov 4dd4911b58 Add read function implementation in wasm 2019-12-10 19:34:51 +03:00
Nikolay Igotti cae31c7853 Shared cyclic garbage detector. (#3616) 2019-12-10 16:47:32 +03:00
Igor Chevdar ac2729f316 More platform libs fixes 2019-12-10 12:34:47 +03:00
Igor Chevdar 0bc941e324 Called system <rename> for atomic moving of compiler's output 2019-12-09 20:17:59 +03:00
Igor Chevdar 355dd4af1d Fixed visibility problem on ios_arm64 2019-12-09 20:17:59 +03:00
Nikolay Igotti ffd34cf91f Add cache generator to platform lib generator. 2019-12-09 20:17:59 +03:00
Igor Chevdar 76e3ad7a5c Added shortcut option -add-cache for convenience 2019-12-09 20:17:59 +03:00
LepilkinaElena a6e1af87a4 Fixes for allocation/deallocation in runtime and benchmarks (#3649) 2019-12-09 19:41:49 +03:00
Pavel Punegov 65f8a7bbf2 Execute tests on iOS using xcodebuild and idb 2019-12-09 19:12:38 +03:00
Vasily Levchenko 3a1fa2da36 [kotlin compiler][update] 1.3.70-dev-2522
* f6b99955f8 - (tag: build-1.3.70-dev-2522) Update testData in bytecodeText (argument nullability assertions) (3 days ago) <Dmitry Petrov>
* d28743157a - Mute testPlatformValueContains in JVM_IR (3 days ago) <Dmitry Petrov>
* c83f68151c - Support @EnhancedNullability in psi2ir (3 days ago) <Dmitry Petrov>
* 429bf78afa - Add 'Collection#contains' as a special case to psi2ir tests (3 days ago) <Dmitry Petrov>
* 26782d7216 - Fix exception message checking (3 days ago) <Dmitry Petrov>
* a819104d81 - JVM_IR: generate nullability assertions for private operators (3 days ago) <Dmitry Petrov>
* 331347f9fe - Mute tests for explicit 'equals' on boxed primitives (3 days ago) <Dmitry Petrov>
* 89e1941dfd - Update testData for argument nullability assertion tests (3 days ago) <Dmitry Petrov>
* fc7783c7dd - JVM_IR: JvmArgumentNullabilityAssertionsLowering (3 days ago) <Dmitry Petrov>
* c676b58c14 - Minor: JvmBuiltinOptimizationLowering.kt: reformat & fix warnings (3 days ago) <Dmitry Petrov>
* 20fb519f1a - PSI2IR: Generate IMPLICIT_NOTNULL casts for platform type values (3 days ago) <Dmitry Petrov>
* dabf6376db - (tag: build-1.3.70-dev-2520) Update js reachable nodes count after expanding StringBuilder api (3 days ago) <Abduqodiri Qurbonzoda>
* df3bee3038 - (tag: build-1.3.70-dev-2518) Annotations: support injections in string arrays (KT-35222) (4 days ago) <Nicolay Mitropolsky>
* f82fe20d43 - (tag: build-1.3.70-dev-2513) [FIR] fix test data according to last commits (4 days ago) <Mikhail Glukhikh>
* 53935db992 - [FIR] fix compilation error (arose due to commit conflict) (4 days ago) <Mikhail Glukhikh>
* 6f222edb88 - (tag: build-1.3.70-dev-2512) [FIR] Add unresolved type counter to html dump (4 days ago) <Dmitriy Novozhilov>
* bef344b33e - Optimization / clarifying: getFirClassifierContainerFile (4 days ago) <Mikhail Glukhikh>
* 2f3618041b - FIR resolve: eliminate CallInfo.containingDeclaration as unused (4 days ago) <Mikhail Glukhikh>
* c1789a0ecc - FIR IDE: synchronous creation/registration of sessions (4 days ago) <Mikhail Glukhikh>
* 70fa12d9d2 - Extract FirDiagnosticsCollector to have creation logic in one place (4 days ago) <Mikhail Glukhikh>
* 9782ec1b1e - FIR resolve phases: set BODY_RESOLVE phased properly (4 days ago) <Mikhail Glukhikh>
* 26ee02ed02 - FIR: replace resolve phase in FirFile properly (4 days ago) <Mikhail Glukhikh>
* 1539ee30ff - FIR IDE: fix local class containing file search (4 days ago) <Mikhail Glukhikh>
* d35a26a75b - Optimization: introduce FirIdeResolveStateService to cache FirResolveState (4 days ago) <Mikhail Glukhikh>
* b4760bcbd3 - Extract AbstractResolveElementCacheTest to use in FIR cache testing (4 days ago) <Mikhail Glukhikh>
* 74a7a8c881 - FIR resolve (minor): provide source element for resolved qualifier (4 days ago) <Mikhail Glukhikh>
* 8808c775a4 - Introduce FirResolvedTypeRef.delegatedTypeRef to see children types in IDE (4 days ago) <Mikhail Glukhikh>
* 38c1a50c1d - (tag: build-1.3.70-dev-2510) [FIR] Resolve delegating constructor calls (4 days ago) <Dmitriy Novozhilov>
* de77bd526b - [FIR] Change default visibility for sealed class constructors from `private` to `public` (4 days ago) <Dmitriy Novozhilov>
* d840671620 - [FIR] Don't create delegating super constructor call to `kotlin.Enum` for enums (4 days ago) <Dmitriy Novozhilov>
* a0d8e5bde7 - [FIR] Don't create delegating constructor call to `kotlin.Annotation` (4 days ago) <Dmitriy Novozhilov>
* 25720e20f4 - [FIR] Fix bug in defining of completion mode (4 days ago) <Dmitriy Novozhilov>
* 088a949403 - [FIR] Add implicit type counter to html dump (4 days ago) <Dmitriy Novozhilov>
* e58711cde3 - (tag: build-1.3.70-dev-2509) FIR: Select most specific members from supertypes scope (4 days ago) <Denis Zharkov>
* e5166e0e7d - FIR: Extract common parts in FirSuperTypeScope (4 days ago) <Denis Zharkov>
* 43aa1f87df - FIR: Optimize supertypes scope structure (4 days ago) <Denis Zharkov>
* 91fce215d2 - FIR: Simplify super type scopes related code (4 days ago) <Denis Zharkov>
* b8984d154b - (tag: build-1.3.70-dev-2508, origin/rr/zharkov-fir-constructor-type-parameters) FIR: Do not copy type parameters from class to constructors (4 days ago) <Denis Zharkov>
* 20d02dd0ee - (tag: build-1.3.70-dev-2487) Commonize StringBuilder (5 days ago) <Abduqodiri Qurbonzoda>
* 1431e27a7b - Move StringBuilder to its own file (5 days ago) <Abduqodiri Qurbonzoda>
* 0c033297a8 - Move Appendable to its own file (5 days ago) <Abduqodiri Qurbonzoda>
* 50752d47fe - Move CharacterCodingException to its own file (5 days ago) <Abduqodiri Qurbonzoda>
* 956e085b22 - Rename text.kt file to StringBuilderJs.kt (5 days ago) <Abduqodiri Qurbonzoda>
* 2155f1680f - Fix small mistake in CharSequence.lastIndexOf documentation (5 days ago) <Abduqodiri Qurbonzoda>
* 4a0f683bea - (tag: build-1.3.70-dev-2470) JVM_IR: repair after switching Ir.Symbols to non-lazy table (5 days ago) <Georgy Bronnikov>
* 08aeed3b46 - IR: do not use lazyWrapper for Ir.Symbols (5 days ago) <Georgy Bronnikov>
* b0b04eb4cd - (tag: build-1.3.70-dev-2461) Use kotlin specific setting "Optimize imports on the fly" in quick fix (5 days ago) <Vladimir Dolzhenko>
* be5b7adb5a - (tag: build-1.3.70-dev-2455) FIR: Support captured types for sub-arguments (5 days ago) <Denis Zharkov>
* 5b4e8170ae - Fix variables leaking when adding other system under transaction (5 days ago) <Denis Zharkov>
* 692442d7a2 - Do not look into captured star projection as types (5 days ago) <Denis Zharkov>
* 3634d80cae - FIR: Order type variables for fixation (5 days ago) <Denis Zharkov>
* 7f77cc55f3 - (tag: build-1.3.70-dev-2451) Update the test for cleanup (6 days ago) <Ivan Gavrilovic>
* e07b2e30e2 - KT-34258: Make sure to clean up stale files even if no Kotlin sources (6 days ago) <Ivan Gavrilovic>
* a22a60118c - (tag: build-1.3.70-dev-2450) Fix 'Project#afterEvaluate(Action) <...> cannot be executed' on IDE test run (6 days ago) <Sergey Igushkin>
* edfd933348 - (tag: build-1.3.70-dev-2444) Improve Result docs to emphasize that any Throwable exception is caught (6 days ago) <Ilya Gorbunov>
* d84daa0a4b - (tag: build-1.3.70-dev-2442) JVM IR: fix value argument offset in -Xjvm-default=compatibility mode (6 days ago) <Alexander Udalov>
* 3de6289c6c - (tag: build-1.3.70-dev-2439, tag: build-1.3.70-dev-2435, origin/rrinf/kirpichenkov/test, minamoto/ir/inliner/variable-hint/kotlin) [NI] Run completion on subatoms of error calls (6 days ago) <Pavel Kirpichenkov>
* 29fbb8e22f - (tag: build-1.3.70-dev-2428) Update to 193.5233.102 release (KT-35239) (6 days ago) <Nikolay Krasko>
* fa64b5794b - Allow to mute parameterized GradleImportingTestCase JUnit 4 tests (6 days ago) <Nikolay Krasko>
* ca0bff75cd - (tag: build-1.3.70-dev-2425) [KLIB] Keep order of constant properties depending on backend  - Fix K/N performance regression (6 days ago) <Roman Artemev>
* 6ef3831f14 - Build: Take parent directory as rootProject directory in case of buildSrc (6 days ago) <Vyacheslav Gerasimov>
* 462d6ac5b6 - Build: Add remote build cache parameters for teamcity builds (6 days ago) <Vyacheslav Gerasimov>
* d3c1ef9251 - Build: Use kotlin-build-gradle-plugin in buildSrc (6 days ago) <Vyacheslav Gerasimov>
* ab8542bbdb - Build: Advance kotlin-build-gradle-plugin version to 0.0.2 (6 days ago) <Vyacheslav Gerasimov>
* 46d77419a8 - Build: Add build cache properties to kotlin-build-gradle-plugin (6 days ago) <Vyacheslav Gerasimov>
* ad79efeba3 - Build: Use kotlin version embedded to gradle (6 days ago) <Vyacheslav Gerasimov>
* fa7bd3dd2e - (tag: build-1.3.70-dev-2423) FIR: Support SAM constructors for type aliases (6 days ago) <Denis Zharkov>
* ae01d050c9 - FIR: Abstract parts for type alias constructors resolution (6 days ago) <Denis Zharkov>
* fbe7db5471 - FIR: Move constructor processing parts to a separate file (6 days ago) <Denis Zharkov>
* bf68e85a5c - FIR: Support SAM conversion for interfaces containing Object methods (6 days ago) <Denis Zharkov>
2019-12-09 16:52:35 +01:00
Abduqodiri Qurbonzoda 4d560d42f0 Common StringBuilder
(cherry picked from commit e465b75f252c4423b5c253060986e0646a7c6609)
2019-12-09 16:52:35 +01:00
Georgy Bronnikov ecd63a8dd9 Pass SymbolTable to Symbols constructor
(cherry picked from commit 4693cd79d8ce5287616227e1fb7fa566e41a5d65)
2019-12-09 16:52:35 +01:00
Ilya Matveev 1c0e3339e9 Avoid using deprecated API in interop tasks 2019-12-09 20:01:41 +07:00
Ilya Matveev 4cb6d11990 Gradle: Fix task property validation issues 2019-12-09 20:01:41 +07:00
Ilya Matveev d8c6ad4606 Fix Gradle 'konan' plugin tests
The konan plugin checks the GRADLE_METADATA
feature preview option and enables publication
only if this option is specified. But since version
6.0 Gradle metadata is enabled by default and the
corresponding feature preview option was removed
causing failures of konan plugin tests.

This patch removes the checks mentioned above to
fix these tests.
2019-12-09 20:01:41 +07:00
LepilkinaElena 60746d0438 Local escape analysis (#3625) 2019-12-09 15:37:24 +03:00
Sergey Bogolepov 7bae7adc4e Minor grammar fixes 2019-12-09 10:14:07 +07:00
Sergey Bogolepov e81251d553 Mention LLVM-related stuff in HACKING.md 2019-12-09 10:14:07 +07:00
Sergey Bogolepov b508b6f1af Add compiler option that allows to pass arguments to Clang
It is useful for compiler exploration and tuning.
2019-12-09 10:14:07 +07:00
Sergey Bogolepov 78ec094ce5 More precise control over backend phases
Refactor backend phases invocation to make it possible to
disable LLVM optimization pipeline. Also it makes phases separation a bit more clear.
2019-12-09 10:14:07 +07:00
Sergey Bogolepov 625f14d9d1 [samples][coverage] Add support for Windows and Linux hosts. 2019-12-06 12:07:55 +07:00
Vasily Levchenko 2b7c7be451 [debugger][dwarf] generate char as 16 bit type
fixes KT-34336
2019-12-03 18:23:48 +01:00
Vasily Levchenko 3e06b473c8 [tests][plugin][nop] added nop-plugin for basic testing of mechanism loading plugins 2019-12-03 18:23:27 +01:00
Vasily Levchenko 2a54c8f9ba [kotlin compiler][update] 1.3.70-dev-2416
* ca0bff75cd - [KLIB] Keep order of constant properties depending on backend  - Fix K/N performance regression (3 hours ago) <Roman Artemev>
* 6ef3831f14 - Build: Take parent directory as rootProject directory in case of buildSrc (3 hours ago) <Vyacheslav Gerasimov>
* 462d6ac5b6 - Build: Add remote build cache parameters for teamcity builds (3 hours ago) <Vyacheslav Gerasimov>
* d3c1ef9251 - Build: Use kotlin-build-gradle-plugin in buildSrc (3 hours ago) <Vyacheslav Gerasimov>
* ab8542bbdb - Build: Advance kotlin-build-gradle-plugin version to 0.0.2 (3 hours ago) <Vyacheslav Gerasimov>
* 46d77419a8 - Build: Add build cache properties to kotlin-build-gradle-plugin (3 hours ago) <Vyacheslav Gerasimov>
* ad79efeba3 - Build: Use kotlin version embedded to gradle (3 hours ago) <Vyacheslav Gerasimov>
* fa7bd3dd2e - FIR: Support SAM constructors for type aliases (3 hours ago) <Denis Zharkov>
* ae01d050c9 - FIR: Abstract parts for type alias constructors resolution (3 hours ago) <Denis Zharkov>
* fbe7db5471 - FIR: Move constructor processing parts to a separate file (3 hours ago) <Denis Zharkov>
* bf68e85a5c - FIR: Support SAM conversion for interfaces containing Object methods (3 hours ago) <Denis Zharkov>
* 7cd55c85e6 - (tag: build-1.3.70-dev-2416) JVM/JVM_IR: fix mapping of KClass in annotation classes (5 hours ago) <pyos>
* f869be6a71 - (tag: build-1.3.70-dev-2414) JVM IR: do not mangle synthetic methods with inline class parameters (5 hours ago) <Alexander Udalov>
* 66ffdf1b2d - (tag: build-1.3.70-dev-2412) KT-33979 KT-34150 Remove filtering overridden object members and nested objects (5 hours ago) <Roman Golyshev>
* 2552540f71 - (tag: build-1.3.70-dev-2411) IR: wrap exceptions and add file path in per-file lowerings (6 hours ago) <Alexander Udalov>
* fd627603a0 - Refactor CompilationErrorHandler (6 hours ago) <Alexander Udalov>
* 2435b8d9fa - (tag: build-1.3.70-dev-2407) Update testData for enum constructor result type in IR (7 hours ago) <Dmitry Petrov>
* 35c2573b33 - PSI2IR: generate IrEnumConstructorCalls with correct return type (7 hours ago) <pyos>
* 145ad1a6fa - (tag: build-1.3.70-dev-2406) FIR: Minor. Extract common parts in FirCallCompletionResultsWriterTransformer (7 hours ago) <Denis Zharkov>
* 71bf8a14e8 - (tag: build-1.3.70-dev-2405) [FIR] Make `ConeTypeCheckerContext` implements `ConeInferenceContext` (7 hours ago) <Dmitriy Novozhilov>
* 69033b7b15 - (tag: build-1.3.70-dev-2403) JVM_IR: handle @JvmName on annotation getters (8 hours ago) <pyos>
* ac7d9fa90d - (tag: build-1.3.70-dev-2402) JVM_IR: implement -Xpolymorphic-signature (8 hours ago) <pyos>
* fe6be0f436 - (tag: build-1.3.70-dev-2401) Fix failed FIR multi-module test (forgotten test data update) (8 hours ago) <Mikhail Glukhikh>
* 0ff77bd3c5 - (tag: build-1.3.70-dev-2394) Add UL support for const fields initializers (22 hours ago) <Igor Yakovlev>
* 775eb67219 - (tag: build-1.3.70-dev-2386) NI: Add constraints which contain constraining type without projection ^KT-32243 Fixed ^KT-35172 Fixed (23 hours ago) <Victor Petukhov>
* 65cc0fa463 - (tag: build-1.3.70-dev-2382) PSI2IR: have GeneratorExtensions implement StubGeneratorExtensions (24 hours ago) <pyos>
* a950df3c80 - PSI2IR: copy isPropertyWithPlatformField to GeneratorExtensions (24 hours ago) <pyos>
* 3cae90dd26 - (tag: build-1.3.70-dev-2379) [minor] fix source root creation from imported scripts: (24 hours ago) <Ilya Chernikov>
* f2a4a835e7 - Improve script cli diagnostics (24 hours ago) <Ilya Chernikov>
* 49de5e19fb - Implement repl, script and expressions evaluation support in kotlin runner (24 hours ago) <Ilya Chernikov>
* 531ff92791 - Implement support for expression evaluation in jvm cli compiler (24 hours ago) <Ilya Chernikov>
* 7bb9f97b11 - Allow to separate top-level script declarations and statements with semicolon (24 hours ago) <Ilya Chernikov>
* b8034567ef - Change script definition lookup key from File to ScriptSource (24 hours ago) <Ilya Chernikov>
* 615624802c - Add kotlinx-html test (24 hours ago) <Ilya Chernikov>
* 4439582d23 - Remove unnecessary update of the source roots, simplify interface accordingly (24 hours ago) <Ilya Chernikov>
* 02a71d2cda - Save updated roots before a packagePartProvider is created (24 hours ago) <Ilya Chernikov>
* a190ab260e - Load main-kts jar automatically from scripting plugin, if available (24 hours ago) <Ilya Chernikov>
* 22cb6fa836 - (tag: build-1.3.70-dev-2373) [Gradle, JS] Fix case with null distribution (25 hours ago) <Ilya Goncharov>
* c267357596 - [Gradle, JS] Add distribution DSL (25 hours ago) <Ilya Goncharov>
* fe9ddd9f22 - [Gradle, JS] Check if resourcesDir exists and resourceDir is input directory (25 hours ago) <Ilya Goncharov>
* 053469dcec - [Gradle, JS] Copy index.html from resources to dist (25 hours ago) <Ilya Goncharov>
* b9dee4e93a - (tag: build-1.3.70-dev-2355) Remove assertion on sorted ranges: it could be empty if lambda doesn't contain any linenumber (29 hours ago) <Mikhael Bogdanov>
* ae4a1e3cca - [Gradle, JS] Fix check on Kotlin/JS modules from NPM in DCE (29 hours ago) <Ilya Goncharov>
* 0380380de4 - (tag: build-1.3.70-dev-2351) More cleanups after tests execution (29 hours ago) <Nikolay Krasko>
* 0cbb3a3956 - Remove unused ProjectRootModificationTrackerFixer.kt (29 hours ago) <Nikolay Krasko>
* c12599a045 - Fix test data for testParamTypeLambdaMismatch in >= 192 (29 hours ago) <Nikolay Krasko>
* 408f958273 - (tag: build-1.3.70-dev-2350) [Gradle, JS] Add idle run for debug node tests (29 hours ago) <Ilya Goncharov>
* 38de98429d - (tag: build-1.3.70-dev-2348) Fix importing tests in bunch 183 (30 hours ago) <Andrey Uskov>
* 9643d5d28e - Added import-resolve integration tests (30 hours ago) <Andrey Uskov>
* e9946b21b5 - (tag: build-1.3.70-dev-2344, tag: build-1.3.70-dev-2340) JVM IR: do not hide constructor with inline class types and defaults (31 hours ago) <Alexander Udalov>
* 4e1cd6bcd5 - (tag: build-1.3.70-dev-2338) Mute 2 black-box FIR test due to disallowed Kotlin synthetic properties problem (31 hours ago) <Mikhail Glukhikh>
* 18e8896c08 - (tag: build-1.3.70-dev-2334) [JVM IR] Leave private @JvmDefault methods on interface (33 hours ago) <Kristoffer Andersen>
* 6f8682c950 - [JVM IR] Stabilize accesor names in IR Backend (33 hours ago) <Kristoffer Andersen>
* d1c2862e27 - IR: Align Interface Defaults with Old Backend (33 hours ago) <Kristoffer Andersen>
* b5de625350 - Minor refactor: lifting common code (33 hours ago) <Kristoffer Andersen>
* 6a41700689 - [JVM_IR] Fix interface method resolution (33 hours ago) <Kristoffer Andersen>
* df96841c9d - (tag: build-1.3.70-dev-2333) Prohibit protected method calls from inline function (33 hours ago) <Mikhael Bogdanov>
2019-12-03 18:23:10 +01:00
SvyatoslavScherbina 06eb5d260f Exclude stdlib and platform libs when building cache for tests (#3635) 2019-12-03 16:00:53 +03:00
Sergey Bogolepov b6b447c0d5 [Interop][Metadata] Mark UniqId as public
Public declaration's UniqId should have MSB == 1.
Despite we using our own mangling scheme we still need to respect this convention.
Otherwise IrLinker will go crazy searching for missing local declaration.
2019-12-03 17:23:39 +07:00
Sergey Bogolepov f10965cbec [Interop][StubIR] Add "abstract" member stub modality 2019-12-03 17:23:39 +07:00
Sergey Bogolepov af5f07de17 Fix uniqId computation for property accessors 2019-12-03 17:23:39 +07:00
Sergey Bogolepov d189ff416f Handle lazy IR in llvmSymbolOrigin computation
Since interop libraries have no IR we produce lazy IR for them. Thus we need to handle it when computing `llvmSymbolOrigin`.
2019-12-03 17:23:39 +07:00
Sergey Bogolepov 32bea765f0 [Interop] Add tests for StubIr to metadata translation. 2019-12-03 17:23:39 +07:00
Sergey Bogolepov ee672f31df [Interop] Started to work on StubIr -> Metadata translator
Basic support for function, global properties, and type aliases.
Also added AbbreviatedStubType to make translation to metadata a bit easier.
2019-12-03 17:23:39 +07:00
Sergey Bogolepov 0712a2ae48 [Interop][StubIr] Add origin to TypealiasStub 2019-12-03 17:23:39 +07:00
Sergey Bogolepov a4486de7fa [Interop][StubIr] Add origin to PropertyStub 2019-12-03 17:23:39 +07:00
Sergey Bogolepov cd07dec326 [Interop][StubIr] Add classifier property to AnnotationStub
to make translation to metadata easier
2019-12-03 17:23:39 +07:00
Sergey Bogolepov a194ec18e7 [cinterop] Fix mapping of typedefs to pointers to typedefs
Mapping type aliases from stub ir to metadata is kinda tricky.
We need to preserve references to type alias declarations when translating
expanded types. The problem is that we translate C declarations and types independently.
In the most cases these processes are coherent. But not for type aliases to pointers to type aliases.
This commit fixes it.
2019-12-03 17:23:39 +07:00
Sergey Bogolepov e714f1e067 [Interop] Move dependency resolution into processCLib
Because metadata mode doesn't call compiler we need to
resolve dependencies (including stdlib) by hand. This logic was partially
implemented in `InteropCompiler.kt`. So we move it into `processCLib`.
2019-12-03 17:23:39 +07:00
Sergey Bogolepov 2e22d5a389 [Interop] Add dependency on kotlinx-metadata-klib 2019-12-03 17:23:39 +07:00
Ilya Matveev f25b4bf75f Samples: Update Kotlin version: 1.3.61 2019-12-03 16:19:19 +07:00
Vasily Levchenko c2160eb89a [kotlin compiler][update] 1.3.70-dev-2332 2019-12-02 15:23:00 +01:00
Igor Chevdar 7385bf9473 Supported IrFunction.isOperator
(cherry picked from commit 86dbb83c7f726214cb27dd03425ce7a2e06d2bad)
2019-12-02 15:23:00 +01:00