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
Svyatoslav Kuzmich
d14d4c8510
[Wasm] Support JsModule and JsQualifier
2023-01-13 21:58:34 +00:00
Alexander Udalov
ae6d4d268d
Use short copyright from COPYRIGHT_HEADER in generated files
2023-01-02 22:52:18 +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
4bd187ccea
[Wasm] Move ItemArrayLike w3c declarations into the right package
2022-12-29 11:57:44 +00:00
Svyatoslav Kuzmich
3bbd8c291a
[Wasm] Add @WasmImport annotation
...
Imports top-level function from given module
2022-12-28 12:13:18 +01:00
Svyatoslav Kuzmich
7ec6608e29
[Wasm] Add Promise and support tests that return Promise
...
Co-authored-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com >
Merge-request: KT-MR-7717
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2022-11-25 20:56:47 +00:00
Zalim Bashorov
7f8f7aa050
[Wasm] Revert ref cast and test instructions to be compatible with Binaryen
2022-11-25 15:31:48 +01:00
Igor Yakovlev
c8306f1a3b
[Wasm] Mark rotate functions with WasExperimental
2022-11-19 11:49:06 +01:00
Zalim Bashorov
2fc6cea681
[Wasm] Migrate to the new GC M6 instructions
2022-11-15 12:55:10 +01:00
Igor Yakovlev
210212c284
[WASM] Remove redundant parameters for w3c dynamic getters
2022-11-11 10:53:05 +00:00
Igor Yakovlev
b6eb2b3620
[WASM] Add w3c bindings
2022-11-10 14:22:44 +00:00
Zalim Bashorov
9ed94b25fa
[Wasm] Cleanup instructions list
...
* Split by proposal, at least for work-in-progress ones
* Add a link to the repo for WIP proposals
* Move some instructions to right group
2022-11-09 13:44:38 +01:00
Igor Yakovlev
346b2f162c
[WASM] Optimize varargs without spreads
2022-11-01 13:15:11 +00:00
Igor Yakovlev
033e2c45f1
[WASM] Caching string literals in global pool
2022-11-01 13:15:09 +00:00
Artem Kobzar
eb2326eabb
[K/JS] Add ability to exclude declarations from export by a new annotation @JsExport.Ignore.
2022-10-03 11:07:25 +00:00
Ilya Gorbunov
57c9d61291
ComparableTimeMark and specialized TimeSource KT-54082
...
- Introduce ComparableTimeMark interface extending TimeMark,
and TimeSource.WithComparableMarks - a time source that returns such time marks.
- Implement ComparableTimeMark in ValueTimeMark and AbstractLong/DoubleTimeMark classes.
2022-09-19 19:16:40 +00:00
Igor Yakovlev
c94a051c19
[WASM] Renew to Milestone 6 instructions set
2022-09-15 16:27:42 +00:00
Igor Yakovlev
fff6b16483
[WASM] Wasm string.plus optimisations
2022-09-15 16:27:39 +00:00
Abduqodiri Qurbonzoda
b388c7503b
Advance Int/Long/Double.units deprecation level to ERROR #KT-53864
2022-09-11 23:49:07 +03:00
Abduqodiri Qurbonzoda
73a65c1bb1
Promote top-level kotlin.math.cbrt() to stable #KT-53277
2022-09-08 12:00:58 +00:00
Igor Yakovlev
a0a66ffb96
[WASM] Refactoring wasm array copy functions
2022-07-08 16:29:45 +00:00
Igor Yakovlev
0ea7e8b70a
[WASM] Add array copy intrinsic
2022-07-06 19:07:56 +00:00
Igor Yakovlev
8306b1bd71
[WASM] Remove deprecated wasm instructions
2022-07-06 19:07:56 +00:00
Romain Guy
02a3915fdf
KT-48232: Implement kotlin.math.cbrt() (cubic roots)
...
cbrt() is the standard cubic root function that provides several advantages over pow(x, 1.0/3.0):
- Better precision
- Faster
- Behaves better with negative values
2022-06-16 20:27:43 +03:00
Igor Yakovlev
b1c93fe53d
[WASM] Implement std print
2022-05-20 16:33:58 +02:00
Igor Yakovlev
8da6ab7a04
[WASM] New VTable format
2022-05-20 16:33:57 +02:00
Igor Laevsky
d46102b129
[Wasm] Fix few things around assertions in stdlib
2022-04-27 20:21:21 +00:00
Igor Laevsky
3de1235fda
[WASM] Add command line option to enable/disable assertions
2022-04-26 20:41:52 +00: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
f32e0f3cba
Provide specialized TimeSource.Monotonic for wasm
...
KT-46132
2022-04-14 16:54:30 +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
Igor Yakovlev
d881f0d2a6
[WASM] Replace String storage type from CharArray to WasmCharArray
2022-03-21 17:24:38 +00:00
Svyatoslav Kuzmich
4636f71076
[Wasm] Loader improvements
...
- Output ES modules instead of plain files
- Support -Xwasm-launcher=d8 for d8 shell used in tests and benchmarks.
- Reuse launcher generation logic in CLI and box tests runners.
- Create separate output directory for each box since
there are multiple output files generated for each test.
- Stop using absolute paths in generate JS files
to simplify running generated code on different machine
- Remove ">>>" from println output
Merge-request: KT-MR-5729
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2022-02-10 22:59:44 +00:00
Igor Yakovlev
eb8c3aa54e
[WASM] Remove WasmImport annotation
2022-02-03 21:25:59 +01:00
Igor Yakovlev
8eec1743fb
[WASM] Remove TODO with UOE for std readln actuals
2022-02-03 21:25:59 +01:00
Igor Yakovlev
32fbf69738
[WASM] Std code clean up
2022-02-03 21:25:58 +01:00
Igor Yakovlev
195513d4f2
[WASM] Workaround about call toTypedArray on AbstractCollection
2022-02-03 21:25:58 +01:00
Igor Yakovlev
c3a6d0b499
[WASM] Fix invalid constructors call flow for exceptions
2022-02-03 21:25:58 +01:00
Igor Yakovlev
e30b449454
[WASM] Replace non-performance way of building String from CharArray
2022-02-03 21:25:58 +01:00
Igor Yakovlev
ea76501f9e
[WASM] Implement ConstrainedOnceSequence
2022-02-03 21:25:58 +01:00
Igor Yakovlev
d0370bd145
[WASM] Fix invalid Array.fill methods implementations
2022-02-03 21:25:58 +01:00
Igor Yakovlev
ece0f83ab2
[WASM] Implement std kotlin.time
2022-02-03 21:25:57 +01:00
Igor Yakovlev
1052ebb44d
[WASM] Fix invalid rounding for Double to Int/Long conversion
2022-02-03 21:25:57 +01:00
Igor Yakovlev
e32f9eb2ce
[WASM] throwableExtensions implementation
2022-02-03 21:25:57 +01:00
Ilya Gorbunov
906a351a81
Regenerate standard library generated code
2022-01-17 15:38:27 +03:00
Igor Yakovlev
82455c849d
[WASM] Lazy properties initialization
2022-01-05 13:12:32 +01:00
Igor Yakovlev
e58d4163ad
[WASM] Add std methods for collections
2022-01-05 13:12:32 +01:00