pyos
7bcd738bb1
JVM: inline createInlineMethodNode into InlineCodegenForDefaultBody
...
Most of it is unused, since there we know the target function will also
need to be compiled from source.
2021-06-11 15:03:13 +02:00
pyos
4c7eb815fc
JVM: remove some FunctionDescriptors from SourceCompilerForInline
2021-06-11 15:03:13 +02:00
pyos
a24ad233ee
JVM: move PsiSourceCompilerForInline to a separate file
2021-06-11 15:03:13 +02:00
pyos
955b9260d1
JVM: move more old backend code out of InlineCodegen
2021-06-11 15:03:13 +02:00
pyos
043452fb62
JVM: make handling of captured params for default lambdas shorter
2021-06-11 15:03:13 +02:00
pyos
4cae880b44
JVM: remove unused DefaultLambda.parameterOffsetsInDefault
2021-06-11 15:03:13 +02:00
pyos
8a3af851d9
JVM: pregenerate inline lambda bodies as early as possible
...
Which in JVM_IR is immediately in `genValueAndPut`, but for the old
backend needs to be delayed until `genCallInner` for some reason.
2021-06-11 15:03:13 +02:00
pyos
90412ade8a
JVM: remove second parameter of putClosureParametersOnStack
...
Only used by the old backend.
2021-06-11 15:03:13 +02:00
pyos
d4c8a033b1
JVM: remove BaseExpressionCodegen.pushClosureOnStack
...
It's only used by the old backend
2021-06-11 15:03:13 +02:00
pyos
b6c3c9942d
JVM: move activeLambda to PsiInlineCodegen
2021-06-11 15:03:13 +02:00
pyos
7333abf50d
JVM: purge redundant val BaseExpressionCodegen.v
2021-06-11 15:03:13 +02:00
pyos
1f9db7cf25
FE: properly clear the deferred generator stack
...
Before this commit the stack wasn't cleared for read variable case.
#KT-47168 Fixed
2021-06-11 15:56:20 +03:00
Sergey Bogolepov
2f632ada42
[Native] Remove unused code
2021-06-11 12:18:15 +00:00
Sergey Bogolepov
36386de9a2
[Native] Drop explicit -fPIC flag setup
...
We don't need to explicitly set -fPIC flag everywhere
because since d82109cc92
it is set by default for all ClangArgs users.
2021-06-11 12:18:14 +00:00
Sergey Bogolepov
7550351702
[Native] Fix runtime code according to Clang 11 warnings
2021-06-11 12:17:00 +00:00
Georgy Bronnikov
91387e644f
IR: repair collectAndFilterRealOverrides
2021-06-11 15:05:45 +03:00
Georgy Bronnikov
7e6782d684
JVM_IR: simplify resolveFakeOverride call in SyntheticAccessorLowering
2021-06-11 15:05:45 +03:00
Georgy Bronnikov
fca804de14
IR: properly compute IrProperty.resolveFakeOverride()
...
Now that IrProperty has its own overriddenSymbols, we can generalize the
search for fake overrides. Also works for fake override properties
derived from Java fields.
2021-06-11 15:05:45 +03:00
Jinseong Jeon
3769fd8e07
FIR UAST: fix import resolve test
...
The `resolve` failure (or `null` return) of import directive for
`java.lang.Thread.sleep` is legitimate, since there are two static methods
in `java.lang.Thread`:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html
hence not able to resolve to a single method.
Unless we change `UImportStatement` to be a subtype of `UMultiResolvable`,
instead of `UResolvable`, we can't properly test `resolve` API for that.
2021-06-11 14:51:07 +03:00
Yahor Berdnikau
da25d58fa7
Control cache redirector status in test via project settings.
...
Test will use project `gradle.properties` file to get current
cache redirector status, so it could be controlled from one place.
^KT-47185 Fixed
2021-06-11 11:44:36 +00:00
Yahor Berdnikau
7b1db6992e
Enable cache redirector for old tests setup.
...
^KT-47185 Fixed
2021-06-11 11:44:35 +00:00
Yahor Berdnikau
e98de36aaa
Enable cache redirector for Junit5 tests.
...
^KT-47185 In Progress
2021-06-11 11:44:34 +00:00
Yahor Berdnikau
5d0abf0e33
Lazily apply cache redirector to all project modules.
...
Mainly move it from 'afterEvaluate { .. }' block.
^KT-47185 In Progress
2021-06-11 11:44:34 +00:00
Viacheslav Kormushkin
3c0709cf4f
A new DSL for framework configuration within cocoapods block
...
#KT-46479
#KT-35723
2021-06-11 11:10:49 +00:00
Mikhail Glukhikh
5a3f84c8fa
Add forgotten test data file
2021-06-11 13:17:01 +03:00
Svyatoslav Scherbina
b13e7d1e28
Native: enable more Obj-C interop tests for new MM
2021-06-11 07:35:50 +00:00
Svyatoslav Scherbina
79d4047e86
Native: improve thread state switching for Obj-C interop
2021-06-11 07:35:49 +00:00
Svyatoslav Scherbina
85ab4f68df
Native: support reentrant mode for CalledFromNativeGuard
2021-06-11 07:35:48 +00:00
sebastian.sellmair
1bcafd3cd0
[Gradle] commonizeCInterop task: Require hierarchical commonization to be enabled
...
^KT-47133 Verification Pending
2021-06-11 07:03:24 +00:00
Roman Golyshev
d781902626
Add possibility to use baseDir in SpecHelpersSourceFilesProvider
...
In IJ infrastructure we have specific path prefix for compiler testData
2021-06-11 02:28:39 +03:00
Vladimir Dolzhenko
2c8d583d8b
Added ad-hoc KtValueArgument.stringTemplateExpression
...
Use only stub stringTemplateExpression if it is present and don't use ast nodes as it could be unbounded
#KT-47034 Fixed
2021-06-10 21:14:32 +00:00
Yahor Berdnikau
a383c1ce79
Ensure kapt tasks don't capture sources state in configuration cache.
...
Kapt tasks have captured sources state inside SourceRoots container
internal collection, that was cached by configuration cache.
This lead to the compilation errors whenever sources files
were changed (deleted or renamed), because kapt still expected
previous file state to exist.
Now SourceRoots will not create internal collection, but rather
reuse standard Gradle FileCollection methods that perform required
calculations dynamically.
^KT-46651 Fixed
2021-06-10 20:00:39 +00:00
Yahor Berdnikau
3d36e11e80
Make 'kapt.verbose' property compatible with configuration cache.
...
^KT-46651 In Progress
2021-06-10 20:00:38 +00:00
Ilya Kirillov
c4b1fa8ec0
Fix FE1.0 plugin testdata after adding // IGNORE_FIR directive
2021-06-10 19:05:33 +02:00
Ilya Kirillov
bc306a5195
FIR IDE: Regenerate quickfix tests
2021-06-10 19:05:33 +02:00
Tianyu Geng
90a0c9bb25
FIR IDE: quickfix to add override keyword
...
Also enables more tests that covers previous quickfixes
2021-06-10 19:05:33 +02:00
Alexander Likhachev
1658f4433d
[Build] Update Gradle Enterprise plugin to 3.6.2
2021-06-10 18:39:21 +03:00
Alexander Likhachev
17991c5b6e
[Build] Update common-custom-user-data-gradle-plugin to 1.4
...
Now the plugin detects IDEA via system properties using Gradle providers and shoudn't cause undeclared system property reads issue
#KT-44611 In Progress
2021-06-10 18:39:20 +03:00
Nikita Bobko
debc0d2b93
Add .idea/libraries-with-intellij-classes.xml to .gitignore
2021-06-10 17:37:50 +02:00
Vladimir Dolzhenko
1eb04d5440
Support Kotlin 1.5 / 1.6 language versions come from external sources
...
#KTIJ-15743 Fixed
Original commit: 784f77a2b98b0c9719f4919e45a193f35d7d9875
2021-06-10 13:12:36 +00:00
Dmitriy Novozhilov
1a0516e2c8
Fix codebase according to KT-47225
2021-06-10 16:01:18 +03:00
Tianyu Geng
baa3a3c81d
FIR IDE: ignore smartcast if it's unstable in HL API
2021-06-10 16:01:17 +03:00
Tianyu Geng
78401b3ae0
FIR: add helper to check if a smartcast expressioin is stable
2021-06-10 16:01:16 +03:00
Tianyu Geng
3c8693758b
FIR: handle synthetic properties with unstable smartcast
...
Synthetic properties from Java getter/setters need to be specially
handled so that candidates from such symbols are marked with unstable.
2021-06-10 16:01:14 +03:00
Tianyu Geng
ce767046eb
FIR checkers: report SMARTCAST_IMPOSSIBLE
2021-06-10 16:01:13 +03:00
Tianyu Geng
2bb7ef9747
FIR DFA: store stability in RealVariable
...
As part of this change, we also extend the usage of RealVariable in more
places during DFA. Now mutable properties, property with custom getters,
delegated properties, etc are also treatd as a `RealVariable`. In
general this is needed in order to carry out smartcast computation in
order to report `SMARTCAST_IMPOSSIBLE`. It seems to also have side
effects that improves behavior of some test files.
2021-06-10 16:01:11 +03:00
Tianyu Geng
97ea37c82f
FIR: add smartcast stability to FIR
2021-06-10 16:01:09 +03:00
Nikita Bobko
02bd17a4e2
Add compiler/fir/raw-fir/psi2fir/testData to testdata which is used by Kotlin plugin in IJ infra
2021-06-10 12:16:16 +02:00
Alexander Shabalin
cf47d95aa5
Rename SingleThreadMarkAndSweep into SameThreadMarkAndSweep
2021-06-10 09:59:38 +00:00
Alexander Shabalin
9ebba93dd9
Make SingleThreadMarkAndSweep support multiple threads
2021-06-10 09:59:37 +00:00