Martin O'Connor
b583e8cd7b
Add toCValues() extension functions to Arrays of unsigned types ( #2417 )
2018-11-29 09:47:24 +03:00
Pavel Punegov
62e16639a7
Exclude incorrect test
2018-11-28 12:21:38 +03:00
Pavel Punegov
441bf924d4
Move all Konan specifics to extension and completely remove KonanDescriptorSerializer
...
Update Kotlin compiler and stdlib to 1.3.20-dev-2050
Remove obsolete testDataVersion
2018-11-28 12:21:33 +03:00
Pavel Punegov
87288ce4c7
Fix the contracts serialization
2018-11-28 12:19:43 +03:00
Pavel Punegov
9798decca0
Add test for contracts
2018-11-28 12:19:43 +03:00
Pavel Punegov
b3797c98ff
Add contracts to assertions
2018-11-28 12:19:43 +03:00
Svyatoslav Scherbina
ed323a98b5
Forbid calling Objective-C initializers
...
These methods must not be used directly, construstors and factory
methods are provided instead
2018-11-26 16:36:47 +03:00
Igor Chevdar
0f67da8298
Leave variable names as is during inlining
2018-11-26 14:31:29 +03:00
Nikolay Igotti
8a04bc20e8
Explicitly sign extend arguments of exported C functions. ( #2370 )
2018-11-24 09:24:42 +03:00
Nikolay Igotti
ffb9ec7e7d
Improve memory manager stats. ( #2368 )
2018-11-23 15:57:28 +03:00
Nikolay Igotti
58a82b22bb
Replace finalization queue with the linked list.
2018-11-23 15:45:52 +03:00
Nikolay Igotti
cedcd2cf79
Fix worker random test.
2018-11-23 15:45:52 +03:00
Sergey Bogolepov
c322d432a0
Add support for arrays in for loops lowering. ( #2351 )
2018-11-23 16:01:59 +07:00
Ilya Matveev
3610588666
[regex] Minor naming refactoring
2018-11-23 15:18:58 +07:00
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