Commit Graph

95925 Commits

Author SHA1 Message Date
Xin Wang 7b3ce35613 JVM_IR: Prevent writing output after an error is reported
#KT-53825 Fixed
2022-11-09 23:14:11 +01:00
Pavel Mikhailovskii 252e97663b KT-54784 Fix function inlining in init sections 2022-11-09 17:15:37 +00:00
Sergey.Shanshin af4308e634 Fixed replacing serializer origin for generated classes
Do not use plugin origin for user-written classes that have @Serializer annotation for some reason. Plugin origin makes them synthetic which is incorrect because they're available in source code. Example of such class: @Serializer(JsonElement::class) class JsonElementSerializer

Merge-request: KT-MR-7627
Merged-by: Sergey Shanshin <Sergey.Shanshin@jetbrains.com>
2022-11-09 17:11:40 +00:00
Vyacheslav Karpukhin a69ac69de1 KMM: fix multiplatform libraries import for Android (when running without an Android IDE plugin) 2022-11-09 16:01:02 +00:00
Vladimir Sukharev 574d78efce [K/N] Remove remains of jcenter from kotlin-native/
Revert two special entries

Use proper mavenCentral()

Remove remains of jcenter from kotlin-native/

Merge-request: KT-MR-7610
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-11-09 13:23:09 +00:00
Zalim Bashorov d4e0d07b5b [Wasm] Update Binaryen version in gradle plugin: 109 -> 110 2022-11-09 13:44:39 +01:00
Zalim Bashorov d29010807a [Wasm] Apply recent changes in TFR proposal and update v8
Type index immediate was added to call_ref and return_call_ref instructions.
More details here https://github.com/WebAssembly/function-references/pull/76
2022-11-09 13:44:38 +01:00
Zalim Bashorov 9ed94b25fa [Wasm] Cleanup instructions list
* Split by proposal, at least for work-in-progress ones
* Add a link to the repo for WIP proposals
* Move some instructions to right group
2022-11-09 13:44:38 +01:00
Zalim Bashorov ff2d3d0bdb [Wasm] Remove unnecessary --experimental-wasm-eh option while running d8 and nodejs
The support for Exception Handling proposal is turned on by default everywhere.
2022-11-09 13:44:38 +01:00
Sergej Jaskiewicz 7b7c517dbb [JS IR] Emit original names for local vars to sourcemaps
#KT-35655 Fixed
2022-11-09 12:35:44 +00:00
Sergej Jaskiewicz 8efa72ca36 [JS] Make sourcemaps more precise wrt JS syntax
- Generate mappings for function parameters
- Don't generate debug info for dots in qualified references
- A location of a JsNameRef is considered the start of the rightmost
  name
2022-11-09 12:35:44 +00:00
Margarita Bobova 4515130bfc Add ChangeLog for 1.7.21 2022-11-09 12:34:14 +01:00
Jinseong Jeon b2e239a542 AA: tests about equals on sealed/data class
^KT-54844 In Progress
2022-11-09 07:12:36 +01:00
Nikolay Krasko a4cd485f48 Remove native-platform 0.14 usage from the buildSrc
It looks like net.rubygrapefruit:native-platform:0.14 is not in
plugins.gradle.org repository anymore.

And it's not used anyway.

> Task :buildSrc:generateExternalPluginSpecBuilders FAILED

'''
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildSrc:generateExternalPluginSpecBuilders'.
> Could not resolve all files for configuration ':buildSrc:compileClasspath'.
   > Could not find native-platform-0.14.jar (net.rubygrapefruit:native-platform:0.14).
     Searched in the following locations:
         https://cache-redirector.jetbrains.com/plugins.gradle.org/net/rubygrapefruit/native-platform/0.14/native-platform-0.14.jar
'''

Can be reproduced with

```gradle --refresh-dependencies -i tasks -Pkotlin.native.enabled=true```

KTI-986
2022-11-08 21:31:43 +01:00
Simon Ogorodnik 4f6ebdc97f Tests. Fix JavaSourceInnerClassInClassPathTest writing to project root 2022-11-08 17:33:05 +00:00
Simon Ogorodnik 087555ee59 KTI-955. Add tests for CODEOWNERS file
- Check list of possible owners
- Check no unknown owners
- Check no unowned files in repo
- Check no unmatched patterns
2022-11-08 17:33:05 +00:00
Simon Ogorodnik eea06eb242 KTI-955. Add initial Space CODEOWNERS file 2022-11-08 17:33:04 +00:00
Alexander Korepanov d5a73a5df1 [JS IR] Return JsIrProgramFragment generators instead of ready objects
It allows to free IrFile objects on flight
right after the JsIrProgramFragment producing.
2022-11-08 15:18:45 +00:00
Alexander Korepanov 4aaae5347a [JS IR] Allow IC metadata to be freed before the lowering 2022-11-08 15:18:45 +00:00
Alexander Korepanov 5b70d39bd0 [JS IR] Move id signature functions into a separate file 2022-11-08 15:18:44 +00:00
Alexander Korepanov c0a1fa6f98 [JS IR] Move the JS AST serialization right before the IC data committing
It allows not to keep the binary representation in memory
2022-11-08 15:18:44 +00:00
Alexander Korepanov eb781168b8 [JS IR] Move an IC IR loading process into a separate function 2022-11-08 15:18:44 +00:00
Alexander Korepanov 95e305be3a [JS IR] Simple memory optimizations
- Use hash maps and hash sets instead of linked implementations
 - Use weak hash maps for caches with IR elements as keys
 - Intern JS function signatures
