Commit Graph

10007 Commits

Author SHA1 Message Date
Svetlana Isakova 6e26e37c43 complete analysis for call expressions inside nested qualified expressions
todo: other expressions
2013-03-19 16:47:22 +04:00
Svetlana Isakova cbbac2f2ef cache resolution data by callKey instead of expression 2013-03-19 16:47:22 +04:00
Svetlana Isakova 0bc647044c added 'INVOKE' CallType 2013-03-19 16:47:22 +04:00
Svetlana Isakova 0bf5899bf5 refactoring: do not create extra anonymous class
for CallForImplicitInvoke case
2013-03-19 16:47:22 +04:00
Svetlana Isakova 2350035f35 cache deferred computation for call in 'cacheResults'
(not separately)
2013-03-19 16:47:22 +04:00
Svetlana Isakova 180149b1c1 added ResolutionResultsCache
all resolution results are written to it instead of trace
2013-03-19 16:47:22 +04:00
Svetlana Isakova 1b1ee18f97 KT-3395 mapOf function can't be used as literal
#KT-3395 Fixed
2013-03-19 16:47:22 +04:00
Zalim Bashorov 7143393172 Added support bitwise operations in js translator 2013-03-19 16:31:02 +04:00
Zalim Bashorov 9c2d5a8ddb Fixed translating primitive arrays to js. 2013-03-19 16:31:02 +04:00
Andrey Breslav 7fadf40ad8 Restore forceResolve to false to prevent other tests from failing 2013-03-19 15:16:30 +04:00
Andrey Breslav abc03f7a19 Source files copied under project: to make "get all project files" work 2013-03-19 15:16:30 +04:00
Andrey Breslav db947f5497 Use a SLRUCache to reduce memory consumption 2013-03-19 15:16:30 +04:00
Andrey Breslav 784e501f7b Use KotlinCacheManager to analyze all headers only once 2013-03-19 15:16:30 +04:00
Andrey Breslav 48cd960eee Use CachedValuesManager.getCachedValue() 2013-03-19 15:16:29 +04:00
Natalia.Ukhorskaya 7702274633 Optimize imports when insert new import (optimize imports on the fly should be turned on)
#KT-3403 Fixed
2013-03-19 14:56:31 +04:00
Natalia.Ukhorskaya 31d3d2bb3a Rename method 2013-03-19 14:56:30 +04:00
Natalia.Ukhorskaya abed8b59cb Temporary disable imports sorting 2013-03-19 14:56:29 +04:00
Leonid Shalupov b936b56235 fix maven build 2013-03-18 23:22:41 +04:00
Leonid Shalupov d9ed2a3794 gradle: delete annotations directory: replace exception by warning 2013-03-18 19:19:56 +04:00
Leonid Shalupov 05285c8272 fix NPE with logger, delete extracted annotations 2013-03-18 19:19:55 +04:00
Andrey Breslav 01203f6be3 Fixes after review 2013-03-18 19:19:55 +04:00
Leonid Shalupov 25decd1c7a gradle-api deploy helpers 2013-03-18 19:19:55 +04:00
Nikita Skvortsov c67b4e4627 prepare pull request 2013-03-18 19:19:54 +04:00
Nikita Skvortsov 4b19adf4fd initial stubs 2013-03-18 19:19:54 +04:00
Alexander Udalov 7cc1ed5cb1 Add regression test for KT-3413 2013-03-18 14:52:29 +04:00
Alexander Udalov e2d60e939b Rename some local variables in ImplBodyCodegen 2013-03-15 22:57:31 +04:00
Alexander Udalov 242b97febf Fix mapGetterSignature/mapSetterSignature
In case of TRAIT_IMPL the incorrect this was written. Reuse the code from the
common mapSignature

 #KT-3413 Fixed
