Commit Graph

66 Commits

Author SHA1 Message Date
Alex Tkachman 8a29b8562d synthetic accessors for methods/properties are static methods in bytecode 2012-08-07 22:32:34 +03:00
Alex Tkachman 7f456ede1a KT-2149 binary and text compilation in one pass 2012-08-06 12:36:32 +03:00
Alex Tkachman 8ba9e9f51b even more exact test for KT-2509 2012-08-03 08:08:03 +03:00
Alex Tkachman e134969896 making script classes useful/accessable for the rest of the world 2012-08-01 09:58:01 +03:00
Alex Tkachman 7c2d394412 properr names for scripts 2012-07-29 23:58:45 +03:00
Andrey Breslav 5f3643804c Import directives migrated from ASM 3.3 to 4.0 with renamed packages 2012-07-25 12:07:19 +04:00
Evgeny Gerashchenko 7f12dcbc24 Got rid of post-init adding classpath in all tests. 2012-07-23 17:38:20 +04:00
Evgeny Gerashchenko 1de2e80c32 Increased tolerated time difference for codegen tests relying on current time. 2012-07-11 16:43:08 +04:00
Evgeny Gerashchenko c74ccec0bf Renamed CompilerSpecialMode to ConfigurationKind, gave enum constants more clear names. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 2c58989a47 Moved CompilerSpecialMode enum to compiler-tests, since it is now used only for creating test compiler configurations. 2012-07-07 23:07:19 +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 97e0ee4a29 Got rid of storing CompilerDependencies in JetCoreEnvironment (storing CompilerSpecialMode instead). 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 5a88d28154 Got rid of dependency on compiler dependencies in injector for TDA for JVM. 2012-07-07 20:33:22 +04:00
Stepan Koltsov c580a75f20 generate to text even if assertion error 2012-06-08 04:19:24 +04:00
Stepan Koltsov 8a3d3d21bd better script class name 2012-06-08 04:19:23 +04:00
Alex Tkachman 243bdccf37 removing duplicating android check 2012-06-07 13:04:53 +03:00
Andrey Breslav 0916ec549d Add verification by dx.jar to CodegenTests
A patch by Natalia Ukhorskaya: https://github.com/JetBrains/kotlin/pull/70

Adds Android verfication to our codegen tests
2012-06-07 12:42:59 +04:00
Stepan Koltsov 3408c9833c ExceptionUtils.rethrow 2012-06-06 23:58:19 +04:00
Alex Tkachman 03c4e755fa preparations to multi-file compilation 2012-06-06 11:12:39 +03:00
Stepan Koltsov 877ecf83ad store script object in CodeGenTest field 2012-06-05 22:56:26 +04:00
Stepan Koltsov 68ae2e95a3 better ScriptGenTest: check more fields 2012-06-05 22:56:26 +04:00
Stepan Koltsov 9a71cb5e72 CodeGenTest: check result and print code in any blackbox
... and fix test
2012-06-05 22:56:25 +04:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov 9402262e7c CodegenTestFile 2012-05-28 20:19:23 +04:00
Svetlana Isakova 0bf65bfe1e get rid of JetPseudocodeTrace
and JetControlFlowDataTraceFactory
2012-05-28 12:09:44 +04:00
Stepan Koltsov f4051f45ab generate bytecode for script
It is just prototype

* does not make top level symbols visible as class members yet
* does not take parameters
* Script class name is hardcoded now
2012-05-23 02:52:29 +04:00
Stepan Koltsov 5eb3a86c4d break CodegenTestCase : JetLiteFixture dependency
This is important because test base classes like JetLiteFixture has
a lot of unused code/state that hardens reading/debugging.
2012-05-23 02:52:28 +04:00
Stepan Koltsov ded824468a replace String with JvmClassName 2012-05-11 01:08:33 +04:00
Stepan Koltsov 9908791094 KT-1829 NoClassDefFoundError when using java inner classes
#KT-1829 Fixed
2012-05-11 01:08:30 +04:00
Stepan Koltsov 34829a9ab9 fix code formatting 2012-05-02 14:57:49 +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 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
Stepan Koltsov 3b43f30824 add JDK to CompilerDependencies 2012-04-25 19:36:22 +04:00
Stepan Koltsov b47d37094e properly report exception if analyze failed
#KT-1831 Fixed
2012-04-19 16:41:34 +04:00
Stepan Koltsov bcbcb48ef8 remove unused parameters 2012-04-09 18:22:22 +04:00
Pavel V. Talanov a030576052 Merge from brahch analyzeJS.
Conflicts:
	compiler/backend/src/org/jetbrains/jet/codegen/GenerationState.java
	compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
	compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/AnalyzerFacadeForJVM.java
	compiler/tests/org/jetbrains/jet/codegen/GenerationUtils.java
	compiler/tests/org/jetbrains/jet/resolve/ExpectedResolveData.java
	compiler/tests/org/jetbrains/jet/types/JetDefaultModalityModifiersTest.java
	idea/src/org/jetbrains/jet/plugin/libraries/JetSourceNavigationHelper.java
	idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java
	idea/src/org/jetbrains/jet/plugin/project/WholeProjectAnalyzerFacade.java
	idea/src/org/jetbrains/jet/plugin/quickfix/ChangeVariableMutabilityFix.java
	idea/src/org/jetbrains/jet/plugin/quickfix/ImportInsertHelper.java
	idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixUtil.java
	idea/src/org/jetbrains/jet/plugin/refactoring/JetNameSuggester.java
	idea/src/org/jetbrains/jet/plugin/refactoring/JetRefactoringUtil.java
	idea/src/org/jetbrains/jet/plugin/refactoring/introduceVariable/JetIntroduceVariableHandler.java
2012-04-09 17:06:56 +04:00
Pavel V. Talanov 652be4ed95 Revert misleading whitespace changes. 2012-04-09 15:04:27 +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
Pavel V. Talanov 766b4dc975 Move AnalyzerExhaust from frontend.java to frontend. 2012-04-04 16:11:40 +04:00
Stepan Koltsov ec367a0bf0 merge copy-paste after excessive inline in e6fda5 2012-03-29 23:39:01 +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
Stepan Koltsov 4ea99fc6ca KotlinCompiler -stubs option
* do not fail on errors
* do not analyze function bodies
* generate "throw new RuntimeException()" in bytecode
2012-02-28 15:52:59 +04:00
Alex Tkachman 1921e266a8 ability to compile text (not file) 2012-02-23 18:45:34 +02:00
Alex Tkachman 4f67177aa2 Revert "ability to compile text and small refactoring"
This reverts commit 4ddf101397.
2012-02-23 17:01:33 +02:00
Alex Tkachman 4ddf101397 ability to compile text and small refactoring 2012-02-23 14:12:28 +02:00
Maxim Shafirov a03922d467 Copyrights set to Apache, reflecting it's now open source 2012-02-14 19:25:06 +04:00
Alex Tkachman bb3ca16203 Speeding up codegen tests 2012-02-07 19:10:47 +02:00