Nikolay Lunyak
da8a8a8988
[FIR JS] Add a Fir2IrJsText runner
2022-06-02 13:47:30 +00:00
Nikolay Lunyak
bdc3b5fe6f
[FIR JS] Mute 170 failing multi-module tests
2022-06-02 13:47:24 +00:00
Nikolay Lunyak
ccc72e5125
[FIR JS] Add a FirJsTest runner
...
Note: 763/1627 failed tests
- 170 are multi-module tests which can be ignored for now
2022-06-02 13:47:24 +00:00
Sergej Jaskiewicz
e03747ea7d
[JS IR] Introduce the GENERATE_INLINE_ANONYMOUS_FUNCTIONS feature flag
2022-06-01 09:02:31 +00:00
Artem Kobzar
8bc5508f5c
fix(KT-52339): add newlines to SourceMap to calculate multiline comments in a right way.
2022-05-20 13:35:54 +00:00
Svyatoslav Kuzmich
84ed3ff5b0
[Wasm] Don't generate wat format by default in box tests
...
Gives ~15% tests speedup
Use kotlin.wasm.debugMode=1 to enable old behaviour
2022-05-20 13:34:28 +00:00
Svyatoslav Kuzmich
d1c81eb6ba
[Wasm] Support Wasm GC milestone 5
2022-05-20 12:22:43 +03:00
Ivan Kylchik
f3252334b2
Move most of ir utils from backend.common to ir.tree
2022-05-18 21:20:03 +03:00
Svyatoslav Kuzmich
813b600555
[Wasm] Don't write .wat files in box tests
...
These files take space on CI, but they are not validated or processed
automatically in any way.
Disabled by default, enabled via kotlin.wasm.debugMode=1
2022-05-13 11:20:13 +00:00
Zalim Bashorov
f8ef028da3
[Wasm] Remove no longer existed dirs from exclude list
2022-05-05 21:03:40 +00:00
Zalim Bashorov
e594cad02a
[Wasm] Add tests from "boxInline"
2022-05-05 21:03:38 +00:00
Zalim Bashorov
db4888b3d4
[Wasm] Stop excluding a bunch of tests
2022-05-05 21:03:34 +00:00
Igor Laevsky
3de1235fda
[WASM] Add command line option to enable/disable assertions
2022-04-26 20:41:52 +00:00
Artem Kobzar
7d7490eaa7
chore: fixe rest of comments tests.
2022-04-11 14:25:49 +00:00
Artem Kobzar
f5e7b9886c
fix: directive and line test.
2022-04-11 14:25:48 +00:00
Artem Kobzar
e68ee4053e
fix: add semicolon to pattern for parsing directive arguments.
2022-04-11 14:25:48 +00:00
Artem Kobzar
4e8082ad3a
fix: arguments pattern for assertion directives.
2022-04-11 14:25:48 +00:00
Artem Kobzar
45e3c94a8b
feat: add limited support of comments inside js call.
2022-04-11 14:25:46 +00:00
Artem Kobzar
7ef14fc11b
chore: use CompositeBlock instead of GlobalBlock.
2022-04-11 10:37:14 +00:00
Igor Laevsky
81eae94821
[Wasm] Disable range checks for arrays. Add cli argument to enable them back.
2022-04-05 18:00:32 +00:00
Alexander Korepanov
9952d43252
[JS IR] IC improvements
...
- Reuse a built fragment
- Use cache for saving built JS code
2022-04-04 17:42:04 +00:00
Sergej Jaskiewicz
f7933dc9f4
[JS IR] Verify that we don't generate Unit_getInstance() statements
...
See: KT-51127
2022-03-31 09:46:51 +00:00
Hung Nguyen
f23e66a6e2
KT-45777: Replace EmptyICReporter with DoNothingICReporter
...
to be more consistent (every *Reporter has a DoNothing*Reporter).
^KT-45777 In Progress
2022-03-29 11:36:41 +00:00
Sergej Jaskiewicz
e0dcb0975a
[JS IR] Enable line number tests for JS IR
2022-03-28 21:47:43 +00:00
Sergej Jaskiewicz
dc9652e9ce
[JS] Migrate the line number tests to the new testing infrastructure
2022-03-28 21:47:42 +00:00
Ilya Goncharov
c67c1a69b9
rra/ilgonmic/reducing-size
...
[JS IR] Fix review remarks
- Fix translation mode from flags calculation
- comment why not top level could be safely inlined
[JS IR] Add test on exportness of internal val
Revert "[Gradle, JS] Disable minimizing names in production by default"
This reverts commit 700ff8634a73f155a2f0eaf963778216d6877075.
[JS IR] Adopt reserved names
Revert "[JS IR] Reserve interop names"
This reverts commit 63f30becaf1a45750ff85aea3753aae9a85985f4.
Revert "[JS IR] Clear minimized namer states"
This reverts commit ef7f19fa8a928021e8bdfbee7fbb5285fc74b7ab.
[JS IR] Clear minimized namer states
[JS IR] Reserve interop names
[JS IR] Separate arguments for users
[JS IR] Minimized member names in tests
[Gradle, JS] Disable minimizing names in production by default
[JS IR] Fix extra helps
[JS IR] Move mangling of signatures to linking namer
[JS IR] Add key and minimized name generator
[JS IR] cross module dependencies minimized
[JS IR] Minimize names
[JS IR] Cross module by index
[JS IR] Fix warning
[JS IR] Fix inlining accessors
[JS IR] Bridges for property accessors
[JS IR] Special case of jsFunctionSignature with property accessors
[JS IR] Inline property accessor for non top level properties
[JS IR] Reduce crossModule size
Merge-request: KT-MR-5785
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com >
^KT-51735 fixed
^KT-50504 fixed
2022-03-28 10:39:15 +00:00
Alexander Korepanov
69295f2cf0
[JS IR] IC invalidation refactoring
...
- Huge refactoring for IC
- Update hash combination logic
- Introduce value class for IC hashes
- Calc md5 directly by function IR
- Split IC logic by classes
- Move JsIrLinkerLoader into separate file
- CacheUpdateStatus is a sealed class
- Render TYPE_PARAMETER reified flag
^KT-51081 Fixed
^KT-51084 Fixed
2022-03-15 05:34:19 +00:00
Alexander Korepanov
43a0876c26
[JS IR] IC invalidation performance improvements
...
- Cache signature readers and deserializers
- Cache inline function hashes
- IC refactoring
- [gradle] Use hash of module path for cache dir; Fix KT-51238
^KT-51238 Fixed
2022-02-16 13:41:53 +00:00
Artem Kobzar
804eb61bf0
feat: add polyfills insertion for ES Next used features
2022-02-16 10:49:11 +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
Ilya Goncharov
77b367fe96
rra/ilgonmic/ic-to-compiler
...
[JS IR] Fix compilation in tests
[JS IR] Fix test after migrating IC to compiler
[JS IR] Fix memory leak
[JS IR] Move js ic to compiler
Merge-request: KT-MR-5673
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com >
2022-02-07 11:40:16 +00:00
Igor Yakovlev
392ab75bee
[WASM] BasicWasmBoxTest refactoring
2022-02-03 21:25:59 +01:00
Igor Yakovlev
eb8c3aa54e
[WASM] Remove WasmImport annotation
2022-02-03 21:25:59 +01:00
Igor Yakovlev
0acb1c0c05
[WASM] Implemented Wasm unhandled exceptions on JS site
2022-02-03 21:25:57 +01:00
Ilya Goncharov
a2167200d6
[JS IR] IR module to name
...
Merge-request: KT-MR-5672
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com >
2022-02-03 17:28:46 +00:00
Igor Laevsky
4e84e14d34
[Wasm] Don't squish modules together
2022-02-03 18:19:30 +03:00
Igor Yakovlev
1446914ba9
[WASM] Run box tests with dce and non-dce modes
2022-02-02 16:44:47 +03:00
Ilya Goncharov
32cda8a37e
[JS IR] Fix cache format, module name one the second line
2022-01-31 12:00:12 +00:00
Sergej Jaskiewicz
400a5a0f34
[JS] Add CHECK_TERNARY_OPERATOR_COUNT and CHECK_BINOP_COUNT directives
2022-01-28 10:03:52 +00:00
Mikhail Glukhikh
5798320e9e
Drop usages of CompilerArguments::useExperimental
2022-01-27 11:48:21 +00:00
Igor Yakovlev
2ec0411a7f
[WASM] DCE implementation
2022-01-26 23:40:41 +03:00
Dmitriy Dolovov
9096725d1d
[IR, JS] KLIB ABI tests: separate testing logic so that it can be reused in non-JS tests
...
^KT-50775
2022-01-26 13:36:25 +03:00
Dmitriy Novozhilov
dd953908df
[FE 1.0] Add compiler flag for rendering internal diagnostic names in error messages
2022-01-23 11:14:56 +03:00
Alexander Korepanov
59173baf5a
[JS IR] Pass forward -Xir-property-lazy-initialization option
...
Pass forward -Xir-property-lazy-initialization option
for the incremental cache.
^KT-50175 Fixed
2022-01-19 13:28:47 +00:00
Andrey Uskov
2adc851f1b
Don't use global state for keeping incremental compilation state
...
Previously IC state was stored in System properties. As result parallel
compilation might cause incorrect state of IC, what led to corruption
of kotlin_module files. Now IC state is stored via CompilerArguments
and CompilerConfiguration
#KT-46038 Fixed
2022-01-12 13:37:46 +03:00
Igor Yakovlev
82455c849d
[WASM] Lazy properties initialization
2022-01-05 13:12:32 +01:00
Sergej Jaskiewicz
71732afae0
[JS IR] Copy JS artifacts to the build directory if the compiler crashes
...
Previously in 3fb1096c18 we've implemented
dumping the IR after each phase when running JS IR box tests.
However, because those dumps are saved to a temporary directory,
they can be lost in case we never make it to
`jsArtifactsHandlersStep` where files from that temporary
directory were copied to the `build/out` directory.
This could happen if, for example, the compiler crashed.
In that case, having IR dumps is even more useful, as they can help
investigate the crash.
Here we make `JsArtifactsDumpHandler` an `AfterAnalysisChecker` so that
it runs no matter what.
2021-12-28 14:42:04 +00:00
Roman Artemev
4babc30624
[IR] Remove Persistent IR
2021-12-24 16:50:42 +03:00
Roman Artemev
353bfe9018
[JS IR] Cleanup pir IC code
2021-12-24 16:50:40 +03:00
Sergej Jaskiewicz
3fb1096c18
[JS IR] Support IR dump in JS tests
2021-12-22 17:55:33 +00:00