Svyatoslav Kuzmich
1b8df45bfe
[JS IR] Support generating both IR and pre-IR libraries
...
Remove all previous -Xir options
Add:
-Xir-produce-klib-dir
-Xir-produce-klib-file
-Xir-produce-js
-Xir-only
2019-11-01 19:42:05 +03:00
victor.petukhov
62d204f4d6
Support trailing comma
...
^KT-34743 Fixed
2019-11-01 19:40:20 +03:00
Ilmir Usmanov
8c079706a5
Add tests for case when result of tail-call suspend function returning
...
Unit is not Unit.
#KT-34703 Fixed
2019-11-01 17:48:06 +03:00
Dmitry Petrov
1e63101a27
FIR2IR: fix testData after rebase
2019-11-01 14:55:12 +03:00
Dmitry Petrov
6cde86139c
IR: isFakeOverride: fix testData after rebase
2019-11-01 14:55:11 +03:00
Dmitry Petrov
edaa42ea46
IR: IrField.isFakeOverride
2019-11-01 14:55:10 +03:00
Dmitry Petrov
82c527c2cc
IR: IrProperty.isFakeOverride
2019-11-01 14:55:10 +03:00
Dmitry Petrov
2682057767
IR tests: update testData for IrSimpleFunction.isFakeOverride
2019-11-01 14:55:09 +03:00
Dmitry Petrov
843fb88459
IR: IrSimpleFunction.isFakeOverride
2019-11-01 14:55:09 +03:00
Dmitriy Novozhilov
073578bf1c
[FIR] Fix Fir2Ir testdata broken in a501e514
2019-11-01 11:07:16 +03:00
Roman Artemev
78b29349c9
Fix lateinit isInitialized check in multi-file case
2019-10-31 14:45:15 +03:00
Mikhail Zarechenskiy
b30a9e1d3e
[NI] Remove capturing from supertypes during computation of CST
2019-10-31 11:32:05 +03:00
Mikhail Zarechenskiy
e0fb586aaf
[NI] Don't loose diagnostic after type variable fixation
...
#KT-24488 Fixed
2019-10-31 11:32:02 +03:00
Mikhail Zarechenskiy
ca8da22569
[NI] Improve CST algorithm to handle non-fixed variables
...
#KT-32456 Fixed
#KT-32423 Fixed
#KT-32818 Fixed
#KT-33197 Fixed
2019-10-31 11:32:00 +03:00
Dmitry Petrov
2ff36c808e
Minor: mute testEa35963 in WASM
2019-10-31 11:13:45 +03:00
Dmitry Petrov
8b2fdca706
FIR2IR: fix testData
2019-10-31 11:13:45 +03:00
Steven Schäfer
b1b70e503c
JVM IR: Improve codegen for try/catch statements
2019-10-31 11:13:44 +03:00
Steven Schäfer
af74fd047a
psi2ir: Consistently use type unit for statements
...
These changes allow us to accurately distinguish between statements and
expressions in the IR.
This also fixes the types of non-exhaustive conditional statements.
2019-10-31 11:13:44 +03:00
Steven Schäfer
0da4b06074
psi2ir: Fix return insertion
...
We should only insert a return statement at the end of a lambda or
function if the final statement is used as an expression (slice
USED_AS_RESULT_OF_LAMBDA and USED_AS_EXPRESSION).
2019-10-31 11:13:44 +03:00
pyos
a835f07d51
JVM_IR: don't regenerate objects in lambdas inlined into objects
2019-10-31 09:09:54 +01:00
Kristoffer Andersen
1074a0ef69
JVM_IR: Fix Inline CallableReferences with Varargs
...
- Added tests to demonstrate broken behaviour: the interaction of inline
functions and callable references with varargs and defaults in various
combinations.
- Refactored InlineCallableReferencesToLambdaPhase to look like and use
some of the infrastructure from CallableReferenceLowering.
- Lifted some of this infrastructure out to be broadly reusable.
2019-10-31 08:15:22 +01:00
Dmitriy Novozhilov
36ad065792
[FIR] Fix testdata broken after d2b895d8
2019-10-30 18:49:07 +03:00
Jiaxiang Chen
6454cfad87
add local variable test. This test runs box() method and checks local variable types and names avaiable at every step.
2019-10-30 14:13:12 +03:00
Mads Ager
1713625718
JVM: Improve line number handling for suspend calls.
...
Take branching and method calls into account when finding the line
number of the continuation. If there is no line number before
branching instructions or method calls, the following code is
still on the line of the suspend call itself.
This fixes a couple of issues with incorrect line numbers for
multiple throws on the same line or multipe suspend calls on
the same line.
In addition, it avoids the need to spam the method node with
repeated line number instructions in the IR backend.
2019-10-30 13:40:21 +03:00
Mikhail Glukhikh
d4af35d794
FIR: add substitution for Java fields
2019-10-30 12:55:37 +03:00
Georgy Bronnikov
cd78e6ec50
JVM_IR: handle property references in SAM conversions
2019-10-29 18:38:59 +03:00
Alexander Udalov
59959c52ad
Don't report missing reflection diagnostic for KType/KTypeProjection/KVariance
2019-10-29 15:52:01 +01:00
Alexander Udalov
896512f7cd
Support KClass.isInstance/cast/safeCast in stdlib-only reflection implementation
...
#KT-14720 Fixed
2019-10-29 15:52:00 +01:00
Alexander Udalov
5c89f2fa54
Support KClass.qualifiedName in stdlib-only reflection implementation
...
#KT-34586 Fixed
2019-10-29 15:51:25 +01:00
Alexander Udalov
c164745301
Support KClass.simpleName in stdlib-only reflection implementation
...
#KT-33646 Fixed
2019-10-29 15:51:21 +01:00
Mikhail Glukhikh
384134a069
FIR2IR: fix handling constructors & their symbols (related also to local classes)
2019-10-29 16:27:41 +03:00
Mikhail Glukhikh
7dee1cd9d2
Build member scope for FirAnonymousObject correctly
2019-10-29 16:27:41 +03:00
Mikhail Glukhikh
a13ae08b52
FIR: add classifiers to local scopes, process local class symbols correctly
2019-10-29 16:27:40 +03:00
Alexander Udalov
df4ab4ed81
Add JVM bytecode target version 13
...
#KT-34119 Fixed
2019-10-29 12:54:24 +01:00
Alexander Udalov
8e4c7ad65d
Merge pull request #2727 from pyos/fix-synthetic-accessors-v101
...
JVM_IR: add accessors for protected members in divergent hierarchies
2019-10-29 11:10:58 +01:00
Dmitriy Novozhilov
3658bee253
[FIR] Fix testdata related to callable references
2019-10-29 13:03:13 +03:00
Dmitriy Novozhilov
b93357be48
[FIR] Support assignment operators
2019-10-29 13:03:13 +03:00
Mikhael Bogdanov
63b115abb6
Workaround for KT-34656: temporary disable assertion
2019-10-29 09:48:49 +01:00
Mark Punzalan
de333c18fc
JVM_IR: Enable loopVarInterval and forInReversedCollectionIndices
...
bytecode text tests.
2019-10-29 07:43:37 +01:00
Mark Punzalan
b4d2eae12d
Add test data generator for stepped progression box tests.
2019-10-28 15:26:38 +01:00
Mark Punzalan
1738c2d4f6
Invoke GenerateInRangeExpressionTestData and
...
GeneratePrimitiveVsObjectEqualityTestData during
:compiler:generateTests.
2019-10-28 15:26:38 +01:00
Mark Punzalan
9bb9ab67a7
Add bytecode text tests for ForLoopsLowering.
2019-10-28 15:26:38 +01:00
Mark Punzalan
277cb39e3b
Add new tests for step progressions and fix existing tests.
2019-10-28 15:26:38 +01:00
Denis Zharkov
ea43d2880c
FIR: Update FIR2IR test data changed because of callable references
...
^KT-32725 Fixed
2019-10-28 17:07:26 +03:00
Igor Chevdar
f413da3e58
Turned off test for native
...
It fixes current JVM BE behavior but seems like this should've been a FE error.
2019-10-28 12:38:19 +03:00
Georgy Bronnikov
b63f9176a3
JVM_IR: repair overriddenSymbols in InterfaceDelegationLowering
...
When creating delegation redirectors for default implementations of
interface functions, `overriddenSymbols` should be repaired across the
whole module, not just a particular file.
2019-10-28 12:12:32 +03:00
Mads Ager
88dd8f663c
JVM_IR: Do not generate null checks for suspend function views.
...
The arguments are null whenever the suspend function is resumed
and takes its state from the continuation parameter.
2019-10-27 07:37:15 +03:00
Alexander Udalov
dac0fc7397
Remove obsolete assertion in ExpressionCodegen
...
With the mangling added in 488418d960 , there's no longer any risk in
writing "special" function name ("<anonymous>" in this case) to the
local variable table.
#KT-34356 Fixed
2019-10-25 19:31:20 +02:00
Alexander Udalov
f248e4a2ee
Update CLI test data and Gradle option descriptions
2019-10-25 19:26:20 +02:00
Pavel Kirpichenkov
87b88a738e
[Minor] Update test data for NI
2019-10-25 19:37:06 +03:00