Commit Graph

63359 Commits

Author SHA1 Message Date
Ilmir Usmanov 4b4a6101c1 JVM_IR: Generate inline functions with reified generics as public synthetic
Otherwise, proguard will remove them.
 #KT-37004 Fixed
2020-03-04 21:32:31 +01:00
Ilmir Usmanov f8903ca04b JVM_IR: Generate private suspend functions as synthetic package-private
Do not generate accessors for them.
 #KT-37086 Fixed
2020-03-04 21:32:29 +01:00
Ilmir Usmanov 5826db97c7 JVM_IR: Do not duplicate inline suspend functions with reified type parameters
They are inline-only.
Generate $$forInline versions of inline suspend functions as private.
This way, there is no nullability annotation on there parameters and return
values. Unfortunately, old BE does generate them.
 #KT-37088 Fixed
2020-03-04 21:32:27 +01:00
Dmitry Petrov 3bf2c17f9e KT-37024 Optimized delegated property metadata generation in inline fun 2020-03-04 18:48:03 +03:00
Vladimir Dolzhenko 0be5a82460 Use LightJavaModule.getModule for 193
Fixed #KT-37229
2020-03-04 15:30:09 +01:00
Mikhael Bogdanov 1ffde2a3c4 Minor. Fix test compilation 2020-03-04 15:24:08 +01:00
Mikhail Glukhikh 4745cd4fea FIR2IR: refactor 'getArrayType' using standard class ids 2020-03-04 16:55:34 +03:00
Mikhail Glukhikh 0c9da6d715 FIR2IR: extract 'enumClassModality' 2020-03-04 16:55:34 +03:00
Mikhail Glukhikh 76ccaf13ba FIR2IR: cache properties & fields more correctly 2020-03-04 16:55:34 +03:00
Mikhail Glukhikh fe658ce47f FIR2IR: remove redundant receiver generation from visitor
Now static functions have no dispatch receiver: they really shouldn't.
2020-03-04 16:55:34 +03:00
Mikhail Glukhikh 9788a7cfbc FIR2IR: cache constructors and their parents properly 2020-03-04 16:55:34 +03:00
Mikhail Glukhikh 0fee8a6946 FIR2IR: cache functions and their parents properly 2020-03-04 16:55:33 +03:00
Mikhail Glukhikh 940567b8bd FIR2IR: set enum class modality properly for complex entries case 2020-03-04 16:55:33 +03:00
Mikhail Glukhikh 3ffe1a1876 FIR2IR: create IrEnumConstructorCall even in complex entries 2020-03-04 16:55:33 +03:00
Mikhail Glukhikh 5af3d92271 FIR2IR: cache enum entry classes properly 2020-03-04 16:55:33 +03:00
Mikhail Glukhikh 03eab2ec6c FIR2IR: get rid of setParentAndContent + fixes around anonymous objects 2020-03-04 16:55:32 +03:00
Mikhail Glukhikh 20eddef06f FIR2IR: eliminate hacky replacement for invoke() & next() calls
At this moment the generic logic for fake override calls
replacement is in use.
2020-03-04 16:55:32 +03:00
Mikhail Glukhikh 50c4c3f4fb FIR2IR: extract fake override generator 2020-03-04 16:55:32 +03:00
Mikhail Glukhikh 0bb3a42ceb FIR2IR: mute black box test due to parent logic problems 2020-03-04 16:55:32 +03:00
Mikhail Glukhikh 698e259438 FIR2IR: register file first and convert declarations second
This allows to find parent declaration from another file correctly
2020-03-04 16:55:31 +03:00
Mikhail Glukhikh cfa626ad77 FIR2IR: introduce conversion scope, remove dispatch receiver for lambdas 2020-03-04 16:55:31 +03:00
Mikhail Glukhikh a14cb075c3 FIR2IR: inline some conversion one-liners 2020-03-04 16:55:31 +03:00
Mikhail Glukhikh 4c2522631b FIR2IR (refactoring): introduce Fir2IrTypeConverter 2020-03-04 16:55:31 +03:00
Mikhail Glukhikh 9257949a5a Minor: eliminate unused typeContext in FIR2IR 2020-03-04 16:55:30 +03:00
Mikhail Glukhikh 211411a920 Fix FIR test data according to last changes of demiurg 2020-03-04 16:55:30 +03:00
Mikhael Bogdanov 32bcab2867 Switch rest of test to new scheme with configuration kind processing 2020-03-04 14:51:21 +01:00
Mikhael Bogdanov 46397dca4a Switch 'AbstractVisualizer' to new scheme with configuration kind 2020-03-04 14:51:20 +01:00
Mikhael Bogdanov ae9a91e17d Switch 'AbstractCompilerLightClassTest' to new scheme with configuration kind 2020-03-04 14:51:19 +01:00
Mikhael Bogdanov f84ac5e3f9 Remove configuration kind from AbstractDumpDeclarationsTest tests 2020-03-04 14:51:18 +01:00
Mikhael Bogdanov e3efab5765 Remove FULL_JDK from AbstractFirResolveTestCaseWithStdlib tests 2020-03-04 14:51:17 +01:00
Mikhael Bogdanov 0a8454d5fc Remove FULL_JDK from AbstractForeignAnnotationsTest tests 2020-03-04 14:51:16 +01:00
Mikhael Bogdanov 59679476f6 Always create test files, directive processing would be based on them
This is required for extracted 'getTestJdkKind' in previous commits
2020-03-04 14:51:16 +01:00
Mikhael Bogdanov dbdc4d9ee0 Move 'extractConfigurationKind' to base class, use it in KotlinMultiFileTestWithJava 2020-03-04 14:51:15 +01:00
Mikhael Bogdanov 7040857d77 Convert KotlinMultiFileTestWithJava.java to Kotlin 2020-03-04 14:51:14 +01:00
Mikhael Bogdanov 06a36465a5 Rename .java to .kt 2020-03-04 14:51:13 +01:00
Mikhael Bogdanov 999b762288 Merge 'getTestJdkKind' and 'getJdkKind' and move to base class 2020-03-04 14:51:12 +01:00
Mikhael Bogdanov 6e855f3bbd Split 'analyzeAndCheck' into 'shouldSkipTest' and 'setupEnvironment' 2020-03-04 14:51:11 +01:00
Mikhael Bogdanov 9052ef06a7 Introduce configureEnvironment, avoid 'createEnvironment' calls 2020-03-04 14:51:10 +01:00
Mikhael Bogdanov a795c38eb7 Introduce base class for codegen and diagnostic tests
Extract base TestFile and TestModule classes.
 Move coroutinePackage related logic to base class
