Igor Yakovlev
48136d64cf
KtUltraLightMethod now use null for MemberIndex
2019-05-13 11:21:12 +03:00
Igor Yakovlev
b485819a30
Move refactorings, fix annotations and fix cls-delegate tests
2019-05-13 11:21:11 +03:00
Igor Yakovlev
8e103b6559
Fix origin for TypeParameter + refactoring
2019-05-13 11:21:11 +03:00
Igor Yakovlev
f20ba9ddc2
Fix rename refactoring for UltraLightParameters
2019-05-13 11:21:11 +03:00
Igor Yakovlev
33126b273c
Update StubTracker test data for completion tests
2019-05-13 11:21:11 +03:00
Igor Yakovlev
ab9e8c2d3a
Add @get/@set JvmName support for properties
2019-05-13 11:21:11 +03:00
Denis Zharkov
1b5f72bd59
Enable ultra-light classes by default
...
^KT-29267 Fixed
2019-05-13 11:21:11 +03:00
Mads Ager
e8fbd42f7c
JVM_IR: Support access flag jvm annotations on fields and methods.
2019-05-13 08:34:52 +02:00
Jiaxiang Chen
0020e953e1
Change order of line number geneartion for function call, and also force
...
line number generation after visiting inline functions.
2019-05-11 13:38:24 +02:00
max-kammerer
eeb1c0a0fc
Merge pull request #2321 from neetopia/irLineNumberTestFix
...
Fix compareCustom function in IrLineNumberTest class, to exclude comment
2019-05-10 11:40:19 +02:00
Mikhael Bogdanov
021e94dced
Fix maven test on parallel execution: don't miss to create dir
2019-05-10 11:37:18 +02:00
Steven Schäfer
570ee38256
Implement special cases for the hashCode intrinsic in JVM_IR
2019-05-10 09:40:57 +02:00
Ting-Yuan Huang
1c3b895fc0
Generate accessors for super calls if necessary
...
Current implementation of calls with super qualifier relies on
invokespecial, which has some more constraints than regular virtual
invocations. When those constraints aren't met, accessors are needed.
2019-05-10 08:57:37 +02:00
Mikhael Bogdanov
c90e6c1f18
Delete test temp root folders after test execution
...
Don't waste space on TeamCity
2019-05-10 08:12:03 +02:00
Mads Ager
99e7ae6b3f
Fix typo in expectation files for command line tests.
...
The expectations contained ';' instead of ':' which makes two
CLI tests fail.
2019-05-09 16:57:29 +02:00
Mikhael Bogdanov
054febe57f
Update bootstrap
2019-05-09 11:56:09 +02:00
pyos
4d9661890a
Test reification of type parameters into Array(size, init)
...
(cherry picked from commit 6daa61ef5f )
2019-05-09 11:54:43 +02:00
pyos
3171129c3c
JS_IR: remove traces of @kotlin.native.internal.InlineConstructor
...
This is a hack used by Kotlin/Native purely to implement Array
constructors. Since there's a lowering that does that, and inline
constructors are not part of the language (although they theoretically
could be), the code is redundant.
(cherry picked from commit a74fae246b )
2019-05-09 11:54:35 +02:00
pyos
08da078842
JVM_IR: implement IrReturnableBlock codegen
...
(cherry picked from commit 530ad368fe )
2019-05-09 11:54:26 +02:00
pyos
683f8417d3
Add a common JVM/JS lowering for Array(size, function)
...
and remove the hack from JVM_IR codegen that replaces this call with
hardcoded inline function bytecode.
(cherry picked from commit 4a29e3cfcf )
2019-05-09 11:54:18 +02:00
max-kammerer
e74e0ea013
Revert "Add a common JVM/JS lowering for Array(size, function)"
...
This reverts commit 4a29e3cfcf .
2019-05-09 11:49:34 +02:00
max-kammerer
856a1649c6
Revert "JVM_IR: implement IrReturnableBlock codegen"
...
This reverts commit 530ad368fe .
2019-05-09 11:49:34 +02:00
max-kammerer
05d352769b
Revert "JS_IR: remove traces of @kotlin.native.internal.InlineConstructor"
...
This reverts commit a74fae246b .
2019-05-09 11:49:34 +02:00
max-kammerer
8560459dc6
Revert "Test reification of type parameters into Array(size, init)"
...
This reverts commit 6daa61ef5f .
2019-05-09 11:49:34 +02:00
pyos
6daa61ef5f
Test reification of type parameters into Array(size, init)
2019-05-09 08:03:18 +02:00
pyos
a74fae246b
JS_IR: remove traces of @kotlin.native.internal.InlineConstructor
...
This is a hack used by Kotlin/Native purely to implement Array
constructors. Since there's a lowering that does that, and inline
constructors are not part of the language (although they theoretically
could be), the code is redundant.
2019-05-09 08:03:18 +02:00
pyos
530ad368fe
JVM_IR: implement IrReturnableBlock codegen
2019-05-09 08:03:18 +02:00
pyos
4a29e3cfcf
Add a common JVM/JS lowering for Array(size, function)
...
and remove the hack from JVM_IR codegen that replaces this call with
hardcoded inline function bytecode.
2019-05-09 08:03:18 +02:00
Svyatoslav Kuzmich
f4bb1354c9
[JS IR BE] Support friend modules
2019-05-08 23:34:00 +03:00
Jiaxiang Chen
2c5ebf3ab2
Fix compareCustom function in IrLineNumberTest class, to exclude comment
...
lines that are not related for line number verification.
Unmute a test case should have been unmuted but shadowed by this bug.
2019-05-08 12:53:45 -07:00
Nikolay Krasko
ad02700200
Update to bootstrap 1.3.50-dev-2
...
Fix Compiler and all IDE plugins configuration struggling to build
stdlib because of circular dependency.
See 1.3.50-dev-2 build in https://teamcity.jetbrains.com/app/buildConfiguration/Kotlin_dev_CompilerAllPlugins?branch=%3Cdefault%3E&buildTypeTab=builds
2019-05-08 20:01:01 +03:00
Dmitriy Dolovov
ca9bff010b
Fix: Make "cidrPluginsEnabled" Gradle parameter checks consistent
...
Also add logging.
2019-05-08 17:16:40 +03:00
Natalia Selezneva
e158875a14
Fix NPE in SLRUMap in ScriptDefinitionsManager
...
EA-138364 - NPE: LinkedHashMap$Entry.access$
2019-05-08 15:17:13 +03:00
Natalia Selezneva
2a2fe6b428
Do not provide 'add dependency' quick fix for unresolved references for non-project files
...
EA-126105 - NPE: JavaFileManagerImpl$LibSrcExcludingScope.<init> (KotlinAddOrderEntryActionFactory)
2019-05-08 15:17:12 +03:00
Natalia Selezneva
ba7d66eb4b
Fix 'Invalid file' Exception during script definition search (EA-125840)
...
EA-125840 - assert: FileManagerImpl.findFile
2019-05-08 15:17:12 +03:00
Natalia Selezneva
836006b3f3
Do not use canonical paths in OutsidersPsiFileSupportUtils (EA-135551)
...
EA-135551 - IOE: OutsidersPsiFileSupportUtils$getOutsiderFileOrigin$.invoke
2019-05-08 15:17:11 +03:00
Natalia Selezneva
98235952ad
Fix notification about highlighting for diff view in build.gradle.kts (KT-30638)
...
^KT-30638 Fixed
2019-05-08 15:17:11 +03:00
Natalia Selezneva
495d98f997
Fix highlighting for scripts in diff view (KT-30690)
...
^KT-30690 Fixed
2019-05-08 15:17:10 +03:00
Natalia Selezneva
88c6ecbbdf
Minor: extract common parts
2019-05-08 15:17:09 +03:00
Natalia Selezneva
89bf7f991a
Run indexes update after typing in script if needed
2019-05-08 15:17:09 +03:00
Natalia Selezneva
9e51f82248
Refactoring: add isApplicable method to ScriptDependenciesLoader
2019-05-08 15:17:08 +03:00
Natalia Selezneva
e990c61b55
Do not start script dependencies update if dependencies are already cached
2019-05-08 15:17:07 +03:00
Mikhail Zarechenskiy
516fccbe7b
[NI] Complete call if return type contains only "good" type variables
2019-05-08 12:19:52 +03:00
Mikhail Zarechenskiy
61bd3a8d03
[NI] Complete call if return type has proper lower or equal constraints
...
There was a silly bug: equal constraint is actually a lower and an upper
constraint, but we checked only presence of lower constraints.
Test is important as here we have one equal constraint and should
complete inner call `foo<Int>()` without propagating it to `bar` to
avoid using `NoInfer` annotation multiple times
2019-05-08 12:19:50 +03:00
Mikhail Zarechenskiy
6c9394f0b2
[NI] Use original implicit receiver for DSL violation check
...
There is an inconsistency between old and new inference for storing
receivers of resolved calls. In new inference, for captured types,
receiver will be changed and to preserve behavior of the old inference,
we use original one during important checks.
This is more a workaround than a solution and should be revisited.
#KT-31356 Fixed
#KT-29948 Fixed
#KT-31360 Fixed
2019-05-08 12:19:48 +03:00
Mikhail Zarechenskiy
c283e15425
[NI] Preserve annotations during type substitution
...
#KT-31346 Fixed
2019-05-08 11:26:20 +03:00
Ilya Gorbunov
2c26dc3af6
Add simplified overloads of String<->ByteArray/CharArray conversions
...
These overloads cover the most common cases of conversion of the entire
String or Byte/CharArray, avoiding extra index check and branching.
#KT-24810, KT-29265
2019-05-08 02:58:57 +03:00
Svyatoslav Kuzmich
f9c12db3b5
[JS IR] Unmute tests
2019-05-07 21:49:12 +03:00
Svyatoslav Kuzmich
e3bcabeae3
[JS IR] stdlib: Fix bugs in Long.toString(radix)
2019-05-07 21:49:12 +03:00
Svyatoslav Kuzmich
bc29a5b15c
[JS IR] stdlib: port methods that use bit representation of numbers
...
- Port part of 'misc.js' from current backend to 'bitUtils.kt' in IR backend
- Enable toBits, toRawBits, fromBits extension function on Double and Float
- Enable Double.withSign
- Refactor getNumberHashCode using new utils
2019-05-07 21:49:12 +03:00