2022-11-08 15:18:43 +00:00
Alexander Korepanov 731dd9c3e8 [JS IR] More detailed time measurement for the IC infrastructure 2022-11-08 15:18:43 +00:00
Zalim Bashorov 21c4580e20 [JS, Wasm] Update Nodejs to the current LTS (18.12.1) and add useful links 2022-11-08 14:31:43 +00:00
Anna Kozlova 79bed083e6 [FIR] allow primary constructors in interfaces to support invalid code
KTIJ-23504
2022-11-08 14:51:33 +01:00
Dmitriy Novozhilov ce94816d9e Advance bootstrap to 1.8.20-dev-2036 2022-11-08 15:10:57 +02:00
Yahor Berdnikau ddc72db0de Configure compilation -jvm-target also from Java toolchain spec
Correctly wire JVM toolchain spec such way that `-jvm-target` will also
be configured from toolchain spec set either via java extension or
kotlin extension.

^KT-50115 Fixed
2022-11-08 09:20:01 +00:00
Alexander Korepanov 92638573ce [JS IR] Add messages about unused cli arguments 2022-11-07 17:57:42 +00:00
Alexander Korepanov cb7df4d428 [JS IR] IrModuleToJsTransformerTmp.kt -> IrModuleToJsTransformer.kt 2022-11-07 17:57:41 +00:00
Alexander Korepanov 041e755c70 [JS IR] Cleanup BackendContext flags 2022-11-07 17:57:41 +00:00
Alexander Korepanov 4d37c1d49c [JS IR] Drop generateScriptModule flag from Merger class 2022-11-07 17:57:41 +00:00
Alexander Korepanov f1bce9fad4 [JS IR] Drop StableNamesCollector.kt 2022-11-07 17:57:40 +00:00
Alexander Korepanov 99e93258cd [JS IR] Drop NameTables class 2022-11-07 17:57:40 +00:00
Alexander Korepanov 43fbb0ba3e [JS IR] Drop IrNamerImpl.kt 2022-11-07 17:57:39 +00:00
Alexander Korepanov 7b8bd47b1a [JS IR] Drop MultiModuleSupport.kt 2022-11-07 17:57:39 +00:00
Alexander Korepanov 05395f716c [JS IR] Drop old IrModuleToJsTransformer 2022-11-07 17:57:39 +00:00
Alexander Korepanov d17794481d [JS IR] Replace IrModuleToJsTransformer with IrModuleToJsTransformerTmp 2022-11-07 17:57:38 +00:00
Vladimir Dolzhenko 2ec07b861b Add languageSetting provider
Access to facets could be heavy

#KTIJ-23501
2022-11-07 17:20:21 +00:00
Alexander Udalov d7a58a7c6c Keep track of array types in OptimizationBasicInterpreter
Merging array types with different element types, for example
`[Lj/l/String;` and `[Lj/l/Object;`, now produces `[Lj/l/Object;`
(instead of `Lj/l/Object;`), which allows for more precise tracking of
null values because we assume that AALOAD on a non-array typed value is
possible only if that value is null.

 #KT-54802 Fixed
2022-11-07 17:22:38 +01:00
Bogdan Mukvich a79927742c Fix code conformance tests after move
#KTI-962
2022-11-07 15:01:31 +00:00
Bogdan Mukvich 080b034950 Move code conformance tests from compiler tests
#KTI-962
2022-11-07 15:01:31 +00:00
Sebastian Sellmair dec0946896 [Gradle][Minor] Opt into InternalKotlinGradlePluginAPI (workaround KT-54823)
^KT-54766 Verification Pending
2022-11-07 13:39:53 +00:00
Sebastian Sellmair 2391ab0ded [Gradle][Minor] CompilationAssociator: Rename parameters to auxiliary and main
^KT-54766 Verification Pending
2022-11-07 13:39:52 +00:00
Sebastian Sellmair 25fe9589b4 [Gradle] Make ExternalKotlinTargetImpl internal
^KT-54766 Verification Pending
2022-11-07 13:39:52 +00:00
Sebastian Sellmair f34875b161 [Gradle] ExternalAndroidTargetPrototypeSmokeTest: Assume assumeAndroidSdkAvailable
^KT-54766 Verification Pending
2022-11-07 13:39:52 +00:00
Sebastian Sellmair 898174a2a0 [Gradle] Add ExternalKotlinTargetApi annotation to API snapshot 2022-11-07 13:39:51 +00:00
Sebastian Sellmair 966ed6b7fb [Gradle] Extract setupCompileTask into separate function
^KT-54766 Verification Pending
2022-11-07 13:39:51 +00:00
Sebastian Sellmair 9599c16d95 [Gradle] Initial 'externalTargetApi' w/ compilable Android prototype
^KT-54766 Verification Pending
2022-11-07 13:39:50 +00:00
Sebastian Sellmair 33adebe5bf [Gradle][MPP] Add k.g.p-tcs-android module for prototyping
KT-54766
2022-11-07 13:39:50 +00:00