Ivan Kylchik
1564f2c549
Mark all declarations that will be evaluated with ir interpreter
2022-05-18 21:19:54 +03:00
Alexander Udalov
2e515f3945
Prohibit JVM target 1.6
...
But still compile stdlib, reflect, kotlin.test and scripting runtimes
with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7.
#KT-45165 Fixed
2022-04-19 22:54:40 +02:00
Ilya Gorbunov
a03999fe81
Rename DefaultTimeMark to TimeSource.Monotonic.ValueTimeMark
2022-04-14 16:54:32 +00:00
Ilya Gorbunov
77cf41c189
Saturate overflowing values when adjusting time marks
...
KT-46132
2022-04-14 16:54:31 +00:00
Ilya Gorbunov
fede70d0d5
Make TimeMark returned by TimeSource.Monotonic a value class
...
This value class wraps Long on JVM and Native thus reducing allocations
in time measurement scenarios when the default monotonic time source is
statically known.
KT-46132
2022-04-14 16:54:30 +00:00
Ilya Gorbunov
4598552e46
Promote Regex.matchAt and matchesAt to Stable #KT-51470
2022-04-12 15:03:37 +00:00
Abduqodiri Qurbonzoda
33fb49f20d
Fix JDK7 failing tests
2022-04-06 07:42:58 +00:00
Abduqodiri Qurbonzoda
1cb5cab28f
[K/N and WASM] Fix ESCAPE and COMMENTS modes
2022-04-05 15:21:31 +00:00
Abduqodiri Qurbonzoda
187faa121e
Test backreference to group with index zero
2022-04-05 15:21:29 +00:00
Abduqodiri Qurbonzoda
74121b26c0
Test octal literal in regex
2022-04-05 15:21:28 +00:00
Abduqodiri Qurbonzoda
46408ffd9d
Fix tests by adjusting to platform behavior
2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda
c3f5d03b36
[JS] Support named capture groups in Regex #KT-51775
2022-04-05 15:21:25 +00:00
Ilya Gorbunov
60fbb0d171
Reintroduce min/max operations for non-empty collections KT-50146
2022-04-04 22:33:24 +00:00
Vsevolod Tolstopyatov
82c959c4be
KT-51082 introduce Class<E : Enum<E>>.declaringJavaClass as a future replacement for synthetic declaringClass
2022-04-04 13:36:14 +00:00
Dmitriy Novozhilov
baf300a815
[StdLib] Suppress INVISIBLE_REFERENCE alongside with INVISIBLE_MEMBER
...
This is needed to successful compilation of stdlib with FIR compiler
2022-02-18 17:44:43 +03:00
Dmitriy Novozhilov
aef752a8cb
[StdLib] Add -Xbuiltins-from-sources to arguments of stdlib for JVM
...
This flag is needed to successful compilation of stdlib with FIR compiler
2022-02-18 17:44:42 +03:00
Ilya Gorbunov
906a351a81
Regenerate standard library generated code
2022-01-17 15:38:27 +03:00
Dario Seidl
8d8bf6473b
Fix typo in description of Float.ulp
...
Replace `Float.NIN_VALUE` with `Float.MIN_VALUE`.
2022-01-13 17:21:47 +03:00
Igor Laevsky
a5ebd3c716
Re-generate built-ins
2022-01-01 21:46:55 +02:00
Ilya Gorbunov
2954769296
KT-50059 Stop publishing artifacts with 'modular' classifier
2021-12-29 17:43:56 +00:00
Mikhael Bogdanov
239e79a241
JvmDefaultWithCompatibility. Update documentation
2021-12-09 07:40:07 +01:00
Mikhael Bogdanov
8c17d5f5a7
JvmDefaultWithCompatibility. Switch retention to source
2021-12-08 12:25:02 +01:00
Dmitry Petrov
93713a9ad4
JVM_IR KT-47939 use FunInterfaceConstructorReference as base class
2021-12-08 14:12:41 +03:00
Dmitry Petrov
9eeb8f54fb
JVM_IR KT-47939 fixes after review
2021-12-08 14:12:39 +03:00
Dmitry Petrov
e179598457
JVM_IR KT-47939 equality for fun interface constructor references
2021-12-08 14:12:38 +03:00
Mikhael Bogdanov
ea58c858d1
JvmDefault. Support @JvmDefaultWithCompatibility annotation
...
#KT-48217 Fixed
2021-12-06 14:20:24 +01:00
Ilya Gorbunov
fe77046fe4
KT-44089 Try to use all known PlatformImplementation classes in Android
...
Currently platform method implementations loaded are limited by the
java.specification.version system property value, however that property
always returns 0.9 in Android.
2021-12-06 12:24:43 +03:00
Ilya Gorbunov
9c90d4e471
KT-50033 Add missing public API packages to module-info and setup a test
...
The test checks that new packages are not accidentally non-exported,
so each new stdlib package must be either exported or specified in that
test's expected non-exported package list.
2021-12-06 00:58:51 +00:00
Dmitry Petrov
d5da130d4b
KT-47939 FunInterfaceConstructorReference
2021-12-02 20:28:06 +03:00
Ilya Gorbunov
4386a800c8
KT-49721 Avoid matching from the same position after a zero-width match
...
In JS, RegExp can return a match before the specified start index,
if it has matched at that index, but it is in the middle of a surrogate
pair. Account for that when advancing to the next position after
a zero-width match so that it doesn't get to the middle of SP.
2021-11-29 17:02:06 +00:00
Ilya Gorbunov
d7c31fbe82
Disregard PlatformImplementation class loaded from parent classloader
...
Such type cannot be cast to a base type, if the former is loaded from
a different, parent classloader.
#KT-47857 Fixed
Co-authored-by: Aleksei.Cherepanov <aleksei.cherepanov@jetbrains.com >
2021-11-24 01:59:48 +03:00
Dmitry Petrov
77dde26c7c
JVM KT-48944 improve performance of FunctionReference#equals
...
'getOwner()' computes KDeclarationContainer for function references,
which can be costly. Compare other FunctionReference properties first.
2021-11-20 10:31:07 +03:00
Georgy Bronnikov
41e38d5a1a
JVM_IR: move serialized IR to a separate annotation
2021-10-02 00:56:46 +03:00
Abduqodiri Qurbonzoda
dc2f5eab25
Align JS and JVM behavior of Regex replace function #KT-28378
2021-09-30 17:38:03 +00:00
Abduqodiri Qurbonzoda
cca5f82aa0
Handle container builders capacity overflow
2021-09-30 16:01:57 +00:00
Abduqodiri Qurbonzoda
f8bcba0b76
Align JS String.equals/compareTo(ignoreCase) behavior with JVM #KT-48999
2021-09-30 15:35:50 +00:00
Ilya Gorbunov
04d70162d2
Make DurationUnit not a typealias of TimeUnit on JVM
...
Provide conversion functions between DurationUnit and TimeUnit
2021-09-30 14:31:54 +00:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Ilya Gorbunov
7666377565
Control Duration init block assertions on JVM with -ea option
...
On other platforms enable them unconditionally
2021-09-24 16:17:54 +00:00
Ilya Gorbunov
96611de344
Stabilize Duration, DurationUnit and related top-level functions KT-46784
...
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2021-09-24 16:17:53 +00:00
Abduqodiri Qurbonzoda
261d0c2783
Promote collection builders to stable #KT-47421
2021-09-21 11:25:28 +00:00
Dmitriy Novozhilov
0923d39215
[Build] Setup useFirForLibraries flag
2021-09-20 14:18:18 +03:00
Abduqodiri Qurbonzoda
3ddc29363a
Remove deprecated Common synchronized and deprecate it in JS #KT-46101
2021-09-16 19:38:37 +03:00
Abduqodiri Qurbonzoda
d9f8ce899a
Promote rotateLeft and rotateRight to stable
2021-09-16 19:27:21 +03:00
Abduqodiri Qurbonzoda
34a50e4e34
Promote regex splitToSequence to stable
2021-09-16 19:26:33 +03:00
Abduqodiri Qurbonzoda
f1befc0108
Format Other_Uppercase/Other_Lowercase property as an identifier in docs
2021-09-15 17:31:52 +03:00
Mikhail Glukhikh
ffbd574a08
Use -opt-in instead of -Xopt-in in comments and scripts
2021-09-08 23:43:55 +03:00
Abduqodiri Qurbonzoda
97eb28144f
Introduce Common readln() and readlnOrNull() top-level functions #KT-48456
2021-09-05 15:31:11 +00:00
Ilya Gorbunov
11314a5c4e
Rename enabling old behavior property and make it cached in a field
...
Mention the property name in the note about conversion to set.
#KT-45438
2021-09-02 06:06:39 +03:00
Abduqodiri Qurbonzoda
94b371af5b
Remove brittle ‘contains’ optimization in minus/removeAll/retainAll #KT-45438
2021-09-02 05:58:19 +03:00