Commit Graph

1617 Commits

Author SHA1 Message Date
Pavel Punegov 83c2b3657f [K/N] Fix build-tools project compilation
Add necessary subprojects and dependencies
Add OptIn annotation for experimental stdlib methods in 1.5
Fix compilation errors and cleanup
2022-05-26 10:37:28 +00:00
Alexander Shabalin 00892c2903 [K/N] Add SAM with receiver plugin
(cherry picked from commit a58e2459c6)
2022-05-26 10:37:27 +00:00
Pavel Punegov 987930a0e5 [K/N] Add build-tools as a module for IDEA
Adds a module to project making it able to use analysis
and syntax highlight

(cherry picked from commit c545fd5ef8)
2022-05-26 10:37:26 +00:00
Pavel Kunyavskiy be2c92a0bd [K/N] Patch mimalloc to avoid using clock_gettime on apple targets
^KT-52430
2022-05-26 10:32:12 +00:00
Alexander Shabalin 20884d82eb [K/N] Modernize CompilationDatabase tasks
Merge-request: KT-MR-6276
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-25 21:49:35 +00:00
Ahmed El-Helw 93cb4d71d8 KT-51297: Allow suspend from any thread from ObjC
This patch adds a binary compiler argument to allow not crashing if a
suspend function is called from a non-Main dispatcher from ObjC or
Swift. This is relevant for people using the new memory model, in which
this restriction may be relaxed.
2022-05-25 09:24:22 +03:00
Victor Petukhov bbf52e8b90 [FE 1.0] Make "Unit conversions" accessible experimental feature 2022-05-23 12:36:16 +02:00
Troels Bjerre Lund c6f63a6aa6 [K/N] Fix LLDB line number bug
The lowering that inserts explicit returns into returnable blocks uses
the character offset of the returnable block for the newly created
return statement. This is wrong, but only noticeable when the callee is
an inlined function in another file, where the statements of the block
belong to callee rather than the caller.

The fix takes the offset of the last statement in the block. In the
case the block does not contain any statements, it falls back to using
the offset of the block itself.

