Commit Graph

9601 Commits

Author SHA1 Message Date
Mikhael Bogdanov c61c8d7fa0 Compilation Exception - remove duplicated this on stack
#KT-3114 Fixed
2013-02-11 15:19:49 +04:00
Alexander Udalov c7e512a38a Correct Android SpecialFiles
Replace all multi-file tests and tests with java with an exclusion of
these directories. Delete obsolete exclusions, add a new one
2013-02-11 03:32:56 +04:00
Alexander Udalov 620143ae5b Add test on bytecode text
Test data should be a Kotlin source file with zero or more comments e.g. of
the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated
bytecode for this file contains exactly one occurrence of the string
'INVOKEVIRTUAL'
2013-02-11 02:01:43 +04:00
Alexander Udalov fe96a0172d Move blackBox() methods to AbstractBlackBoxCodegenTest 2013-02-11 02:01:43 +04:00
Alexander Udalov b485c7ae26 Switch class loading logic in blackBoxWithJava tests
BoxWithJava tests now by default are loaded with the classloader which has
test's classpath in itself, as in the former ClassPathInTheSameClassLoaderTest
2013-02-11 02:01:42 +04:00
Alexander Udalov 22bf8b25b8 Autogenerate codegen multi-file tests
Based on boxMultiFile/ directory
2013-02-11 02:01:42 +04:00
Alexander Udalov a61b3ec461 Move multi-file codegen testData to boxMultiFile/
There'll be an auto-generated test over this directory
2013-02-11 02:01:42 +04:00
Alexander Udalov 544aad390d Delete StdlibTest and StdlibTestForever
Move remaining tests to AnnotationGenTest (where they did belong to in the
first place)
2013-02-11 02:01:42 +04:00
Alexander Udalov 90d255e7da Simplify tests on not-null assertions
No need to call blackBoxFile() on a useless test data file. Also creating
environment logic is simplified
2013-02-11 02:01:41 +04:00
Alexander Udalov 30203383a4 Delete unneeded abstract test class, regenerate tests 2013-02-11 02:01:41 +04:00
Alexander Udalov 9df3c22097 Kill blackBoxFile()
If your test is supposed to use blackBoxFile(), maybe it should be placed into
box/boxWithStdlib directory
2013-02-11 02:01:41 +04:00
Alexander Udalov 31231fe18b Move JdkAnnotationsTest to boxWithStdlib 2013-02-11 02:01:41 +04:00
Alexander Udalov f994c9924f Move FullJdk tests to boxWithStdlib 2013-02-11 02:01:41 +04:00
Alexander Udalov d23f82177f Generate codegen blackbox tests with stdlib 2013-02-11 02:01:40 +04:00
Alexander Udalov 714708eac7 Delete generated test cases, move testData to boxWithStdlib 2013-02-11 02:01:40 +04:00
Alexander Udalov b311255d96 Extract junit testcase, delete unneeded code 2013-02-11 02:01:40 +04:00
Alexander Udalov 8a605b3884 Codegen tests: move stdlib tests to boxWithStdlib 2013-02-11 02:01:40 +04:00
Alexander Udalov 83b93071d3 Fix over-optimized comparison with null 2013-02-11 02:01:39 +04:00
Andrey Breslav 1670831269 Test fixed after ABI version change 2013-02-10 16:06:30 +04:00
Andrey Breslav ab79f655a1 ABI version increased due to a change in 1021ec5 "Add Intrinsics.areEqual()" 2013-02-10 15:34:55 +04:00
Svetlana Isakova 40df6eafd1 record RESOLVED_CALL to the right trace to be accessible to backend 2013-02-08 18:05:43 +04:00
Svetlana Isakova 04a6a1d4a4 make TRACE_STUB throw exceptions instead of silently being used 2013-02-08 16:10:30 +04:00
Svetlana Isakova 27d7a159b1 regenerated tests 2013-02-08 15:44:28 +04:00
Svetlana Isakova c42c2e653b rename hasUnknownTypeParameters -> hasIncompleteTypeParameters 2013-02-08 15:10:43 +04:00
Svetlana Isakova 3014275982 return commit after merge
'Fixed UnsupportedOperationException when a namespace is used in place of an expression.'
2013-02-08 15:10:43 +04:00
Svetlana Isakova d149218e1d refactoring after code review
do not consider error type in parameters of function type as unknown
2013-02-08 15:10:43 +04:00
Svetlana Isakova cc94c45195 returned method equalsOrContainsAsArgument 2013-02-08 15:10:43 +04:00
Svetlana Isakova ff4a9fdab3 rename
ResolveMode enum to {TOP_LEVEL_CALL, NESTED_CALL}
 completeValueArgumentsInference to completeNestedCallsInference
