Dmitriy Novozhilov
66544a4e00
Switch kotlin version to 1.9
...
with appropriate fixes in testdata, tests and other
places.
2023-01-30 09:29:55 +00:00
Zalim Bashorov
885381dd63
[Wasm] Change externRefToAny to make it compatible with SpiderMonkey and V8
...
It's hard to achieve that without implementing part of `externRefToAny` using an intrinsic. It should be rewritten when all VMs and tools update to the latest spec.
Also, stop using (deprecated) instructions unsupported by SpiderMonkey.
#KT-56166 In-Progress
2023-01-27 17:57:50 +01:00
Ilya Gorbunov
b558382f17
Cleanup unneeded options in kotlin-stdlib-jdk7/8 compilations
2023-01-26 20:57:00 +00:00
Ilya Gorbunov
5a4eb22961
Move isolated addSuppressed extension test to jvm tests
...
Conditions for being isolated do not hold anymore:
it tested that addSuppressed extension could work without kotlin-stdlib-jdk7,
but now the latter is merged to kotlin-stdlib and thus always present
#KT-51907
2023-01-26 20:57:00 +00:00
Ilya Gorbunov
8b68234528
Include all jvm stdlib tests into kotlin-stdlib project test
...
JVM stdlib tests are compiled against JDK 8 so there's no need to divide them by modules anymore
#KT-51907
2023-01-26 20:57:00 +00:00
Ilya Gorbunov
72ced53833
Fix dependencies between stdlib main source sets KT-51907
...
Otherwise mainJdk7/8 source sets don't see symbols from main when imported to IDEA
2023-01-26 20:56:59 +00:00
Svyatoslav Kuzmich
983140ca04
[Wasm] stdlib NFC: suppress unchecked cast
2023-01-24 16:02:48 +01:00
Svyatoslav Kuzmich
feca26e481
[Wasm] stdlib NFC: remove experimentalPackageStub.kt
...
Common sources now include `kotlin.experimental` and this file is no longer needed.
2023-01-24 14:55:00 +01:00
Svyatoslav Kuzmich
e1f72d60dc
[Wasm] stdlib API: Mark primitives constructor properties as private
...
These are implementation detail and were not meant to be public
2023-01-24 14:55:00 +01:00
Svyatoslav Kuzmich
354b231ea2
[Wasm] stdlib API: Mark internal compareTo functions as internal
...
Default public visibility was a mistake.
They were not intended to be public.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
e109662cdc
[Wasm] Enable warnings in stdlib and treat them as errors
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
72d9b8ddae
[Wasm] stdlib NFC: Fix or suppress remaining warnings
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
238da4c793
[Wasm] stdlib NFC: Suppress cast warnings in org.w3c
...
Also fix dukat build and update copyright year in generated files.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
7fed003531
[Wasm] stdlib: Remove unchecked cast in PrimitiveClasses::functionClass
...
This half-stub function is used for compatibility with Kotlin/JS
lowering and doesn't need full KClassImpl<Any> return type.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
dba5d401bb
[Wasm] fdlibm NFC: Remove dead code in expm1
...
Fixes warning that value of y is never used before it is read.
Removed dead code is not present in FreeBSD codebase since at least 1994
https://github.com/freebsd/freebsd-src/blame/34ac629b40e68e5394fe0a27e47c73a875d9f8cb/lib/msun/src/s_expm1.c#L141
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
d6a713ad39
[Wasm] fdlibm NFC: Remove dead code in __ieee754_pow
...
Fixes warnings.
i0 and i1 are not used in the original C code.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
3acf371f8a
[Wasm] fdlibm NFC: Replace division by zero with inf and NaN constants
...
Fixes warnings.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
181e1023ed
[Wasm] fdlibm NFC: Suppress name shadowing for "mutable parameters"
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
5faa430904
[Wasm] fdlibm NFC: Remove unnecessary variable initializers in
...
Fixes warnings.
These initializers were not in the original C code anyway.
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
ffb8138ae2
[Wasm] stdlib NFC: Suppress warnings in _WasmArrays.kt
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
14cf0a0b3f
[Wasm] stdlib NFC: Remove dead code in Number2String.kt
...
This fixes compiler warning
`w_exp` corresponds to unused field of `w` struct
in the original C code
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
d0b25e5a90
[Wasm] stdlib NFC: Suppress warnings for @WasmPrimitiveConstructor
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
8973ba294e
[Wasm] stdlib API: Mark all Double and Float companion values as const
...
Make it consistent with core/builtins and K/N runtime
2023-01-24 14:54:59 +01:00
Svyatoslav Kuzmich
6efeee2037
[Wasm] stdlib API: remove bitwise Byte and Short operations from builtins
...
They shadow kotlin.experimental extensions
2023-01-24 14:54:59 +01:00
Abduqodiri Qurbonzoda
1b258646be
Specify benchmarks repository for Base64
2023-01-22 02:02:38 +00:00
Ilya Goncharov
d7c31f79a8
Do not suppress NPM related tasks, but be aware about checking of them in task graph
2023-01-19 13:43:57 +00:00
Ilmir Usmanov
d18672bfb1
Wrap continuation with ContinuationImpl on callable references
...
in startCoroutineUninterceptedOrReturn. Otherwise, the coroutine will
not be interceptable later.
Add a test, which checks, that intercepted continuation is released.
#KT-55869
2023-01-19 00:35:36 +00:00
Artem Kobzar
71486a321c
[K/JS] Add support of compilation with ES-classes
2023-01-17 18:14:17 +00:00
Dmitriy Novozhilov
8d728d4f53
Revert "[FE 1.0] Deprecate declaration of expect and actual in the same module"
...
This reverts commit b09561c3c3 .
It was decided to postpone this warning till 1.9
This is needed to provide proper IDE support
^KT-40904 Open
^KT-55177 Open
2023-01-17 18:02:50 +00:00
Dmitriy Novozhilov
b09561c3c3
[FE 1.0] Deprecate declaration of expect and actual in the same module
...
^KT-40904 Fixed
^KT-55177 Fixed
2023-01-17 09:43:14 +00:00
Abduqodiri Qurbonzoda
ba2833b90f
Mark Base64 API with ExperimentalEncodingApi
2023-01-16 11:24:50 +00:00
Abduqodiri Qurbonzoda
954ec1f63c
Introduce @ExperimentalEncodingApi for binary-to-text encoding API
2023-01-16 11:24:50 +00:00
Abduqodiri Qurbonzoda
dc03a03762
Introduce basic, url-safe and mime Base64 variants #KT-9823
2023-01-16 11:24:49 +00:00
Svyatoslav Kuzmich
d14d4c8510
[Wasm] Support JsModule and JsQualifier
2023-01-13 21:58:34 +00:00
Denis.Zharkov
b009ee3744
Add @SinceKotlin and KDoc for ContextFunctionTypeParams
...
Initially, it was added accidentally as part of e3f987459c
and missed all out processes.
Adding @SinceKotlin("1.7") after the annotation has already been
published before is not really a problem, because it only may be used
with an experimental `-Xcontext-receivers` flag, thus it doesn't have
to be a part of our regular backward compatibility routine.
^KT-55226 Fixed
2023-01-12 16:53:48 +00:00
Ilya Goncharov
816971ed47
[JS] Use correct source for stdlib jar, because of lazy java source sets
...
^KT-55862 fixed
2023-01-11 13:35:02 +00:00
Svyatoslav Kuzmich
1564de5859
[Wasm] Support external vararg
...
Initial implementation copies Wasm array to JS array and spreads it
2023-01-11 10:35:36 +00:00
Artem Kobzar
642bbd38ba
[K/JS] Move global interface id state into an object to prevent interface ids reinitialization ^Fixed KT-55758
2023-01-09 20:56:19 +00:00
Ilya Gorbunov
916f733f73
Make k.c.Volatile since 1.9 in JVM and Common KT-55268, KT-55609
...
Leave it experimental since 1.8 for K/Native.
2023-01-04 17:28:46 +00:00
Ilya Goncharov
b4c0cab22a
[Gradle, JS] Regenerate API stdlib
2023-01-04 16:30:34 +00:00
Ilya Goncharov
ba8cc877fd
[Gradle, JS] Remove module dom-api-compat
2023-01-04 16:30:33 +00:00
Alexander Udalov
ae6d4d268d
Use short copyright from COPYRIGHT_HEADER in generated files
2023-01-02 22:52:18 +01:00
Mikhail Glukhikh
bc5acb5e9d
Regenerate built-ins copyright comments (year 2023)
2023-01-02 13:44:21 +01:00
Svyatoslav Kuzmich
9bc6b420a9
[Wasm][Stdlib] Add public APIs for linear memory access
...
Needed for interop with APIs that use linear memory.
2022-12-29 19:25:23 +00:00
Igor Yakovlev
35340f2f04
[Wasm] Fix stdlib String to Float parse
2022-12-29 11:57:47 +00:00
Igor Yakovlev
1b2b7ce34c
[Wasm] Support Number type for external functions
2022-12-29 11:57:45 +00:00
Igor Yakovlev
4bd187ccea
[Wasm] Move ItemArrayLike w3c declarations into the right package
2022-12-29 11:57:44 +00:00
Svyatoslav Kuzmich
add5fa6e0d
[Wasm] Minor: remove unused stdlib stub
...
Merge-request: KT-MR-8140
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2022-12-29 05:29:32 +00:00
Svyatoslav Kuzmich
3bbd8c291a
[Wasm] Add @WasmImport annotation
...
Imports top-level function from given module
2022-12-28 12:13:18 +01:00
Abduqodiri Qurbonzoda
fff593492d
Introduce Common AutoCloseable & use #KT-31066
...
Co-authored-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com >
Merge-request: KT-MR-8113
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2022-12-27 11:50:22 +00:00