Alexander Udalov
aa0882a74f
Refactor .kotlin_module-writing code, simplify PackagePartRegistry
2019-02-07 21:23:01 +01:00
Mikhael Bogdanov
4dc304b24e
Move IrBytecodeText tests to ir package
2019-02-07 16:14:20 +01:00
Mads Ager
b902da55d5
JVM_IR: Block with nothing type do not generate values on the stack.
2019-02-07 16:05:16 +01:00
Mikhael Bogdanov
6aaa601239
Add tests for obsolete issues
...
#KT-21085 Obsolete
#KT-13846 Obsolete
2019-02-07 11:39:48 +01:00
Mikhael Bogdanov
6d24d50df6
Remove obsolete test
2019-02-07 11:39:48 +01:00
Dmitriy Novozhilov
c5c43d89d3
Fix testdata of #KT-28598
2019-02-07 13:27:05 +03:00
Dmitriy Novozhilov
9129210cfe
Move changes from dfb379d under new language feature (#KT-28672)
...
Changes from that commit are breaking, and should be pass throw LC
2019-02-07 12:12:34 +03:00
Dmitriy Novozhilov
cf25cab773
Add test for #KT-28598
2019-02-07 12:12:34 +03:00
Dmitriy Novozhilov
6878abe8b4
Add test for #KT-25432
2019-02-07 12:12:34 +03:00
Dmitriy Novozhilov
93de13d931
Fix behaviour of NI in testData
...
After one of previous commits (my or Mikhail Zarechenskiy) that test
was broken and it's behaviour was not fixed. That test's behaviour
is strange (why at one case we have `UNREACHABLE_CODE` and haven't
at other) and needs further investigation
2019-02-07 12:12:34 +03:00
Dmitriy Novozhilov
b9c5b63d69
Fix #KT-28993
2019-02-07 12:12:34 +03:00
Dmitriy Novozhilov
c60bce88c2
Add test for #KT-28993
2019-02-07 12:12:34 +03:00
kirill.shmakov
4b1e5e8005
Resolve #KT-26865 and related issues
...
CLITool.exec is used in konanc to perform compilation of native project.
Due to some internal limitation, this function runs in separate process.
After this change, there will be a possibility to choose MessageRenderer
used in CLITool.exec via system property
org.jetbrains.kotlin.cliMessageRenderer.
Reviewed at KOTLIN-CR-2698.
2019-02-07 11:29:16 +03:00
Denis Zharkov
1a630773cf
Fix parent and containingFile for throws-reference list
...
Otherwise, exception is thrown during type inference
because default implementations effectively return null
^KT-29287 Fixed
2019-02-06 16:26:28 +03:00
Mikhail Glukhikh
f040eaff27
FIR expressions: perform some names refactoring
...
FirAccess -> FirQualifiedAccess
FirAccessExpression -> FirQualifiedExpression
FirPropertyAssignment -> FirVariableAssignment
Introduce lValue & rValue in FirAssignment
Introduce separate indexes in FirArraySetCall
2019-02-06 11:59:06 +03:00
Mikhail Glukhikh
8ea4500ab4
Add test for PSI consistency #KT-24080 Fixed
...
This test checks that we handled all PSI elements properly
2019-02-06 11:59:03 +03:00
Mikhail Glukhikh
5e6ccb4b10
FIR total kotlin test: calculate also KtExpression/Declaration number
2019-02-06 11:59:02 +03:00
Mikhail Glukhikh
8dce8c1549
Make correct traverse in both FIR consistency tests
2019-02-06 11:59:01 +03:00
Mikhail Glukhikh
db2fb86c8e
Raw FIR: implement expression trees & conversions from PSI
...
Testing: total kotlin test controls no stubs in FIR in non-stub-mode
#KT-29002 Fixed
2019-02-06 11:58:59 +03:00
Mikhail Glukhikh
aa97175d40
FIR generator: support type parameters with bounds for interfaces
...
This commits also reorders bridge visit functions
2019-02-06 11:58:58 +03:00
Georgy Bronnikov
ab1e334847
Reorganize phaser
2019-02-06 07:26:18 +03:00
Mikhael Bogdanov
b2606735c5
Properly capture local delegated properties in object constructor
...
#KT-23117 Fixed
2019-02-05 16:14:51 +01:00
Mikhael Bogdanov
9ab6062295
Properly capture extension receiver for array convention expressions in object constructor
...
#KT-19389 Fixed
2019-02-05 16:14:50 +01:00
Ilya Chernikov
3943bd1b15
Make toString for repl return function types nicer, drop obsolete isFunctionType
2019-02-05 16:13:06 +01:00
Ilya Chernikov
b7e1dd96b2
Supply proper classloader to the evaluator, add another test for function type
...
and some minor refactoring
2019-02-05 16:13:06 +01:00
Mads Ager
542d3c3532
JVM_IR: Fix stack underflow for unit coercion of when expressions.
...
Code such as
```
val b = getBoolean()
if (b) 4
else if (b) 5
```
didn't generate a value on the stack always and therefore would
have control-flow paths leading to a pop instruction with nothing
on the stack.
Change-Id: I09d059f361e56a41880006e3f4e51e9acdbd167d
2019-02-05 08:52:18 +01:00
Mark Punzalan
e91a16556c
JVM_IR: Do not add redundant field initializers.
...
Initializers are "set field" expressions and are considered redundant
when they are:
1. In the primary constructor; and
2. Set the field to `0`, `false`, or `null`; and
3. Have a `null` origin. I.e., not in an initializer block or
constructor body, and therefore the field could not have been set by a
prior expression.
2019-02-05 08:44:33 +01:00
Ilmir Usmanov
39de3c2ab1
Fix test data on JVM_IR BE
2019-02-01 21:45:44 +03:00
Ilmir Usmanov
20e4efaeab
Fix test data
2019-02-01 17:33:49 +03:00
Alexander Podkhalyuzin
495030ad9b
Back to png icons in Android Studio
...
It's not support 16px @2x.svg icons yet, we need to wait for AS 3.4
#KT-29533 Fixed
2019-02-01 16:41:21 +03:00
Alexander Udalov
8b286faa6a
Workaround issue with unsupported report-cdata-event in XMLInputFactory on IBM JDK
...
#KT-29596 Fixed
2019-02-01 14:27:43 +01:00
Dmitriy Novozhilov
0501a108c0
Fix tests in DiagnosticsTestWithStdLibGenerated with NI
2019-02-01 11:40:20 +03:00
Igor Chevdar
5b0d1bb6e4
Unmuted passing tests
2019-01-31 18:19:41 +03:00
Igor Chevdar
c257af31f4
Added test
2019-01-31 18:19:41 +03:00
Igor Chevdar
0ca28914a5
Minor changes in default arguments lowering
...
Calls to a function with default args can be not only
from function bodies, but for example from initializers
2019-01-31 18:19:40 +03:00
Igor Chevdar
9d84576021
Hack to help lowerings communisation in K/N
...
The hack breaks dependency LocalDeclarationsLowering —> CallableReferenceLowering
2019-01-31 18:19:40 +03:00
Igor Chevdar
07a576ec79
Supported enums in LocalDeclarationsLowering
2019-01-31 18:19:40 +03:00
Igor Chevdar
414899b482
Fixed copy/paste
2019-01-31 18:19:40 +03:00
Igor Chevdar
c765bd74d7
Made LateInitLowering the same in K/N as in other BEs
2019-01-31 18:19:39 +03:00
Alexander Udalov
db487a622a
Add -Xsanitize-parentheses to workaround ASM 6.1 issue in frame computation
...
#KT-29475 Fixed
2019-01-31 15:47:43 +01:00
Dmitriy Novozhilov
dfb379d999
Expand Effect System with receiver values (#KT-28672)
...
Add some classes to hierarchy of `ESValue`:
- `ESReceiver` -- representation of receiver
of lambda function
- `ESDataFlow` and `ESDataFlowReceiver` -- little refactoring of entities
that holds information for DFA (description in comments in code).
Also add kdoc to classes of `ESValue` hierarchy
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
932e0234e7
Add testdata for issue #KT-28672
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
ba71bbde6a
Extract InvocationKind class into separate file
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
44ae7a19e6
Reformat ContractSerializer.kt according to code style
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
b86ea7621c
Cleanup code in PseudocodeTraverser
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
0e8c43f8c0
Generify key type parameter of ControlFlowInfo
...
Previously only `VariableDescriptor` was key of `ControlFlowInfo`.
Now it's generic parameter `K: Any`, so there is a possibility of using
different object's inside CFA
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
efe891bb47
Remove duplicate of typealiases for javaslang collections
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
68d2cbf91f
Extract classes used in control flow analysis of variable into variable package
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
1dd7365e9f
Reformat some classes in org.jetbrains.kotlin.cfg according to code style
2019-01-31 17:25:13 +03:00
Dmitriy Novozhilov
fa79f7bf30
Reformat ControlFlowProcessor according to code style
2019-01-31 17:25:13 +03:00