Yan Zhulanow
9c8ea54946
Use KotlinJvmCheckerProvider to check @publicField
2015-07-07 16:35:24 +03:00
Yan Zhulanow
3bcdee2a20
publicField & field in companion object
2015-07-07 16:35:23 +03:00
Yan Zhulanow
74f44dddb0
Add tests for publicField
2015-07-07 16:35:23 +03:00
Yan Zhulanow
bffb24b075
Add publicField annotation
2015-07-07 16:35:22 +03:00
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
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
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
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
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
2c4db42319
Drop deprecated char binary operations.
2015-07-04 04:45:59 +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
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
Alexander Udalov
fa9dfd94b0
Minor, add ScriptContext#toString
2015-07-03 15:32:19 +03:00
Alexander Udalov
7dcb33fcf2
Minor, don't store type in receiver parameter
2015-07-03 15:32:19 +03:00
Alexander Udalov
cd61f6f96b
Minor, dump bytecode in REPL test on demand
2015-07-03 15:32:18 +03:00
Alexander Udalov
cd847b7cb9
Minor, make JavaMethod#getReturnType non-null
...
PsiMethod#getReturnType only returns null for constructors, and JavaMethod is
not created for constructors (JavaConstructor is)
2015-07-03 15:32:17 +03:00
Stanislav Erokhin
1e7b96aec0
replace ArrayList to SmartList
2015-07-02 16:32:46 +03:00
Stanislav Erokhin
2f68cc4c97
Created reset method.
2015-07-02 16:32:45 +03:00
Stanislav Erokhin
298a27951f
Use System.nanoTime() instead threadMxBean.getCurrentThreadUserTime()
2015-07-02 16:32:45 +03:00
Stanislav Erokhin
45a3d7ec46
Create performance counter with excluded counters
2015-07-02 16:32:45 +03:00
Stanislav Erokhin
d830729ddb
change creation of performance counters
2015-07-02 16:32:44 +03:00
Stanislav Erokhin
9974423e2b
Disable performance time counters by default
2015-07-02 16:32:44 +03:00
Mikhail Zarechenskiy
2fcb46bb13
Override all methods from based visitor class
2015-07-01 22:25:28 +03:00
Evgeny Gerashchenko
8e3dd54477
Minor. Converted class with class object to object.
2015-07-01 21:21:35 +03:00
Pavel V. Talanov
15a4782a0c
Move CompilationCanceledStatus and related utils to "util" module
...
It should not be in "frontend" since "jps bare plugin" artifact does not include "frontend" module
2015-07-01 21:21:35 +03:00
Pavel V. Talanov
9a9d70fd98
Decompiler: do not try to render function types with star projections prettily
2015-07-01 20:45:32 +03:00
Mikhail Glukhikh
bae9a7d7f8
Types are no more rendered for annotation arguments + a swarm of tests corrected accordingly
2015-07-01 16:12:32 +03:00
Mikhail Glukhikh
7c7a0fb4ea
trait to interface (StubInterfaces)
2015-06-30 19:46:33 +03:00
Mikhail Glukhikh
848c2afdb4
"is" over enum entry is now an error + new tests + test fixes
2015-06-30 19:46:30 +03:00
Mikhail Glukhikh
e1d3b296e9
Exhaustive when over enum may now use "is" instead of comparison + a pair of tests
2015-06-30 19:46:28 +03:00
Pavel V. Talanov
786cadb08b
Fix failing test in container test and add it to generators module test dependencies
...
This should enable running this test on build server
2015-06-30 17:06:22 +03:00
Pavel V. Talanov
b173f96505
Refactor: Remove ScopeProvider, introduce FileScopeProviderImpl
...
Rename NoFileScopeProvider -> FileScopeProvider.ThrowException, ScopeProvider.AdditionalScopeProvider -> FileScopeProvider.AdditionalScopes
2015-06-30 16:12:23 +03:00
Nikolay Krasko
8bea21a847
Introduce BodyResolveCache for storing resolve function body task in IDE
2015-06-30 13:54:42 +03:00
Nikolay Krasko
2dfed03b67
Refactoring: rename method addAllMyDataTo -> addOwnDataTo
2015-06-30 13:54:41 +03:00
Nikolay Krasko
09bb050c3f
Add addOwnDataTo() to BindingContext
2015-06-30 13:54:40 +03:00
Nikolay Krasko
980a0d19be
Refactoring: don't register scopes explicitly, get them from scope provider on demand
2015-06-30 13:54:38 +03:00
Nikolay Krasko
b81d8eb484
Refactoring: Don't depend on whole context if only DataFlowInfo is needed
2015-06-30 13:54:37 +03:00
Nikolay Krasko
fad883e55b
Minor: remove outdated commit
2015-06-30 13:54:36 +03:00
Valentin Kipyatkov
5b997c2c43
Moved method
2015-06-29 19:36:49 +03:00
Valentin Kipyatkov
de2378f909
Rewritten NameValidatorImpl to be both more efficient and more correct
2015-06-29 19:36:47 +03:00
Valentin Kipyatkov
786793744e
Added getEqualsToken for future use
2015-06-29 19:29:26 +03:00