Commit Graph

167 Commits

Author SHA1 Message Date
Svyatoslav Scherbina b45de517c4 Native stdlib build: fix using OptionalExpectation in Interop/Runtime
Current build for kotlin-native/Interop/Runtime sources is not truly
MPP, so explicit -Xcommon-sources flags are required for the compiler
to allow using OptionalExpectation annotations.
2021-03-05 12:15:22 +00:00
Abduqodiri Qurbonzoda a1be20d359 Add String case conversion tests
(cherry picked from commit 103499280c40767298eabd534d421d6e3c695c1e)
2021-03-02 17:11:24 +00:00
Abduqodiri Qurbonzoda 9592422b28 Add Char case conversion tests
(cherry picked from commit 6e28726c31d41a664e9e3d31c7370629d8b279a2)
2021-03-02 17:11:24 +00:00
Abduqodiri Qurbonzoda 63897b5aca Update Unicode version in Char and String case conversion functions #KT-45213
(cherry picked from commit 25b0dac947cb55f842b8e503351f4ebd2064628c)
2021-03-02 17:11:23 +00:00
SvyatoslavScherbina 7bfcf815ba Add missing DisposeStablePointer calls to produce_dynamic test
(cherry picked from commit 65109f68622ca6371511d7d36167197fa7f9003c)
2021-03-02 17:11:21 +00:00
Igor Chevdar 10e79bff8b [IR] Fixed bug with wrong init order of a enum's entries
This fixes https://youtrack.jetbrains.com/issue/KT-38540

(cherry picked from commit d031526a6e1a618597898dd6beadb04eed74b478)
2021-03-02 17:11:20 +00:00
Igor Chevdar 31835f1921 [IR] Reworked adapted references building + test
As a side effect, this fixes https://youtrack.jetbrains.com/issue/KT-43887

(cherry picked from commit 387c09e7aed7666f5a178b2ac342fb17ed3cdda3)
2021-03-02 17:11:19 +00:00
Stanislav Erokhin f77ba914c7 [MERGE] Kotlin/Native history merged into kotlin/master 2021-02-26 15:30:58 +01:00
Vasily Levchenko 905c0c3dd3 [build] version of kotlin native stored in resouces 2021-02-26 12:51:51 +01:00
Vasily Levchenko bdc87edfd0 [build] cache repository fix 2021-02-26 12:51:51 +01:00
Alexander Udalov dbce28053c IR: move frontend-dependent code into implementations in psi2ir 2021-02-26 11:49:28 +01:00
Alexander Udalov 2566aa9db2 IR: remove TranslationPluginContext.bindingContext
This removes another dependency of 'ir.tree' on 'frontend', and among
other things, makes it possible to implement TranslationPluginContext
for FIR in the future.
2021-02-26 11:49:28 +01:00
Vasily Levchenko 65dd798818 [build][native support] intoduced new native support. 2021-02-24 11:07:18 +01:00
Vasily Levchenko fa08b1dc48 [kotlin-native] change in output of library_mismatch 2021-02-24 11:07:17 +01:00
Vasily Levchenko 8a4b5efa9e [build][native] don't ever fix dist, take it with API 2021-02-24 11:07:17 +01:00
Vasily Levchenko ebeac62f17 [build][tests][g/c] fix dependencies on platform and dist 2021-02-24 11:07:16 +01:00
Vasily Levchenko 46f2182ba6 [build][tests] more utilities functions used 2021-02-24 11:07:16 +01:00
Pavel Punegov 4610d9f171 Fix file separator in tests for Windows 2021-02-24 11:07:16 +01:00
Vasily Levchenko 6234bcb453 [build][test] enable external compiler tests 2021-02-24 11:07:15 +01:00
Vasily Levchenko 3867cf6ef5 [build] switch to kotlin-build-gradle-plugin:0.0.25 2021-02-24 11:07:14 +01:00
Vasily Levchenko 326ab1cd02 [build][tests] disable interop_concurrentRuntime - very unstable 2021-02-24 11:07:14 +01:00
Vasily Levchenko 17fc4a087b [build] enable sanity tests (step 3) 2021-02-24 11:07:14 +01:00
Vasily Levchenko 840c1e612c [build] joint (step 2)
- dist:
  - compiler
  - tools(cinterop,klib)
  - stdlib
  - cache
