Commit Graph

198 Commits

Author SHA1 Message Date
Alexander Udalov e46c54f514 Serialize built-ins on 'ant dist'
Don't store binary data in the repository anymore. From now on any test on the
compiler requires that 'ant dist' was executed at least once since the last
update of the built-ins
2014-01-27 18:33:49 +04:00
Alexander Udalov dc66561ca5 Create module 'builtins', move 'runtime' -> 'runtime.jvm'
'builtins' will be used for platform-independent core built-in definitions,
'runtime.jvm' for things that should be present at runtime in order for Kotlin
code to execute correctly on JVM

ProgressionUtil goes to 'builtins' right now because progression iterators
depend on it, but should be rewritten to Kotlin later
2014-01-27 18:33:47 +04:00
Alexander Udalov a59565bfa8 Rewrite PropertyMetadata to Kotlin 2014-01-27 18:33:44 +04:00
Erokhin Stanislav 93982265a6 Add js.dart-ast module & drop old lib 2014-01-27 17:28:49 +04:00
Alexander Udalov db9d0e381b Rework BuiltInsSerializer
BuiltInsSerializer will be distributed with Kotlin compiler from now on. This
will allow to serialize binary data of built-ins on 'ant dist', as opposed to
storing all *.kotlin_class files in the repository: ant dist will just invoke
this serializer from bootstrap-compiler.jar
2014-01-22 19:11:43 +04:00
Natalia Ukhorskaya f2f1a1313d Add jdk jars to kotlin classpath
#KT-4214 Fixed
2013-12-26 13:50:10 +04:00
Andrey Breslav 4ac7afbb9f Module annotations-ext removed. Annotations are moved to runtime 2013-11-21 20:47:48 +04:00
Andrey Breslav 6dde064791 Collections in interfaces marked @ReadOnly 2013-11-21 13:07:34 +04:00
Nikolay Krasko f8357aecc1 Assign annotation to intellij-core library 2013-11-15 19:41:20 +04:00
Zalim Bashorov 060d7c5345 Removed closure-compiler.jar from repository and js_test_libs.
Added closure-compiler.jar to third-party dependencies.
Switch to use closure-compiler ant task instead of java task.
2013-11-15 15:18:00 +04:00
Zalim Bashorov df4850c22f BuildTools: added ant task for Kotlin2Js compiler. 2013-11-15 15:17:59 +04:00
Andrey Breslav 9723106d95 Add missing module to quick compiler build 2013-11-14 19:29:05 +04:00
Alexander Udalov d044fbb4f1 Add "-source 1.6" to javac to prevent numerous warnings on JDK 7 2013-11-14 19:11:21 +04:00
Zalim Bashorov 5dd4eb780e Extracted OutputFileFactory interface. 2013-11-08 18:14:20 +04:00
Natalia Ukhorskaya cc948d88cc Build j2k using kotlinc in build.xml 2013-11-08 12:12:06 +04:00
Pavel V. Talanov 44ffe2905d Build: compile j2k module with Kotlin 2013-10-29 21:03:34 +04:00
Erokhin Stanislav 35bc3cd587 Move ant from dependencies/ant -> dependencies/ant-1.7 2013-10-28 16:07:01 +04:00
Andrey Breslav 5175b8444f Build a special compiler jar for maven that contains the runtime as well 2013-10-14 14:42:26 +04:00
Andrey Breslav 6d840d4b48 Rename 2013-10-14 14:42:25 +04:00
Andrey Breslav 48052e99ae Bootstrap runtime used as an external dependency to the compiler 2013-10-14 14:42:25 +04:00
Andrey Breslav 135034ea86 Use <withKotlin/> instead of a separate task 2013-10-08 21:52:09 +04:00
Andrey Breslav cfc07c300f Build Kotlin sources with the bootstrap compiler 2013-10-08 21:52:09 +04:00
Zalim Bashorov 4f957eaf69 Extracted manifest values to manifest.properties file. 2013-10-04 19:21:25 +04:00
Erokhin Stanislav 2329c9cdfa Use javac2 compiler from Idea lib in ant build: generate @NotNull assertions 2013-09-30 16:02:44 +04:00
Andrey Breslav a4f29bacae Javac target JVM version explicitly specified
When compiling from command line on a machine with Java 7 installed you get class format errors when running on Java 6 later
2013-09-26 09:05:00 -07:00
Natalia.Ukhorskaya da17475ae6 Pack runtime sources to separate jar 2013-09-25 14:18:41 +04:00
Andrey Breslav 04101a91f3 Update to cli-parser 1.1.1 which supports fields inherited from superclasses 2013-09-24 06:58:38 -07:00
Andrey Breslav 1f340e3a7a Don't compile and run generators in build.xml 2013-09-24 06:45:26 -07:00
Alexander Udalov 5119afae52 Extract 'descriptors' module 2013-09-18 18:45:34 +04:00
Alexander Udalov 8e59e789dc Extract util.runtime module out of util
Cleanup module dependencies: a lot of modules depended on 'frontend.java' just
to use something from 'util' module, exported by 'frontend.java', whereas they
really need nothing from 'frontend.java'. Also 'frontend.java' just exported
'util', not using anything from it.

