Commit Graph

431 Commits

Author SHA1 Message Date
Svetlana Isakova 7df4e6728b 'isSubClass' method moved to DescriptorUtils 2012-03-30 13:38:35 +04:00
Stepan Koltsov ec367a0bf0 merge copy-paste after excessive inline in e6fda5 2012-03-29 23:39:01 +04:00
Stepan Koltsov e6fda5b3d3 minor codegen refactoring
* cleanup after yesterday
* remove BindingContext stack in GenerationState
* use more power and strength of di

TODO: also initialize GenerationState by DI
2012-03-29 19:47:50 +04:00
Stepan Koltsov 5bef29870d more di in jvm.codegen 2012-03-29 01:37:02 +04:00
Stepan Koltsov 1e330fe0a0 jvm.backend: get JetStandardLibrary from analyzer
This is a big step towards removal of JetStandardLibrary.getInstance()
2012-03-29 01:03:44 +04:00
Stepan Koltsov 231a4d9940 injector for JVM codegen 2012-03-28 23:39:03 +04:00
Pavel V. Talanov 582259ffda Support for inline in front-end. Add SimpleFunctionDescriptor#isInline. 2012-03-28 14:25:09 +04:00
Stepan Koltsov f3f76ab01d we have no typeinfo 2012-03-27 00:27:33 +04:00
Alex Tkachman 83ed0a846e KT-1597 optimized as/as? 2012-03-26 16:56:24 +02:00
Alex Tkachman d0e7248ec1 KT-628 !! support 2012-03-26 11:37:40 +02:00
Stepan Koltsov 7836e44e70 Temporarily revert "kill JavaNamespaceDescriptor"
This reverts commit 3c45a1d60e.

This commit breaks compilation of jdk-headers. Explanation:

1. TopDownAnalyzer creates namespace java.util from sources
2. TopDownAnalyzer creates class Map in java.util
3. TopDownAnalyzer processes import java.util.Map.Entry
4. JavaDescriptorResolver resolves namespace java.util.Map
5. java.util.Map namespace is added to java.util namespace
6. redeclaration handler of namespace java.util crashes on Map
2012-03-24 02:23:30 +04:00
Andrey Breslav cf108765ae KT-729 Need to support arrays as varargs: front-end checks done
#KT-729 In progress
2012-03-23 22:47:44 +01:00
Stepan Koltsov 3c45a1d60e kill JavaNamespaceDescriptor 2012-03-23 23:44:20 +04:00
Stepan Koltsov 8517fe6878 store namespace kind in trace, kill some JavaNamespaceDescriptor usages
JavaNamespaceDescriptor will be killed soon
2012-03-23 23:44:16 +04:00
Stepan Koltsov e2cb98df67 better import jet namespace 2012-03-19 23:25:27 +04:00
Alex Tkachman 56eabfe07b KT-1508 jet.Number -> j.l.Number 2012-03-17 13:57:45 +02:00
Maxim Shafirov 484a38ddfc Don't log ProcessCancelledException 2012-03-16 18:54:35 +04:00
Alex Tkachman 6ff783e79b KT-1592 don't write default values for annotations 2012-03-16 15:48:49 +02:00
Svetlana Isakova 114988ac82 KT-1579 "Can't import nested class/trait" partially: Entry can be imported, but Map.Entry in code is still unresolved 2012-03-16 17:09:28 +04:00
Stepan Koltsov 1610c9b3a0 FqNameUnsafe 2012-03-15 19:28:29 +04:00
Andrey Breslav 562893f83e Fixing the behavior for non-physical JetFiles (e.g. the ones created by WebDemo) 2012-03-15 14:04:11 +04:00
Maxim Shafirov e82dd48662 Progress messages when emitting classfiles 2012-03-14 21:59:51 +04:00
Stepan Koltsov 5af4661c18 better root ns
* ModuleDescrpiptor now lives in context
* ns parent is module descriptor iff ns is root ns
* minor test enhancements
2012-03-14 19:43:22 +04:00
Maxim Shafirov 32264cd4a8 File name transforming is unnecessary and thus, removed. 2012-03-14 16:35:45 +04:00
Evgeny Gerashchenko af9f00c177 Merge branch 'decompiler'
Conflicts:
	compiler/backend/src/org/jetbrains/jet/codegen/NamespaceCodegen.java
	compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaPackageScope.java
	compiler/frontend/src/org/jetbrains/jet/lang/resolve/DescriptorUtils.java
