Svyatoslav Kuzmich
53d15ea27c
[JS IR BE] Fix arrays type checks
2019-02-12 18:45:34 +03:00
Ilya Gorbunov
bd2e00ae99
Exclude kotlin.native internal package from modular kotlin-stdlib
...
Otherwise jlink fails to consume this library due to Java keyword in
package name.
#KT-29612
2019-01-31 19:18:55 +03:00
Svyatoslav Kuzmich
c9e2ed4e1f
Undo unnecessary changes to stdlib
...
Partially revert "[stdlib] Reduce usage of extension functions"
2019-01-29 19:06:32 +03:00
Svyatoslav Kuzmich
b239c80531
[JS IR BE] Add a few kotlin.test stubs to IR runtime
2019-01-29 19:06:31 +03:00
Sergey Rostov
30cc70d4c3
JPS build: move idea configuration to separate script
2019-01-28 13:43:09 +03:00
Sergey Rostov
efa3201a68
JPS build: add dependencies to stdlib
2019-01-28 13:43:08 +03:00
Svyatoslav Kuzmich
2818d3767e
[JS IR BE] Covert Char into inline class
2019-01-24 23:05:56 +03:00
Svyatoslav Kuzmich
a5f537adc5
[JS IR BE] Implement *Array.plus(Collection<>) in typed Kotlin without dynamic helper
2019-01-24 23:05:56 +03:00
Svyatoslav Kuzmich
8c89ffbe2d
[JS IR BE] Load builtins from code to runtime
...
Bypass builtins deserialization mechanism in legacy JS backend and load
bultins direcly as kotlin code.
This way we won't have separated IR declarations for Enum, Char, Long
Some "native" builtins are implemented in libraries/stdlib/js/irRuntime/builtins/
Other builtins are moved by MoveExternalDeclarationsToSeparatePlace and
used only in compile-time
2019-01-24 23:05:56 +03:00
Svyatoslav Kuzmich
29eb3c745c
[JS IR BE] Support two versions of test runtime: full and reduced
2019-01-24 16:14:40 +03:00
Svyatoslav Kuzmich
eea7e85d3a
[stdlib] Reduce usage of extension functions
2019-01-24 16:14:40 +03:00
Vyacheslav Gerasimov
082217a2bd
Build: Publish internal maven artifact for jvm-minimal-for-test
...
#KT-29204
2019-01-21 17:01:43 +03:00
Vyacheslav Gerasimov
0d8c779190
Build: Change builtins serialization task output directory to local
2019-01-21 17:01:43 +03:00
Ilya Gorbunov
0ac85ad715
Document that sorting is stable in each platform
...
#KT-12473 Fixed
2019-01-17 18:38:37 +03:00
Ilya Gorbunov
56672c2564
Ensure stable sorting in MutableList.sort/sortWith
...
MutableList.sortWith now works correctly in JS_IR backend too
#KT-12473
2019-01-17 18:38:23 +03:00
Ilya Gorbunov
23950042f6
Clarify how elements of arrays are compared by contentEquals function
...
Add clarification only for the particular group of overloads including
arrays of object and floating point numbers.
#KT-22942 Fixed
2019-01-11 21:04:03 +03:00
Ilya Gorbunov
51eb21d44b
Provide stable sorting when JS engine sorting doesn't look stable
...
#KT-12473
2019-01-11 20:53:29 +03:00
Ilya Gorbunov
7c3c454654
Remove specialization of toTypedArray for LongArray and BooleanArray in JS
...
The default implementation for primitive arrays returns an array of correct type.
#KT-29187 Fixed
2019-01-11 20:53:29 +03:00
Roman Artemev
d35b20f764
[JS IR BE] Implement private members lowering to extract private methods from class and transform them into static function
...
* fix kotlin.Long
* update tests
2019-01-11 20:28:04 +03:00
Ilya Gorbunov
fcef876c7e
Update copyright in generated stdlib sources
2019-01-11 19:23:12 +03:00
Ilya Gorbunov
de1d15aa9a
Improve test coverage for contentEquals and minOf/maxOf
2019-01-11 17:41:52 +03:00
Pavel Punegov
122ec85bf0
Add ThreadLocal and SharedImmutable native annotations as OptionalExpectation
...
to kotlin.native.concurrent
2019-01-11 17:38:58 +03:00
Ilya Gorbunov
30c769c19a
Avoid hitting max argument limit in String(chars)
...
Rewrite CharArray to String conversions to appending chars one by one.
Refine parameter checking in String(chars, offset, length) to adhere to
the common exception contract and document it.
#KT-29003
2019-01-10 23:35:52 +03:00
Mikhael Bogdanov
dfee1787e5
Regenerate builtins
2019-01-02 14:47:48 +01:00
Ilya Gorbunov
9289a2c573
Remove redundant clause from 'until' function docs
2018-12-26 17:54:56 +03:00
Bernhard Posselt
19906f13ea
Update Maps.kt
2018-12-21 22:01:01 +03:00
Bernhard Posselt
300f68e0d8
Add documentation on how merging works for toMap() for Iterables, Arrays and Sequences
2018-12-21 22:01:01 +03:00
Ilya Gorbunov
7c7c11e916
Fix current Kotlin version to avoid changing it in local builds
2018-12-21 17:21:50 +03:00
Shagen Ogandzhanian
6dd69ea3d6
Support named constructors in idl-backed code generation
...
this resolves https://youtrack.jetbrains.com/issue/KT-27361
2018-12-21 14:53:59 +01:00
Ilya Gorbunov
614139755c
Minor: fix Random companion reference in docs
...
Random's companion is named 'Default' rather than 'Companion'
2018-12-21 14:17:25 +03:00
Ilya Chernikov
44ea2bf1d4
Introduce script names and location ids, use them in diagnostics and...
...
for virtual file names. Also fix compiled script serialization.
2018-12-20 17:09:23 +01:00
Shagen Ogandzhanian
ca4521d57d
Support ClipboardEvent in definitions generated from idl
2018-12-18 15:07:34 +01:00
Shagen Ogandzhanian
44af5b783f
Introduce TrackEvent, MediaStreamTrackEvent-related IDL definitions
2018-12-18 12:19:12 +01:00
Shagen Ogandzhanian
c1f75d2324
Introduce idl definition for SVGMaskElement
2018-12-17 16:11:22 +01:00
Vadim Brilyantov
7fb43144d4
fix KotlinVersion and set it to be 1_3_0
2018-12-17 15:07:10 +03:00
Vadim Brilyantov
65982bbee8
disable statistics for 181 as FUS is only available since 182
2018-12-14 20:19:22 +03:00
Vadim Brilyantov
93d93cd40e
fix report kotlin targets for android case
2018-12-14 20:19:19 +03:00
Vadim Brilyantov
df5ec5c218
report stats for pullUp/pushDown refactorings
...
tmp
2018-12-14 20:19:19 +03:00
Shagen Ogandzhanian
714b4f25c0
Introduce better typing for on[event-name] attributes from idl
...
see https://upsource.jetbrains.com/kotlin/review/KOTLIN-CR-2548
2018-12-14 13:17:41 +01:00
Shagen Ogandzhanian
44da3c89b7
Introduce PointerEvent-related definitions
...
* Resolves https://youtrack.jetbrains.com/issue/KT-23932
* Backed by review https://upsource.jetbrains.com/kotlin/branch/KT-23932-POINTER-EVENT-FROM-REMOTE-IDL
2018-12-12 14:53:18 +01:00
Shagen Ogandzhanian
1f0bca12e1
Leave undefined values for undefined params in idl-generated code unassigned
...
https://upsource.jetbrains.com/kotlin/review/KOTLIN-CR-2535
2018-12-07 16:05:00 +01:00
Ilya Gorbunov
7b08f6f8f1
readLine: extend buffer to decode surrogate pairs from utf-8 correctly
...
CharBuffer had capacity to hold 2 chars, which was not enough to append
a surrogate pair when the buffer was not empty.
The buffer was extended and the decoding algorithm rewritten to deal with
a buffer of any length.
#KT-28572 Fixed
2018-12-07 17:42:09 +03:00
Ilmir Usmanov
1336e8f3e3
Take java 9 modules into account in coroutines debug metadata
...
reading
#KT-28237
2018-12-06 16:59:15 +03:00
Roman Elizarov
75e2dfda19
Added COROUTINE_SUSPENDED docs
...
Fixes KT-28488
2018-12-06 11:00:32 +03:00
Dave Leeds
6ff3ae3447
KT-20357: Add samples for commonPrefixWith and commonSuffixWith
2018-12-05 19:21:57 +03:00
Vyacheslav Gerasimov
508fe28781
Build: Add NoDebugJavaExec to filter out debugger arguments added by Idea
...
Workaround for IDEA-200192:
IDEA makes all JavaExec tasks not up-to-date and attaches debugger making our breakpoints trigger during irrelevant task execution
2018-12-05 16:23:25 +03:00
Shagen Ogandzhanian
b154d10cc5
Merge pull request #2013 from JetBrains/KT-16305-MUTATION_OBSERVER_INIT
...
Skip assignment for null-value ArrayLike object in idl-based generate…
2018-12-04 20:33:24 +01:00
Vyacheslav Gerasimov
17a60e3fd3
Build: use UtilityJavaExec task for compileJs and generateVisitors
2018-12-04 15:38:56 +03:00
Shagen Ogandzhanian
8294309e5b
Skip assignment for null-value ArrayLike object in idl-based generated code
2018-12-04 12:44:43 +01:00
Ilya Gorbunov
a534bfc32f
Move index overflow tests to another test source set
...
To avoid reporting them as ignored and to make it more easy to run them
when needed.
2018-11-30 07:27:07 +03:00