Commit Graph

569 Commits

Author SHA1 Message Date
Stepan Koltsov f11767319a repl: fix two anonymous functions 2012-06-09 23:25:40 +04:00
Dmitry Jemerov ba76e1467c correct argument index for object that has outer this and closure arguments
#KT-1737 Fixed
2012-06-09 16:20:11 +02:00
Dmitry Jemerov 198c7c1bd2 correct qualified name for namespace$src class
#KT-2236 Fixed
2012-06-09 15:33:51 +02:00
Evgeny Gerashchenko d5b32ba70e KT-2206 ClassFormatError on loading class with property inherited from trait
#KT-2206 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko 64d1d3eda6 KT-2193 Nullability information lost for functions inherited from traits
#KT-2193 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko 208dd4e35d Revert commit because two commits fixing separate bugs were accidentally stuck together. Will recommit bugfixes separately.
Revert "KT-2193 Nullability information lost for functions inherited from traits".

This reverts commit d60818fd3e.
2012-06-09 17:13:38 +04:00
Dmitry Jemerov 0a05197454 remove attempt to optimize using 'if' statement as the last one in a loop which created far more problems that it fixed
#KT-1978 Fixed
2012-06-09 15:14:33 +02:00
Evgeny Gerashchenko d60818fd3e KT-2193 Nullability information lost for functions inherited from traits
#KT-2193 fixed
2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko f83defaa7f KT-2228 Open and final trait members are loaded as abstract from binary Kotlin classes.
Added storing modality for trait members in @JetMethod annotations.

 #KT-2228 Fixed
2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko ef856c5888 Replaced JetMethodAnnotationWriter.writeFlags(BitSet) method with method taking indices of bits which should be set. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko c446fa3fc9 Replaced int flags with BitSet in internal API. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko 12893cec54 Added JetMethod.flags() to replace kind(), with adding extra functionality (modality and visibility marking). 2012-06-09 16:46:37 +04:00
Dmitry Jemerov c9125d3f59 correctly call properties on annotation classes
#KT-1932 Fixed
2012-06-09 14:48:04 +02:00
Stepan Koltsov acac0eddc7 formatting 2012-06-08 21:36:49 +04:00
Stepan Koltsov 321c781c90 some documentation of jvm backend 2012-06-08 21:36:48 +04:00
Dmitry Jemerov 102f5c60be generating the body of the finally clause _four_ times is one time too many
#KT-1688 Fixed
2012-06-08 19:21:41 +02:00
Dmitry Jemerov f945ec6a27 return value of try/catch/finally changed according to frontend changes
#KT-910 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 8baae95531 if a shared variable is a result of the block, release it only after it has been put
#KT-2151 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 56310599a5 for completely empty if statement, put on stack the Tuple0 instance, not its condition (KT-2062)
#KT-2062 Fixed
2012-06-08 18:45:40 +02:00
Stepan Koltsov 2ac6a7c928 fix message order in namespace codegen 2012-06-08 17:57:03 +04:00
Stepan Koltsov 671634c7c2 rename poison to used 2012-06-08 17:57:03 +04:00
Stepan Koltsov 5580016fd2 fix compilation 2012-06-08 04:32:47 +04:00
Stepan Koltsov 6946abbcea working on REPL: implemented previous lines importing 2012-06-08 04:19:24 +04:00
Stepan Koltsov 18aa1dc570 script parameter closure 2012-06-08 04:19:24 +04:00
Stepan Koltsov 177b3eae5e do not generate namespace class for empty namespace 2012-06-08 04:19:23 +04:00
Stepan Koltsov 6860d330f9 poison GenerationState 2012-06-08 04:19:23 +04:00
Stepan Koltsov 8a3d3d21bd better script class name 2012-06-08 04:19:23 +04:00
Alex Tkachman 58385eabd8 multi-file namespace compilation 2012-06-06 19:34:31 +03:00
Dmitry Jemerov 5b987ccc15 when calling function stored in local variable as unary operation, don't forget to push function instance (KT-1953)
I'm sure that there are similar cases that still don't work;  please let me know if you find any
#KT-1953 fixed
2012-06-06 17:17:44 +02:00
Dmitry Jemerov 98c9569216 fix bad merge, sorry 2012-06-06 13:52:53 +02:00
Dmitry Jemerov 6b84f5d31a correctly coerce values in StackValue.store() (KT-1397)
#KT-1397 fixed
2012-06-06 13:43:34 +02:00
Alex Tkachman 7d938dd98f one more step to multi-file compilation 2012-06-06 12:17:25 +03:00
Alex Tkachman 03c4e755fa preparations to multi-file compilation 2012-06-06 11:12:39 +03:00
Stepan Koltsov f27147f752 script: make top level declarations class members 2012-06-05 22:59:07 +04:00
Stepan Koltsov 6c12aa8605 rename CodegenContext.contextType to contextDescriptor to match getter name 2012-06-05 22:56:25 +04:00
Stepan Koltsov e7a81bb466 FrameMap: implement enterTemp using another enterTemp 2012-06-05 22:56:24 +04:00
Stepan Koltsov 999586eec9 FrameMap.toString
for debugging
2012-06-05 22:56:24 +04:00
Stepan Koltsov fbdfd5a5fb validate state in FrameMap.leave
fix variable leave order
2012-06-05 22:56:23 +04:00
Stepan Koltsov cf9dec51f5 formatting code for debugging 2012-06-05 22:56:23 +04:00
Stepan Koltsov 9376313fd0 extract method 2012-06-05 00:59:47 +04:00
Stepan Koltsov 9f4e466898 adjust ExpressionCodegen.resolveToCallable parameter type 2012-06-05 00:59:46 +04:00
Nikolay Krasko 3c4fdc0534 Fix "Type can be weakened" warning 2012-06-04 20:30:37 +04:00
Natalia.Ukhorskaya a1a3dfac41 Change invokespecial to invokevirtual for bridge methods 2012-06-04 17:42:27 +04:00
Dmitry Jemerov 58666f3eb7 unwrap parentheses around range expressions in pattern matching conditions (KT-1742) (thanks to Sergey Mashkov for the suggested fix) 2012-06-02 23:17:42 +02:00
Dmitry Jemerov e1cecd10b2 allow putting an Invert operation on stack as a void type (KT-1634) 2012-06-02 23:05:09 +02:00
Dmitry Jemerov 58c7c7aea1 don't generate direct increment and similar bytecodes for variables which are captured in closure (KT-1980) 2012-06-02 22:41:37 +02:00
Dmitry Jemerov ba9c3d73e7 when calling extension function, correctly put receiver on top of stack if it was generated before the extension function object (KT-1918) 2012-06-02 19:50:14 +02:00
Dmitry Jemerov 46bc7cf12f less confusing formatting 2012-06-02 19:10:41 +02:00
Dmitry Jemerov 12498e30eb support putting the result of a dummy comparison to stack (KT-1899) 2012-06-02 18:19:27 +02:00
Dmitry Jemerov f909745d1b use correct nullability information when generating equality checks in pattern matching (KT-2148) 2012-06-02 17:59:19 +02:00