2020-03-04 14:51:10 +01:00
LepilkinaElena b031706ea9 Added Native-specific frontend checker for @SharedImmutable (#3091) 2020-03-04 16:45:37 +03:00
Georgy Bronnikov 8b559b20e2 Add a test for getOrDefault() bridge 2020-03-04 16:02:54 +03:00
Georgy Bronnikov dd7d5dfdb3 JVM_IR: try to avoid resolveFakeOverride() in BridgeLowering
One of the uses can be avoided, the other remains.
Special overrides are now generated for MutableMap.remove and
getOrDefault when there is an intermediate Java class, same as in old
backend.
2020-03-04 16:02:54 +03:00
nataliya.valtman fa74eabbd1 use bootstrap.kotlin.default.version bootstrap for buildSrc 2020-03-04 15:15:32 +03:00
Yan Zhulanow f7a7c169f8 Changelog: remove "trailing comma" feature from 1.3.70 2020-03-04 20:44:15 +09:00
Yan Zhulanow 9e605b1798 Remove 1.4-specific language features from 1.3.70 changelog 2020-03-04 17:19:12 +09:00
Vladimir Dolzhenko 15e2afe5ab Add checkCanceled on common for autocompletion and highlighting resolve path 2020-03-04 08:59:17 +01:00
Vladimir Dolzhenko 9c530b1121 Add performance stress tests 2020-03-04 08:47:51 +01:00
Yan Zhulanow 9ea97a3dfb Update changelog: add changes from 1.3.70 2020-03-04 15:15:55 +09:00
Georgy Bronnikov 394c660a82 Mute a FIR test 2020-03-04 01:34:17 +03:00
Vyacheslav Gerasimov 52b88bf753 Build: Fix various libraryJarWithIr task inputs 2020-03-04 01:14:56 +03:00