Commit Graph

44 Commits

Author SHA1 Message Date
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
Maxim Shafirov a0ea7ba2b3 Yet another attempt to fix tests 2012-02-03 22:05:06 +04:00
Maxim Shafirov 91da7e4e16 Hopefully, fix tests (they needn't to be executed actually) 2012-02-03 19:39:13 +04:00
Andrey Breslav 35fb5faad8 Trying to fix the test 2012-02-03 15:05:55 +04:00
Maxim Shafirov 04b0699cd5 Fix memory leak by disposing a classloader. The real issue though is located in TypeInfoParser, that has WeakHashMap with values referencing keys. 2012-02-02 20:35:15 +04:00
Maxim Shafirov 25b71cd6c9 suite.addTestSuite(class) won't work if passed TestCase instance has TestCase.class loaded by different classloader. It does so very silently (this is a note to reified generics haters) 2012-01-25 17:00:43 +04:00
Maxim Shafirov 81ef081a87 Finally drop attaching stdlib sources everywhere 2012-01-24 17:20:19 +04:00
Stepan Koltsov 4767e5c935 split TestlibTest into two tests
* old tests attaches stdlib sources to testlib classpath
* new test compiles stdlib into stdlib.jar and then adds stdlib.jar to testlib classpath
2012-01-23 03:37:09 +04:00
Maxim Shafirov 59e688f9ff Move module scripting out of jvm backend 2012-01-13 14:23:48 +04:00
Alex Tkachman 472ec42b19 testing stdlib as part of the build. separate class 2012-01-08 22:32:38 +02:00