Commit Graph

1117 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 835c0f85c7 Supported SAM constructors in codegen (simplest case). 2013-03-27 19:19:55 +04:00
Evgeny Gerashchenko a96a461e61 Calculating interface function name in constructor. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 0add163467 Asserting right after reading. 2013-03-27 19:19:54 +04:00
Evgeny Gerashchenko 73823260be Removed redundant code. 2013-03-27 19:19:54 +04:00
Mikhael Bogdanov ad4eeb3f8a Properly capture local functions
Local functions in local classed wasn't captured properly
2013-03-27 15:57:27 +04:00
Evgeny Gerashchenko 3ae0448c3e Generating public flag for local functions/properties. 2013-03-26 18:46:19 +04:00
Mikhael Bogdanov 932c1444a2 Fix for local closures 2013-03-26 15:43:25 +04:00
Evgeny Gerashchenko aa74bb6611 Merged similar intrinsic methods. 2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko bc1b73aaa6 Replaced custom Tuple3 with Trinity. 2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko 93f8d572fc Renamed runtime Tuple0 class to Unit. 2013-03-22 16:38:24 +04:00
Evgeny Gerashchenko ca27637ef2 Removed usages of getTuple() and isTupleType() 2013-03-22 16:38:23 +04:00
Mikhael Bogdanov 8e5f0abb84 Jet api refactoring: remove JetBodyDeclarationWithBody interface from JetFunctionLiteralExpression 2013-03-20 20:50:06 +04:00
Mikhael Bogdanov 93b860e4ad Always generate getter and setter 2013-03-20 20:50:06 +04:00
Mikhael Bogdanov d9fd04dd43 Refactoring: code duplication removed from accessor generators 2013-03-20 20:50:05 +04:00
Mikhael Bogdanov 86f5114b7d Properly resolve descriptors from compiled kotlin
Added protected flag for annotation
2013-03-20 20:50:05 +04:00
Mikhael Bogdanov 001a27f802 Refactoring: code duplication removed from constructor generators 2013-03-20 20:50:05 +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 68844131b0 Fix broken isEnumClassObject methods
Out of three methods, two were incorrect
2013-03-15 16:00:55 +04:00
Evgeny Gerashchenko ec5331057a Removed unnecessary final on local variables. 2013-03-13 14:12:50 +04:00
Alexander Udalov e8088ec6a7 Write correct InnerClasses attribute to class files
InnerClasses should contain entries for every inner and every outer class,
according to the JVMS

 #KT-3390 Fixed
2013-03-12 14:57:14 +04:00
Alexander Udalov 656f4e2f26 Minor refactoring of writeOuterClass() 2013-03-12 14:57:13 +04:00
Natalia.Ukhorskaya 02c8989b2f Top level functions inside module should be invoked using package$src class 2013-03-06 16:22:52 +04:00
Natalia.Ukhorskaya d501e8821c Move top level properties from package class to package$src 2013-03-06 16:22:44 +04:00
Natalia.Ukhorskaya d9739fb5bb Remove usages of isMultiFileNamespace 2013-03-06 16:22:37 +04:00
Natalia.Ukhorskaya faf994d872 Generate package$src files for each package 2013-03-06 16:22:33 +04:00
Natalia.Ukhorskaya a9415204f6 Replace "." with "_" in package$src class name 2013-03-06 16:22:18 +04:00
Andrey Breslav 7107288f88 Injectors regenerated 2013-03-06 12:53:14 +04:00
Mikhael Bogdanov b3ec87f956 ClassObject instance field refactoring 2013-03-04 16:42:55 +04:00
Mikhael Bogdanov 6e1e495397 KT-3374 Wrong this@method receiver 2013-02-28 15:22:35 +04:00
Andrey Breslav cc569fe0ba Compilation fixed 2013-02-19 19:06:49 +04:00
Andrey Breslav ec33f90f89 Rename getQualifiedName() -> getFqName() 2013-02-19 18:52:12 +04:00
Mikhael Bogdanov 1b2da6b558 Write proper enclosingMethod/enclosingClass information to bytecode 2013-02-19 17:56:55 +04:00
Andrey Breslav afd764c27f Implementations of descriptors moved to a separate package 2013-02-19 14:32:06 +04:00
Alexey Sedunov 1f8d42ab49 Fix nullability check (in case of explicitly nullable types constructed from ype variables) 2013-02-13 18:23:37 +04:00
Evgeny Gerashchenko 4043491ad2 Got rid of code duplication. 2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko b66025811f Merged after body and after leave variable tasks. 2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko 64c89836fd KT-933 Optimized iteration over progressions.
#KT-933 fixed
2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko 14f3144533 Generating map instead of initializing manually. 2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko 522530ec4a Extracted util method. 2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko db6fb43d22 Removed unused enum. 2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko 80b21524f4 Optimized iteration over primitive range expression. 2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko 44e14c0a1c Extracted super class. 2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko b5f820cf69 Prepared for extracting superclass. 2013-02-13 18:08:35 +04:00
Evgeny Gerashchenko ab99856c16 Got rid of calculating element type twice. 2013-02-13 18:08:34 +04:00
Evgeny Gerashchenko ca344d93cd Got rid of super calls. 2013-02-13 18:08:34 +04:00