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
Svyatoslav Scherbina
e305710d91
Add tests for overriding Kotlin methods from Swift
2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina
0a2a8a58c1
Add test for overriding methods of Any from Swift
2021-02-09 09:00:47 +01:00
Svyatoslav Scherbina
9fb2d4b956
Remove unused code from ObjCExportCodeGenerator
2021-02-09 09:00:47 +01:00
Ilya Matveev
e45c2d31bc
[kotlin.test] Do not run test suites containing only ignored tests
...
Popular frameworks such as JUnit, TestNG and Google Test do not
run @BeforeClass/@AfterClass hooks of test suites containing only
ignored tests.
This patch introduces the same behaviour to the Kotlin/Native's
kotlin.test runner.
See also: #4522 , #4615 .
2021-02-09 09:00:47 +01:00
Ilya Matveev
4f037b8b81
[kotlin.test] Don't run filtered out test suites by default
...
Popular frameworks such as JUnit, TestNG and Google Test do not
run test suites whose tests were fully filtered out. Thus
@BeforeClass/@AfterClass of such suites are not executed and the
suites are not reported in a test report.
This patch introduces the same behaviour to the Kotlin/Native's
kotlin.test runner.
See also: #4522 , #4615 .
2021-02-09 09:00:47 +01:00
Sergey Bogolepov
76cac9fba0
Fix KT-43502 testcase on windows
2021-02-09 09:00:47 +01:00
Alexander Shabalin
f312315346
Call initRuntimeIfNeeded before EnterFrame in interop adapters. ( #4672 )
2021-02-09 09:00:47 +01:00
Alexander Shabalin
99dc9e8e0c
Relax setUnhandledExceptionHook requirements with the new MM ( #4675 )
2021-02-09 09:00:46 +01:00
Alexander Shabalin
2b69a0d03a
Fix InitAndRegisterGlobal in new MM ( #4673 )
2021-02-09 09:00:46 +01:00
Sergey Bogolepov
c01ad100a3
Adapt fix for KT-43502 to lazy task configuration
2021-02-09 09:00:46 +01:00
Sergey Bogolepov
0a33d9d2fc
Add a test-case for KT-43502
2021-02-09 09:00:46 +01:00
Sergey Bogolepov
5a18a565b7
Support interop libraries in dynamic tests
2021-02-09 09:00:46 +01:00
Florian Kistner
438e1d34c5
Restore previous exception behavior for -Xemit-lazy-objc-header
2021-02-09 09:00:46 +01:00
Florian Kistner
0025bef59a
Cleanup unused ObjCExportHeaderGenerator constructors
2021-02-09 09:00:46 +01:00
Florian Kistner
b6b7a0e1eb
Rename ObjC warning collector to problem collector
2021-02-09 09:00:46 +01:00
Florian Kistner
846d691b2d
Extend ObjC warning collector to handle exceptions as well
2021-02-09 09:00:46 +01:00
Vasily Levchenko
40959c756d
Revert "Temporary remove all -Werror flags"
...
This reverts commit 89c09214eeed951684405c10c233304834a89beb.
2021-02-01 16:54:15 +01:00
Dmitriy Novozhilov
29f68fe7ae
Temporary remove all -Werror flags
...
This is needed for transational period of migrating kotlin repository to compiler with version 1.5
(cherry picked from commit 2836a17952dd47b5b8fe176a0b0374c23567b2ff)
2021-02-01 16:54:15 +01:00
Vasily Levchenko
8b2f0d644b
[build] kotlin.*Compile: -Xskip-prerelease-check
...
(cherry picked from commit 57172ac6ead928b565fefaf49d8405a07c856e25)
2021-02-01 16:54:15 +01:00
Abduqodiri Qurbonzoda
e63b405f58
Commonize CharCategory and related functions #KT-39177 #KT-43216 #KT-39906 #KT-30652
...
(cherry picked from commit fc5c01b9a72498f9bd200817936a629689c0bff0)
2021-02-01 16:54:15 +01:00
Alexander Gorshenev
58ea71cb0e
Made test runner work with binary compatibility tests
...
(cherry picked from commit e0b599a632b94e4b1303fc94275dcd5b6a7dfb6b)
2021-02-01 16:54:15 +01:00
Roman Artemev
64445bb793
Fix konan klib output setup
...
(cherry picked from commit c75b32ed1a4b8de2801bfece680b6ef7778b6dd5)
2021-02-01 16:54:15 +01:00
Roman Artemev
3127da287f
Add klibOutputFileName(..) into OutputFiles.kt
...
(cherry picked from commit c4511b8b6b8e75f0d7b3f33007da3a75923bd61b)
2021-02-01 16:54:15 +01:00
Vasily Levchenko
3378aeddb5
[interop][c][reverse][test] (KT-36639)
2021-02-01 16:54:14 +01:00
Vasily Levchenko
f887dcb79a
[interop][c][reverse] drop extensions check in function generator (KT-36639)
...
- Initially this check was done with assumption that extension function couldn't be overrided
2021-02-01 16:54:14 +01:00
Alexander Shabalin
d84c83d7da
Extract FreezeHooks and make them testable ( #4654 )
2021-02-01 16:54:14 +01:00
Pavel Punegov
8a48609823
Lazy task creation in konan plugin using Gradle Providers API.
...
Removes obsolete CMake task and IDE model.
Use Provider API for klib files. Replace findAll with matching to make tasks configure lazily
Make some test tasks use lazy configuration
Fix adding tasks to lists. Add it. to all fields to improve IDEA navigation
Remove obsolete IDE model from the task
Remove tooling model tests
Fix aggregate task dependency
Fix run tasks. Cleanup
Review fixes
2021-02-01 16:54:14 +01:00