Ilya Goncharov
1f9af4b452
[Gradle, JS] Fix cli tests for ir
...
KT-60495
2023-07-26 12:51:37 +00:00
Igor Yakovlev
750653e4b3
[Wasm] Add kotlin wasm wasi mode compiler flag
2023-07-07 15:23:18 +00:00
Ilya Goncharov
148d8c9246
[Gradle, JS] Migrate JS cli tests to ir backend
2023-07-05 07:10:06 +00:00
Artem Kobzar
64158a8a2f
[K/JS] Add file-to-file compilation ^KT-6168 Fixed
2023-06-22 18:23:45 +00:00
Alexander Udalov
530f533c84
K2 CLI: minor, remove misleading warning
...
Light tree is used by default now, so it's no longer far from being
production-ready.
2023-06-21 14:16:43 +00:00
Nikolay Lunyak
d72a50b3f5
[FIR] KT-58065: Support LT in K2JsIrCompiler
2023-05-16 12:11:46 +00:00
Zalim Bashorov
ef28bf27ae
[CLI tests] Update testdata
2023-04-25 19:44:03 +02:00
Nikolay Lunyak
360d236b7e
[FIR JS] KT-57601: Get rid of the builtin provider
...
In this example we get 2 variants of `kotlin/toString()`:
one coming from the KLib provider, and the
other coming from the builtins provider.
These are identical deserialized functions.
^KT-57601 Fixed
2023-04-25 11:29:34 +00:00
Alexander Korepanov
79d378f2bd
[JS IR] Perform optimizations on the generated JS code
...
The patch adopts and reuses the optimizations from the legacy backend.
The optimizations remove useless temporary variables,
statements and simplify generated JS code.
The optimizations can be disabled by `-Xoptimize-generated-js=false`.
Related to KT-51139
2023-04-18 12:49:33 +00:00
Artem Kobzar
f0aa6c6d32
[K/JS Gradle] Remove forceLegacyBackendUsage from KotlinGradlePlugin previously added with the compiler flags refactoring, also fix bootstrap compilation of atomicfu plugin
2023-04-12 14:04:34 +00:00
Dmitriy Dolovov
46ed6e5766
[PL] Change semantics of CLI parameter -Xpartial-linkage
...
This parameter accepts the name of the "mode" in which the partial linkage would work. Currently, only two options are supported: 'enable', 'disable'. But the list may be extended in the future as needed.
At the moment the 'disable' option is the default one. This will be changed in #KT-51447, #KT-51443.
2023-03-30 12:38:07 +00:00
Dmitriy Dolovov
831611d577
[PL] Introduce new CLI parameter: -Xpartial-linkage-loglevel
...
The parameter controls the level of logs produced during the compile time by the partial linkage: 'info', 'warn' (default for now), and 'error'.
2023-03-30 12:38:06 +00:00
Ivan Kylchik
5d5582d201
Move ignoreConstOptimizationErrors compiler key from jvm to common
...
#KT-56023
2023-03-24 15:55:03 +00:00
Ivan Kochurkin
d91efb212d
[K2, MPP] Rename jvm.kt to platform.kt in JS tests
2023-03-24 14:48:24 +00:00
Ivan Kochurkin
227018624e
[K2, MPP] Add common constructorCache to Fir2IrCommonMemberStorage
...
Use it in Fir2IrDeclarationStorage
^KT-56660 Fixed
2023-03-24 14:48:24 +00:00
Artem Kobzar
4da81b2b6e
[K/JS] Remove an internal system property and replace it with the new compiler flag
2023-03-17 12:38:34 +00:00
Sebastian Sellmair
b90207edb9
[Gradle] Rename -Xdepends-on to -Xfragment-refines and use ':' for -Xfragment-sources instead of ';'
...
^KT-56210 Verification Pending
2023-03-01 16:30:44 +00:00
Sebastian Sellmair
21bf497830
[CLI] Replace K2 -Xmodule by -Xfragments and -Xfragment-sources
...
KT-56210
2023-03-01 16:30:41 +00:00
Dmitriy Novozhilov
94faa759cb
[CLI] Rename -XdependsOn flag to -Xdepends-on to keep convention
...
^KT-56209
2023-02-17 14:09:30 +00:00
Dmitriy Novozhilov
79e4df72bf
[CLI] Introduce utilities for creating FirSession hierarchy in CLI for all platforms
...
Also support session creation and compilation for HMPP projects
^KT-56209 Fixed
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov
77caa31640
[CLI] Add CLI arguments to pass HMPP module structure to the compiler
...
^KT-56209
2023-02-17 11:08:50 +00:00
Ivan Kochurkin
f3e3cc0037
[FIR] Implement support of MPP in JS CLI
2023-02-07 14:16:29 +00:00
Dmitriy Novozhilov
88efa6bfb6
Update tests after switching to LV 1.9
2023-01-30 09:29:57 +00:00
Ilya Goncharov
1150ec6882
[JS] Implementation dependencies for JS klibs
...
^KT-56158 fixed
2023-01-27 13:31:59 +00:00
Artem Kobzar
71486a321c
[K/JS] Add support of compilation with ES-classes
2023-01-17 18:14:17 +00:00
Mikhail Glukhikh
3dc05f4ec5
Introduce language version 2.0 and associate K2 compiler with it
2023-01-16 18:12:55 +01:00
Alexander Udalov
3f2b51151f
Remove -Xexclude-from-dumping
...
Apparently the underlying logic was removed in b07690fccf and no one
noticed.
2023-01-02 15:26:07 +00:00
Artem Kobzar
fbf06b5495
[K/JS] Add a secret system property to enable the old Kotlin/JS compiler only for tests until it will be removed from the sources
2022-12-29 13:32:01 +00:00
Igor Yakovlev
71afbb36f5
[Wasm] Introduce Xwasm-generate-wat compiler flag (disabled by default)
2022-12-29 11:57:48 +00:00
Alexander Korepanov
9dab8637a8
[JS Gradle] Pass incremental cache root dir to K2JS compiler
2022-11-28 20:46:40 +00:00
Artem Kobzar
c1c5933c72
[K/JS] Deprecate old JS-compiler
2022-11-23 11:22:29 +00:00
Ilya Chernikov
7a57e8d903
FIR JS: Add K2 support to K2JsIrCompiler
2022-11-12 16:28:24 +01:00
Artem Kobzar
7b9aed25da
[K/JS] Add the ability to turn off polyfills generating
2022-10-19 12:52:23 +00:00
Ilya Goncharov
b76fdb2efa
[JS IR] Fix js help
2022-10-18 09:59:17 +00:00
Ilya Goncharov
ca8b415726
[JS IR] Change names of ir-only arguments
2022-10-18 09:59:17 +00:00
Ilya Goncharov
ec50036884
[JS IR] Change module name compiler flags
2022-10-18 09:59:16 +00:00
Artem Kobzar
9a4a30c9bb
[K/JS] Add flag for disabling signature uniqueness checks at klib generating phase
2022-10-14 13:08:58 +00:00
Sergej Jaskiewicz
227864c6ec
[JS IR] Add a compiler option for generating name entries in sourcemaps
2022-10-14 10:09:39 +00:00
Artem Kobzar
de880ce9aa
[K/JS] Move ES modules logic to a new transformer with IC
2022-10-13 07:32:44 +00:00
Ilya Goncharov
c726360ad2
Change policy with legacy compiler backend
...
[JS] Remove incremental js jps test
[JS] Remove test of maven js archetype
[JS] Fix another one test
[JS] Fix tests for jps
[JS] Try to fix maven test data
[JS] Fix test data
[JS] Fix test data for ant
[JS] Fix jsExtraHelp test
[JS] Fix test run from not-Gradle build tools
[JS] Set flag without compiler error
[JS] Disable warnings and errors in legacy compiler called from Gradle
[JS] Proofread messages
[JS] Not proofread messages
KT-42326
2022-09-29 13:56:30 +00:00
Ilya Goncharov
4906f17d09
[JS IR] Fix js compiler arguments
2022-09-21 10:58:25 +00:00
Ilya Goncharov
642fae1a5b
[Gradle, JS] Migrate onto destinationDirectory and outputName
2022-09-21 10:58:20 +00:00
Ilya Goncharov
d203dc35bf
[JS IR] Add to IR keep possibility similar to legacy-dce one
...
It helps to:
- keep declarations even if they are not reachable and not exported
- not minify names of not exported declarations
Compiler argument: -Xir-keep=A,B
Can be used for top-level declarations or for member
^KT-54118 fixed
2022-09-20 16:06:17 +00:00
Ilya Goncharov
bf8681296b
[Gradle, JS] IR by default and report warnings for using legacy compiler
...
- just legacy - report warning about deprecation
- both - report warning about deprecation of legacy
- no compiler explicitly chosen - error about explicit setting compiler
warn from cli legacy compiler
nowarn flag - kotlin.js.compiler.nowarn
KT-42326
KT-53074
2022-09-16 09:48:41 +00:00
Artem Kobzar
87038e7d8a
[K/JS] feat: add logic under the flag for strict implicit export generating inside d.ts files.
2022-08-09 16:48:59 +00:00
Dmitriy Novozhilov
928416c9c5
[CLI] Introduce new compiler arguments for registering compiler plugins
...
With new syntax each plugin should be registered in separate argument with syntax
`-Xcompiler-plugin=classpath1,classpath2[=argument1=value1,argument2=value2]`
2022-07-20 09:07:26 +00:00
Ilya Chernikov
855059b93c
Scripting: update scripts in source roots handling
...
#KT-52525 fixed
related to #KT-52735
2022-06-16 21:28:06 +00:00
Igor Yakovlev
f996278171
[WASM] Support for mjs universal launcher
2022-06-07 20:59:03 +00:00
Sergej Jaskiewicz
e03747ea7d
[JS IR] Introduce the GENERATE_INLINE_ANONYMOUS_FUNCTIONS feature flag
2022-06-01 09:02:31 +00:00
Dmitriy Novozhilov
c2bb8d6de0
[Test] Fix CLI tests due to migration from -Xuse-fir to -Xuse-k2 flag
2022-04-29 12:26:01 +04:00