Commit Graph

529 Commits

Author SHA1 Message Date
pTalanov 7da1e31eca Merge remote-tracking branch 'origin/master'
Conflicts:
	build-tools/core/src/org/jetbrains/jet/buildtools/core/BytecodeCompiler.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/K2JVMCompiler.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/CompileEnvironmentConfiguration.java
	compiler/cli/src/org/jetbrains/jet/cli/jvm/compiler/JetCoreEnvironment.java
	compiler/tests/org/jetbrains/jet/JetTestUtils.java
	compiler/tests/org/jetbrains/jet/codegen/CompileTextTest.java
2012-05-02 13:39:36 +04:00
Stepan Koltsov 427afefce4 replace .sure with !! 2012-05-02 00:01:04 +04:00
Stepan Koltsov d5d05d76f3 explictly test codegen with jdk-headers 2012-05-01 23:49:25 +04:00
Stepan Koltsov 5e77ca553c make most codegen tests are indenendent from jdk-headers/stdlib now 2012-05-01 23:49:22 +04:00
Stepan Koltsov b109ac5ad4 store CompilerDependencies in JetCoreEnvironment 2012-05-01 22:59:42 +04:00
Stepan Koltsov ba7a94e17d reuse CodegenTestCase in CompileTextTest 2012-05-01 22:59:39 +04:00
Stepan Koltsov c23feab6d1 JetLiteFixture: assign to myEnvironment only once 2012-05-01 22:32:08 +04:00
Stepan Koltsov d71723131d Revert "enhance tests (mostly codegen)" temporarily
This reverts commit 95f9bcbacb.
2012-05-01 21:21:46 +04:00
Stepan Koltsov 95f9bcbacb enhance tests (mostly codegen)
* drop dependency on stdlib/alt-headers in the most tests
* assign to myEnvironment at most once in JetLiteFixture
* more tests do not compile runtime
2012-05-01 19:11:48 +04:00
Svetlana Isakova 9c0eb285e2 back end test for 'variable as function' call case 2012-04-30 15:44:23 +04:00
Andrey Breslav dcc2728f0a @NotNull is needed in tests, bringing it back
Reverting c9edaa6b4f
2012-04-28 23:13:02 +04:00
pTalanov 330532661b Merge with master. 2012-04-28 22:47:38 +04:00
pTalanov 66e10a18a3 JetCoreEnvironment for JS and JVM are separated. 2012-04-28 22:47:35 +04:00
Stepan Koltsov b24634eb99 actually compile should be on by default
(it is safer)
2012-04-28 20:34:33 +04:00
Stepan Koltsov 661b16359a resolve jdk classes 2012-04-28 17:43:53 +04:00
Alex Tkachman f076ff027d KT-729 Need to support arrays as varargs 2012-04-28 10:43:49 +03:00
Alex Tkachman 7b7987ba0d KT-1759 str.plus(str) 2012-04-28 08:09:02 +03:00
Andrey Breslav d72c655bd7 Option added: switch off compilation of stdlib and jdk-headers
To achieve the desired result, in your run configuration add an environment variable named kotlin.tests.actually.compile and set it to "NO!"
2012-04-27 22:01:58 +04:00
Stepan Koltsov f74ba83124 typo 2012-04-27 19:09:41 +04:00
Stepan Koltsov a17d7764b1 generify JavaDescriptorResolverTest 2012-04-27 19:09:40 +04:00
Stepan Koltsov fc732ef477 ReadJavaBinaryClassTest: find java files, not kotlin files 2012-04-27 19:09:40 +04:00
Stepan Koltsov 286b4c4d4b simplify filters in JetTestCaseBuilder 2012-04-27 19:09:39 +04:00
Stepan Koltsov 583e3c9b85 diag in ReadJavaBinaryClassTest 2012-04-27 19:09:38 +04:00
pTalanov 9f92b0b5d7 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:39:44 +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
Stepan Koltsov c9edaa6b4f do not add annotations.jar to compiler classpath 2012-04-25 18:48:14 +04:00
Stepan Koltsov 4a1c36d733 fix complex case of recursion in JavaDescriptorResolver
#KT-1804
2012-04-24 22:14:01 +04:00
Stepan Koltsov 75255aebdc use BufferedOutputStream when building jar
it speeds up building (from 3% to 1% in CompileCompilerDependenciesTest)
2012-04-21 18:03:57 +04:00
Evgeny Gerashchenko 9bec7b5e9d Merge branch 'diagnostics'
Conflicts:
	compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
	compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java
