Commit Graph

54 Commits

Author SHA1 Message Date
Alexander Udalov 4cebd3f75b Fix last if-statement in block codegen
#KT-3203 Fixed
2013-01-10 14:05:28 +04:00
Evgeny Gerashchenko e03eaf6dde Removed @author javadocs from code. 2012-12-28 17:44:31 +04:00
Alexander Udalov 8e740a3ee4 Fix .put() for some stack values
#KT-3087 Fixed
2012-11-26 16:06:47 +04:00
Alexander Udalov ca587513e3 Fix for finally before empty return 2012-11-22 22:32:10 +04:00
Alexander Udalov 8564c20baa Fix condition generation of empty if 2012-11-22 22:31:53 +04:00
Alexander Udalov 4c5fe70804 Do not compare boxed values with 0 via IFEQ/IFNE 2012-10-30 22:54:20 +04:00
Rafael Cordones cb99f26807 KT-3002 optimized ==/!=0
Optimize byte-code generation for integer comparisons != and ==.
Work done in Hackergarten Vienna.
Co-authored-by: Kilian Matt <kilian.matt@gmail.com>
2012-10-30 22:11:04 +04:00
Alex Tkachman ee784eb2fe some debug print commented 2012-09-23 18:04:14 +02:00
Evgeny Gerashchenko c33b880a57 EA-39177 - CCE: ArrayIterator.generate
If local variable is auto-casted to array, it should be iterated as array.
2012-09-14 16:12:16 +04:00
Andrey Breslav 2a1307e040 For-loop over long range test 2012-08-31 12:52:46 +04:00
Andrey Breslav a47ab0d408 More tests for continue in for loops 2012-08-30 20:30:52 +04:00
Andrey Breslav 59724296d6 Fix continue in for loops. Tests added 2012-08-30 20:16:09 +04:00
Andrey Breslav c0c2ca0ac2 Report errors when iterator() returns a nullable type 2012-08-24 19:49:33 +04:00
Andrey Breslav e57e61ac68 For-loop generation rewritten for the case of explicit iterator usage
This implementation includes multi-declarations already, but tests are coming in the next commits.
Old ForLoopgenerator renamed to IntrinsicForLoopGenerator, and will be unified with the newly introduced interface soon.

Side-effect:
KT-2668 Codegen doesn't handle member extensions in for
 #KT-2668 Fixed
2012-08-24 19:49:31 +04:00
Alexander Udalov d41f92370a comment failing test after 0cc27c0 2012-08-22 20:13:10 +04:00
Andrey Breslav 0cc27c0176 Use generic invokeFunction() instead of ad-hoc one for in-range conditions in when 2012-08-22 17:07:52 +04:00
Alexander Udalov 9350369fab Fixed codegen for single-branch if
#KT-2597 Fixed
 #KT-2598 Fixed
2012-08-10 14:39:34 +04:00
Alexander Udalov e5119da97a Multiple fixes for try-catch-finally codegen
#KT-2259 Fixed
 #KT-2577 Fixed
2012-08-08 15:35:23 +04:00
Evgeny Gerashchenko a4031225d0 Changed usages of upto/downto in test to rangeTo and downTo, respectively.
#KT-2519 in progress
2012-08-08 14:48:04 +04:00
Alex Tkachman e848e5502b KT-2291: test for obsolete issue 2012-08-04 16:46:27 +03:00
Alex Tkachman 0e4a8660fd KT-2416 fix contains for ranges with primitive parameters 2012-08-03 09:15:53 +03:00
Alexander Udalov 6eb4cf5aa5 KT-2423 Jump after condition check in inner loop is to the wrong label
#KT-2423 Fixed
2012-07-23 20:11:27 +04:00
Evgeny Gerashchenko c74ccec0bf Renamed CompilerSpecialMode to ConfigurationKind, gave enum constants more clear names. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 2c58989a47 Moved CompilerSpecialMode enum to compiler-tests, since it is now used only for creating test compiler configurations. 2012-07-07 23:07:19 +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 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
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 12498e30eb support putting the result of a dummy comparison to stack (KT-1899) 2012-06-02 18:19:27 +02:00
Dmitry Jemerov b03966e8d0 coerce condition value to Type.BOOLEAN (KT-2147) 2012-05-31 13:59:42 +02:00
Evgeny Gerashchenko ea36cf9fb0 Reverted all changes related to renaming jdkHeaders to altHeaders. 2012-05-23 17:05:09 +04:00
Evgeny Gerashchenko 15f6e7403e Renamed jdkHeaders to altHeaders in all places where it makes sense. 2012-05-15 15:19:55 +04:00
Stepan Koltsov f4527b8167 better method name 2012-05-03 18:30:47 +04:00
Stepan Koltsov 5e77ca553c make most codegen tests are indenendent from jdk-headers/stdlib now 2012-05-01 23:49:22 +04:00
Stepan Koltsov c23feab6d1 JetLiteFixture: assign to myEnvironment only once 2012-05-01 22:32:08 +04:00
Stepan Koltsov d71723131d Revert "enhance tests (mostly codegen)" temporarily
This reverts commit 95f9bcbacb.
2012-05-01 21:21:46 +04:00
Stepan Koltsov 95f9bcbacb enhance tests (mostly codegen)
* drop dependency on stdlib/alt-headers in the most tests
* assign to myEnvironment at most once in JetLiteFixture
* more tests do not compile runtime
2012-05-01 19:11:48 +04:00
Alex Tkachman a4ebbaa1a0 KT-1441 proper identityEquals 2012-04-02 13:32:31 +03:00
Alex Tkachman d0e7248ec1 KT-628 !! support 2012-03-26 11:37:40 +02:00
Maxim Shafirov a03922d467 Copyrights set to Apache, reflecting it's now open source 2012-02-14 19:25:06 +04:00
Alex Tkachman 52b81a15e5 KT-998: wrong codegen for labeled continue/break 2012-01-19 00:01:46 +01:00
Alex Tkachman 86a33f8b16 KT-1076 reversed ranges 2012-01-18 20:01:18 +01:00
Alex Tkachman ba6c9be53a KT-958 wrong compilation of 'in' with complex expression under test 2012-01-10 17:05:21 +02:00
Alex Tkachman f40cf97279 fix for KT-870 - when without parameter 2011-12-25 15:55:57 +02:00
Alex Tkachman ccdc80d1fe fix for while-loop-ending-with-if bug 2011-12-20 11:23:13 +02:00
Alex Tkachman 1e471aa9c4 synchronized method 2011-12-19 10:21:17 +02:00
Alex Tkachman c6b69cad2c test for obsolete KT-772 2011-12-19 07:47:26 +02:00
Alex Tkachman 43885f0955 KT-769, KT-773 wrong compilation of when 2011-12-07 20:34:48 +02:00
Alex Tkachman ce1718e518 better handling of empty if/else blocks 2011-11-29 11:56:30 +02:00
Alex Tkachman dce0746bd9 some debug print commented out 2011-11-25 10:50:33 +02:00