Marco Pennekamp
2cdcdce6ed
[LL FIR] KT-55327 Use body resolve return type calculator for locals
...
- LL FIR uses `ReturnTypeCalculatorWithJump` by default because it
cannot guarantee that the implicit types of non-local functions
referenced in a function `f` have been resolved during body resolve
of `f`.
- However, if `ReturnTypeCalculatorWithJump` encountered a local
function, it tried to resolve its return type even during body
resolve of that same local function. The fix delegates to
`ReturnTypeCalculatorForFullBodyResolve`, which should be used for
local declarations.
^KT-55327 fixed
^KT-55324 fixed
2023-01-02 14:03:42 +01:00
Alexander Udalov
28759a3ac3
Optimize rangeUntil operator in for-loops and contains
...
Newly added tests are basically copies of the existing tests on `until`.
Note that this operator is optimized for all backends, but the fact that
it's optimized is only checked for the JVM backend in bytecode text
tests.
#KT-53330 Fixed
2023-01-02 12:55:48 +00:00
Mikhail Glukhikh
bc5acb5e9d
Regenerate built-ins copyright comments (year 2023)
2023-01-02 13:44:21 +01:00
Mikhail Glukhikh
217f473bdc
K2: don't report PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED on externals
...
Related to KT-55656
2023-01-02 12:37:04 +00:00
Mikhail Glukhikh
e18315007c
K2: promote PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED to an error
...
#KT-55656 Fixed
2023-01-02 12:37:04 +00:00
Alexander Likhachev
09bce1e472
[Gradle] Add check for warnings in test for KT-54634
...
This check was disabled due to KT-52490
2023-01-02 12:33:11 +00:00
Alexander Likhachev
2530dd836a
[Gradle] Get rid of deprecated properties usage in KotlinTestReport
...
#KT-52490 Fixed
2023-01-02 12:33:11 +00:00
Alexander Likhachev
b5482b3812
[Gradle] Add Gradle 7.4 variant
...
#KT-52490 In Progress
2023-01-02 12:33:10 +00:00
Svyatoslav Kuzmich
4a7e3c7596
[JS][Gradle] Add an option to configure nodeJs arguments
...
Merge-request: KT-MR-8135
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2023-01-02 11:21:56 +00:00
Dmitriy Dolovov
4428971401
[LazyIR] Exclude INVISIBLE_FAKE callable members from class declarations
...
Fixes KT-55509
2023-01-02 07:38:53 +00:00
Nikolay Krasko
4c925d0588
Instructions for building 1.8.0
2022-12-30 11:13:40 +00:00
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
Anna Kozlova
47f32b715f
[AA] register KtDefaultAnnotationArgumentReference
2022-12-29 12:05:03 +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
35340f2f04
[Wasm] Fix stdlib String to Float parse
2022-12-29 11:57:47 +00:00
Igor Yakovlev
8b14f4b15c
[Wasm] Mocha test framework support
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
Igor Yakovlev
4bd187ccea
[Wasm] Move ItemArrayLike w3c declarations into the right package
2022-12-29 11:57:44 +00:00
Pavel Punegov
950082e7f4
[K/N][test] Improve XcodeSimulatorExecutor
...
Make it be able to recognise incorrect installation when
preferred runtimes are not set but present in the system.
2022-12-29 11:32:50 +00:00
Pavel Mikhailovskii
0b38ab4f01
KT-51277 Fix matching of context receivers and parameter desriptors
2022-12-29 11:28:11 +00:00
Svyatoslav Scherbina
399ea1092e
Remove kotlinc K/N scripts because they clash with real (K/JVM) kotlinc
...
These scripts were deprecated in 1.5.0.
2022-12-29 10:48:03 +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
Svyatoslav Kuzmich
add5fa6e0d
[Wasm] Minor: remove unused stdlib stub
...
Merge-request: KT-MR-8140
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2022-12-29 05:29:32 +00:00
Alexander Udalov
b4ffa56ea4
Deprecate legacy mode of jvm-abi-gen
...
#KT-54756 Fixed
2022-12-28 21:06:34 +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
pyos
34a49b3f56
jvm-abi-gen: only keep relevant InnerClasses from current module
...
If a class is not referenced by the ABI class file, its InnerClasses
entry should only be kept if it's the current class or a descendant
of the current class.
2022-12-28 14:42:33 +01:00
pyos
d6fdd6734e
jvm-abi-gen: sort inner classes
2022-12-28 14:42:33 +01:00
pyos
26a7ac6d92
jvm-abi-gen: keep InnerClass attributes for all referenced types
...
^KT-55233 Fixed
2022-12-28 14:42:33 +01:00
Alexander Udalov
93ec8dd63d
Native: remove unused IrCallMatcher/IrFunctionMatcher
2022-12-28 14:06:58 +01: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
Margarita Bobova
812e257d54
Add ChangeLog for 1.8.0
2022-12-28 13:23:41 +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
Svyatoslav Scherbina
1c5eed1687
Bump Kotlin/Native version to 1.8.20-dev-4812
2022-12-27 17:40:01 +00:00
Nikolay Krasko
17742b4c02
Stabilize order of entries in maven.zip
...
KTI-1077
2022-12-27 17:31:09 +00:00
aleksandrina-streltsova
fb9dead107
[Analysis API] consider applicable extensions that require receiver cast
...
^KTIJ-23715
2022-12-27 17:22:30 +00:00
Andrey Uskov
e5ad45d46b
Report Kover usage in FUS
...
#KT-54247 Fixed
2022-12-27 16:28:22 +00:00
Pavel Mikhailovskii
3704d54101
KT-52459 Handle context receivers when generating a bridge
2022-12-27 16:19:59 +00:00
Pavel Punegov
d735fa6567
[K/N][gradle] Remove download url property.
2022-12-27 16:10:36 +00:00