Alexander Udalov
95ec2448eb
Generate not-null assertions after method calls
...
If a method comes from Java and is annotated as returning NotNull, after
calling it we should check if it actually returned something other than null.
Introduce checkReturnedValueIsNotNull() in jet/runtime/Intrinsics which does
exactly that.
CallableMethod's invoke() and invokeDefault() are now private, use asserted
versions instead
2012-10-08 14:11:56 +04:00
Alexander Udalov
1cf5e92981
Support multi-file tests with Java in CodegenTestCase
2012-10-08 14:11:54 +04:00
Alex Tkachman
e317764a88
correct access flags for package private (coming from java) #KT-2781 fixed
2012-09-16 10:08:36 +03:00
Alex Tkachman
6c4102bf23
simple case (no closures) of class level objects #KT-2398 fixed
2012-09-12 17:35:51 +03:00
Natalia.Ukhorskaya
04deb2dd2f
JetTestUtils: change signature of compileJavaFile - take collection of files to compile and list of javac options
...
LoadDescriptorUtil: remove duplicate code
2012-08-30 10:55:47 +04: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
Andrey Breslav
08bb390820
Project is available in codegen
2012-08-24 12:18:18 +04:00
Natalia.Ukhorskaya
6740a712d8
Move blackBoxWithJavaFile from FunctionGenTest to CodegenTestCase
2012-08-22 14:32:00 +04:00
Svetlana Isakova
47362bf2ac
KT-2633 Support multiple assignment in JVM Back-end
...
#KT-2633 Fixed
2012-08-21 16:32:19 +04:00
Evgeny Gerashchenko
67304c64ff
Removed unused myProject field from IntrinsicMethods. Removed from injector parameters, etc.
2012-08-09 15:13:42 +04:00
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