Commit Graph

61450 Commits

Author SHA1 Message Date
Mikhail Glukhikh 1bbcec4935 [FIR] DFA fix after x?.syntheticProperty ?: return 2020-02-07 13:03:41 +03:00
Mikhail Glukhikh d23c03e9dc [FIR] Add test about synthetic / non-synthetic smart casts 2020-02-07 13:03:40 +03:00
Mikhail Glukhikh 9f9d53cc5a [FIR] Fix handling of scope emptiness in case of synthetic properties 2020-02-07 13:03:40 +03:00
Denis Zharkov c8c0ba480b FIR: Add problem tests for smart cast within init-section 2020-02-07 12:18:40 +03:00
Dmitry Petrov 3518fcf78c Fix psi2ir tests broken by 7249d2f889 2020-02-07 10:50:56 +03:00
Dmitry Petrov a1326d3ef5 !RENDER_DIAGNOSTICS_FULL_TEXT directive
Compares diagnostics rendered as text with corresponding .diag.txt file
2020-02-07 10:50:56 +03:00
Dmitry Petrov 4e6c3b6b43 Diagnostics tests with JVM backend 2020-02-07 10:50:56 +03:00
Vladimir Dolzhenko a17027e330 Fixed incompatibility with 191 and 192
Fixed #KT-35918
2020-02-06 22:49:08 +01:00
Anton Bannykh 5605eb5a31 Review fix: add TODO comments 2020-02-06 21:03:41 +03:00
Anton Bannykh 70a4c265de Add tests extracted from regressions 2020-02-06 21:03:41 +03:00
Anton Bannykh 1e96c3d21e DCE-driven mode
:js:js.tests:jsIrTest works same as before
:js:js.tests:jsPirTest runs tests in DCE-driven mode
2020-02-06 21:03:41 +03:00
Anton Bannykh 571bbba0e3 Change DCE a bit to touch less declarations 2020-02-06 21:03:40 +03:00
Anton Bannykh f07fb91e9d Simple stage layers + enforce model 2020-02-06 21:03:40 +03:00
Anton Bannykh f437da8ee5 Persistent IR implementation 2020-02-06 21:03:40 +03:00
Anton Bannykh 4c4b0ef013 Suspend Functions
2 tests muted due to duplicate variables found by the validator
If memory serves:
- there is a `suspend inline fun` and a callable reference to it
- the suspend function doesn't remove the original function in this
  case anymore
- the duplicate `var`'s are inside the function body and the
  callable reference state machine body
2020-02-06 21:03:40 +03:00
Anton Bannykh 94d2a79d2e FoldConstantLowering 2020-02-06 21:03:40 +03:00
Anton Bannykh 0efe2ab00a PropertyAccessorInlineLowering 2020-02-06 21:03:40 +03:00
Anton Bannykh 6e501e5f9b AnnotationConstructorLowering 2020-02-06 21:03:40 +03:00
Anton Bannykh d76bfdf860 Enums 2020-02-06 21:03:39 +03:00
Anton Bannykh 3165556c6b PrivateMembersLowering 2020-02-06 21:03:39 +03:00
Anton Bannykh f6d4ea469c PrimaryConstructorLowering 2020-02-06 21:03:39 +03:00
Anton Bannykh 76ff30b86e ObjectLowering 2020-02-06 21:03:39 +03:00
Anton Bannykh ce625075f6 MoveBodilessDeclarationsToSeparatePlace 2020-02-06 21:03:39 +03:00
Anton Bannykh 09a2c145a9 CallableReferenceLowering 2020-02-06 21:03:39 +03:00
Anton Bannykh 9812291364 BlockDecomposerLowering 2020-02-06 21:03:38 +03:00
Anton Bannykh e2d16d5096 FunctionInlining 2020-02-06 21:03:38 +03:00
Anton Bannykh 86a4e17dc4 LocalDelegatedProperties 2020-02-06 21:03:38 +03:00
Anton Bannykh 81e599c18f VarargLowering 2020-02-06 21:03:38 +03:00
Anton Bannykh 489ba508c3 TypeOperatorLowering 2020-02-06 21:03:38 +03:00
Anton Bannykh 05ab17f1e1 ThrowableLowering 2020-02-06 21:03:38 +03:00
Anton Bannykh 15b2312cec StaticMembersLowering 2020-02-06 21:03:37 +03:00
Anton Bannykh d9fbe8b951 SecondaryCtorLowering 2020-02-06 21:03:37 +03:00
Anton Bannykh fb36432cb5 PrimitiveCompanionLowering 2020-02-06 21:03:37 +03:00
Anton Bannykh edf6dec63b MultipleCatchesLowering 2020-02-06 21:03:37 +03:00
Anton Bannykh f1442f5ae9 ConstLowering 2020-02-06 21:03:37 +03:00
Anton Bannykh 21ef35bc25 ClassReferenceLowering 2020-02-06 21:03:37 +03:00
Anton Bannykh d9646a5361 BridgesConstruction 2020-02-06 21:03:36 +03:00
Anton Bannykh 4142031fe7 AutoboxingTransformer 2020-02-06 21:03:36 +03:00
Anton Bannykh 38d409a487 Inline function removal + body copying 2020-02-06 21:03:36 +03:00
Anton Bannykh 76c7668162 CallsLowering 2020-02-06 21:03:36 +03:00
Anton Bannykh 64a5039ebe Refactor default arguments lowering 2020-02-06 21:03:36 +03:00
Anton Bannykh 9327776706 Rewrite inner class lowerings 2020-02-06 21:03:36 +03:00
Anton Bannykh 908c23cb48 Make ForLoopsLowering a BodyLoweringPass 2020-02-06 21:03:35 +03:00
Anton Bannykh 0d1c6e08c3 Refactor LateinitLowering into DeclarationTransformer's and a BodyLoweringPass 2020-02-06 21:03:35 +03:00
Anton Bannykh 6e96e271ae Make InitializersLowering a BodyLoweringPass and add a InitializersCleanupLowering 2020-02-06 21:03:35 +03:00
Anton Bannykh 600caaa636 Make ExpectDeclarationsRemoveLowering a DeclarationTransformer 2020-02-06 21:03:35 +03:00
Anton Bannykh d0284d19ec Make PropertiesLowering a DeclarationTransformer 2020-02-06 21:03:35 +03:00
Anton Bannykh 03398e6025 Make StripTypeAliasDeclarationsLowering a DeclarationTransformer 2020-02-06 21:03:35 +03:00
Anton Bannykh 3d726fe5a2 Make InlineClassDeclarationLowering a DeclarationTransformer 2020-02-06 21:03:34 +03:00
Anton Bannykh 0a5db9d222 Make inlineClassUsageLowering a BodyLoweringPass 2020-02-06 21:03:34 +03:00