2012-04-20 21:58:05 +04:00
Stepan Koltsov 3b0c9244c9 di: @PreDestroy
I need in my private experiments
2012-04-20 21:33:18 +04:00
Stepan Koltsov 994e6fe009 di: store everything in fields
needed to implement @PreDestroy
2012-04-20 21:33:17 +04:00
Stepan Koltsov 092a572143 do not compile java part of runtime
it must be already compiled by Idea
2012-04-20 21:33:17 +04:00
Andrey Breslav e33acbeebf Use CompileEnvironmentConfiguretion instead of its components 2012-04-20 14:33:49 +04:00
Andrey Breslav 4da91ee3d6 CompileEnvironment removed
What used to be CompileEnvironment, now is split into data (in CompileEnvironmentConfiguration) and utility methods (in CompileEnvironmentUtil).
CompilerDependencies should be removed later.
All the relevant stuff sits in the JetCoreEnvironment class
2012-04-20 11:52:02 +04:00
Stepan Koltsov b47d37094e properly report exception if analyze failed
#KT-1831 Fixed
2012-04-19 16:41:34 +04:00
Stepan Koltsov e698b0eec4 resolve all descriptors from libraries
(basic)
2012-04-19 14:22:58 +04:00
Stepan Koltsov e5d7eafe92 stdlib is not needed in Read*BinaryClassTest 2012-04-19 14:05:40 +04:00
Stepan Koltsov f50a31c74c TimeUtils 2012-04-19 14:05:39 +04:00
Stepan Koltsov 4272e50d67 print what is currently compiled 2012-04-19 14:05:38 +04:00
Svetlana Isakova 4d62fbad2b changed resolution order: first priority is 'local extensions; members; nonlocal extensions', than by implicit receivers (before was vice versa) 2012-04-17 14:05:45 +04:00
Andrey Breslav 4eb594024a Removed the exec(String...) method in KotlinCompiler
It's important to be aware of what stream the messages will be written to, so such a default implementation is harmful
2012-04-13 19:59:28 +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
Evgeny Gerashchenko 370af95c87 Introduced DispatchingDiagnosticRenderer, which replaced DefaultDiagnosticRenderer. 2012-04-13 19:31:47 +04:00
Evgeny Gerashchenko dd3c9146cd Removed UnresolvedReferenceDiagnostic class, since it's not very useful. 2012-04-13 19:31:47 +04:00
Evgeny Gerashchenko b0e09319a9 Moved DefaultDiagnosticRenderer from cli back to frontend to avoid run-time dependencies on cli where rendering diagnostics is needed. 2012-04-13 19:31:46 +04:00
Evgeny Gerashchenko 7be6fe84be Made single parameter of Renderer.render() @NotNull, because argument was almost never @Nullable on call-sites. 2012-04-13 19:31:45 +04:00
Evgeny Gerashchenko 6a13510741 Replaced Diagnostic.getMessage() with DiagnosticRenderer.render() calls.
Made Diagnostic.getMessage() deprecated, introduced DiagnosticRender interface and default implementation for it.
2012-04-13 19:31:45 +04:00
Stepan Koltsov 829f73cc5f some classes from runtime.jar are not meant to be loaded by JDR
* assert runtime implementations from JetStandard* are not loaded
  by JavaDescriptorResolver
* fix wrong @JetMethod in jet.Iterator
* fix jet.Iterator ns was created
* fix incorrect number of functions and tuples in JetStandardClasses
* added TODO about inconsisten Tuple class
2012-04-11 20:00:01 +04:00