Commit Graph

83331 Commits

Author SHA1 Message Date
Jinseong Jeon 5e2525175e Introduce fir.evaluate module with CompileTimeConstantEvaluator 2021-06-19 21:35:33 -07:00
Igor Yakovlev ec80c21fd1 [FIR IDE] Fix lazy resolve for local declarations 2021-06-19 19:23:24 +02:00
Igor Yakovlev c17a67ba61 [FIR IDE] Fix invalid collecting designation for local declarations 2021-06-19 19:23:24 +02:00
Igor Yakovlev 41c42a5016 [FIR IDE] Remove session scope default parameter from lazy resolve interface 2021-06-19 19:23:24 +02:00
Igor Yakovlev 52765c333d [FIR IDE] Add test for local function lazy resolve and add phase into test data 2021-06-19 19:23:24 +02:00
Igor Yakovlev 2319a53fae [FIR] Fixed invalid phase for values value parameter 2021-06-19 19:23:23 +02:00
Igor Yakovlev 8012429e31 [FIR IDE] Fix loop inheritance tests 2021-06-19 19:23:23 +02:00
Igor Yakovlev 3a1057eb60 [FIR IDE] Enable passing spec tests 2021-06-19 19:23:23 +02:00
Igor Yakovlev b612e13061 [FIR IDE] Always resolve to Body in ide fir renderer 2021-06-19 19:23:23 +02:00
Igor Yakovlev e900a1fa57 [FIR IDE] Fix local declarations resolve 2021-06-19 19:23:23 +02:00
Igor Yakovlev 4a212dc6a0 [FIR IDE] Fix unresolved supertype for typealiases 2021-06-19 19:23:23 +02:00
Igor Yakovlev 6c0bacc548 [FIR IDE] Fix invalid status for class symbols 2021-06-19 19:23:23 +02:00
Igor Yakovlev 21b1e4b072 [FIR IDE] Add lazy resolve phases tests 2021-06-19 19:23:23 +02:00
Igor Yakovlev df1b41f05c [FIR IDE] Rename refactoring 2021-06-19 19:23:22 +02:00
Igor Yakovlev eded837115 [FIR IDE] Add typed lazy resolve implementation 2021-06-19 19:23:22 +02:00
Igor Yakovlev 7a0391b9b3 [FIR IDE] Move refactoring for constructor of the FileStructure 2021-06-19 19:23:22 +02:00
Igor Yakovlev a60be78898 [FIR IDE] Remove designation collecting for local declarations 2021-06-19 19:23:22 +02:00
Igor Yakovlev 0cbb29f494 [FIR IDE] Remove typed fir designation 2021-06-19 19:23:22 +02:00
Igor Yakovlev a4dbf0ae57 [FIR IDE] Update class modifiers requirements for resolve phase 2021-06-19 19:23:22 +02:00
Igor Yakovlev 3573f5066b [FIR] Remove redundant println from RawFirBuilder 2021-06-19 19:23:22 +02:00
Igor Yakovlev 83382bea13 [FIR IDE] Concurrent identity cache for files 2021-06-19 19:23:21 +02:00
Igor Yakovlev f98995f6cb [FIR IDE] Implement lazy designated resolve for all resolve FIR phases 2021-06-19 19:23:21 +02:00
Jinseong Jeon cda1a7edbe FIR/UAST: commonize UAnnotationMethod 2021-06-19 11:39:46 +02:00
Jinseong Jeon 638b0beadb FIR UAST: unify UMethod creation 2021-06-19 11:39:46 +02:00
Jinseong Jeon 5ec5b7f041 FIR/UAST: commonize constructor declarations 2021-06-19 11:39:45 +02:00
Jinseong Jeon cbaa645dbe FIR/UAST: commonize base UMethod 2021-06-19 11:39:45 +02:00
Jinseong Jeon 4a06ca637a FIR/UAST: commonize anonymous UClass 2021-06-19 11:39:45 +02:00
Jinseong Jeon 3bd4cb274d FIR/UAST: commonize invalid UClass 2021-06-19 11:39:44 +02:00
Jinseong Jeon 1749c90083 FIR/UAST: commonize base UClass (with bogus annotation abstraction) 2021-06-19 11:39:44 +02:00
Jinseong Jeon 06c20bb10e FIR/UAST: commonize abstraction of Kotlin UClass 2021-06-19 11:39:43 +02:00
Jinseong Jeon 0c011f4e73 UAST: place method declarations together 2021-06-19 11:39:43 +02:00
Jinseong Jeon beddf03f74 FIR/UAST: convert annotation via base converter 2021-06-19 11:39:42 +02:00
Jinseong Jeon 33ff90a6da FIR/UAST: commonize named/vararg expressions 2021-06-19 11:39:42 +02:00
Jinseong Jeon dcf99e9fd1 UAST: delete redundant file
This is rather a test input, and indeed there is testData/Suspend.kt
2021-06-19 11:39:42 +02:00
Jinseong Jeon 4e4b104488 FIR/UAST: commonize expression list 2021-06-19 11:39:41 +02:00
Jinseong Jeon 2e58b57db9 UAST: remove redundant override: expression list's evaluate()
The super function in `KotlinEvaluatableUElement` is almost same,
except for handling of `UnsignedErrorValueTypeConstant`.
Such handling was added later, so I assume the addition to this override
was missed. In any cases, this override is unnecessary.
2021-06-19 11:39:41 +02:00
Jinseong Jeon 31d1c002c5 FIR UAST: implement constructors/delegations
But, the logic is identical to the counterpart in FE1.0 UAST
Many declaration abstractions, such as (primary|secondary) constructor
methods and class, are very similar, and thus can be commonized soon
once the remaining parts (in particular, annotations) are done.
2021-06-19 11:39:40 +02:00
Nikita Bobko 8b3c6489da Fix kotlin resources iml path 2021-06-18 17:42:23 +02:00
Nikita Bobko 306f8b7358 [imltogradle] Add "imls in same directory are not allowed" check 2021-06-18 17:42:23 +02:00
Ilya Goncharov eed23ddbe3 [JS, Frontend] Add test with extension member in external interface 2021-06-18 17:20:57 +03:00
Ilya Goncharov 83c1a119ee [JS, Frontend] Add option to allow extension lambdas in externals 2021-06-18 17:20:56 +03:00
Svyatoslav Scherbina 2a54f1c610 Improve exception messages for kotlin.native.concurrent.* operations 2021-06-18 13:51:21 +00:00
nataliya.valtman 6a32e7bd5a Add typealias testcase for incremental compilation 2021-06-18 16:50:17 +03:00
Anton Bannykh 48fe46303d JS IR: declare intrinsics for lowerings in stdlib
- simplifies lowered IR serialization
- removes some hacks in jsOperators.kt
- intrinsics can be directly invoked in stdlib
2021-06-18 15:26:52 +03:00
Ilya Matveev 94384ce2ca [K/N][Runtime] Add a lock method to thread registry 2021-06-18 12:20:04 +00:00
Ilya Matveev cece652412 [K/N][Runtime] Separate thread registering and making it 'Runnable'
The new GC will require threads to suspend right after registering
if Stop-The-World is requested. This patch changes the initial
thread state to kNative and adds a separate state switch right
after thread registering. This switch suspends if it is necessary.
2021-06-18 12:20:03 +00:00
Alexander Shabalin e240b8a8ee Add a separate aggressive GC mode 2021-06-18 12:03:02 +00:00
Igor Chevdar 1cfe1c41ef [K/N][IR] Fixed problem with klib compilation
Fixes https://youtrack.jetbrains.com/issue/KT-46896
2021-06-18 16:21:24 +05:00
Igor Chevdar 421ff68cd6 [K/N][codegen] Fix for https://youtrack.jetbrains.com/issue/KT-47183 2021-06-18 15:57:45 +05:00
Yahor Berdnikau 7aa882b921 Add test for multiplatform plugin.
^KT-43095 In Progress
2021-06-18 10:50:26 +00:00