Ilya Gorbunov
9ccce52915
Clean up WasExperimental annotation from declarations with SinceKotlin<=1.4
...
Since it is not possible to use -api-version < 1.4, this annotation has no effect
2023-11-10 12:20:52 +00:00
Ilya Gorbunov
53681a33d9
Add required opt-ins in wasm stdlib sources
2023-10-17 16:30:41 +00:00
Ilya Gorbunov
735a97245d
Remove forgotten ExperimentalStdlibApi in wasm sources
2023-10-17 16:30:41 +00:00
Zalim Bashorov
86e854a980
Revert "[Wasm] Don't use the new br_on_cast* instructions since they are not supported in Node.js yet"
...
This reverts commit 2d728727
#KT-60828 Fixed
2023-09-19 09:23:26 +00:00
Abduqodiri Qurbonzoda
84c6333b23
Introduce Common String.toCharArray(destination) #KT-60657
...
Merge-request: KT-MR-11340
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-08-25 03:11:13 +00:00
Nikita Bobko
25c082f02b
K1: Implement a checker that disallows to have different member scopes for expect open and its actual
...
^KT-22841 Fixed
Review: https://jetbrains.team/p/kt/reviews/11603/timeline
The commit also introduces `@AllowDifferentMembersInActual` annotation in
stdlib which allows to suppress the diagnostic
2023-08-21 19:51:08 +00:00
Igor Yakovlev
8cc0660693
[Wasm] Wasi stdlib implementation
...
KT-56608
2023-08-08 18:10:19 +02:00
Artem Kobzar
cd840997b1
[K/Wasm] Rework Wasm enumEntriesIntrinsic declaration to fix stdlib compilation
2023-08-01 11:53:14 +00:00
Zalim Bashorov
2d728727da
[Wasm] Don't use the new br_on_cast* instructions since they are not supported in Node.js yet
...
#KT-60835 Fixed
2023-08-01 08:46:59 +00:00
Abduqodiri Qurbonzoda
7fc90c02f1
Rename copyToArrayImpl to collectionToArray
2023-07-27 11:16:58 +00:00
Abduqodiri Qurbonzoda
7010bf2c20
Move copyToArrayImpl implementation to Common source set
2023-07-27 11:16:58 +00:00
Abduqodiri Qurbonzoda
6fdfd4e8dd
Null-terminate Collection.toArray destination only in JVM
...
In other platforms the elements following the collection elements
should not be changed.
As a part of efforts to stabilize Native stdlib.
2023-07-27 11:16:58 +00:00
Artem Kobzar
85ee2d71d2
[K/JS] Remove FILE target from JsName annotation and use the new experimental JsFileName annotation instead
2023-07-27 09:44:28 +00:00
Artem Kobzar
029c71ebb1
[K/JS, K/Wasm] Implement enumEntries top-level function ^KT-59712 Fixed
2023-07-27 09:43:01 +00:00
Abduqodiri Qurbonzoda
e5ab1d9ccf
Commonize the ExperimentalNativeApi annotation
2023-07-25 15:01:49 +00:00
Ilya Gorbunov
61175889b9
KT-53154 extract implementation of enumEntries into an expect/actual internal helper function
...
It's required, so it can be implemented in different backends
at a different pace and in a different manner
2023-07-24 11:18:44 +00:00
Roman Efremov
8ce1417621
[Stdlib] Fix reports of MPP annotation checker
...
^KT-58551
2023-07-24 09:48:49 +00:00
Svyatoslav Kuzmich
2fd77d0925
[Wasm] IDL: Generate overloads for functions with union-typed arguments
2023-07-14 10:52:10 +00:00
Svyatoslav Kuzmich
c1100042b2
[Wasm] Use Unit in IDL event handler return type
...
Return value can be used in rare cases to stop event propagation.
Event methods can be called instead.
^KT-57058 Fixed
2023-07-14 10:52:10 +00:00
Abduqodiri Qurbonzoda
fed453fdea
Provide Common StringBuilder.append/insert with primitive type arguments #KT-57359
...
Merge-request: KT-MR-10892
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-07-13 11:52:14 +00:00
Igor Yakovlev
b5eafb9eb7
[Wasm] WasmExport implementation
2023-07-07 20:45:51 +00:00
Abduqodiri Qurbonzoda
f665388704
Advance ExperimentalNativeApi opt-in requirement level to ERROR #KT-57838
...
As a part of efforts to stabilize Native stdlib.
2023-06-30 15:27:08 +00:00
Abduqodiri Qurbonzoda
00abbc5cfe
Advance ObsoleteNativeApi opt-in requirement level to ERROR #KT-57088
...
As a part of efforts to stabilize Native stdlib.
2023-06-30 15:27:08 +00:00
Artem Kobzar
64158a8a2f
[K/JS] Add file-to-file compilation ^KT-6168 Fixed
2023-06-22 18:23:45 +00:00
Abduqodiri Qurbonzoda
3917ec94ab
[K/N] Use AbstractList.checkIndex() functions instead of custom check functions
2023-06-06 18:11:57 +00:00
Artem Kobzar
bfd57fd2df
[K/JS, K/Wasm] Optimize simple objects declaration and usage ^Fixed KT-58797
2023-06-02 14:23:40 +00:00
Abduqodiri Qurbonzoda
7d9ea28604
Deprecate lazy() that synchronizes on a given lock in non-JVM platforms
...
Because the overload has a meaningful implementation only in JVM.
In other platforms the specified lock object is ignored.
In K/N it throws UnsupportedOperationException.
2023-06-01 19:40:02 +00:00
Igor Yakovlev
6437d0919c
[Wasm] Replace deprecated cast instructions
2023-05-19 15:50:06 +00:00
Ilya Gorbunov
bbb36ce501
KT-58046 Promote time sources, time marks, measureTime to stable
2023-05-16 11:42:32 +00:00
Ilya Gorbunov
448e9fc5e7
Drop functions hidden since 1.4 (inline-only or experimental in JVM)
...
Since it's no longer possible to use API version less than 1.4,
these functions can be no longer called at all.
2023-04-26 10:31:03 +00:00
Svyatoslav Kuzmich
933f47aaf9
[Wasm] Rename JsHandle to JsReference
...
Decision to do this was made at Kotlin/Wasm interop design meeting
2023-04-21 15:03:20 +00:00
Svyatoslav Kuzmich
7ba8f7cce2
Revert "[Wasm] Deprecate @JsFun with warning"
...
Reason: Design of js(code) replacement is still in flux.
It would be better to delay deprecation until we converge
to proper solution.
This reverts commit 3566d918d2 .
2023-04-21 15:03:20 +00:00
Svyatoslav Kuzmich
7c2fa3290e
[Wasm] Revert removal of some Dynamic functions
...
Deprecate them with ERROR instead to improve compiler messages
2023-04-21 15:03:19 +00:00
Ivan Kylchik
dd0267f4ad
[WASM] Mark necessary methods that must be evaluated at compile-time
...
It includes methods and properties from Boolean, Char, String,
Enum and KCallable.
2023-04-20 08:18:58 +00:00
Abduqodiri Qurbonzoda
b25f3be81b
[K/N] Experimental Char code point constants and functions
...
Internalize WASM Char code point functions.
As a part of efforts to stabilize Native stdlib.
2023-04-19 20:33:33 +00:00
Abduqodiri Qurbonzoda
c6eaadb44f
[WASM] Internalize MutableList.replaceAll function
...
It will be introduced later in Common: KT-57152.
2023-04-19 20:32:56 +00:00
Abduqodiri Qurbonzoda
954e11c265
[K/N] Mark MutableList.replaceAll with ExperimentalNativeApi
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-19 20:32:55 +00:00
Abduqodiri Qurbonzoda
7eba68e62b
[K/N] Commonize String.regionMatches function
...
As a part of efforts to stabilize K/N stdlib.
2023-04-19 20:20:42 +00:00
Abduqodiri Qurbonzoda
c1fb6528aa
[WASM] Introduce internal ExperimentalNativeApi
...
To be able to OptIn usages in shared native-wasm directory.
2023-04-19 19:02:14 +00:00
Zalim Bashorov
6bfd1e7e9f
[Wasm] Stop using unsigned numbers in ScopedMemoryAllocator
...
It turned out that using unsigned numbers is heavy both in terms of size and performance.
We can consider switching back (KT-58041) as soon as we implement unsigned numbers and operations using wasm built-in capabilities (KT-58039).
2023-04-17 16:15:22 +00:00
Abduqodiri Qurbonzoda
8629c92c62
Update copyright of generatedUnicodeData files
2023-04-12 23:28:12 +00:00
Abduqodiri Qurbonzoda
c961c15729
Commonize AssertionError(message, cause) constructor
2023-04-11 13:32:54 +00:00
Abduqodiri Qurbonzoda
b65a68ca0d
[K/N and WASM] Internalize NoWhenBranchMatchedException and UninitializedPropertyAccessException
...
As a part of efforts to stabilize Native stdlib.
Merge-request: KT-MR-9531
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-10 21:10:51 +00:00
Zalim Bashorov
9760e3ee1e
[Wasm] Introduce check and error specialized for String to reduce output size
2023-04-05 20:50:52 +02:00
Igor Yakovlev
49beec33b4
[Wasm] Replace ClassId and InterfaceId with single TypeId
2023-04-04 18:39:18 +00:00
Igor Yakovlev
5a46cb1c40
[Wasm] Fix invalid float and double sign parser for '-Infinity' value
2023-04-04 18:39:18 +00:00
Igor Yakovlev
b8f797af00
[Wasm] Support for Associated Objects feature
2023-04-04 18:39:17 +00:00
Svyatoslav Kuzmich
46a6695072
[Wasm] WebIDL: Make getters and setters not inline
2023-03-29 11:08:30 +00:00
Svyatoslav Kuzmich
0c7d625123
[Wasm] Suppress warning of unused parameter in WebIDL js(code) functions
2023-03-29 11:08:30 +00:00
Svyatoslav Kuzmich
c466f926b0
[Wasm] Deprecate Dynamic in favour of JsAny
...
Remove extension methods created to compile
Kotlin/JS-like WebIDL bindings
^KT-57060 Fixed
2023-03-29 11:08:30 +00:00