Sebastian Sellmair
1cebf24bed
[Gradle] GenerateGradleOptions: Remove fillDefaultValues
...
KTIJ-24976
2023-04-06 16:03:09 +00:00
Sebastian Sellmair
d6cc9e2476
[Gradle] KotlinCompile: Prevent iterating calling FileCollection.getFiles multiple times for sources
...
KTIJ-24976
2023-04-06 16:03:09 +00:00
Sebastian Sellmair
b8f8b9b344
[Gradle][Minor] Remove redundant args.moduleName = compilerOptions.moduleName.orNull
...
KTIJ-24976
2023-04-06 16:03:09 +00:00
Sebastian Sellmair
1844aab35d
[Gradle] KotlinCompile: Move allowNoSourceFiles = true to KotlinJvmCompilerOptionsHelper
...
KTIJ-24976
2023-04-06 16:03:08 +00:00
Sebastian Sellmair
e5fbb253c5
[Gradle][Minor] createCompilerArguments(default) -> createCompilerArguments()
...
KTIJ-24976
2023-04-06 16:03:08 +00:00
Sebastian Sellmair
d85d6fc0bb
[Gradle][Minor] IdeCompilerArgumentsResolver: Replace if with when
...
KTIJ-24976
2023-04-06 16:03:07 +00:00
Sebastian Sellmair
133f2260e0
[Gradle] KotlinCompilerArgumentsProducer: Replace contribute(Type) with semantic methods
...
KTIJ-24976
2023-04-06 16:03:07 +00:00
Sebastian Sellmair
8156717e31
[Gradle][Minor] KotlinCompilerArgumentsProducer: Use .default in createCompilerArguments
...
KTIJ-24976
2023-04-06 16:03:06 +00:00
Sebastian Sellmair
86c33ec97c
[Gradle] KotlinCompilerArgumentsProducer: Merge PluginClasspath & DependencyClasspath
...
KTIJ-24976
2023-04-06 16:03:06 +00:00
Sebastian Sellmair
1bbd135de8
[Gradle] Remove DefaultValues.prettyDefaultValue in favor of stripping OPTIONS_PACKAGE_PREFIX
...
KTIJ-24976
2023-04-06 16:03:05 +00:00
Sebastian Sellmair
f57d0393e5
[Gradle] Serialise compiler arguments using 'compactArgumentValues = false' for IDE
...
This makes it easier for the IDE to intern individual arguments later
KTIJ-24976
2023-04-06 16:03:05 +00:00
Sebastian Sellmair
b6ca62f330
[CLI][Minor] toArgumentStrings: Use List Builder (like) style
...
KTIJ-24976
2023-04-06 16:03:04 +00:00
Sebastian Sellmair
082a38216d
[CLI] argumentsToStrings: Add 'compactArgumentValues' option
...
Passing 'false' will pass Array or List based arguments multiple times
instead of using the Delimiter.
eg:
compactArgumentValues = true:
"-cp", "library1;library2;library3"
compactArgumentValues = false:
"-cp", "library1", "-cp", -"library2", "-cp", "library3"
Using compactArgumentValues = false can be beneficial
when the many compiler arguments are held in memory.
In this case the raw arguments can intern individual string values, which
is highly effective when the arguments refer to files on disk.
KTIJ-24976
2023-04-06 16:03:04 +00:00
Sebastian Sellmair
fb66764c4d
[CLI] K2JVMCompilerArguments: Model modulePath as Array<String>
...
to allow interning individual file-path arguments on the IDE
KTIJ-24976
2023-04-06 16:03:04 +00:00
Sebastian Sellmair
9dcd40d7b7
[CLI] K2JVMCompilerArguments: Model classpath as Array<String>
...
to allow interning individual file-path arguments on the IDE
KTIJ-24976
2023-04-06 16:03:03 +00:00
Sebastian Sellmair
7f91e94e7a
[CLI] Arguments: Implement raw vs resolved delimiters
...
KTIJ-24976
2023-04-06 16:03:03 +00:00
Sebastian Sellmair
d07b1b6502
[CLI] Implement CommonToolArguments.toStringList (to replace convertArgumentsToStringList`)
...
KTIJ-24976
2023-04-06 16:03:02 +00:00
Sebastian Sellmair
2b893365aa
[Gradle] Replace FakeK2NativeCompilerArguments with K2NativeCompilerArguments
...
KTIJ-24976
2023-04-06 16:03:02 +00:00
Sebastian Sellmair
c5e154a325
[Gradle] KotlinJvmCompilerOptions: Use JvmTarget.DEFAULT as default value for jvmTarget
...
KTIJ-24976
2023-04-06 16:03:01 +00:00
Sebastian Sellmair
eb0ff4fbcd
[Gradle] K2JVMCompilerArguments: Remove hardcoded jvmTarget argument default
...
KTIJ-24976
2023-04-06 16:03:01 +00:00
Sebastian Sellmair
2b086946ef
[Gradle] Fix NewMultiplatformIT.testLanguageSettingsApplied
...
KTIJ-24976
2023-04-06 16:03:01 +00:00
Sebastian Sellmair
cc47fb3d31
[Gradle] IdeCompilerArgumentsResolverImpl: use short names
...
KTIJ-24976
2023-04-06 16:03:00 +00:00
Sebastian Sellmair
a681f6a1ce
[Gradle] KotlinNativeLink: Use singleLinkerArguments instead of linkerArguments
...
KTIJ-24976
2023-04-06 16:03:00 +00:00
Sebastian Sellmair
9f2ee09ddb
[Gradle] Fix CompilerOptionsIT.combinesOptInFromLanguageSettingsNative
...
KTIJ-24976
2023-04-06 16:02:59 +00:00
Sebastian Sellmair
2c8491cf27
[Gradle] Fix CompilerOptionsIT.passesOptInAnnotationNative
...
KTIJ-24976
2023-04-06 16:02:59 +00:00
Sebastian Sellmair
e76f3fb925
[Gradle] KaptGenerateStubsTask: Implement KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:59 +00:00
Sebastian Sellmair
6455f602a0
[Gradle] AbstractKotlinCompile: Remove kotlinSources from callCompilerAsync
...
(as sources are expected to be part of the compiler arguments directly)
KTIJ-24976
2023-04-06 16:02:58 +00:00
Sebastian Sellmair
df2a64b183
[Gradle] KotlinNativeLink: Implement KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:58 +00:00
Sebastian Sellmair
e8d217a8d9
[Gradle] KotlinJsDce: Implement KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:57 +00:00
Sebastian Sellmair
d6e3b63069
[Gradle] Implement CompilerArgumentAware (for compatibility) using the new KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:57 +00:00
Sebastian Sellmair
30a4911a51
[Gradle] KotlinNativeCompile: Implement KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:57 +00:00
Sebastian Sellmair
16cce7516e
[Gradle] KotlinCompileCommon: Implement KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:56 +00:00
Sebastian Sellmair
ff0b070398
[Gradle] Kotlin2JsCompile: Implement KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:56 +00:00
Sebastian Sellmair
d4cc842200
[Gradle] KotlinCompile: Implement KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:55 +00:00
Sebastian Sellmair
0a3eb68934
[Gradle] Implement IdeCompilerArgumentsResolver service
...
KTIJ-24976
2023-04-06 16:02:55 +00:00
Sebastian Sellmair
36ff6531ea
[Gradle] Deprecate CompilerArgumentAware in favor of KotlinCompilerArgumentsProducer
...
KTIJ-24976
2023-04-06 16:02:55 +00:00
Sebastian Sellmair
f5fadc1f68
[kotlin-tooling-core] Add Interner.clear API
2023-04-06 16:02:54 +00:00
Anna Kozlova
22b0a8d9fb
[FIR] reference shortener should not touch fake sources
...
e.g. implicit types can't be shortened.
On the other hand, requesting textRange means building ast
which might be slow, especially for compiled code
2023-04-06 15:44:02 +00:00
Sergej Jaskiewicz
4b6975c3d0
[fir2ir] Set origins for componentN and copy methods of data classes
...
This aligns the behavior with psi2ir.
2023-04-06 14:45:47 +00:00
Roman Efremov
c718c77c43
[FE] Check visibilities of expected and actual property setters are compatible
...
^KT-30905 Fixed
2023-04-06 13:10:30 +00:00
Roman Efremov
9044dfe394
[FE] Revert prohibition of protected members inside actual final classes
...
^KT-28850 Fixed
2023-04-06 13:10:12 +00:00
Anton Lakotka
88488f4dc9
[Gradle, Test] Fix disable default publications test
...
Windows has different line endings, so it is not possible to
to seek multiline substrings.
2023-04-06 12:34:12 +00:00
Bart van Helvert
f7ec5885f5
KT-56200 Don't leak user code in reference resolve exception
2023-04-06 12:04:13 +00:00
Anna Kozlova
de965d39be
[LL] always get fir from decompiled stubs
2023-04-06 11:50:39 +00:00
Alexander Shabalin
4cd1f2ff82
[K/N] Fix a race in MemorySharedRefs ^KT-56233
2023-04-06 11:40:47 +00:00
Alexander Shabalin
8a8aeed998
[K/N] Handle permanent objects in new MM MemorySharedRefs ^KT-56233
...
Do not create a foreign ref to the permanent objects. There's no need to
do it, and, moreover, this ref would have leaked.
2023-04-06 11:40:45 +00:00
Alexander Shabalin
1f1b26f2a5
[K/N] Split Weak and MemorySharedRefs between mm implementations ^KT-56233
...
* A separate RegularWeakReferenceImpl for the new mm. Name is chosen for
better consistency with other WeakReferenceImpl implementations.
* KRefSharedHolder and BackRefFromAssociatedObject implementations are
independent between the legacy and the new mm.
* Better support for WeakReference in runtime unit tests.
2023-04-06 11:40:45 +00:00
Alexander Shabalin
87da670319
[K/N] Add more tests on associated object handling ^KT-56233
2023-04-06 11:40:44 +00:00
Alexander Shabalin
dbe14a0a90
[K/N] Make gc::SweepExtraObjects similar to gc::Sweep. ^KT-56233
2023-04-06 11:40:44 +00:00
Alexander Shabalin
eec3987e85
[K/N] Fix RunFinalizerHooks ^KT-56233
2023-04-06 11:40:43 +00:00