Roman Elizarov
d33409ff8a
Fixed boxing of SuccessOrFailure inside SafeContinuation impl
2018-07-09 15:27:19 +03:00
Roman Elizarov
0370fac0b6
Further design improvements for coroutines 1.3 APIs
...
* Documentation improvements and clarification
* Dropped legacy intrinsic functions
* Remove context parameter default from Continuation builder function
2018-07-09 15:27:19 +03:00
Roman Elizarov
719d45510a
Continuation builder function
2018-07-09 15:27:19 +03:00
Roman Elizarov
0b17c619bc
Fixed ContinuationImpl.intercepted
2018-07-09 15:27:19 +03:00
Roman Elizarov
7513557315
Unroll recursion in resumeWith
...
Fixes KT-18987
2018-07-09 15:27:19 +03:00
Roman Elizarov
af9743709c
Implement COROUTINE_SUSPENDED as a property with getter
2018-07-09 15:27:19 +03:00
Roman Elizarov
aaabfa6382
Missing SinceKotlin declarations added for resume extensions
2018-07-09 15:27:19 +03:00
Roman Elizarov
b06d626b21
releaseInterceptedContinuation and few other minor fixes
2018-07-09 15:27:19 +03:00
Roman Elizarov
8e2fae3322
More work on draft coroutines 1.3 ABI & API:
...
* SuspendFunction[01] interfaces removed, moved to RestrictedContinuationImpl
* validateContext introduced to check restricted coroutines
* Distinguish SuspendLambda as being lambda/coroutine and provide a separate
toString implementation (draft) in its coroutine incarnation.
2018-07-09 15:27:19 +03:00
Roman Elizarov
8bbd78ca9a
Draft Kotlin Coroutines 1.3 ABI & API:
...
* SuccessOrFailure inline class is introduced
* Continuation.resumeWith(SuccessOrFailure)
* createCoroutineUnintercepted
* [Restricted]ContinuationImpl as named suspending function base
* [Restricted]SuspendLambda as suspending lambda base
* SuspendFunction[01] interfaces for efficient createCoroutine
* Serializable coroutine classes
2018-07-09 15:27:19 +03:00
Ilya Gorbunov
b5fabf3f72
Make unsigned types experimental (with warning if not opted-in)
2018-07-04 19:12:11 +03:00
Ilya Gorbunov
cbc3480d9e
Split common builtin companion tests from JVM-only tests
...
Remove duplicated tests from NumbersJVMTest.
2018-07-03 19:58:53 +03:00
Svyatoslav Kuzmich
83f8cfaa66
[JS IR BE] hashCode, toString, number conversion support
2018-07-03 19:51:58 +03:00
Ilya Gorbunov
3349976279
Make MIN_VALUE and MAX_VALUE of unsigned types actual constants
2018-07-03 03:52:18 +03:00
Ilya Gorbunov
7a208c3e01
Simplify unsigned array constructor functions
2018-07-03 03:52:18 +03:00
Ilya Gorbunov
615f57f2fc
Compile unsigned types sourceset with 1.3 and annotate them with SinceKotlin("1.3")
2018-07-03 03:52:18 +03:00
Nico Mandery
5c16633175
fix typos in documentation of JsQualifier annotation ( #1733 )
2018-06-27 19:34:27 +03:00
Alexander Udalov
8d124eb77f
Minor, use array literal syntax in kotlin.Metadata
2018-06-27 12:20:03 +02:00
Ilya Gorbunov
6d027bbbfc
Remove state from parts of multifile classes
...
Split COROUTINE_SUSPENDED marker to expect and actual because Kotlin/JS backend
expects it to be property without getter.
Update EXPECTED_REACHABLE_NODES in JS test data.
#KT-24986 Fixed
2018-06-22 11:35:05 +03:00
Anton Bannykh
6df9919eba
JS IR: add DefaultContructorMarker to the runtime
2018-06-21 13:27:17 +03:00
Roman Artemev
02628e8de3
[JS IR BE] Support exceptions in IR BE runtime
2018-06-19 17:09:24 +03:00
Roman Artemev
17d71f1e46
[JS IR BE] Implement type check
...
* IrTypeOperator lowering
* runtime support
* refactoring
2018-06-14 18:40:06 +03:00
Ilya Gorbunov
1ee37b1772
Update ReadMe for stdlib-js
2018-06-07 14:39:48 +03:00
Ilya Gorbunov
0f972f2412
Restore default parameter values in JS collection constructors
...
Even if they now have overloads that will be selected when these parameters are omitted.
This is to preserve compatibility with the libraries compiled against the older library.
#KT-24782 Fixed
2018-06-06 15:32:34 +03:00
Roman Artemev
4b8d906e45
Add runtime for JS IR BE
2018-06-05 21:21:18 +03:00
Mikhael Bogdanov
4383335168
Update @JvmDefault documentation
2018-05-30 15:24:50 +02:00
Roman Artemev
9d2092e86d
Fix visibility of @JsName-annotated symbols in stdlib-js
2018-05-29 13:57:34 +03:00
Neonailol
ede2e227c2
KT-23356 Cross-platform function to convert CharArray slice to String
...
Signed-off-by: Valeriy Zhirnov <neonailol@gmail.com >
2018-05-26 06:06:53 +03:00
Ilya Gorbunov
418db53ba4
Array.copyOf docs: do not use 'primitive default' term, rewrite description
...
#KT-22298
2018-05-25 21:52:36 +03:00
Valeriy Zhirnov
9239de9a02
KT-22298 Improve docs for Array.copyOf(newSize: Int)
...
Signed-off-by: Valeriy Zhirnov <neonailol@gmail.com >
2018-05-25 21:52:36 +03:00
Ilmir Usmanov
0cb73e55d0
Split kotlin-stdlib-coroutines into common and java jars
...
#KT-24532: Fixed
2018-05-25 18:19:19 +03:00
Alexander Udalov
bf3419c3bd
Introduce OptionalExpectation for annotations missing on some platforms
...
This commits adds a new annotation OptionalExpectation to the standard
library, which is experimental. To enable its usage, either pass
'-Xuse-experimental=kotlin.ExperimentalMultiplatform' as a compiler
argument, or '-Xuse-experimental=kotlin.Experimental' and also annotate
each usage with `@UseExperimental(ExperimentalMultiplatform::class)`
#KT-18882 Fixed
2018-05-24 13:14:51 +02:00
Ilya Gorbunov
3d2a641057
Minor: explicit public visibility
2018-05-23 05:44:34 +03:00
Ilya Gorbunov
d9656a939b
Do not produce libraries json declarations dump
...
It's no longer needed for checking binary compatibility.
Clean build of these libraries is no longer required too.
Cleanup build.gradle of binary-compatibility-validator.
2018-05-23 05:00:57 +03:00
Ilya Gorbunov
793d34b913
Suppress errors about non-public primary constructor and forbidden varargs
2018-05-22 22:27:00 +03:00
Ilya Gorbunov
0eee258fce
Generate toString implementation for unsigned types
2018-05-22 22:26:56 +03:00
Ilya Gorbunov
e988ea5a1c
Implement unsigned arithmetic operations including ulong division and remainder
2018-05-22 22:26:52 +03:00
Ilya Gorbunov
e01895fb0a
Implement unsigned/signed conversions
2018-05-22 22:26:47 +03:00
Ilya Gorbunov
89e4fdfa9c
Implement unsigned comparisons
2018-05-22 22:26:43 +03:00
Ilya Gorbunov
e4216099b3
Simplify differenceModulo for unsigned operands
2018-05-22 22:26:39 +03:00
Ilya Gorbunov
f2c01a9d9b
Generate ranges, progressions and progressioniterators for UInt and ULong
2018-05-22 22:26:36 +03:00
Ilya Gorbunov
5c6719b1e6
Generate arrays of unsigned types
2018-05-22 22:26:32 +03:00
Ilya Gorbunov
4fbc48f83f
Generate specialized abstract iterators for unsigned types
2018-05-22 22:26:28 +03:00
Ilya Gorbunov
188d8ab8dd
Generate unsigned integers declarations, mostly without implementations
...
Generate and/or/xor/inv for UByte/UShort using experimental signed counterparts
2018-05-22 22:26:24 +03:00
Ilya Gorbunov
e57e3971b6
Setup separate sourceset for unsigned integer types
...
Build jar with unsigned types and put it to dist
2018-05-22 22:26:20 +03:00
Ilya Gorbunov
e7b445e4b5
Fix incorrect @returns tag usage and improve padStart/End docs
...
#KT-24371 Fixed
2018-05-16 17:43:12 +03:00
Yan Zhulanow
c439b6d38b
Pill: Import common modules as libraries
2018-05-15 16:29:47 +03:00
Yan Zhulanow
ba5836d666
Pill: Introduce pill{} extension to set extended Pill configuration
...
Also introduce the flavor concept which allows to specify what part of Kotlin project should be imported.
2018-05-15 16:29:45 +03:00
Florian Steitz
8453ed1803
[KT-10456] Move tests from StringNumberConversionJVMTest to StringNumberConversionTest
2018-05-11 15:42:11 +03:00
Florian Steitz
d7bada0c29
[KT-10456] Added JS implementation for Int.toString(radix) and similar overloads
2018-05-11 15:42:11 +03:00