2013-02-08 15:10:43 +04:00
Svetlana Isakova c069eedc9b small fixes after review 2013-02-08 15:10:43 +04:00
Svetlana Isakova 4f028e41be explicitly invoke callExpressionResolver with NO_EXPECTED_TYPE
for inner calls
2013-02-08 15:10:43 +04:00
Svetlana Isakova 27e6dad307 test improved 2013-02-08 15:10:43 +04:00
Svetlana Isakova db91928984 test fixes after refactorings
expected return type for function literal cannot depend on expected type of outer function
2013-02-08 15:10:43 +04:00
Svetlana Isakova ee0628e862 added DEFERRED_COMPUTATION_FOR_CALL
- instead of storing deferredComputationsForArguments in ResolvedCall
store it in BindingContext (in DEFERRED_COMPUTATION_FOR_CALL)
-do not repeat computation for the same argument (cache added)
2013-02-08 15:10:43 +04:00
Svetlana Isakova f5df9d7dbf refactoring: removed unnecessary local variable 2013-02-08 15:10:43 +04:00
Svetlana Isakova fe66161352 rename get*ExtendedTypeInfo -> get*TypeInfoForCall 2013-02-08 15:10:43 +04:00
Svetlana Isakova 33de1c31c5 check resulting type for inner call
while completeValueArgumentsInference
2013-02-08 15:10:42 +04:00
Svetlana Isakova 73816a7ba2 use 'BasicCallResolutionContext.create' instead of 'toCallResolutionContext'
from ResolutionContext
2013-02-08 15:10:42 +04:00
Svetlana Isakova f17139ba1e refactoring: removed unnecessary flag 2013-02-08 15:10:42 +04:00
Svetlana Isakova fe61d51c10 rename replace->create method 2013-02-08 15:10:42 +04:00
Svetlana Isakova d418a16dd8 render not inferred return/parameter type of function literals as ???
instead of DONT_CARE / CANT_INFER
2013-02-08 15:10:42 +04:00
Svetlana Isakova 1a072e816a fixed DiagnosticMessageTest
value arguments order got lost during substitutions
2013-02-08 15:10:42 +04:00
Svetlana Isakova d447c90b13 added tests for function literals faster resolve 2013-02-08 15:10:42 +04:00
Svetlana Isakova 3eee19578a complete inference for inner calls after resolve&inference of outer call finishes
deferredComputationsForArguments stored in ResolvedCallImpl,
'completeValueArgumentsInference' completes inference for inner calls recursively
2013-02-08 15:10:42 +04:00
Svetlana Isakova 0d0441ebd8 do not use bounds containing error types to derive result 2013-02-08 15:10:41 +04:00
Svetlana Isakova d09c5c5e5e save explicitly 'INCOMPLETE_TYPE_INFERENCE' status 2013-02-08 15:10:41 +04:00
Svetlana Isakova 3f466e8aac added 'replaceResolveMode' to CallCandidateResolutionContext 2013-02-08 15:10:41 +04:00
Svetlana Isakova 35696f9ca0 added tracing parameter to ResolvedCallImpl 2013-02-08 15:10:41 +04:00
Svetlana Isakova ab9781b85d extracted class TracingStrategyImpl 2013-02-08 15:10:41 +04:00
Svetlana Isakova 4f5af9ab96 added ResolveMode (NORMAL, INTERNAL) to CallResolutionContext 2013-02-08 15:10:41 +04:00
Svetlana Isakova bb003d2b2f rename ResolveMode to ResolveArgumentsMode 2013-02-08 15:10:41 +04:00