Igor Yakovlev
eea3c3624c
[WasmJs] Generate a wrapper that run in Deno
...
Fixed #KT-65713
2024-02-22 14:45:09 +00:00
Ilya Goncharov
abb5f55087
[Wasm] Use static import for wasm imports
...
^KT-65777 fixed
2024-02-19 10:01:10 +00:00
Artem Kobzar
8c69ffe8c9
[K/Wasm] Generate wasm-specific unsigned implementations ^KT-58039 Fixed
2024-01-29 20:11:41 +00:00
vladislav.grechko
f318b5969d
Erase non-reified type parameters by-default when inlining.
...
Substitution of type arguments to non-reified type parameters may lead
to accidental reification, which should not be done (see ^KT-60174 for
examples). So, we should erase them, except the few cases.
^KT-60174: Fixed
^KT-60175: Fixed
2024-01-26 18:31:20 +00:00
Artem Kobzar
053bc08626
[K/Wasm] Add Binaryen sizes to Wasm size tests
2023-12-21 14:19:09 +00:00
Ivan Kylchik
c82bc8f0ce
[WASM] Add ConstEvaluationLowering to the lowering list
2023-11-22 14:54:19 +00:00
Artem Kobzar
94eefba824
[K/Wasm] Optimize range checks
2023-09-19 17:04:41 +00:00
Zalim Bashorov
eecfc2c6d3
[Wasm] Simplify a message printed in case of WebAssembly.CompileError
...
#KT-59720
2023-09-19 09:23:26 +00:00
Zalim Bashorov
0945968751
[Wasm] Update expected size in test data
2023-07-17 23:57:35 +02:00
Svyatoslav Kuzmich
a3e2d2804c
[Wasm] Update testData after adding K2 and new test infra support.
...
- Actualize muted K2 tests
- Actualize muted K1 tests with module systems because legacy Wasm test
infra had no respect for "// MODULE: ..." test directives
2023-06-25 10:20:40 +02:00
Ilya Goncharov
d865202bd5
[Wasm] Inline _importModule
...
^KT-59556 fixed
2023-06-22 13:56:47 +00:00
Abduqodiri Qurbonzoda
9f16daac02
[WASM] Throw IllegalArgumentException on negative array size
2023-06-20 16:31:59 +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
Alexander Korepanov
8066f1b7d2
[JS IR] Do not copy interface method if base class inherits it
...
^KT-58599 Fixed
2023-05-30 08:22:43 +00:00
Abduqodiri Qurbonzoda
63a5a74613
Introduce HexFormat for formatting and parsing hexadecimals #KT-57762
...
Merge-request: KT-MR-9460
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2023-04-26 09:54:25 +00:00
Zalim Bashorov
77491ded1b
Use Array constructor with size to create Array of nulls
...
Change the constructor visibility from public to private as it should be.
2023-04-22 17:41:23 +00:00
Zalim Bashorov
521a272acb
[Wasm] Pass js stack value directly when replacing a wasm exception with JS one
...
In this case, we don't need to convert a value to and from wasm String.
2023-04-17 16:15:22 +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
Zalim Bashorov
c114afb55d
[Wasm] export __callFunction_* only when a respective closure/lambda converter is used
2023-04-17 16:15:21 +00:00
Zalim Bashorov
46459dfa60
[Wasm] Minor: update expected size after rebase
2023-04-05 20:50:52 +02:00
Zalim Bashorov
9760e3ee1e
[Wasm] Introduce check and error specialized for String to reduce output size
2023-04-05 20:50:52 +02:00
Zalim Bashorov
295acdf2af
[Wasm] Rewrite lazy initialization without by lazy and lateinit to reduce overhead
2023-04-05 20:50:52 +02:00
Zalim Bashorov
1a8a4fa65d
[Wasm] Don't use by lazy inside Throwable
2023-04-05 20:50:52 +02:00
Zalim Bashorov
67357fa5d4
[Wasm] Replace heavyweight stackTraceToString with "pure" JS stack
2023-04-05 20:50:52 +02:00
Zalim Bashorov
14af47bbd9
[Wasm] Introduce utilities to get package and name of class directly from metadata and use it in some places
2023-04-05 20:50:52 +02:00
Zalim Bashorov
a9b553f16e
[Wasm] Don't use by lazy to keep some JS values used by adapters
2023-04-05 20:50:52 +02:00
Zalim Bashorov
494403c4bb
[Wasm] Don't use by lazy inside TeamcityAdapter
2023-04-05 20:50:52 +02:00
Zalim Bashorov
2ef47901d0
[Wasm] Introducing private identityHashCode shared between Any's hashCode and toString
...
It splits the dependency of toString from hashCode that prevents keeping hashCode when toString is used.
2023-04-05 20:50:51 +02:00
Zalim Bashorov
6e3eef7a88
[Wasm] add simple tests to track the size of wasm and mjs files
2023-04-05 20:50:51 +02:00