Zalim Bashorov
e6b69e48d9
Minor: fix JetCoreEnvironment#(createForProduction, createForTests) call sites for JVM.
2014-12-01 15:27:33 +03:00
Zalim Bashorov
88f9621b45
Minor: update junit to 4.11
2014-10-13 21:25:55 +04:00
Alexander Udalov
eb11a7dc88
Move utilities out of runtime modules
...
DescriptorUtils & DescriptorSubstitutor contained a lot of utilities that were
used only in compiler & IDE. Move them closer to their usages
2014-06-26 22:02:59 +04:00
Alexander Udalov
ac248f2d46
Minor refactorings in codegen tests
...
Unindent code, get rid of warnings, etc.
2013-11-14 19:11:18 +04:00
Alexander Udalov
a35f285bcf
Disable "UseOfSystemOutOrSystemErr" inspection in tests
2013-11-14 19:11:18 +04:00
Alexander Udalov
af2a52bd4e
Add JetTypeMapper.mapClass
...
Should be used instead of "mapType(*.getDefaultType(), IMPL)" pattern
2013-10-17 19:01:44 +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
Mikhael Bogdanov
6154464050
Test framework fix: Load kotlin test classes in separate class loader
2013-10-14 17:30:27 +04:00
Andrey Breslav
7123905e96
Support for "builtins/stubs" mode removed from cli
2013-10-09 19:16:43 +04:00
Evgeny Gerashchenko
32b7bfeca6
Minor. Using more common class.
2013-09-17 18:09:59 +04:00
Evgeny Gerashchenko
c90b398398
Replaced sout with serr in some test to reduce noise.
2013-05-07 18:50:44 +04:00
Evgeny Gerashchenko
52b7ee6447
Happy new year 2013!
2013-01-28 18:58:08 +04:00
Nikolay Krasko
44dcdde513
Dispose GeneratedClassLoader
2013-01-22 16:05:23 +04:00
Andrey Breslav
f26412aae4
Utility methods moved to a utility class
2013-01-10 16:16:49 +04:00
Evgeny Gerashchenko
e03eaf6dde
Removed @author javadocs from code.
2012-12-28 17:44:31 +04:00
Andrey Breslav
7e7e779e80
No printing of verbose compiler output in Ant task and REPL
2012-11-13 19:38:20 +04:00
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