Dmitry Petrov
4e42cc6b81
Save/restore stack in try-expressions (and statements).
...
Parse TryCatchBlockNode's in generated bytecode, infer stack save/restore points.
Save stack to local variables before 'try'.
Restore stack after the beginning of try-block, catch-block, and default handler.
Integrate before/after inline markers rewriting (otherwise it'll break our stacks).
#KT-3309 Fixed
2015-07-07 12:16:29 +03:00
Nikolay Krasko
534154e20d
Replace trait to interface icons
...
#KT-8319 Fixed
2015-07-06 21:06:13 +03:00
Nikolay Krasko
2cde746047
Usage highlighting test
2015-07-06 21:06:12 +03:00
Nikolay Krasko
68384a9b4a
Avoid looking for light methods if only Kotlin search needed
2015-07-06 21:06:11 +03:00
Ilya Gorbunov
f440d97e04
Remove unnecessary Char.toChar from tests.
2015-07-06 17:57:35 +03:00
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