2013-03-15 22:03:39 +04:00
Alexander Udalov 2518ba3353 Minor refactoring of TImpl codegen
jvmSignature.getAsmMethod() and functionOriginal are supposed to be the same
entity, so move jvmSignature out of the way to where it's needed
2013-03-15 21:24:41 +04:00
Alexander Udalov d6129045ce Minor, extract methods in TImpl codegen 2013-03-15 20:55:15 +04:00
Alexander Udalov 8afa46ed6d Minor refactoring of TImpl codegen
Use early returns, rename some variables, etc
2013-03-15 20:30:51 +04:00
Alexander Udalov 905ea962d8 Minor refactoring of TImpl codegen
Extract some methods
2013-03-15 20:00:52 +04:00
Alexander Udalov a9776016a9 Resolve static methods of enum in front-end
Up to this point, front-end did not suspect that there could be classes which
have both a class object and a package for static members. Since this became
possible for enums loaded from Java binaries (enum entries and valueOf()/
values() are placed into the class object, and every other static member into
the package), we adjust the corresponding scope to also include members from
the corresponding package

 #KT-2990 Fixed
2013-03-15 16:00:57 +04:00
Alexander Udalov 7368ca09b9 Resolve static enum members from compiled Java
For static members, a corresponding package is now created for every enum, as
it's done for every other class. All static members of enum classes are
resolved into the package, EXCEPT its enum entries, valueOf() and values()
methods, which are put into the enum's class descriptor.
2013-03-15 16:00:56 +04:00
Alexander Udalov 68844131b0 Fix broken isEnumClassObject methods
Out of three methods, two were incorrect
2013-03-15 16:00:55 +04:00
Natalia.Ukhorskaya c3a2f16624 Fix build: super.visitReferenceExpression in DebugInfoUtil should be called for all expressions 2013-03-15 14:58:24 +04:00
Natalia.Ukhorskaya 0a4eaad595 Do not remove import to component functions 2013-03-15 14:23:13 +04:00
Natalia.Ukhorskaya 5bdd52c65f Do not remove import for iterator() 2013-03-15 14:23:12 +04:00
Natalia.Ukhorskaya 635f65e23d Optimize import removes reference to invoke extension function. Add test.
#KT-3398 Fixed
2013-03-15 14:23:11 +04:00
Natalia.Ukhorskaya 37986891df Add JetInvokeFunctionReference for JetCallExpression 2013-03-15 14:23:10 +04:00
Natalia.Ukhorskaya 4039202806 Optimize imports remove reference to get extension function
#KT-3397 Fixed
2013-03-15 14:23:09 +04:00
Evgeny Gerashchenko fa5fcbbad1 Removed isVar field & constructor parameter from ValueParameterDescriptorImpl, since it's always false. 2013-03-14 20:49:44 +04:00
Evgeny Gerashchenko 82bff79c64 Adding nested classes in mock JDK automatically. 2013-03-14 20:49:44 +04:00
Evgeny Gerashchenko ddd0c07c2d Restored members which were present in mock JDK, but not in generation script. 2013-03-14 20:49:43 +04:00
Evgeny Gerashchenko 22fa239477 Removed entries which are missing in JDK 6. 2013-03-14 20:49:43 +04:00
Evgeny Gerashchenko 1e88d4ea2c Providing paths to jars via VM options, some other minor stuff. 2013-03-14 20:49:42 +04:00
Evgeny Gerashchenko 53f775e98d Test for KT-488 Implement members breaks in generic classes
#KT-488 obsolete
2013-03-14 20:49:42 +04:00
Evgeny Gerashchenko 735f06e78f Added test for KT-334 Can't use java.lang.Comparable by the short name
#KT-334 obsolete
2013-03-14 20:49:41 +04:00
Evgeny Gerashchenko be30716076 Test for KT-2017 Cannot sort list with no comparator
#KT-2017 obsolete
2013-03-14 20:49:41 +04:00
Nikolay Krasko 8fc5676c95 Fix test. Add not only JS libraries but also libraries that could be JS headers. 2013-03-14 15:28:15 +04:00
Nikolay Krasko 86886b79c3 Drop search file with pattern 2013-03-14 15:27:11 +04:00