Tianyu Geng
b78b50e1f8
FIR DFA: workaround KT-46826
2021-06-29 10:46:40 +03:00
Tianyu Geng
0ecc752813
FIR checker: report SMARTCAST_IMPOSSIBLE for local variables
2021-06-29 10:46:38 +03:00
Alexander Shabalin
092750e215
Fix race in Lazy for the new MM
2021-06-29 06:29:57 +00:00
Alexander Shabalin
455625bcee
Use FreezableAtomicReference in unhandled exception hook
2021-06-29 06:29:57 +00:00
Dmitry Gridin
fe855d09d8
fix idea compilation
2021-06-29 10:46:47 +07:00
Dmitry Gridin
274bae1d05
KtArrayAccessReference: remove redundant functions
2021-06-29 10:04:27 +07:00
Alexander Udalov
4b7fa44e80
CLI: fix resolution of Java records as single file roots
...
#KT-46764 Fixed
2021-06-29 01:22:08 +02:00
Ivan Kochurkin
e295849733
[FIR] Refactor FirSupertypesChecker: split big function on small ones
2021-06-29 02:00:11 +03:00
Ivan Kochurkin
fb9ce06ff5
[FIR] Implement DELEGATION_NOT_TO_INTERFACE
2021-06-29 02:00:11 +03:00
Ivan Kochurkin
c3a6ba52f6
[FIR] Implement CLASS_CANNOT_BE_EXTENDED_DIRECTLY
2021-06-29 02:00:10 +03:00
Ivan Kochurkin
92d7a61b4f
[FIR] Implement INCONSISTENT_TYPE_PARAMETER_VALUES, INCONSISTENT_TYPE_PARAMETER_BOUNDS
2021-06-29 02:00:09 +03:00
Ivan Kochurkin
ec20f52707
[FIR] Implement EXPANDED_TYPE_CANNOT_BE_INHERITED, PROJECTION_IN_IMMEDIATE_ARGUMENT_TO_SUPERTYPE
...
Add `starAsModifier` to `modifierSetPosition`
2021-06-29 02:00:08 +03:00
Ivan Kochurkin
937846b62d
[FIR] Implement TYPEALIAS_SHOULD_EXPAND_TO_CLASS
2021-06-29 02:00:06 +03:00
Ivan Kochurkin
e8a790993b
[FIR] Add ConeUnsupportedDynamicType
2021-06-29 02:00:03 +03:00
Denis.Zharkov
0ec693db89
Fix parsing regression related to T!!
...
^KT-47445 Fixed
2021-06-28 21:48:13 +03:00
Dmitry Petrov
768afc5ba4
JVM_IR KT-47492 fix 'for' loop generation
2021-06-28 21:07:54 +03:00
Roman Artemev
6993b86d3b
[IR] Fix IrCapturedType equals/hashCode
...
It could lead to SOE if CT has itself as superType
- fix KT-47424
2021-06-28 20:43:14 +03:00
Dmitry Petrov
7ccefebf1c
PSI2IR flatten more levels of indirection to avoid SOE in big exprs
2021-06-28 18:18:27 +03:00
Igor Yakovlev
cd0ea7f7f7
[FIR] Add explicit types to needReplacePhase transformers methods
2021-06-28 17:21:43 +03:00
Igor Yakovlev
30c381f16d
[FIR] Fix invalid CallableId for methods in anonymous objects
2021-06-28 17:21:42 +03:00
Abduqodiri Qurbonzoda
47aa04d55d
Test fix: java6 doesn't throw on invalid AbstractMutableList.addAll index
...
If the collection of elements to be added is empty, java6 implementation
of AbstractMutableList.addAll doesn't throw on invalid index.
The failing test was introduced in 59031543e2
which fixed #KT-47211.
2021-06-28 13:58:41 +00:00
Zalim Bashorov
a908e5576d
[JS] Extract sourcemap generating related files to a separate module
...
It's required to reuse the same infrastructure in the new backend.
2021-06-28 16:04:09 +03:00
sebastian.sellmair
a63c179227
KotlinNativePlatformDependencies: Ensure 'commonizeNativeDistributionTask' is registered when 'isAllowCommonizer' is true
2021-06-28 13:00:19 +00:00
Svyatoslav Scherbina
b3980f9555
kotlin-native/samples: fix cocoapods after faulty cherry-pick 64129314
...
Move its source file to where it belongs.
2021-06-28 12:56:09 +00:00
Dmitry Petrov
560c269e05
PSI2IR KT-47450 prevent SOE when generating IR for deep expressions
2021-06-28 15:41:41 +03:00
Dmitriy Novozhilov
c4d9945782
Fix JPS build after removal of IDE plugin from repo
2021-06-28 14:32:24 +03:00
Ilya Goncharov
b76cbdaa41
[Gradle, JS] Remove redundant worksapces properties in yarn extensions
2021-06-28 13:38:04 +03:00
Ilya Goncharov
e3c291db27
[Gradle, JS] Not rewrite package.json if json was not changed
2021-06-28 13:38:03 +03:00
Ilya Goncharov
6219eb24c0
[Gradle, JS] Remove redundant test
2021-06-28 13:38:02 +03:00
Ilya Goncharov
1cc5a9493c
[Gradle, JS] RootPackageJson task with up-to-date status
2021-06-28 13:38:01 +03:00
Ilya Goncharov
f182a1c750
[Gradle, JS] Sort for tools npm dependencies
2021-06-28 13:37:58 +03:00
Ilya Goncharov
3fc2a77281
[Gradle, JS] Remove redundant caching infrastructure
2021-06-28 13:37:57 +03:00
Ilya Goncharov
4d2376ac4c
[Gradle, JS] Use package.json files instead of pre-package.json
2021-06-28 13:37:55 +03:00
Ilya Goncharov
f8bd440356
[Gradle, JS] Not force to write package.json in rootPackageJson
2021-06-28 13:37:53 +03:00
Ilya Goncharov
c4a1053aa7
[Gradle, JS] Add imported packages as workspace, not file dependencies
2021-06-28 13:37:52 +03:00
Alexander Udalov
f430d569d0
Fix warnings in js-ir/runtime/jsIntrinsics.kt
...
Suppress "UNUSED_PARAMETER" to fix compilation warnings. Also suppress
"unused" to make the file less yellow in the IDE.
Also enable `-Werror`, unless Gradle property
`kotlin.build.disable.werror` is set to true.
2021-06-28 12:19:35 +02:00
Svyatoslav Scherbina
eeffa49cd9
Native: don't generate .companion in ObjCExport if the companion is not exported
...
^KT-47462 Fixed
2021-06-28 08:19:12 +00:00
Svyatoslav Scherbina
786cb47450
Native: improve ObjCExport test for companion enum entry clash
2021-06-28 08:19:11 +00:00
Ivan Gavrilovic
929c4624cc
KT-47416: Pass Android annotationProcessorOptions to kapt
...
This commits makes sure that "static" DSL options from
`android.javaCompileOptions.annotationProcessorOptions`
are passed to KAPT when running w/o kotlinc.
A regression was introduced in 19708cfa87 .
Fixes #KT-47416
Test: Kapt3AndroidIT.testStaticDslOptionsPassedToKapt
2021-06-28 09:10:53 +02:00
Anton Bannykh
d303b783be
KLIB: serialization support for global signatures and lowered IR features
...
Including:
- returnable blocks
- raw function references
- standalone type and value parameters
- file symbols
2021-06-27 22:56:35 +03:00
Anton Bannykh
6f01789139
IR: public symbols for the new global signatures
2021-06-27 22:56:35 +03:00
Anton Bannykh
aa5e7c65be
KLIB: queue modules instead of ModuleDeserializationState
...
This approach is more general and expandable.
2021-06-27 22:56:35 +03:00
Anton Bannykh
e4707b236b
JS IC: new signatures
...
Lowered IR might have cross-file references for fields, type parameters
and other stuff. Thus there is a need to make file-local and scope-local
signatures unique at least within a module.
2021-06-27 22:56:34 +03:00
Anton Bannykh
eba0661016
JS IC: .proto update
2021-06-27 22:56:34 +03:00
Anton Bannykh
b77d481ac6
IR: hide assert behind a flag
...
In JS IC the symbol might be unbound at this moment
2021-06-27 22:56:34 +03:00
Anton Bannykh
dbeb09af89
IR: fix SecondaryCtorLowering.kt
2021-06-27 22:56:34 +03:00
Anton Bannykh
bd4e7ffef8
JS PIR: store signatures for lowered declarations inside PIR declarations
2021-06-27 22:56:33 +03:00
Anton Bannykh
e0bdabcf61
JS IR: fix js SAM lowering
2021-06-27 22:56:33 +03:00
Anton Bannykh
9462131014
JS IR: fix offsets in BlockDecompositionLowering
2021-06-27 22:56:33 +03:00
Anton Bannykh
600099585d
IR: refactor IdSignatureSerializer
...
Use a separate instance for each file.
2021-06-27 22:56:33 +03:00