Ilya Chernikov
f324a81de7
Implement (failing) test for FIR IC - as in KT-49750
2021-11-19 08:36:15 +01:00
Alexander Udalov
59c5dddc88
Remove unused PrecomputedSuppressCache
2021-11-18 23:17:34 +01:00
Roman Artemev
a0d67cb2e3
[JS IR] Support throwing linkage error in JS IR BE
...
- lower it into runtime API call
2021-11-19 01:16:37 +03:00
Roman Artemev
7f27ebc589
[JS IR] Add API to js runtime to throw linkage errors
2021-11-19 01:16:35 +03:00
Roman Artemev
53a65f818f
[KLIB] Support partially linked klibs in Ir linker
...
Now it's possible to compile against klib even if in there are
references to declarations from other klibs which are no longer existed
- add switch flag to turn on/off that mode
- pass switch flag from JS CLI to JS Linker
2021-11-19 01:16:35 +03:00
Roman Artemev
650b04b4dd
[JS IR] Make assert checks no unbound symbols left conditional
2021-11-19 01:16:34 +03:00
Roman Artemev
e4585730d6
[IR] Add platform-agnostic builtin to throw linkage error
2021-11-19 01:16:33 +03:00
Roman Artemev
7d8f71d107
[JS IR] Add CLI flag and configuration key about partial linkage
...
- make possible to turn on/off linkage if klib contains unbound symbols
- update jsExtraHelp test data
2021-11-19 01:16:32 +03:00
Roman Artemev
8381badcc4
[KLIB] Make IrModuleDeserializer constructor nullable
2021-11-19 01:16:30 +03:00
Roman Artemev
918ed1f077
[KLIB] Refactored IrSymbolDeserializer.kt
...
- extract function which creates a new symbols in linker
2021-11-19 01:16:29 +03:00
Roman Artemev
df9d039c03
[KLIB] Don't use module descriptor to compute library in error reporter
2021-11-19 01:16:28 +03:00
Anton Bannykh
de0b3e5b20
[JS IR] temporary skip some IC checks
2021-11-19 00:39:40 +03:00
Anton Bannykh
75368a2c06
[JS IR] tie together IC code in tests and K2JsIrCompiler
2021-11-19 00:39:37 +03:00
Anton Bannykh
ff02ea5840
[JS IR] advance stage in regular mode when needed
2021-11-19 00:39:32 +03:00
Anton Bannykh
7d7dd3fe97
[JS IR] better tags + bare parameter names
2021-11-19 00:39:29 +03:00
Anton Bannykh
f9e62f8ffa
[JS IR] expose currentStage via the stageController
...
Otherwise the signatures for the declarations, created in lowerings,
will be miscalculated.
2021-11-19 00:39:24 +03:00
Anton Bannykh
f413d7fd75
[JS IR] make using the original parameter names possible
2021-11-19 00:39:18 +03:00
Anton Bannykh
e342ade00a
[JS IR] fix inline graph tracker for file-local signatures
2021-11-19 00:39:15 +03:00
Anton Bannykh
56e1c4e38f
[JS IR] IrFactory which saves signatures for declarations created in BE
2021-11-19 00:39:12 +03:00
Anton Bannykh
4e0d91d463
[JS IR] don't pack tests for kolin.test library into the klib.
2021-11-19 00:39:09 +03:00
Anton Bannykh
ee6d3ea281
[JS IR] mark coroutine intrinsics as inline
...
They are de-facto inlined, but their bodies don't get
loaded when using the "no bodies except for inline functions"
deserializtion mode.
2021-11-19 00:39:06 +03:00
Anton Bannykh
e972ad9855
[JS IR] improved missing body reporting for inliner
2021-11-19 00:39:03 +03:00
Anton Bannykh
bb601042df
[JS IR] unmute most RECOMPILE IR tests
2021-11-19 00:38:58 +03:00
Anton Bannykh
58bd4ffd71
[JS IR] disable some AST checks for now
2021-11-19 00:38:55 +03:00
Anton Bannykh
953089a4b9
[JS IR] suport SuspendN.invoke functions
2021-11-19 00:38:51 +03:00
Anton Bannykh
b684c2f8d7
Revert "JS IR gradle plugin: don't run IC for the main module"
...
This reverts commit 525c5b886f .
2021-11-19 00:38:48 +03:00
Anton Bannykh
1ae042edc3
[JS IR] make old Ir2Js pass all tests
2021-11-19 00:38:46 +03:00
Anton Bannykh
d565cc4262
[JS IR] support new Ir2Js in tests and in K2JsTranslator
2021-11-19 00:38:42 +03:00
Anton Bannykh
3c859138d1
[JS IR] support source maps in new Ir2Js
2021-11-19 00:38:33 +03:00
Anton Bannykh
a7d8c34927
[JS IR] support generateScriptModule
2021-11-19 00:38:30 +03:00
Anton Bannykh
0506d422a3
[JS IR] support per-module in the new Ir2JS
2021-11-19 00:38:27 +03:00
Anton Bannykh
1f55dc73d2
[JS IR] don't inline property accessors across files
2021-11-19 00:38:24 +03:00
Anton Bannykh
bdf31b8e52
[JS IR] unmute enumUsage IC test
2021-11-19 00:38:21 +03:00
Anton Bannykh
03b9caa439
[JS IR] export external declarations
2021-11-19 00:38:15 +03:00
Anton Bannykh
ee8351b9c9
[JS IR] remove unused property
2021-11-19 00:38:11 +03:00
Anton Bannykh
0b0ed5241c
[JS IR] remove unused method
2021-11-19 00:38:09 +03:00
Anton Bannykh
3617c1388c
[JS IR] improve the hacky fix
2021-11-19 00:38:06 +03:00
Anton Bannykh
46a23c70df
[JS IR] hacky fix for local variables name binding
2021-11-19 00:38:03 +03:00
Anton Bannykh
e4c668462c
[JS IR] fix field namer
2021-11-19 00:38:00 +03:00
Anton Bannykh
5100cb058f
[JS IR] local var clashes
2021-11-19 00:37:55 +03:00
Anton Bannykh
05e8bfcd2a
[JS IR] split fqn-ish JsNames before resolving temporary names
2021-11-19 00:37:45 +03:00
Anton Bannykh
a5d9cb0cc6
[JS IR] copy class models
2021-11-19 00:37:40 +03:00
Dmitriy Dolovov
445156f2fc
[Native][tests] Minor. Rename PackageName to PackageFQN
2021-11-18 22:37:38 +03:00
Dmitriy Dolovov
502fb96ccc
[Native][tests] Multi-file testData file sample with the same test methods in different packages
2021-11-18 22:37:30 +03:00
Jinseong Jeon
205866a516
FIR IDE: add API to get KtType from KtTypeParameter
2021-11-18 17:33:17 +01:00
Jinseong Jeon
d91170ed2c
FIR IDE: add more tests about resolving reference to type parameters
2021-11-18 17:33:17 +01:00
Zac Sweers
7f5eb3f5ff
Fix incorrect kapt classpath error message.
...
The correct value is `kapt.include.compile.classpath`
^KT-47002 Fixed
2021-11-18 16:43:45 +01:00
Ivan Gavrilovic
684273783f
Kotlin Gradle Plugin - clean caches for in-process compilation
...
This is to prevent file handle leaks on Windows. This
commit disposes KotlinCoreEnvironment used during
in-process compilation.
^KT-49772 Fixed
2021-11-18 16:20:10 +01:00
Margarita Bobova
7f3b546288
Add changelog for 1.6.0
2021-11-18 17:39:02 +03:00
Alexander Udalov
1b5e3f5d51
Deserialize repeated annotations inside implicit container
...
#KT-49651 Fixed
2021-11-18 15:33:34 +01:00