Commit Graph

59 Commits

Author SHA1 Message Date
Alex Tkachman da064f95fd MapTypeMode renamed to JetTypeMapperMode and moved to state package 2012-08-30 13:08:43 +03:00
Alex Tkachman 6cc85a6ce3 JetTypeMapper moved to state package 2012-08-30 13:08:41 +03:00
Alex Tkachman b45f19c0e2 GenerationState refactored to be (almost) immutable and methodless (modulo little protection from reuse)
GenerationStrategy introduced to handle separately cases of regular compilation and building of JetLightClasses (this was only real overridable behavior of GenerationState in old code)
state subpackage introduced
2012-08-30 09:33:10 +03: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 8dfa3d8ce9 Moved everything but environment and messageCollector from K2JVMCompileEnvironmentConfiguration to CompilerConfiguration. 2012-07-31 16:33:44 +04:00
Alex Tkachman b8bfde3102 in-memory compilation of standalone script 2012-07-28 20:32:18 +03:00
Evgeny Gerashchenko 8f4b7444f7 Passing sources via compiler configuration in TestlibTest. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko f7290d178b Replaced passing compiler special mode to JetTypeMapper with special enum type. Enum type means if builtin types should be mapped to Java standard classes in generated bytecode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 5becb4efb1 Passing "stubs" flag to K2JVMCompileEnvironmentConfiguration to avoid checking compiler special mode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e7d08b478 Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 27c13d8c45 Got rid of actual using compiler dependencies in some classes (using only mode). Affected classes: K2JVMCompiler, KotlinToJVMBytecodeCompiler, TestlibTest.
Got rid of actual using compiler dependencies in KotlinToJVMBytecodeCompiler.

Got rid of actual using compiler dependencies in TestlibTest.
2012-07-07 20:33:23 +04:00
Stepan Koltsov 8dd1465371 pull script up in cli 2012-06-10 03:44:29 +04:00
Stepan Koltsov acac0eddc7 formatting 2012-06-08 21:36:49 +04:00
Stepan Koltsov 3408c9833c ExceptionUtils.rethrow 2012-06-06 23:58:19 +04:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Andrey Breslav 086827d4ca Problematic diagnostics commented out
The commented code fails on CI server
2012-05-03 16:57:46 +04:00
Alex Tkachman d58e988ca5 incorporating Sveta's patch on VariableAsFunctionResolvedCall 2012-05-03 12:56:51 +03:00
pTalanov ce929fab49 Rename CompileEnvironmentConfiguration. Drop ArgsUtil class. Add CompilerSpecialMode.JS. 2012-05-02 15:23:40 +04:00
Stepan Koltsov b109ac5ad4 store CompilerDependencies in JetCoreEnvironment 2012-05-01 22:59:42 +04:00
pTalanov d0d5b147f2 Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common 2012-04-25 20:19:15 +04:00
Stepan Koltsov 3b43f30824 add JDK to CompilerDependencies 2012-04-25 19:36:22 +04:00
Andrey Breslav e33acbeebf Use CompileEnvironmentConfiguretion instead of its components 2012-04-20 14:33:49 +04:00
Andrey Breslav 882412ea06 Proper handling of compiler messages
We used to have a triple (errorStream, messageRenderer, verbose) to represent the error reporting strategy.
 Now we have a single MessageCollector abstraction for this.
 As the MessageCollector abstraction was extracted, the need to CompilerMessageLocation and CompilerMessageSeverity arose, too.
2012-04-13 19:38:23 +04:00
Andrey Breslav 71bac57411 Got rid of CompileSession class: this class shouldn't have had any objects, now it is transformed into KotlinToJVMBytecodeCompiler 2012-04-13 19:38:22 +04:00
Andrey Breslav f34e492022 JetCoreEnvironment encapsulates a project (in the IDEA sense), so the classpath and sources lie in its area of responsibility 2012-04-11 16:13:11 +04:00
Stepan Koltsov 10dd366216 CompilerDependencies
Holds reference to runtime.jar and jdk-headers.jar. Paths to these
jars are no longer hardcoded.

Many tests now compile runtime before execution. Because of this:
* Single test invocation is significantly slower now for some tests
* This can be fixed by making tests independent from runtime (this
must be done anyway)

Some tests still depend on runtime.jar built by "ant dist", this
is to be fixed.
2012-04-09 03:04:50 +04:00
Stepan Koltsov 4125a508ec create forTestCompile package 2012-04-09 00:07:52 +04:00
Stepan Koltsov d74c217936 rename stdlib to runtime 2012-04-08 23:31:29 +04:00
Stepan Koltsov b38e171812 MapTypeMode and properly map builtins
used in JetTypeMapper in JetTypeMapper

* MapTypeMode contains no information not needed by JetTypeMapper
* MapTypeMode has separate VALUE and IMPL values that are needed to compile builtins
2012-04-07 06:32:18 +04:00
Svetlana Isakova 4f30e12177 fixes after merge 2012-03-30 13:38:36 +04:00
Stepan Koltsov 2c4094f4d4 proper environment when compiling special things
* do not include anything when compiling builtins
* do not include kotlin-runtime and jdk-headers when compiling jdk-headers
2012-03-30 03:54:58 +04:00
Maxim Shafirov 060be0a8f8 Refactor dependencies, so jet-as-java might be used in cli. 2012-03-29 21:18:35 +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
Andrey Breslav ed04839901 renaming/code moving to meet the code style 2012-03-29 19:22:55 +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
James Strachan e740c47e29 removed some of the cruft and redundant copies of junit.jar 2012-03-21 09:09:09 +00:00
Maxim Shafirov e82dd48662 Progress messages when emitting classfiles 2012-03-14 21:59:51 +04:00
James Strachan 7ef65c0099 moved the stdlib tests into the same directory as the stdlib, so it works a bit better with maven support in IDEA 2012-03-14 16:14:14 +00:00
Andrey Breslav f834ed4517 Paths fixed 2012-03-06 19:00:29 +04:00
James Strachan ffa2b7b085 added a flag to indicate whether or not the module is being compiled or not (so we can defer compiler plugins until after the module is built) 2012-03-03 06:35:32 +00:00
Andrey Breslav 200b6fbd91 Better error reporting from the compiler to the IDE 2012-02-29 15:11:34 +04:00
Andrey Breslav 56a49781bd Fix testlib tests 2012-02-28 19:31:48 +04:00
Alex Tkachman 9ba1dbf98a refactoring in progress 2012-02-27 22:59:34 +02:00
Maxim Shafirov a03922d467 Copyrights set to Apache, reflecting it's now open source 2012-02-14 19:25:06 +04:00
Maxim Shafirov 9e7581c856 Give up on cleaning loader properly 2012-02-06 16:19:41 +04:00
Maxim Shafirov f80ad4c35a Yet another attempt to fix tests 2012-02-06 15:01:54 +04:00
Maxim Shafirov 87f3b649e6 Yet another attempt to fix tests 2012-02-06 14:15:37 +04:00