The test does not impose any specific stepping order, since this would
be too fragile. It only tests that LLDB does not step to empty (or fully
//-commented) lines.


Co-authored-by: Troels Lund <troels@google.com>
2022-05-20 09:43:55 +00:00
Ivan Kylchik f3252334b2 Move most of ir utils from backend.common to ir.tree 2022-05-18 21:20:03 +03:00
Ivan Kylchik 1ccd5d1a3a Add new internal annotation IntrinsicConstEvaluation to kotlin-native 2022-05-18 21:19:53 +03:00
Alexander Shabalin 49f80b207a [K/N] Disable some tests in GC aggressive mode 2022-05-18 13:48:52 +00:00
Ilya Matveev 77b9923c38 [K/N] Fix tests failing in GC aggressive mode 2022-05-18 13:48:52 +00:00
Ilya Matveev 8493b955cc [K/N][runtime] Add a lock on finalizer thread creation
The finalizer thread can be created from the GC thread or from
any application thread during runtime shutdown. This may cause
a rare race when the GC starts the finalizer thread during runtime
shutdown. In this case two finalizer threads may be created and
the app will crash on attempt to assign the finalizerThread_ field
in FinalizerProcessor.
2022-05-18 13:48:50 +00:00
Ilya Matveev 78d179e9ab [K/N][runtime] Track safepoints in aggressive GC
Issue #KT-49188 Fixed
2022-05-18 13:48:49 +00:00
Pavel Punegov 7bd7c09c4a Revert "[K/N] Add build-tools as a module for IDEA"
This reverts commit c545fd5ef8.
2022-05-18 10:58:47 +03:00
Pavel Punegov 3f10ab919f Revert "[K/N] Add SAM with receiver plugin"
This reverts commit a58e2459c6.
2022-05-18 10:58:47 +03:00
Pavel Kunyavskiy 2c5d44ccf0 [K/N] downgrade node-fetch in perfomance server to version compatible with kotlin/js 2022-05-16 12:17:01 +00:00
Alexander Shabalin a58e2459c6 [K/N] Add SAM with receiver plugin 2022-05-16 11:00:42 +00:00
Pavel Punegov c545fd5ef8 [K/N] Add build-tools as a module for IDEA
Adds a module to project making it able to use analysis
and syntax highlight
2022-05-16 11:00:41 +00:00
Pavel Kunyavskiy 134647169e [K/N] add custom builtin_mul_overflow to workaround llvm bug
^KT-52365
2022-05-14 06:49:32 +00:00
Pavel Kunyavskiy 9b44c73f54 [K/N] fix build for perfomance server & upgrade dependencies 2022-05-13 19:47:36 +00:00
dependabot[bot] 33c122d231 Bump ejs from 2.6.1 to 3.1.7 in /kotlin-native/tools/performance-server
Bumps [ejs](https://github.com/mde/ejs) from 2.6.1 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v2.6.1...v3.1.7)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 10:00:06 +03:00
Alexander Shabalin d77041aad0 [K/N] Move all knowledge about CompileToBitcode to the plugin.
Merge-request: KT-MR-6215
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-12 12:20:31 +00:00
Alexander Shabalin 89afa4c5b5 [K/N] Use mimalloc for kotlin objects only ^KT-52130
Merge-request: KT-MR-5805
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-05-12 08:48:37 +00:00
Sergey Bogolepov b091f1d551 [K/N] Disable test-case for KT-50983. 2022-05-11 18:34:28 +00:00
Sergey Bogolepov 6a8ebeb1bc [K/N] Test case for KT-50983 2022-05-11 18:34:27 +00:00
Sergey Bogolepov 0b5b07f6e2 [K/N] Update MinGW dependencies
Include fixes for KT-50983 and KT-48558
2022-05-11 18:34:27 +00:00
Mads Ager 7bab9a1389 Minor tweaks to HACKING.md. 2022-05-11 19:58:12 +03:00
Mads Ager 46086027c5 Remove duplicate isNullConst extension functions from IrUtils2. 2022-05-11 19:58:12 +03:00
Mads Ager 876cc472b4 Remove unused debug info functions.
These functions return the underlying buffer for a std::string
which you should never do as it is only valid while the std::string
is in scope.
2022-05-11 19:58:12 +03:00
Pavel Kunyavskiy 9801a21abb [K/N] Enable new mm for native by default 2022-05-11 10:26:13 +00:00
Sergey Bogolepov a8fc2158d0 [K/N] Use toolchainDependency for Linux as well 2022-05-07 13:09:52 +00:00
Sergey Bogolepov db16acb788 [K/N] introduce toolchainDependency property for MinGW
Move all usages of `msys2-mingw-w64-*` dependency to a single
`toolchainDependency` property. It simplifies dependency overriding.
2022-05-07 13:09:51 +00:00
Vyacheslav Gerasimov 7157a54155 Fix unnecessary usages of Locale.getDefault() 2022-05-06 22:08:25 +00:00
Dmitriy Dolovov 7f1d17c25e [Native][tests] Update testing information in HACKING.md 2022-05-06 15:03:00 +00:00
Dmitriy Dolovov edf7319cad [Native][tests] Update testing information in HACKING.md 2022-05-06 15:02:59 +00:00
Vyacheslav Gerasimov dcd17e41a4 Fix capitalization related deprecation warnings 2022-05-04 19:15:01 +00:00
Alexander Shabalin caf90de2b8 [K/N] Compile runtime tests in parallel.
Merge-request: KT-MR-6164
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-04-29 20:30:57 +00:00
Pavel Punegov d5b450c8fa [K/N][publish] Fix getting the extracted dir name
Python's rstrip() method with argument removes not the string
but all combinations of specified chars
2022-04-29 17:34:35 +00:00
Alexander Shabalin 4a66cd0c69 [K/N] Remove usage of legacy allocation stuff ^KT-52130
Merge-request: KT-MR-6182
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-04-29 10:12:44 +00:00
Igor Chevdar 31eedebec6 [klibs] Added deserialization strategy: on-demand
With on-demand strategy only file header is deserialized
2022-04-28 19:11:13 +00:00
Igor Chevdar ca602d76df [K/N][klib] Use cache for interop libraries
#KT-51925 Fixed
2022-04-28 14:31:31 +00:00
Igor Chevdar af566dd454 [K/N][tests] Added test for KT-51925 2022-04-28 14:31:30 +00:00
Igor Chevdar 2b75ba203a [K/N][tests] Possible intermediate library for interop test
Now along with earlier [interop] <- [main] scheme one can also use
[interop] <- [lib] <- [main] which previously was only for link tests
2022-04-28 14:31:29 +00:00
Sergey Bogolepov ba9c2e51a7 [K/N] Fix filecheck_enum_when for -opt build. 2022-04-28 13:43:03 +00:00
Mikhail Glukhikh 08ba89b4ec CLI K2: report an error for JS/Native/Metadata #KT-52035 Fixed 2022-04-28 13:25:48 +00:00
Sergey Bogolepov 5a0c3920a5 [K/N] Properly support watchosArm64 2022-04-27 14:46:35 +00:00
Sergey Bogolepov 7401760d23 [K/N] Remove obsolete hack in ClangArgs
Fixes backend.native:tests for watchosArm64 target.
2022-04-27 14:46:34 +00:00
Alexander Shabalin 663e843544 [K/N] Refactor allocators ^KT-52130
Merge-request: KT-MR-6135
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-04-27 14:00:27 +00:00
Svyatoslav Scherbina 5fd468c066 Native: mention the way to suppress Xcode version check in the build
When building Kotlin/Native from sources on macOS, build scripts check
that installed Xcode has specific major version. It is possible to
suppress the version mismatch error (with caution), but the error
message didn't mention that.

Fix that by adding a hint to the error message.
2022-04-27 12:41:53 +00:00