Ilya Gorbunov
456bab40d1
Ensure value of correct return type is on stack after intrinsic Char +/- Int and Char - Char binary operations.
2015-07-06 17:57:33 +03:00
Ilya Gorbunov
222d4002ac
Add char binary operations to JVM codegen tests.
2015-07-06 17:57:25 +03:00
Valentin Kipyatkov
26f72d0935
MInor corrections after code review
2015-07-06 16:48:51 +03:00
Valentin Kipyatkov
c75a18291c
KT-7918 J2K: don't generate jvmOverloads on private declarations
...
#KT-7918 Fixed
2015-07-06 16:48:51 +03:00
Valentin Kipyatkov
2999aaf974
KT-8034 J2K: save file before performing the conversion
...
#KT-8034 Fixed
2015-07-06 16:48:51 +03:00
Valentin Kipyatkov
4c80db9249
KT-8110 J2K: Don't convert "==" to "===" for enum classes
...
#KT-8110 Fixed
2015-07-06 16:48:51 +03:00
Valentin Kipyatkov
767e21db76
J2K - no '@' required for primary constructor annnotations
2015-07-06 16:48:51 +03:00
Valentin Kipyatkov
8e3c793760
Used named arguments for clarity
2015-07-06 16:48:50 +03:00
Valentin Kipyatkov
67cf180aba
Code clarification
2015-07-06 16:48:50 +03:00
Valentin Kipyatkov
d3402280c5
Extracted methods
2015-07-06 16:48:50 +03:00
Valentin Kipyatkov
e9b4045eac
Fixed test data
2015-07-06 16:48:50 +03:00
Valentin Kipyatkov
40fe680acf
J2K: preserving line breaks between arguments
2015-07-06 16:48:50 +03:00
Valentin Kipyatkov
fefb828fae
J2K: preserving line breaks between parameters
2015-07-06 16:48:50 +03:00
Valentin Kipyatkov
1e988028a9
Optimization
2015-07-06 16:48:49 +03:00
Valentin Kipyatkov
403549b924
Renames
2015-07-06 16:48:49 +03:00
Valentin Kipyatkov
6679a6912e
Memory optimizations + more clear code
2015-07-06 16:48:49 +03:00
Valentin Kipyatkov
fdff2c7153
J2K: preserving line breaks between enum members from original code
2015-07-06 16:48:49 +03:00
Alexander Udalov
f9afb4f95b
Make CLASS default class kind in binary metadata
...
Don't write the kind to the class file if it's CLASS to save some bytes
2015-07-06 16:19:57 +03:00
Alexander Udalov
b0e963bf34
Binary metadata: make repeated int fields packed
...
To save some bytes for enums and classes with many nested classes
2015-07-06 16:19:55 +03:00
Alexander Udalov
5e011b92ef
Add source roots to modules 'builtins' and 'runtime.jvm'
...
This is done to be able to write code in the module 'reflection.jvm' in the IDE
without lots of unresolved errors and such
2015-07-06 16:19:55 +03:00
Alexander Udalov
feb4dd7b8f
Drop 'OBJECT$' field deprecated in M11
2015-07-06 16:19:54 +03:00
Alexander Udalov
0bad4e0137
Make KotlinJvmCheckerProvider non-singleton, pass module to it
2015-07-06 16:19:53 +03:00
Alexander Udalov
ac0db5ce80
Fix incorrect TypeCastException message when casting null
...
#KT-5121 Fixed
2015-07-06 16:14:22 +03:00
Alexander Udalov
cb03f0df5a
Fix casts of Unit value to other types
2015-07-06 16:14:06 +03:00
Alexander Udalov
62c22bf0ec
Minor, simplify ExpressionCodegen#binaryWithTypeRHS
2015-07-06 16:06:15 +03:00
Ilya Gorbunov
80074c71fa
Minor: Correct typo in 'intrinsic'
2015-07-04 04:47:12 +03:00
Ilya Gorbunov
1605027b19
Change return type of Char plus Int and Char minus Int binary operations.
...
JS: Remove unnecessary intrinsic binary operation patterns, adjust intrinsics for binary operations with char.
2015-07-04 04:47:00 +03:00
Ilya Gorbunov
39b27751df
Drop deprecated char operations: correct test data.
2015-07-04 04:46:23 +03:00
Ilya Gorbunov
e8aff3360a
Do not use deprecated operations in ranges and progressions hashCode.
2015-07-04 04:46:11 +03:00
Ilya Gorbunov
2c4db42319
Drop deprecated char binary operations.
2015-07-04 04:45:59 +03:00
Ilya Gorbunov
005a0a1eb6
Eliminate deprecated char operation usages in stdlib
2015-07-04 04:45:47 +03:00
Nikolay Krasko
ff9c251438
Filter out overridden candidates before looking for most specific
...
This filtering will remove signature duplicates that prevent findMaximallySpecific() from finding best candidate.
2015-07-03 20:59:48 +03:00
Evgeny Gerashchenko
01b83b3e3e
Minor. Fixed test data.
2015-07-03 19:48:01 +04:00
Alexey Sedunov
5319e9e761
Change Signature: Support configurable Change Signature for Java code
...
#KT-5923 Fixed
2015-07-03 18:38:06 +03:00
Alexey Sedunov
9e82411e78
Change Signature: Do not process calls with unmatched arguments/parameters
2015-07-03 18:38:05 +03:00
Alexey Sedunov
4cc2a57aed
Minor: Pull up original property
2015-07-03 18:38:04 +03:00
Alexey Sedunov
e9b2732aa9
Minor: Drop unused class
2015-07-03 18:38:03 +03:00
Alexey Sedunov
161539f3da
Change Signature: val/var parameter support
2015-07-03 18:38:02 +03:00
Alexey Sedunov
2ff63d37c2
Change Signature: Property support
...
#KT-6599 Fixed
2015-07-03 18:38:01 +03:00
Alexey Sedunov
c96349f42b
Change Signature: Filter out OverriderUsageInfo(s) corresponding to Kotlin
...
declarations
2015-07-03 18:37:59 +03:00
Alexey Sedunov
c66a4d53fd
Introduce Variable: Use name entered in template as a variable name
...
#KT-8358 Fixed
2015-07-03 18:37:58 +03:00
Pavel V. Talanov
e135b6ae96
Recompute KotlinResolveCache for synthetic files on project structure modification
...
Since computed KotlinResolveCache depends on corresponding synthetic files location (namely, moduleFilter), it should be recomputed in this case
The STR for this issue provided by Alexander Udalov:
1. Open a library source, wait for it to be analyzed. In this case library sources are files in the project under core/builtins/src/.
2. Go to project settings and remove the source from the library.
3. Exception now on each file change, out of block doesn't seem to help.
2015-07-03 16:50:51 +03:00
Ilya Gorbunov
f7436064d0
Unify componentN templates and add NOTHING_TO_INLINE suppression.
2015-07-03 16:38:10 +03:00
Ilya Gorbunov
9618a3542f
Provide getOrElse and getOrNull methods for indexed collections.
...
Breaking: elementAtOrElse is no longer inlined for Iterables and Sequences.
#KT-6952
2015-07-03 16:38:08 +03:00
Michael Nedzelsky
8cd978bfd8
add tests for KT-8158 make Kotlin compiler invoked from IDEA cancellable
2015-07-03 16:14:08 +03:00
Michael Nedzelsky
ea0c14d7ad
KotlinJpsBuildTest.kt: minor refactoring after converting
2015-07-03 16:14:04 +03:00
Michael Nedzelsky
13bda2de44
convert KotlinJpsBuildTest to Kotlin: step 1: rename
2015-07-03 16:14:01 +03:00
Michael Nedzelsky
e09411f45f
convert KotlinJpsBuildTest to Kotlin: step 1: convert body
2015-07-03 16:13:58 +03:00
Evgeny Gerashchenko
aa65eb1055
More proper fix for KT-8137/EA-69470: avoiding failed assertion when searching usages of parameter of local class constructor
...
KT-8137 AE at JetSourceNavigationHelper.convertNamedClassOrObject() on function local class with several constructor parameters
#KT-8137 fixed
#EA-69470 fixed
2015-07-03 16:00:06 +03:00
Alexander Udalov
48a8f53551
Fix ClassCastException in SamAdapterOverridabilityCondition
...
This was happening on the upcoming hierarchy of property getters and setters in
kotlin.reflect. No test added because it's not so easy to come up with a small
example, and because the fix itself is rather trivial
2015-07-03 15:32:20 +03:00