2012-03-14 14:50:04 +04:00
Andrey Breslav 9441e57fa0 KT-627 Drop Predicate expression
The residuals removed
2012-03-14 12:40:28 +04:00
Stepan Koltsov 82d77560a2 FqName class
for type safety, to easier distinguish between:

* short names
* qualified names
* jvm names (slash-separated)
* special names like <root>
* null values that mean "undefined" and "root ns" in different contexts
2012-03-13 21:51:38 +04:00
Andrey Breslav ca81d97b54 Year fixed in the copyright 2012-03-13 20:47:51 +04:00
Alex Tkachman 5bb7c2122d KT-1538 proper boolean invertion 2012-03-13 15:50:29 +02:00
Alex Tkachman c870eccc4f fix for KT-1515 wrong loading of annotations 2012-03-13 12:28:35 +02:00
James Strachan cf36014326 slightly more descriptive assertion message 2012-03-13 08:43:17 +00:00
Alex Tkachman 9aa992c209 fix for KT-1568 1.javaClass 2012-03-13 09:36:15 +02:00
Alex Tkachman c746a50406 annotations with parameters 2012-03-12 16:52:49 +02:00
Alex Tkachman b4e2a5fb30 workaround for ACC_STATIC flag 2012-03-12 14:53:33 +02:00
Andrey Breslav 00142a7775 Assertions and a possible fix for EA-34423 - NPE: GenerationState.compileCorrectFiles 2012-03-12 16:42:31 +04:00
Andrey Breslav a0a4536c40 Debug output removed 2012-03-12 16:21:52 +04:00
Andrey Breslav 3c71512850 Minimal refactoring that eliminates importing Java's root namespace by default.
All tests pass. Some beautifying needed

#KT-1477 Fixed
2012-03-12 16:21:52 +04:00
Andrey Breslav 67d2a8dcca Work around the shallowly analyzed files 2012-03-11 13:46:50 +04:00
Andrey Breslav 57fb669670 Work around the shallowly analyzed files 2012-03-11 13:42:30 +04:00
Evgeny Gerashchenko 8f5d469a0c Replaced short names with fully qualified in DescriptorRenderer. 2012-03-10 14:57:08 +04:00
Andrey Breslav 1aadf98951 Working around a problem with shallow analysis 2012-03-09 17:35:29 +04:00
Stepan Koltsov 522083bf5a lang package 2012-03-07 04:08:18 +04:00
Stepan Koltsov 5ae9cdff6b link from method to similar 2012-03-07 04:07:14 +04:00
Andrey Breslav 0a08ac5fe8 Libraries written in Kotlin are factored out into a separate project 2012-03-06 19:00:29 +04:00
James Strachan eb3aac9acb refactored std.* package to be kotlin.*. Due to KT-1381 I had to move the functions from kotlin.test into the stdlib for now (I made them not depend on JUnit for now) 2012-03-03 12:11:06 +00:00
Stepan Koltsov c47934b3cf do not rely on presence of function body to compute function modifiers
this fixes generation of stubs
2012-03-03 01:10:59 +04:00
Stepan Koltsov 16917dea4f fix prop modality reading from class files 2012-03-02 23:18:50 +04:00
Stepan Koltsov 99249c65da properly read constructor with default params from bytecode 2012-03-02 20:49:13 +04:00
Stepan Koltsov c15bd2f75d KT-1490 serialization of constructor parameters 2012-03-02 20:43:47 +04:00
Stepan Koltsov 3f1e63cd26 JetValueParameterAnnotationWriter 2012-03-02 20:43:42 +04:00