Svyatoslav Kuzmich
9bc6b420a9
[Wasm][Stdlib] Add public APIs for linear memory access
...
Needed for interop with APIs that use linear memory.
2022-12-29 19:25:23 +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
Igor Yakovlev
fc80104d55
[Wasm] Fix external functions import clashing
2022-12-29 11:57:47 +00:00
Igor Yakovlev
4e24a9caa5
[Wasm] Cache down-casted dispatcher receiver in virtual functions
2022-12-29 11:57:46 +00:00
Igor Yakovlev
3be3ae4895
[Wasm] Fix invalid boxing for non-primitive typed vararg
2022-12-29 11:57:46 +00:00
Igor Yakovlev
dc2dcfffee
[Wasm] Enable passing test
2022-12-29 11:57:45 +00:00
Igor Yakovlev
1b2b7ce34c
[Wasm] Support Number type for external functions
2022-12-29 11:57:45 +00:00
Igor Yakovlev
4dedd47172
[Wasm] Fix JsName external declarations
2022-12-29 11:57:45 +00:00
Pavel Mikhailovskii
0b38ab4f01
KT-51277 Fix matching of context receivers and parameter desriptors
2022-12-29 11:28:11 +00:00
Denis.Zharkov
d3549c2c5b
Optimize CoreJrtFileSystem
...
Do not recompute children on each file request
At the same time, we should clear the roots after each compilation
just the same way as we do for common jars
2022-12-29 09:59:16 +00:00
Denis.Zharkov
24bd7e5eef
K2: Optimize use-site member and intersection scopes
...
Avoid creating cache keys for names that are definitely absent
2022-12-28 18:22:47 +00:00
Denis.Zharkov
db3b7c4021
K2: Optimize ConeInferenceContext::containsInternal
...
We don't call it recursively on recursive types,
thus 'visited' set looks irrelevant.
2022-12-28 17:39:28 +00:00
Svyatoslav Kuzmich
9d099348ba
[Wasm] Disable interop adapters for WasmImport
...
Merge-request: KT-MR-8152
2022-12-28 17:33:51 +00:00
Alexander Udalov
d2b66e5004
IR: remove IrCallMatcher/IrFunctionMatcher and usages
...
There doesn't seem to be much value over a simple imperative code which
checks exactly the same things in the same order. The main downside of
the removed API is that it was more difficult to debug.
2022-12-28 14:06:57 +01:00
Alexander Udalov
18950b448c
IR: simplify for-loop lowering internals a bit
...
Remove ExpressionHandler, HeaderInfoFromCallHandler, ProgressionHandler.
2022-12-28 14:06:57 +01:00
Pavel Mikhailovskii
906c161068
KT-52791 Make it possible to pass multiple context receivers to a class
2022-12-28 11:21:03 +00:00
Svyatoslav Kuzmich
62217b39ec
[Wasm] Rename WasmImportPair -> WasmImportDescriptor
2022-12-28 12:14:16 +01:00
Svyatoslav Kuzmich
dd53998c2d
[Wasm] Add uninstantiated MJS wrapper
...
It allows
* Custom imports
* Ability to skip initializer
2022-12-28 12:13:52 +01:00
Svyatoslav Kuzmich
3bbd8c291a
[Wasm] Add @WasmImport annotation
...
Imports top-level function from given module
2022-12-28 12:13:18 +01:00
Pavel Mikhailovskii
3704d54101
KT-52459 Handle context receivers when generating a bridge
2022-12-27 16:19:59 +00:00
Roman Efremov
25f65aff3a
Replace getEntries with hardcoded PsiMethod in LC decompiled declaration
...
This adds NotNull annotation.
^KTIJ-23530 Fixed
2022-12-27 14:41:53 +00:00
Roman Efremov
cbb20ce2b8
Don't generate getEntries method in light classes when feature disabled
...
^KTIJ-23530 Fixed
2022-12-27 14:41:53 +00:00
Roman Efremov
e5d5cbc7a3
Generate Enum.getEntries method in ultra light classes
...
^KTIJ-23530 Fixed
2022-12-27 14:41:52 +00:00
Ilya Kirillov
396ac6f5e3
[FIR] make FirCorrespondingSupertypesCache to be thread safe
...
^KT-50244
2022-12-27 13:27:24 +00:00
Ilya Kirillov
4d7e9b2d5a
[FIR] add possibility to specify initialCapacity and loadFactor in FirCachesFactory.createCache
2022-12-27 13:27:23 +00:00
Pavel Mikhailovskii
076bedd065
KT-51397 Add a test (has been fixed elsewhere)
2022-12-27 12:50:43 +00:00
Pavel Mikhailovskii
9ca5e1b421
KT-54357 Fix passing of context receivers to object literal constructors
2022-12-27 11:52:36 +00:00
Kevin Bourrillion
70cd547c26
Fix two other tests to treat both old and new JSpecify packages the same
2022-12-27 11:11:00 +00:00
Kevin Bourrillion
2694bdeb92
Change to use new JSpecify package location.
2022-12-27 11:10:59 +00:00
Kevin Bourrillion
671480ce1a
Duplicate this entire test suite to jspecifyOld before changing the package locations in jspecify.
2022-12-27 11:10:59 +00:00
Kevin Bourrillion
b69b7ab22d
Make the jspecify test accept either (old & new) annotations.
2022-12-27 11:10:58 +00:00
Andrey Uskov
2be68065af
Report lines number and LpS in build reports
...
#KT-55540 Fixed
2022-12-26 17:18:44 +03:00
Andrey Uskov
f07f193938
Make line number field public in PerformanceMeasurement
...
Required for KT-55537
2022-12-26 17:16:02 +03:00
Yan Zhulanow
d652dc620c
[FE] Preserve legacy contract description calls in bodies
...
^KT-55231 Fixed
^KTIJ-21012 Fixed
2022-12-26 11:46:58 +00:00
Yan Zhulanow
f067f64255
[FE] Extract common logic in consistency visitor and transformer
2022-12-26 11:46:58 +00:00
Ilya Gorbunov
e2d96da396
Introduce experimental kotlin.concurrent.Volatile annotation KT-55268, KT-55609
...
Use this annotation in tests to ensure it works the same at least on JVM
2022-12-23 19:07:30 +01:00
Ilmir Usmanov
58d6d7b9ad
Minor. Regenerate tests
2022-12-23 01:15:18 +00:00
xiaozihan.larryxiao
64d40aa285
KT-55398 Add test case
...
Add KT-55398 test case into boxInline/reified
2022-12-23 01:15:18 +00:00
xiaozihan.larryxiao
22a9b84966
KT-55398 Fix nested inline variable not correctly
...
^KT-55398 Fixed
Add nested variable's ReifiedTypeParametersUsages into closureReifiedMarkers for MethodInliner to generate nested inline anonymous class
2022-12-23 01:15:18 +00:00
Xin Wang
7278f9a4fd
JVM Inline: Update tryCatchBlocks when expand mask conditions
...
Fixes: KT-48989
2022-12-22 12:50:41 +00:00
Evgeniy.Zhelenskiy
25db5bf6e1
[IR] Enable -Xvalue-classes flag
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-12-22 12:24:16 +00:00
Anna Kozlova
15b1e429d7
[compiler] introduce dedicated Fir declaration for dangling modifier lists (KTIJ-23008)
...
ensure fir annotations are included in FirDanglingModifierList and resolved,
dedicated DanglingTopLevelModifierListStructureElement exists for top
level lists only, class level lists are processed by containing structure
element
2022-12-21 20:58:46 +00:00
Svyatoslav Kuzmich
d788adcbb5
[Wasm] Move non-recursive function types out of rec group
...
This fixes linking with other wasm modules with non-rec types
2022-12-21 20:20:13 +00:00
Dmitrii Gridin
88f1f74aec
[ULC] fix descriptor leak from synthetic members
...
^KT-55604 Fixed
2022-12-21 19:08:56 +00:00
Dmitriy Novozhilov
1b16d651ae
[FIR] Disambiguate names of files with helpers in spec tests
...
Test framework assumes that there won't be any files with same names
in one test. But there were cases when test declared test file
with same name as one of files with helpers (e.g. `functions.kt`)
2022-12-21 16:30:58 +00:00
Dmitriy Novozhilov
54a004ef1a
[FIR] Fix behavior of FirCompilerLazyDeclarationResolverWithPhaseChecking in tests
...
1. There was an incorrect filtration of failures if FIR_DISABLE_LAZY_RESOLVE_CHECKS
directive was present
2. `FirDumpHandler` potentially can call lazy resolution in presence of
compiler plugins, so we should call `startResolvingPhase`/`finishResolvingPhase`
in it before traversing the tree
2022-12-21 16:30:58 +00:00
Pavel Mikhailovskii
06d3e1d8bd
KT-55005 Do not generate CHECKCAST before AASTORE
2022-12-21 15:06:07 +00:00
Ilya Chernikov
baf90178ad
K2 Scripting: fix resolution for scripts:
...
script should not be resolved on annotations args mapping resolve
2022-12-21 14:34:21 +00:00
Ilya Chernikov
00a28f9f49
K2 Scripting: compiler extension for script configuration
2022-12-21 14:34:20 +00:00