Svyatoslav Scherbina
fe2b680be8
Support C enums with forward declarations
2018-12-12 09:32:36 +03:00
Vasily Levchenko
56b4e9c806
CHANGELOG: update
2018-12-11 14:33:32 +03:00
Vasily Levchenko
3f0bedcbbc
CHANGELOG: update
2018-12-11 14:28:06 +03:00
Ilya Matveev
49a457398e
Fixes in kotlin.test ( #2453 )
...
JUnit and TestNG have some behavioral features that were not reflected
in the kotlin.test implementation for Kotlin/Native:
- Any method (even a method which has no its own annotations) having
a super method marked by any test annotation (e.g. @Test or
@BeforeTest) is still executed during the test run unless
the super method doesn't belong to an interface.
- Annotation @Ignore makes sense only in a pair with the @Test
annotation. In other words, if a super method has only the @Test
annotation and the overriding method has only @Ignore annotation,
the overriding method will still be executed.
This patch makes kotlin.test behavior corresponding to these
features.
2018-12-11 18:02:25 +07:00
Vasily Levchenko
9b5c2eaea1
[version] bump 1.2.0
2018-12-11 09:54:43 +03:00
Vasily Levchenko
feb8a851ac
[kotlin compiler][update] 1.3.20-eap-15
2018-12-11 09:52:33 +03:00
Svyatoslav Scherbina
4d0daaf461
Disable incorrect optimization for varargs and list of string literals
2018-12-10 18:22:00 +03:00
Svyatoslav Scherbina
ba935c640b
Return Kotlin/Native-specific vararg lowering back Kotlin/Native code
2018-12-10 18:22:00 +03:00
Vasily Levchenko
8fea7a72fe
[debugging][binding][python] clear object tag before object header pointer dereferencing.
2018-12-10 18:21:27 +03:00
Dmitriy Dolovov
073d6f5f2e
Samples: Update Gradle plugin: 1.3.10 => 1.3.11
2018-12-10 11:42:48 +07:00
Dmitriy Dolovov
b5d7e28d21
Samples: Update Ktor: 1.0.0 => 1.0.1
2018-12-10 11:42:48 +07:00
SvyatoslavScherbina
328413337b
Improve code related to object layout ( #2446 )
2018-12-09 10:38:23 +03:00
Svyatoslav Scherbina
ca9c4cde51
Move Kotlin static data to read-only section
2018-12-07 19:22:00 +03:00
Dmitriy Dolovov
5dbd1325c5
Update Ktor version: 1.0.0-beta-2 => 1.0.0 ( #2439 )
2018-12-07 17:40:18 +07:00
Mike Sinkovsky
519e3960fc
Samples: gitchurn and gtk for Windows ( #2434 )
2018-12-06 23:55:50 +03:00
Vasily Levchenko
8fd7970119
[kotlin compiler][update] 1.3.20-dev-2191
...
cherry-picked from 7a6a47ce3
2018-12-04 14:49:54 +03:00
Svyatoslav Scherbina
49dc267eb4
Add unavailable stub to framework for Kotlin subclass of Obj-C class
...
To improve discoverability of the corresponding limitation
2018-12-04 12:08:55 +03:00
Nikolay Igotti
9e3a68f835
Reduce size of object header by one pointer. ( #2432 )
2018-12-03 13:50:56 +03:00
Nikolay Igotti
c6ac807034
Get rid of uneeded parts of RTTI. ( #2435 )
2018-12-03 12:39:47 +03:00
Svyatoslav Scherbina
132e12ba3e
Fix #2371
...
Mangle parameter names clashing with C keywords when producing framework
2018-11-30 09:51:08 +03:00
Vasily Levchenko
ce5a0c34a5
[codegen][debug-info] improving numbering parameters (including receivers).
2018-11-29 11:25:59 +03:00
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