Ilya Matveev
e4f4b4eef0
[JS IR] Support setting custom module name (= unique name)
...
Required for #KT-36721.
2020-04-22 10:50:26 +07:00
Zalim Bashorov
415893b8aa
[JS CLI] revert disabling NI by default
2020-03-13 01:51:24 +03:00
Zalim Bashorov
f60d0b2c7c
[JS IR CLI] Change K2JsIrCompiler#executableScriptFileName's body to TODO() and provide a proper fix later
2020-03-11 12:54:39 +03:00
Zalim Bashorov
2a7e32d3ae
[JS IR DCE] Add CLI option to print reachability info
2020-03-11 12:54:39 +03:00
Mikhail Zarechenskiy
d1a8f57740
Disable New Inference in JS backend
...
See #KT-37163 for details
2020-03-02 18:03:41 +03:00
Zalim Bashorov
6f61ea7f67
[JS DCE] Add an ability to define overwriting strategy when copying dependencies in dev-mode
...
* CLI option "-Xdev-mode-overwriting-strategy"
* System Property "kotlin.js.dce.devmode.overwriting.strategy"
Possible values: "older", "all".
#KT-36349 Fixed
2020-02-20 19:10:29 +03:00
Anton Bannykh
1e96c3d21e
DCE-driven mode
...
:js:js.tests:jsIrTest works same as before
:js:js.tests:jsPirTest runs tests in DCE-driven mode
2020-02-06 21:03:41 +03:00
Alexander Udalov
f4912ed433
Minor, simplify JS-related build files a bit
...
* remove test roots in modules which have no tests
* 1.8 is already the default JVM target in the project
* replace compilation dependency on kotlin-reflect with runtime
2020-01-29 18:03:22 +01:00
Alexander Udalov
d27bb76fd0
Remove dependency of serialization.js on cli
...
To break up compilation dependency of JS IR/WASM backends on JVM
backend.
#KT-35854 Fixed
2020-01-29 18:03:22 +01:00
Alexey Tsvetkov
2d598d50d7
Expand compilation scope for IC before backend is run
...
Sometimes IC raises compilation errors when rebuild succeeds.
This happens because IC uses serialized decriptors
for non-dirty files. Serialized descriptors can be different
from source file descriptors. For example, a source file
may contain an implicit return type or an implicit visibility
for overridden methods, but serialized descriptors always
contain explicit return types & methods' visibilities.
These problems can be solved by expanding a scope of incremental compilation
just after the analysis, but before error reporting & code generation.
In other words, we need to compare descriptors before error reporting and code generation.
If there are new dirty files, current round of IC must be aborted,
next round must be performed with new dirty files.
This commit implements IC scope expansion for JS Klib compiler
#KT-13677
#KT-28233
2020-01-21 16:36:36 +03:00
Alexey Tsvetkov
4f3418dc89
Minor: use CompilerConfiguration#putIfNotNull for IC services
2020-01-21 16:36:36 +03:00
Svyatoslav Kuzmich
fbf71be30c
[JS IR BE] Support mode of linking multiple klibs without .kt files
2020-01-14 18:00:29 +03:00
Svyatoslav Kuzmich
3df8393ede
[JS IR] Properly report compiler errors
...
Report compiler errors using message collector
Instead of crashing with stack trace
2019-12-17 15:33:43 +03:00
Alexander Gorshenev
a923e0d130
Only allow version triples for klib metadata and ir versions
2019-11-30 18:37:38 +03:00
Alexander Gorshenev
b0f077ff4b
Plumbing KlibMetadataVersion and KlibIrVersion values to klib manifest
2019-11-30 18:37:38 +03:00
Anton Bannykh
81699299f5
JS_IR: DCE
...
Could be enabled by toggling `-Xir-dce`
Box test output in js/js.translator/testData/out-min
2019-11-26 12:20:39 +03:00
Svyatoslav Kuzmich
42c4591df8
[JS IR] Add -Xgenerate-dts CLI argument
2019-11-12 18:19:06 +03:00
Nikolay Krasko
155a760ee9
Revert "Revert [JS IR] commits that failed build"
...
This reverts commit 740f851a
2019-11-07 16:24:13 +03:00
Nikolay Krasko
740f851a10
Revert [JS IR] commits that failed build
...
Revert "[JS IR] Build hybrid versions of stdlib and kotlin.test"
This reverts commit b9f88350dd .
Revert "[JS IR] Add gradle plugin integration tests"
This reverts commit d872b27663 .
Revert "Update bootstrap"
This reverts commit bc47594c7a .
Revert "[JS IR] Support generating both IR and pre-IR libraries"
This reverts commit 1b8df45bfe .
2019-11-05 13:58:39 +03:00
Svyatoslav Kuzmich
1b8df45bfe
[JS IR] Support generating both IR and pre-IR libraries
...
Remove all previous -Xir options
Add:
-Xir-produce-klib-dir
-Xir-produce-klib-file
-Xir-produce-js
-Xir-only
2019-11-01 19:42:05 +03:00
Vitaliy.Tikhonov
f59e393e37
[CLI] add support running scripts in js compiler, extract common code with jvm part
2019-10-10 12:52:06 +03:00
Alexander Gorshenev
c2c88a9ee6
Use MessageCollector.NONE as a dummy logger collector for js library resolver
2019-10-08 16:56:29 +03:00
Alexander Gorshenev
71eb413350
Attached library resolver to messge collector
2019-10-08 16:56:29 +03:00
Alexander Gorshenev
47fba2ee4b
A couple of fixes for js library resolver
2019-10-08 16:56:29 +03:00
Alexander Gorshenev
b7a0546634
The friend module identification has regressed recently
2019-10-08 16:56:29 +03:00
Alexander Gorshenev
c227c13799
Commonizing klib metadata between native and js
2019-10-01 17:38:57 +03:00
Anton Bannykh
ead8379c50
JS: add -Xmetadata-only flag for JS common code modules (KT-33142 fixed)
2019-09-27 19:12:03 +03:00
Svyatoslav Kuzmich
9594e9b3b1
[JS IR BE] Initial export generation
2019-08-30 13:15:37 +03:00
Nikolay Krasko
beb1bc09d4
Update to 192.5118.30
2019-06-25 11:48:59 +03:00
Roman Artemev
cc46657c99
[JS IR BE] Fix misprint
2019-06-14 18:40:59 +03:00
Vyacheslav Gerasimov
5a39c637c2
Build: Fix intellij dependency leak from ir tree module
2019-06-13 21:03:55 +03:00
Svyatoslav Kuzmich
cd651be461
[JS IR BE] Migrate JS BE to common klib utils
2019-06-05 11:15:45 +03:00
Anton Bannykh
c3170d1908
JS: cache metadata, grouped by package FQN
2019-05-28 23:33:17 +03:00
Anton Bannykh
56915d1c07
JS: optimize JSON parser
2019-05-28 23:33:17 +03:00
Svyatoslav Kuzmich
b07690fccf
Phaser: Implement dumper and verifier as general actions
2019-05-14 16:23:43 +03:00
Svyatoslav Kuzmich
91d16ee947
[CLI] Extract :compiler:cli-js from :compiler:cli
2019-05-14 15:49:50 +03:00