Commit Graph

4386 Commits

Author SHA1 Message Date
Ilya Matveev 6cacbfbc36 [regex] Remove native-specific API 2018-11-23 15:18:58 +07:00
Ilya Matveev aa0f0f169d [regex] Add missing exception messages 2018-11-23 15:18:58 +07:00
Ilya Matveev f8bbd5eff0 [regex] Fix memory leak in debug mode 2018-11-23 15:18:58 +07:00
Ilya Matveev a82dd82402 [regex] Clarify exception messages 2018-11-23 15:18:58 +07:00
Ilya Matveev 54beb0c8e8 [regex] Fix quantifier processing
Consider the following regular expression:

((.){0,1}b)+

The original Harmony implementation fails to match a string '0b1b'
with it. The root-cause is the following. After matching the inner
group first time (it matches '0' in the input string) we don't
reset the counter of occurrences for it and proceed to the next
elements for the regex. When we should match it the second time (we
should match '1' at this point) we obtain this obsolete value of the
counter and come to a conclusion that the group has more occurrences
than specified in the quantifier.

The fix resets this counter each time we move to next elements of
a regex from a QuantifierSet.
2018-11-23 15:18:58 +07:00
Nikolay Igotti 70efeb1433 Small MM refactor, ignore acyclic and frozen objects in cycle collector. (#2354) 2018-11-22 17:38:51 +03:00
Ilya Gorbunov 901219ed5f Make waitForMultipleFutures a top-level function instead of extension 2018-11-22 17:14:11 +03:00
Ilya Gorbunov ee42edc9a5 Minor: sort modifiers of ImmutableBlob members 2018-11-22 17:14:11 +03:00
Ilya Gorbunov 65db34ad0d Clarify docs of immutableBlobOf 2018-11-22 17:14:11 +03:00
Ilya Gorbunov 22ef0a1a4c Breaking: change meaning of the parameters of ImmutableBlob.to(U)ByteArray
To be consistent with other subrange copying to* functions: String.toCharArray, Array.copyInto etc
2018-11-22 17:14:11 +03:00
Ilya Gorbunov 6f6bfd15ed Prepare to hide native specific regex methods from public API 2018-11-22 17:14:11 +03:00
Igor Chevdar 1c62b882bd Some fixes for <perf>
- Extracted number of attempts to a parameter
- Show 95% confidence intervals instead of standard deviation
2018-11-22 12:25:40 +03:00
Igor Chevdar 99d4d93488 Fixed copying of default args of expect functions
Fixes issue https://github.com/JetBrains/kotlin-native/issues/2343
2018-11-22 12:21:46 +03:00
Sergey Bogolepov c29be9c5ee Filter bitcode files by extension when passing them to llvm (#2356) 2018-11-22 11:37:59 +07:00
Igor Chevdar d6091c93a1 Inliner: fixed bug with generic function reference + test
Fixes issue https://github.com/JetBrains/kotlin-native/issues/2336
2018-11-21 18:22:06 +03:00
SvyatoslavScherbina 6fe37a00c5 Make crash with non-converted Kotlin exception debugger-friendly (#2353)
* Use `abort` instead of `exit` to make debugger recognize it as crash
* Terminate from C++ to prevent debugger from showing Kotlin handlers

 #KT-28066 Fixed
2018-11-21 13:34:06 +03:00
Svyatoslav Scherbina f4cf5e842d Uniform alloc and cValue APIs in kotlinx.cinterop
#KT-25628 Fixed
2018-11-21 13:29:08 +03:00
Svyatoslav Scherbina 4cb83cbcc5 Document -o cinterop option
#KT-27881 Fixed
2018-11-21 13:29:08 +03:00
Dmitriy Dolovov dfa82430d5 Samples: libcurl for Windows with dynamic linking (#2348) 2018-11-21 16:35:55 +07:00
Ilya Matveev f68f7028b1 [gradle-plugin] Publish Kotlin metadata variant
Fix for KT-27500.
2018-11-21 11:47:26 +07:00
Ilya Matveev e5ab2c71fb [gradle-plugin] Pass only klib dependencies to the compiler
Fix for KT-28205.
2018-11-21 11:47:26 +07:00
Ilya Matveev 1ec506d0b1 Don't generate functional types for functions with long signatures (#2349)
The K/N stdlib doesn't contain basic classes (e.g. Functon0,
Function1 etc) for functional types with >22 parameters.
So we cannot convert functional pointers with such signatures
into Kotlin functional types and have to replace them with
opaque pointers.

Fix for GitHub issue #2334.
2018-11-21 11:21:37 +07:00
Svyatoslav Scherbina 77897ba712 Make Objective-C objects shareable in Kotlin 2018-11-20 11:01:25 +03:00
Vasily Levchenko df91304d54 [codegen][debug-info] paramter's index begins with 1. 2018-11-19 18:39:52 +03:00
Vasily Levchenko 91463efac8 [kotlin compiler][update] 1.3.20-dev-1845 2018-11-19 15:32:49 +03:00
Nikolay Igotti 3e10e15f97 Sharing the mutable binary data (#2311) 2018-11-19 13:16:39 +03:00
Dmitriy Dolovov 17c0dae0e4 samples: clean-up local .m2 repo on :clean (#2344) 2018-11-19 11:31:54 +07:00
Svyatoslav Scherbina ca32454ba8 Fix backtick-quoting for C function names 2018-11-18 08:16:34 +02:00
Mike Sinkovsky 446442e588 Fix warning when staticLibraries used in .def file (#2342) 2018-11-17 15:57:37 +03:00
Mike Sinkovsky ea4aa57545 Fix build for samples/tetris (#2341) 2018-11-17 14:39:02 +03:00
Dmitriy Dolovov 6095075192 curl sample enhancements (#2332)
* Enable 'curl' in pre-commit tests
* Samples: Use Gradle plugin version 1.3.10
2018-11-16 22:03:04 +07:00
Igor Chevdar ce4315827c Disabled test, it is failing with new inliner
The test reveals some problems with design of inline functions
2018-11-16 15:29:53 +03:00
Igor Chevdar 0c6471b6cd New copier for inliner 2018-11-16 15:29:53 +03:00
Vasily Levchenko a9e5b11550 [kotlin compiler][update] 1.3.20-dev-1768 2018-11-16 15:18:05 +03:00
SvyatoslavScherbina 471771e8b8 KT-28102 fixes (#2325)
* Fix support for C functions returning structs with const fields

 #KT-28065 Fixed

* Improve support for const C globals

Workaround the case when libclang improperly reports
types of const variables as non-const

Partially fixes KT-28102

* Improve support for C functions overloaded by macros

Don't erase pointers to void* in some cases when generating C stubs

Partially fixes KT-28102
2018-11-16 15:14:16 +03:00
Vasily Levchenko 77be16c834 [debugger][lldb] adds command 'print_this' to print '<this>' w/o interacting with C-expression evaluator 2018-11-15 13:25:56 +03:00
Nikolay Igotti 2a65528968 Avoid recursion in GC traversals. (#2322) 2018-11-14 18:50:22 +03:00
Ilya Matveev cd7a377e8f Use publish plugin 0.9.10 2018-11-14 15:13:16 +07:00
Ilya Gorbunov d4db4a75a4 Regex and String extensions: fix modifier order
Remove inline modifier from external functions native(Last)IndexOf.
Make compareToIgnoreCase internal.
2018-11-13 15:28:40 +03:00
Ilya Gorbunov 4861b90faa Update Deprecated annotation docs
To reflect documentation changes in stdlib-common.
2018-11-13 11:59:59 +03:00
Ilya Gorbunov fb79c6af03 Minor: fix doc formatting that caused summary differ in Common and Native 2018-11-13 11:59:59 +03:00
Vasily Levchenko e64594f906 [kotlin compiler][update] 1.3.20-dev-1618 2018-11-13 11:52:30 +03:00
Ilya Gorbunov 7d9ec09c9d Make AbstractMutableCollections satisfy expect declarations from common
- Add actuals to AbstractMutableCollection
- Add hashCode/equals to AbstractMutableSet
- Take implementation of AbstractMutableMap from JS
2018-11-13 11:52:30 +03:00
Nikolay Igotti 91aba74f1d Fix CommonCrypto linkage. 2018-11-09 18:21:38 +03:00
Ilya Matveev d78c1a68a6 Allow overriding Gradle plugin version (#2304) 2018-11-09 10:55:47 +03:00
Pavel Punegov 504c76700f Exclude tests with JVM_TARGET 2018-11-07 19:57:41 +03:00
Igor Chevdar c1a41c9dc4 Fix for https://github.com/JetBrains/kotlin-native/issues/2291 (#2302)
Deallocation hooks might trigger recursive GC - forbid that.
2018-11-07 13:58:32 +03:00
Nikolay Igotti 2a77459f48 Add worker test runner. (#2303) 2018-11-07 12:46:19 +03:00
Vasily Levchenko 15d522c2fe [kotlin compiler][update] 1.3.20-dev-1427 2018-11-06 15:09:59 +03:00
Pavel Punegov b4da3e91c9 Fix regionMatch for CharSequence 2018-11-06 14:46:31 +03:00