Create a new 'util.runtime' module, which will be available at runtime. Make
'util' export 'util.runtime' and make all modules who needed these utils depend
on 'util' directly instead of 'frontend.java'
2013-09-18 17:21:11 +04:00
Alexander Udalov df875b892f Move generators sources to generators/src/ 2013-09-18 17:01:41 +04:00
Erokhin Stanislav 4c57d70be9 JS backend: remove ECMA 3, but several tests is broken.
Main reason: overload extention property:

Int.bar = 1
String.bar = 2
2013-09-17 21:43:25 +04:00
Alexander Udalov fb5ab4c7c5 Move serialization.java module to core/
Remove unused dependency from frontend.java
2013-09-04 21:55:11 +04:00
Alexander Udalov 2b9225fdd4 Extract descriptor.loader.java module from frontend.java
Will be used in runtime to load reflected classes
2013-09-04 21:55:11 +04:00
Alexander Udalov 026d76ea42 Include META-INF/services in kotlin-compiler.jar
Otherwise services loaded with ServiceLoader wouldn't work in the standalone
compiler
2013-09-04 21:55:10 +04:00
Alexander Udalov 67ca7b78c4 Deserialize annotations on class members
Make 'Callable' message of descriptors.proto extensible, extend it in
java_descriptors.proto with a JVM signature of the member. This is needed in
order for annotation deserializer to find out which member in the compiled
bytecode corresponds to which descriptor in the hierarchy.

Create a new module 'serialization.java' containing everything related to
Java-specific serialization of descriptors.

Add an extension point to DescriptorSerializer, allowing to perform
platform-specific serialization on a callable
2013-08-23 17:39:18 +04:00
Pavel V. Talanov 1161685fee Move builtin class sources(*.jet) under IDEA module (should be removed completely later)
Change marker filename which is used to find those sources via getResource
2013-08-23 17:39:10 +04:00
Andrey Breslav 1d7fd47a51 Compile/Jar serialization-related code in build.xml 2013-08-23 17:39:04 +04:00
Nikolay Krasko b4c7122528 Move built-in files out of source directory 2013-08-21 19:52:42 +04:00
Andrey Breslav 8230d7ed94 Update to IDEA 13 EAP - 130.1486 2013-08-07 20:41:09 +04:00
Andrey Breslav e3643fd222 Proguard does not print notes any more
There are too many notes in our logs, we never read them, and logs get very tedious to scroll through.
2013-08-05 18:37:46 +04:00
Zalim Bashorov b14a5f3ea1 Migrate to IDEA 130.1335 2013-07-26 21:33:08 +04:00
Maxim Shafirov f5a11960cd These two packages come from eawtstub.jar and automation.jar yet it doesn't make any sense to include those into kotlin compiler 2013-07-16 12:27:31 +04:00
Natalia.Ukhorskaya d9860876f5 Remove redundant clearDir in build.xml 2013-06-07 11:06:01 +04:00
Natalia.Ukhorskaya afa3ead160 Add kotlin annotations for android SDK 2013-06-07 11:05:57 +04:00
Evgeny Gerashchenko 3e5feeb436 Minor. Added comments. 2013-06-03 17:40:58 +04:00
Andrey Breslav a2b82095da Using the version of ASM that has debug information in it
No more need for extra ASM jars (analysis and util)
2013-05-21 13:56:34 +04:00
Andrey Breslav 3f73662260 Do not run generator on a quick dist
Everything is already compiled, so there's no point in generating sources
2013-04-29 17:59:52 +04:00
Andrey Breslav bbb661506a Preloader for command-line compiler 2013-04-26 14:33:18 +04:00
Andrey Breslav 3179f67bfc Tasks for quickly building kotlin-compiler.jar using the results of incremental compilation in the IDE 2013-04-26 14:32:55 +04:00