Commit Graph

131 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 487f381287 Minor. Renamed and cleaned CompilerServices -> Services. 2014-08-20 13:46:31 +04:00
Evgeny Gerashchenko f3b7ae379f Passing services via type-safe container instead of map. 2014-08-20 13:46:30 +04:00
Evgeny Gerashchenko 5fade9a5a6 Made incremental cache per-module.
Reused IDEA framework which manages per-module storage.
2014-08-20 13:46:26 +04:00
Alexander Udalov cf431ffab0 CLI: change argument naming convention
As in all other Unix/POSIX tools and JVM language compilers, multiple words
comprising the argument name should be lowercase, separated by dashes
2014-08-13 11:10:40 +04:00
Alexander Udalov 9c906836f3 Ant task: drop "module" support, drop unused compiler plugins code
Modules should only be used in IDE and the compiler is launched there directly
2014-08-13 11:10:38 +04:00
Alexander Udalov 9c792bacfa Ant task: drop "jar" parameter
"output" should be used instead, analogous to "-d" in kotlinc-jvm
2014-08-13 11:10:38 +04:00
Alexander Udalov 4d25caa2e8 Ant task: fix unneeded exception wrapping 2014-08-13 11:10:38 +04:00
Alexander Udalov 9442724821 Ant task: support additional arguments, drop inline/optimize
Only "-X" options are now supported as additional command line arguments
2014-08-13 11:10:38 +04:00
Alexander Udalov 45a57011d8 Simplify and enable by default inline/optimize/assertions
Inline, optimize, call assertions, param assertions are turned on by default
now almost everywhere; invert their meaning
2014-08-13 11:10:37 +04:00
Alexander Udalov 87439b8e0b Drop "-sourceFiles" in kotlinc-js
Use free arguments instead, as is done in kotlinc-jvm and all sensible
compilers everywhere

Also fix some cases of AntTaskTest to be able to run them locally
2014-07-23 21:24:38 +04:00
Denis Zharkov 0e683b0b99 Added "optimize" flag to settings everywhere 2014-07-15 21:34:32 +04:00
Evgeny Gerashchenko c4573b8c5a Got rid of ModuleDescription intermediate entity. 2014-07-10 15:05:19 +04:00
Evgeny Gerashchenko f6129732a2 Writing incrementalCache attribute to <modules> element of xml module script 2014-06-19 01:03:59 +04:00
Evgeny Gerashchenko aaebce2683 Got rid of ModuleChunk (it makes no sense now). 2014-06-04 15:34:18 +04:00
Alexander Udalov d42598a935 Move default inline flag to JVM back-end
- other back-ends are likely to have its own value of this flag
- get rid of DEFAULT_INLINE_FLAG_FOR_TEST
- the main goal was to simplify the default GenerationState constructor, which
  now always uses default inline flag value
2014-05-08 16:45:14 +04:00
Mikhael Bogdanov ca4609dd2a Support inline true/false options 2014-03-20 17:50:52 +04:00
Mikhael Bogdanov 22daacefbe Added inline flag to ant build tool 2014-03-17 17:28:46 +04:00
Alexander Udalov 004c289a0b Use kotlin.modules.* instead of jet.modules.* 2014-02-28 21:48:25 +04:00
Natalia Ukhorskaya f2f1a1313d Add jdk jars to kotlin classpath
#KT-4214 Fixed
2013-12-26 13:50:10 +04:00
Zalim Bashorov df4850c22f BuildTools: added ant task for Kotlin2Js compiler. 2013-11-15 15:17:59 +04:00
Erokhin Stanislav 694eed595b Add nested tag "externalannotations" to tags "withKotlin" and "kotlinc" 2013-10-28 16:07:01 +04:00
Erokhin Stanislav 35bc3cd587 Move ant from dependencies/ant -> dependencies/ant-1.7 2013-10-28 16:07:01 +04:00
Andrey Breslav 1d540181b0 Produciton code uses a shared application between many projects.
Tests always dispose the application together with JetCoreEnvironment
2013-10-15 15:28:28 +04:00
Andrey Breslav cd275fd814 'runtime' module replaced by 'kotlin-runtime' library 2013-10-14 14:42:25 +04:00
Andrey Breslav 9e0e67d19d Refactoring: common logic extracted and moved to a util class 2013-10-10 17:49:17 +04:00
Andrey Breslav f529e5d2aa ModuleChunks introduced 2013-10-10 17:49:16 +04:00
Andrey Breslav 36435188b9 Download sources for Ant 1.7 2013-10-08 21:52:08 +04:00
Andrey Breslav a985882baf CompilerAdapter for <javac> task + test for compiler attribute
No test for the typedef <withKotlin/> because Ant 1.7 doesn't seem to support typedef inside <javac>
2013-10-08 19:21:02 +04:00
Andrey Breslav bf49bc0220 <kotlinc> ant task now supports <src> element and multiple source directories 2013-10-08 19:21:02 +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
Andrey Breslav 3f23704e13 Method renamed 2013-04-29 15:46:37 +04:00
Evgeny Gerashchenko ec5331057a Removed unnecessary final on local variables. 2013-03-13 14:12:50 +04:00
Evgeny Gerashchenko 52b7ee6447 Happy new year 2013! 2013-01-28 18:58:08 +04:00
Andrey Breslav e324d3914f KT-3120 The compiler should not depend on the file directory of the libs
#KT-3120 In Progress
2012-12-12 17:37:32 +04:00
Andrey Breslav 4ed07cd9ae Introducing KotlinPaths to impose some discipline on compiler/library location 2012-11-21 18:16:09 +04:00
Andrey Breslav 7e7e779e80 No printing of verbose compiler output in Ant task and REPL 2012-11-13 19:38:20 +04:00
Evgeny Gerashchenko 942c1ee9d9 Reverted fix for KT-2042 Kotlin SDK must be explicitly specified for each module that uses Kotlin
#KT-2042 reopened
2012-07-31 18:19:40 +04:00
Evgeny Gerashchenko edb2e0e3b6 Got rid of creating JetCoreEnvironment which wont be used when compiling modules from module script. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 2727aa7da4 Gor rid of K2JVMCompileEnvironmentConfiguration and CompileEnvironmentConfiguration. Using JetCoreEnvironment instead of K2JVMCompileEnvironmentConfiguration. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 940c09fc8a Passing message collector via CompilerConfiguration. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 33c661e7f3 Passing compiler plugins via CompilerConfiguration. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 8dfa3d8ce9 Moved everything but environment and messageCollector from K2JVMCompileEnvironmentConfiguration to CompilerConfiguration. 2012-07-31 16:33:44 +04:00
Alex Tkachman 5cda223ce4 fixed compilation 2012-07-28 20:47:18 +03:00
Maxim Manuylov 843fb8d7a9 refactor PathUtil - it is a big difference now, whether we find sdk home from plugin or from compiler 2012-07-26 20:08:58 +04:00
Evgeny Gerashchenko ea6c4116df Passing sources via compiler configuration in BytecodeCompiler. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 8aee0e0543 Adding source roots right after JetCoreEnvironment creation. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko ffca0409d4 Changed types of JVM configuration keys from arrays to lists. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 8124e477ce Renamed methods getUserData and putUserData to get and put, respectively. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko d32d2c0bda Reformatted Ant task code according to coding conventions. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko b65f5cf53f Removed CompilerSpecialMode from JetCoreEnvironment. 2012-07-07 23:07:19 +04:00