Svyatoslav Scherbina
e4b723fe4a
Native: enable some of ObjCExport tests with new GC
2021-06-04 16:58:27 +00:00
Svyatoslav Scherbina
fa36ccedeb
Native: improve ObjCExport thread state switching
2021-06-04 16:58:26 +00:00
Svyatoslav Scherbina
388538be60
Native: minor exception handling refactoring
...
Move parts of exception handling implementation from IrToBitcode
to CodeGenerator, to allow using filteringExceptionHandler in ObjCExport.
2021-06-04 16:58:25 +00:00
Alexander Gorshenev
f5d656ec4f
[Native] Revert klib printer change
2021-06-04 02:36:54 +03:00
Dmitry Savvinov
708fead1cc
Add debug strings to frontend scopes-related structures
...
Such as:
- PackageFragmentProviders, and, in particular,
CompositePackageFragmentProviders
- JavaPackageFragments
- Scopes produced by those providers
The rationale is that a lot of frontend-facing bugs (like red code) are
easily recognizeable in resolution. But at that point you just see a
bunch of scopes, without meaningful toStrings, you don't know who has
produced them, and what's exactly wrong.
With this commit it should make debugging slightly easier: now at least
you'll be able to see that "this scope is a scope of package fragment
for foo.bar of module baz" and decide whether the declaration should or
should not have been resolved from such scope.
2021-06-03 17:21:59 +03:00
Vasily Levchenko
a0503aa2d7
[kotlin-native][test][debugger] exclude non constant part of stack trace from gold values
...
(cherry picked from commit ac072d3cc0aea0d311062f58fb5382cac6912deb)
2021-06-02 18:36:59 +00:00
Pavel Punegov
789799ac17
Revert simpleOsName in HostManager
...
Support old naming in simpleOsName.
Introduce new platformName method for the new archive naming.
2021-06-02 18:30:52 +03:00
Vladimir Ivanov
2165cc8f0d
[Native] Fix test data for testObjCExportNoGeneric ( #4424 )
2021-06-02 11:13:07 +03:00
Vladimir Ivanov
e06a60bda5
[Native] Clean up nested comment when exporting kdoc to objc header ( #4410 )
...
* [Native] Clean up nested comment when exporting kdoc to objc header
* [kdoc-export] Add test witg nested comment block
* Remove redundant assert
Co-authored-by: Vladimir Ivanov <vladimir.d.ivanov@jetbrains.com >
2021-06-02 10:18:32 +03:00
Alexander Udalov
bcf47ddc94
Move optional annotation utilities to module 'resolution'
...
To avoid depending on a heavy module 'frontend' in parts of the compiler
where checking for optional annotations is needed, such as in
'ir.serialization.common'.
2021-06-01 20:28:22 +02:00
Alexander Shabalin
825b77cc82
Remove unused ostream
2021-06-01 07:01:11 +00:00
Vasily Levchenko
84c10079e4
[kotlin-native][tests] kt-42208 test added.
2021-05-31 11:45:32 +00:00
Abduqodiri Qurbonzoda
d934c97bf5
Equivalize isLowerCase and isUpperCase behavior in all platforms #KT-46184
2021-05-31 13:42:46 +03:00
Ilya Matveev
de5dcfcbd8
[K/N][Runtime] Support suspending mutators in the new MM
2021-05-31 09:48:46 +00:00
Dmitriy Dolovov
e927764aaf
[IR][Native] Fix invalid IR return statement generation
...
^KT-46836
2021-05-29 19:31:13 +00:00
Alexander Udalov
e0cc6d44a7
Revert "Remove obsolete kotlin.build.useIR flag"
...
This reverts commit 91e47f1fd7 .
2021-05-28 21:35:57 +02:00
Alexander Udalov
91e47f1fd7
Remove obsolete kotlin.build.useIR flag
2021-05-28 15:41:57 +02:00
Elena Lepilkina
3a22761d02
[K/N] Fix MutationCheck calls for inlined property accessors
2021-05-28 06:45:53 +00:00
Elena Lepilkina
b6f35ac44d
[K/N] Fix inlining of property setters by replacing ReturnsInsertion lowering
2021-05-28 06:45:52 +00:00
Alexander Shabalin
af1f57007a
https://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-2012-Herb-Sutter-atomic-Weapons-2-of-2
2021-05-27 17:18:55 +00:00
Alexander Shabalin
e0c7cda1cf
Adjust test expectations for the new MM
2021-05-27 11:39:56 +00:00
Abduqodiri Qurbonzoda
54994a289f
Support all digit chars on JS and Native #KT-46002
2021-05-27 06:56:52 +03:00
Igor Chevdar
f431b4b171
[K/N][codegen] Escape analysis: increased a bit the number of iterations
...
This helps the algorithm to converge in more situations and increases
the number of stack allocated objects
2021-05-26 17:48:20 +05:00
Igor Chevdar
29584edcdd
[K/N][codegen] Escape analysis: handled nulls more optimally
...
Helps with https://youtrack.jetbrains.com/issue/KT-44148
2021-05-26 17:46:22 +05:00
Igor Chevdar
426ac1281d
[K/N][codegen] Removed square graph swelling during escape analysis
...
Helps with https://youtrack.jetbrains.com/issue/KT-44148
2021-05-26 17:46:15 +05:00
Elena Lepilkina
a006f35df3
[K/N][build] Removed extra konanVersion variable as far as it's now same as kotlinVersion
2021-05-26 11:49:49 +00:00
Alexander Shabalin
858e3584a9
Disable escape analysis with the new MM
2021-05-25 10:06:40 +00:00
Elena Lepilkina
7f591bcfd4
[K/N] Changed llvmInlineThreshold for new form of bitcode
2021-05-24 15:46:21 +00:00
Elena Lepilkina
2320eb8b44
[K/N] Replace invokes with combination of calls and branch instructions
2021-05-24 15:46:20 +00:00
Dmitriy Dolovov
9ab764e9fd
[Native] Disable debug mode in KonanLocalTest (-g)
2021-05-24 13:23:51 +00:00
Vasily Levchenko
669985f853
[debug][stacktrace][mac] more tracing for stacktrace debugging
2021-05-21 11:52:08 +00:00
Dmitriy Dolovov
0be542fd33
[Native] Always enable assertions in KonanLocalTest
2021-05-21 14:37:30 +03:00
Svyatoslav Scherbina
dc8934ab22
Native: fix crash in custom LLVM diagnostics handler
...
48a684c0 added custom LLVM diagnostic handler, using JvmCallbacks machinery,
thus triggered a bug in the latter: callbacks are cached and outlive the compilation session,
but rely on memory that is reclaimed at the end of the compilation session.
So during a subsequent compilation in the same process (e.g. when the compiler runs in the
Gradle daemon process), LLVM might call the callback which accesses the reclaimed memory,
which in turn causes the crash.
Fix this by forcing JvmCallbacks to allocate memory that doesn't "expire" at the end of the compilation session.
2021-05-21 07:34:34 +00:00
Elena Lepilkina
573191251e
[K/N] Remove redundant update of debug info
2021-05-21 06:55:07 +00:00
Alexander Shabalin
73533e4b19
Make NoOp GC support multiple mutators
2021-05-21 06:31:09 +00:00
Alexander Shabalin
eac3f507b6
Make Kotlin_initRuntimeIfNeeded switch to native state
2021-05-20 13:48:49 +00:00
Pavel Kunyavskiy
2680111125
[K/N] Fix order of lowerings to enable when on enum optimisation
...
EnumWhenLowering searches for pattern, which is destroyed by
BuiltinOperatorLowering, so first one should happen before second.
2021-05-20 08:34:15 +00:00
Pavel Kunyavskiy
43b91589a1
[K/N] Create lowering for optimising when, with lowered enums support
2021-05-20 08:34:14 +00:00
Pavel Kunyavskiy
1dd6dcdeef
[K/N] Store ordinal value in lowered enum
2021-05-20 08:34:13 +00:00
Pavel Kunyavskiy
8a418161f6
[K/N] Support pre-creating for objects with only constant properties
2021-05-20 08:29:23 +00:00
Pavel Kunyavskiy
e4ecb3745b
[K/N] Debug util for checking if object is global constant
2021-05-20 08:29:22 +00:00
Alexander Shabalin
a02cecec20
Disable interop_cleaners_leak
2021-05-19 15:51:05 +00:00
Dmitriy Dolovov
ae1590d3cf
[Native] Support multiple suspend lambdas as class supertypes
...
Drop the backend check. Eveything else is already fixed in
https://github.com/JetBrains/kotlin/commit/3b3318ab06e8c55b1c49da5734decd59524c3d9f
^KT-46775
2021-05-19 16:09:47 +03:00
Dmitriy Dolovov
896929cb21
[Native] Support suspend functions as supertypes
...
^KT-46777
2021-05-19 16:09:38 +03:00
Alexander Shabalin
3388ca2536
Support ObjC blocks in the new MM
2021-05-19 07:31:12 +00:00
Alexander Shabalin
94076300ec
Implement a bit more of GC object interface
2021-05-19 07:29:27 +00:00
Svyatoslav Scherbina
570d860217
Native: deprecate SymbolName annotation
2021-05-18 17:29:00 +03:00
Igor Chevdar
3b3318ab06
[K/N][codegen] Refactored interface calls
...
Removed old impl for debug builds
Fixes https://youtrack.jetbrains.com/issue/KT-44547 as a side effect
2021-05-18 18:58:14 +05:00
Alexander Likhachev
3df45f9651
[Build] Bump kotlin-build-gradle-plugin version to 0.0.29
2021-05-18 16:37:36 +03:00
Vladimir Ivanov
5a0f113e6d
[cinterop] Fix type annotation for struct containing anonymous union … ( #4289 )
2021-05-18 14:34:56 +03:00