2021-02-24 11:07:13 +01:00
Vasily Levchenko c85c3ac123 [build] joint (step 1)
(cherry picked from commit 7d0775f7e69ab900200bcf1fa78b94d68e6bd4f6)
2021-02-24 11:04:59 +01:00
Anton Bannykh ae5655f9b3 BasicIrModuleDeserializer is not inner class anymore
(cherry picked from commit 7a32327afb8beaf769b23e342348707874afbfb3)
2021-02-24 11:00:05 +01:00
Georgy Bronnikov 80e7e7010d Fix compilation with Kotlin master
(cherry picked from commit b5ed03a7ef72fa41af8742b766f9f01680c426f5)
2021-02-24 11:00:05 +01:00
Alexander Shabalin 3a5c6480a3 Track current exception (#4701) 2021-02-24 11:00:05 +01:00
Alexander Shabalin 276b4f19fa Split generateFunction into different categories (#4712) 2021-02-24 10:53:42 +01:00
Svyatoslav Scherbina dc2d014504 Add some tests for CPointer.toKStringFromUtf8 2021-02-24 10:53:42 +01:00
Igor Chevdar 764f7f31d2 [IR] Erase non-trivial type projections off of super types
This fixes https://youtrack.jetbrains.com/issue/KT-44826
2021-02-24 10:53:42 +01:00
Alexander Shabalin d5ca285a79 Move unhandledExceptionHook to kotlin code (#4704) 2021-02-24 10:53:42 +01:00
Roman Artemev 3ee0dc112b [Plugin API] Corresponding fox to K/N for #KT-44100
(cherry picked from commit 3141c0dfc6bcc6583f0a370a1ebb511bf5ec5731)
2021-02-15 10:16:11 +01:00
Alexander Shabalin 05d4bbf367 Do not generate safepoints for initializer functions (#4700) 2021-02-15 10:16:10 +01:00
Alexander Shabalin 97262c273f Misc changes for GC in new MM (#4699) 2021-02-15 10:16:10 +01:00
Svyatoslav Scherbina f7af8bc763 Add test for SAM-converted lambdas passed to Obj-C
Based on https://youtrack.jetbrains.com/issue/KT-44799
2021-02-15 10:16:10 +01:00
Igor Chevdar ab36e919bc [IR] Fix for https://youtrack.jetbrains.com/issue/KT-44799 2021-02-15 10:16:10 +01:00
Sergey Bogolepov 0ecd76c3cb Make incompleteTypes test more robust.
Currently, Kotlin strings that are passed to C functions are copied under the hood on the callsite. These copies have a short lifetime which might cause problems if it should outlive current call.
2021-02-15 10:16:10 +01:00
Svyatoslav Scherbina 59c6940caf Ensure generated LLVM functions get attributes
In particular, fix missing frame pointers for ObjCExport bridges.

 #KT-44549 Fixed.
2021-02-15 10:16:10 +01:00
Sergey Bogolepov b03dc71da3 Do not cross-compile kt43502 test. 2021-02-15 10:16:10 +01:00
Roman Artemev 4d335e9d58 [IR] Make K/N work with new Ir message logger
(cherry picked from commit 2e49520576c885a9dd7bbc8ce3f80cd05576dc9a)
2021-02-09 09:00:48 +01:00
Sergey Bogolepov fddf28ac47 Support for macos_arm64 target in backend
(cherry picked from commit 82775e93c1389f21f9be97bd0edfd16dd50300ea)
2021-02-09 09:00:48 +01:00
Alexander Shabalin e2f573c26c Run backend tests with the new MM (#4677) 2021-02-09 09:00:48 +01:00
SvyatoslavScherbina 860279b255 Remove useless warnings from CAdapterGenerator.kt (#4684)
Fix https://github.com/JetBrains/kotlin-native/issues/3132
2021-02-09 09:00:48 +01:00
Svyatoslav Scherbina 61d3ae1477 Refactor building of reverse adapters in ObjCExportCodeGenerator
* Make it more understandable and reliable: don't predict which reverse
  adapters are inherited, reuse information from generating super types
  instead.
* Drop usages of obsolete "IrDeclaration.descriptor"
2021-02-09 09:00:48 +01:00
Svyatoslav Scherbina 39ef940a7b Consolidate generating reverse adapters in ObjCExportCodeGenerator
It is very specific and isolated part.
2021-02-09 09:00:48 +01:00
Svyatoslav Scherbina 2bd73cc44e Consolidate type adapters generation in ObjCExportCodeGenerator 2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina 8519be28b4 Drop more usages of IrDeclaration.descriptor from ObjCExportCodeGenerator 2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina 4080a852e1 Add selector and method bridge to relevant ObjCMethodSpec types
This helps to drop usages of obsolete "IrDeclaration.descriptor"
from ObjCExportCodeGenerator
2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina ccf8b570ca Add selector to ObjCGetterForKotlinEnumEntry
This helps to drop usages of obsolete "IrDeclaration.descriptor"
from ObjCExportCodeGenerator
2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina ca2df3cead Add specific ObjCMethodSpec kind for object instance getters
This helps to drop usages of obsolete "IrDeclaration.descriptor"
from ObjCExportCodeGenerator
2021-02-09 09:00:47 +01:00