Commit Graph

1221 Commits

Author SHA1 Message Date
Alexander Udalov e76abcb625 Add ClassDescriptor.isInner()
Implement in resolve & lazy resolve; place a stub in resolve-java

 #KT-1174 In Progress
2013-01-16 23:11:40 +04:00
Natalia.Ukhorskaya 37b12bff2e Vararg in constructor isn't loaded correctly from bytecode
#KT-3251 Fixed
2013-01-16 17:59:35 +04:00
Natalia.Ukhorskaya 65f1efb921 Add JetPackageClass annotation 2013-01-15 19:45:07 +04:00
Natalia.Ukhorskaya 47abdcf565 Rename namespace class to {package.name}Package
Conflicts:

	compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/JavaElementFinder.java
2013-01-15 19:45:06 +04:00
Andrey Breslav b039c69952 Class object members supported in PsiCodegenPredictor 2013-01-15 15:32:03 +04:00
Andrey Breslav 6f8c9bf0d1 JetClass.isEnum() introduced 2013-01-14 20:20:27 +04:00
Andrey Breslav a577ccabab Light class providers unified 2013-01-14 20:20:22 +04:00
Andrey Breslav 69080b72af When generating light class for package, do not generate other classes 2013-01-14 20:20:21 +04:00
Andrey Breslav a91b113cc3 GenerationStrategy is now a strategy 2013-01-14 20:20:20 +04:00
Andrey Breslav 26ccb80abb Missing @NotNull and assertions added 2013-01-14 20:20:17 +04:00
Andrey Breslav e69b9af6d1 Unused parameter removed 2013-01-14 20:20:11 +04:00
Andrey Breslav 6f38388409 Unused line removed 2013-01-14 20:20:11 +04:00
Andrey Breslav 380c8b596a The slow (synchronized) java.util.Stack replaced by com.intellij.util.containers.Stack 2013-01-14 20:20:10 +04:00
Andrey Breslav b5aa44ae49 GenerationState is constructed with BindingContext, not full AnalyzeExhaust 2013-01-14 15:19:50 +04:00
Alexander Udalov 4cebd3f75b Fix last if-statement in block codegen
#KT-3203 Fixed
2013-01-10 14:05:28 +04:00
Alexander Udalov 0fea6822c3 Fix codegen of loaded class objects
Remove useless check and todo.

 #KT-2717 Fixed
 #KT-3142 Fixed
2013-01-09 15:40:21 +04:00
Evgeny Gerashchenko e03eaf6dde Removed @author javadocs from code. 2012-12-28 17:44:31 +04:00
Natalia.Ukhorskaya e9d1171d6d Fix VerifyError for enum constructor with default arguments 2012-12-27 12:29:09 +04:00
Natalia.Ukhorskaya 808c5abc0f Generate constructor without parameters if primary constructor has only parameters with default values
#KT-3085 Fixed
2012-12-27 12:29:06 +04:00
Natalia.Ukhorskaya f4a44155d9 Extract method 2012-12-27 12:29:02 +04:00
Natalia.Ukhorskaya 538aa869b4 Constructor with default arguments for inner class
#KT-2852 Fixed
2012-12-27 12:29:01 +04:00
Evgeny Gerashchenko e3a30b10a9 Not writing fake parameters of enum constructors to generic signature. 2012-12-25 15:20:57 +04:00
Evgeny Gerashchenko 1cfc5f366e Extracted DescriptorRenderer interface. 2012-12-17 16:35:59 +04:00
Evgeny Gerashchenko 8a946c6ef9 Renamed DescriptorRenderer and moved to 'renderer' package.
Moved DescriptorRendererTest to 'renderer' package, as well.
2012-12-17 16:35:56 +04:00
Evgeny Gerashchenko b8eb0c84ff Added 'synthetic' flag for bridge method.
#KT-3155 fixed
2012-12-13 14:36:41 +04:00
Natalia.Ukhorskaya a739964c74 Back-end: write correct visibility flags for private inner classes 2012-12-06 17:25:13 +04:00
Natalia.Ukhorskaya 17fa105116 Generate INVOKESPECIAL instruction for private method with default argument 2012-12-06 15:20:43 +04:00
Alexander Udalov fd0251729b Optimize primitive comparison operators codegen
They're no longer generated via intrinsics
2012-11-28 20:58:59 +04:00
Alexander Udalov fad9169005 Remove suspicious code from intrinsics 2012-11-28 20:17:01 +04:00
Alexander Udalov c9bdfd2f07 Generate compareTo() properly
Take into account:
1) resolved call to compareTo (instead of always calling Comparable's method)
2) types of both caller and callee, when primitive, to avoid wrong casting
(instead of always using caller's type)

 #KT-3078 Fixed
2012-11-28 17:45:38 +04:00
Alexander Udalov 0c5960922a Refactor StackValue.coerce() 2012-11-28 17:41:38 +04:00
Alexander Udalov 9eecf22e15 Booleans are no longer Comparable 2012-11-28 17:41:36 +04:00
Alexander Udalov 8e740a3ee4 Fix .put() for some stack values
#KT-3087 Fixed
2012-11-26 16:06:47 +04:00
Andrey Breslav 889ea107f6 Reflect Kotlin's declaration-site variance in Java signatures 2012-11-24 15:59:15 +04:00
Alexander Udalov 6c2b402625 Remove dangerous and unused method 2012-11-23 17:37:50 +04:00
Alexander Udalov 9d3907ff98 When-statements & correct line numbers 2012-11-22 22:32:21 +04:00
Alexander Udalov aa898725fc Mark line numbers on compile-time constants 2012-11-22 22:32:17 +04:00
Alexander Udalov 0f496eac21 Try-catch-finally statements & correct line numbers 2012-11-22 22:32:14 +04:00
Alexander Udalov ca587513e3 Fix for finally before empty return 2012-11-22 22:32:10 +04:00
Alexander Udalov 99a908e8fe If-then-else statements & correct line numbers
#KT-3036 Fixed
2012-11-22 22:31:58 +04:00
Alexander Udalov 8564c20baa Fix condition generation of empty if 2012-11-22 22:31:53 +04:00
Alexander Udalov af601b5a90 Single-branch if-statements
Single-branch if-expressions are now compiled to statements if the result is
not used

 #KT-3036 In Progress
2012-11-22 22:31:40 +04:00
Alexander Udalov 9c7724b7f9 Introduce CodegenStatementVisitor
Which will be used for generating statements (as opposed to generating
expressions always, as it is now)

Add StatementGenTest, which will check if we actually generate statements and
not expressions of type Unit, popping them off the stack later
2012-11-22 22:07:01 +04:00
Evgeny Gerashchenko 1a216c22f2 Minor. Renamed getC -> getChar 2012-11-20 17:20:00 +04:00
Evgeny Gerashchenko d37bdbc07d Saving and loading projection kind of array element type in bytecode. 2012-11-20 17:20:00 +04:00
Natalia.Ukhorskaya 3fc2e5d20c Attempt to split long or double on the stack exception
#KT-3042 Fixed
2012-11-20 13:35:30 +04:00
Natalia.Ukhorskaya 900788a8e0 Fix javaClass property for long and double
#KT-3046 Fixed
2012-11-19 21:19:48 +04:00
Pavel V. Talanov 7bb7445c57 Fix for invoking abstract method in enum 2012-11-19 20:18:45 +04:00
Svetlana Isakova cd3892e251 rename deparenthesize -> deparenthesizeWithNoTypeResolution 2012-11-16 15:32:59 +04:00
Nikolay Krasko 2bc57ee8a2 More logging for EA-40352 2012-11-14 18:19:33 +04:00