Andrey Uskov
a9be8aac5a
Create Kotlin SDK on load or import project with JS/Common modules
...
#KT-22590 Fixed
2019-01-11 18:48:24 +03:00
Andrey Uskov
a9df9b22e9
Fix scope detection for MPP projects
...
#KT-27718 Fixed
#KT-28626 Fixed
2019-01-11 18:47:20 +03:00
Ilya Gorbunov
de1d15aa9a
Improve test coverage for contentEquals and minOf/maxOf
2019-01-11 17:41:52 +03:00
Pavel Punegov
dc8cb103c5
Replace class instantiation with object in JS tests
2019-01-11 17:38:58 +03:00
Pavel Punegov
1c4ecd287d
DefaultAsserter object. Add function to replace constructor invoke.
2019-01-11 17:38:58 +03:00
Pavel Punegov
ac0f612781
Make kotlin.test asserter be ThreadLocal
2019-01-11 17:38:58 +03:00
Pavel Punegov
4b3693bf37
Exclude native annotations in JS IR tests
2019-01-11 17:38:58 +03:00
Pavel Punegov
122ec85bf0
Add ThreadLocal and SharedImmutable native annotations as OptionalExpectation
...
to kotlin.native.concurrent
2019-01-11 17:38:58 +03:00
Mikhael Bogdanov
2bdf68ad67
Delete dead code on last optimization step, otherwise ASM will split exception table on it.
...
ASM has logic that splits exception tables in MethodWriter.computeAllFrames:
// Loop over all the basic blocks and visit the stack map frames that must be stored in the
// StackMapTable attribute. Also replace unreachable code with NOP* ATHROW, and remove it from
// exception handler ranges.
...
firstHandler = Handler.removeRange(firstHandler, basicBlock, nextBasicBlock);
...
https://gitlab.ow2.org/asm/asm/issues/317867
#KT-28546 Fixed
2019-01-11 15:27:52 +01:00
Mikhael Bogdanov
306a982722
Temporary disable line numbers generation for default values from expect declarations
...
Proper SMAP support for default values from expect declarations is required.
Default value in expect declaration could has line number that
exceed line count in actual file that causes an error
#KT-23739 Fixed
#KT-29174 Open
2019-01-11 15:27:51 +01:00
Roman Artemev
c725f4ce32
[JS IR BE] Secondary constructors lowering refactoring
...
* make it per-file
2019-01-11 16:13:26 +03:00
Mikhail Glukhikh
927b94a6e0
Regenerate FIR test
2019-01-11 15:14:14 +03:00
Mikhail Zarechenskiy
6361df28fe
Fix dependency for Gradle integration tests module
...
After d5ebe2e6
2019-01-11 14:47:11 +03:00
Sergey Rostov
75e59fdc46
JPS: exclude source roots from other targets
...
Previously `findJavaRootDescriptor` was return source root for random
module. This cause build errors for mpp (same file may appear in
multiple source roots of common and platform modules)
#KT-28988 Fixed
2019-01-11 12:53:11 +03:00
Dmitry Savvinov
8a0057b387
Introduce specific version of NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY for KT-28061
...
In 1.3.0 there was introduced KT-28061 bug, which caused some of the
NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY diagnostics to be lost (turning
"red" code into "green")
500dc11514 fixes the bug and returns
lost diagnostics back. This commit adds additional information for some
of the cases where diagnostics were list and then brought back (for the
user sanity).
The heuristic used for detecting cases which need additional information
is simple: if function has return in in-place called lambda, and
NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY should be reported, then we
enhance it with additional information.
^KT-28061 Fixed
2019-01-11 11:44:39 +03:00
Mikhail Glukhikh
4fd773a38b
IDEA plugin: remove "Show FIR action" and fir-view without fir.enabled
...
#KT-28813 Fixed
(it's planned to include FIR in artifacts after 1.3.30)
2019-01-11 09:55:40 +03:00
Mikhail Glukhikh
f0c9a3daa2
FIR: add default simple importing scope to support kotlin.ByteArray etc
2019-01-11 09:55:40 +03:00
Mikhail Glukhikh
6e369e156d
FIR: implements multi-module resolve, add tests #KT-24093 Fixed
...
This commit introduces FIR session provider, dependency provider,
library session + other infrastructure necessary for multi-module resolve
2019-01-11 09:55:40 +03:00
Mikhail Glukhikh
bc82f2f940
Use FirModuleBasedSession with module info, use platform default imports
...
In this commit, FIR sessions made bound to a particular module
2019-01-11 09:55:40 +03:00
Ilya Matveev
9ca07bc706
Fix linkTaskName getters of K/N compilations
2019-01-11 13:21:46 +07:00
Ilya Matveev
5eea0145b3
Support getting the default K/N test binary from a compilation
...
Fix for https://github.com/JetBrains/kotlin-native/issues/2487
2019-01-11 13:21:46 +07:00
Mikhail Zarechenskiy
d5ebe2e66a
Reorganize dependencies around kotlin-compiler.jar
...
#KT-26807 Fixed
2019-01-11 00:14:23 +03:00
Ilya Gorbunov
30c769c19a
Avoid hitting max argument limit in String(chars)
...
Rewrite CharArray to String conversions to appending chars one by one.
Refine parameter checking in String(chars, offset, length) to adhere to
the common exception contract and document it.
#KT-29003
2019-01-10 23:35:52 +03:00
Dmitry Petrov
b878626919
Intrinsify 'in' with unsigned ranges
2019-01-10 17:17:51 +03:00
Dmitry Petrov
e6e0e9976c
Tests for for-in optimization with unsigned ranges
2019-01-10 17:17:51 +03:00
Dmitry Petrov
a2c618366b
Tests for loops with possible index variable overflow
2019-01-10 17:17:51 +03:00
Dmitry Petrov
54cba32426
Support unsigned range and progression values in range intrinsics
2019-01-10 17:17:51 +03:00
Dmitry Petrov
68e2d8dcd9
Support unsigned integers in intrinsic range values
2019-01-10 17:17:51 +03:00
Dmitry Petrov
d22a31cb90
Use elementKotlinType in primitive number range intrinsics
2019-01-10 17:17:51 +03:00
Dmitry Petrov
5ae8df4d88
Use ComparisonGenerator for range element type in counter loops
2019-01-10 17:17:51 +03:00
Dmitry Petrov
4e48ce02f1
Minor: move RangeCodegenUtil to range package
2019-01-10 17:17:51 +03:00
Dmitry Petrov
fc94254320
Minor: refactor getRangeOrProgressionElementType + reformat
2019-01-10 17:17:51 +03:00
Dmitry Petrov
6414abb277
Minor: reformat & optimize imports
2019-01-10 17:17:51 +03:00
Igor Chevdar
e640f01b4e
Fixed bug with IR parameter copying.
...
Constructors don't have their own type parameters
but rather inherit them from the parent.
2019-01-10 14:35:11 +03:00
Igor Chevdar
1bef26c80e
[JS IR] Fixed bug with constructors type parameters
2019-01-10 14:35:11 +03:00
Igor Chevdar
5afa44edea
Added a coroutine test
2019-01-10 14:35:11 +03:00
Igor Chevdar
1eaf2d2c42
Typo fix
2019-01-10 14:35:11 +03:00
Igor Chevdar
2c0f93b133
IR: Supported special coroutine intrinsic
...
See https://youtrack.jetbrains.com/issue/KT-26317 for details
2019-01-10 14:35:11 +03:00
Igor Chevdar
621a9bd1df
Removed a Native specific lowering
2019-01-10 14:35:10 +03:00
Igor Chevdar
9fee03ca81
IR: Fixed some parents
2019-01-10 14:35:10 +03:00
Igor Chevdar
a78b80f8bf
IR fixes to help symbolization of K/N
2019-01-10 14:35:10 +03:00
Roman Artemev
d363763420
Fix wrapped descriptors
2019-01-10 14:35:10 +03:00
Denis Zharkov
2b40ecfd29
Fix exception in ultra-light classes in case of complex mpp hierarchy
...
Without the introduced override, default implementation of isEquivalentTo
runs delegate computation of `another` that is illegal
for KtUltraLightClass
^KT-28912 Fixed
2019-01-10 14:11:20 +03:00
denisgaebler
be881442da
One more fix for MinGW path in K/N runner
2019-01-10 17:29:34 +07:00
Ilya Chernikov
02f2c941c8
Add import support to main-kts, with test
2019-01-10 10:59:32 +01:00
Ilya Chernikov
4571e273a4
Add shared script instances support, fix and refactor evaluation accordingly
...
also fix arguments order in the evaluator
2019-01-10 10:59:32 +01:00
Ilya Chernikov
7bb4233e17
Add mapping function for transformations with ResultsWithDiagnostics
...
also improve chaining helpers
2019-01-10 10:59:32 +01:00
Ilya Chernikov
01f2a21192
[minor] add comment to the "Fix locking in script definition provider" commit
2019-01-10 10:59:32 +01:00
Ilya Chernikov
e5febddaf7
[minor] fix scripting test on windows
2019-01-10 10:59:32 +01:00
denisgaebler
1ca2e4fdba
Update JavaSdkUtil.java
...
Added path for IBM JDK on platform z/OS
2019-01-10 12:46:05 +03:00