Commit Graph

441 Commits

Author SHA1 Message Date
Alexey Tsvetkov a7cf6bbf9a Extract BasicMap from IncrementalCacheImpl
Original commit: bde78c2df2
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov 20db45c3cf Pass BasicMap storageFile using constructor
It makes possible to extract BasicMap outside of IncrementalCacheImpl
and use it for some maps, that share between build targets

Original commit: 47019dd51f
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov 1308ff2a3b Move persistent map parameters to constructor
Original commit: 80094605eb
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov ec0ebd9a2e Fix value dump for incremental caches
Original commit: cf35be90aa
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov eb10544231 Recompile only files that call changed inline functions
Original commit: e0419f956e
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov 6a7f1bc7fe Generalize InlineFunctionsMapExternalizer
Original commit: dfa5a420e6
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov 8b99bd7002 Save changed functions to incremental cache
Original commit: f0d7ee4cdf
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov 7fc81ca605 Minor: removed clear method from DirtyOutputClassesMap
It's already has clean method from BasicMap

Original commit: f2295676bf
2015-09-08 05:49:30 +03:00
Alexey Tsvetkov b35e7c1f5b Minor: rename SourceToClassesMap#addSourceToClass->add
addSourceToClass is confusing, because in fact
this function is appending to SourceToClassesMap

Original commit: 701585c0b6
2015-09-08 05:49:29 +03:00
Alexey Tsvetkov d6fd20e429 Add ClassToSourceMap to incremental caches
Original commit: 2842b74dd8
2015-09-08 05:49:29 +03:00
Alexey Tsvetkov c150468dc1 Recompile files dependent on inline relationship
Right now, it's always recompiles dependent files,
even if inline function has not been changed.

Original commit: 52a8fe018b
2015-09-08 05:49:29 +03:00
Alexey Tsvetkov ed234ae7b5 Save info about inlined calls to incremental caches
Original commit: 64cc75c1ba
2015-09-08 05:49:29 +03:00
Alexey Tsvetkov c660628162 Add simple inline incremental compilation test cases
Original commit: 32c041d4db
2015-09-08 05:49:29 +03:00
Zalim Bashorov d9b5b94a0e Minor: fix testdata files
(build.log files for incremental compilation tests)

Original commit: 2f9f5a3cd5
2015-09-07 16:29:09 +03:00
Zalim Bashorov 721dca2087 Minor fixes in KotlinJpsBuildTest
Original commit: 5193e6a181
2015-09-07 16:29:09 +03:00
Zalim Bashorov 13bc63a62f Try to detect target for output items using outputDir when sourceFiles is empty
Original commit: 879b1a8abb
2015-09-07 16:29:08 +03:00
Zalim Bashorov 6d76d4a9d0 Save dependencies of kotlin_module in cache
Original commit: 01f3710211
2015-09-07 16:29:07 +03:00
Zalim Bashorov 5ed39e3724 Fix incremental compilation for new package parts
Original commit: ec62cccb1a
2015-09-07 16:29:06 +03:00
Michael Bogdanov 77487d72b8 Jps test fix
Original commit: 378740f4be
2015-09-07 16:28:59 +03:00
Michael Bogdanov ab61199599 Generate calls through new minifacades
Original commit: 47635c19a2
2015-09-07 16:28:59 +03:00
Dmitry Petrov b950dd3d3e Proper light classes generation in presence of the new file facades.
Original commit: b1b845d44d
2015-09-07 16:28:53 +03:00
Dmitry Petrov 9373f7eab6 PackagePartClassUtils converted to Kotlin and refactored
Original commit: 5fdfe8df3c
2015-09-07 16:28:53 +03:00
Dmitry Petrov b686ef5e67 Generate ex-package parts as file facades.
Support new facade kind in stub building and incremental compilation.

Original commit: e050ff3271
2015-09-07 16:28:52 +03:00
Michael Bogdanov a5093f7fd5 TODO: support mapping processing in incremental compilation
Original commit: 0883781f8c
2015-09-07 16:28:49 +03:00
Dmitry Petrov c61115b274 Update debug tests & incremental compilation tests depending on part class naming
Original commit: 7af88f6797
2015-09-07 16:28:43 +03:00
Michael Bogdanov 25fafd4201 Incremental tests patched
Original commit: 0936351983
2015-09-07 16:28:39 +03:00
nik 3ff9dff919 kotlin builder: print 'label in local history' message to log with 'debug' level and once per build
(https://github.com/JetBrains/kotlin/pull/745)

Original commit: 0772bbeb4f
2015-09-04 11:31:00 +03:00
Ilya Chernikov 7bbbd35437 Refactoring after review
Original commit: 9bee97e810
2015-08-31 18:39:55 +02:00
Ilya Chernikov 09090497f6 Passing JPS process JVM memory options to daemon, refactoring options processing
Original commit: 2d45a37884
2015-08-31 18:39:54 +02:00
Ilya Chernikov 4145f431a0 Fixes after review
Original commit: 61de1c3212
2015-08-31 18:39:54 +02:00
ligee 9edbe4f0d6 Shutting down daemon from kotlin plugin on idea exit, passing jvm params to daemon launch
Original commit: 6e3ce69faa
2015-08-31 18:39:53 +02:00
ligee bd89b58a70 Adding compiler id digest calculation and check to detect replaced compiler jar, minor fixes and refactorings
Original commit: 39d6592e1f
2015-08-31 18:39:51 +02:00
ligee b26b1f7e9e Switching to stream for logging to simplify interaction with use sites
Original commit: d8be831339
2015-08-31 18:39:50 +02:00
ligee 0ac755da00 implementing daemon startup, basic check and restart machanisms, switching to kotlin everythere, additional logging and checks, in JPS plugin daemon compilation is off by default, turned on by "kotlin.daemon.enabled" property
Original commit: 7ab2208fc5
2015-08-31 18:39:50 +02:00
ligee a559e825ce incremental compilation via daemon
Original commit: b55894499f
2015-08-31 18:39:49 +02:00
Stanislav Erokhin 29305a7014 Changed JetScope to LexicalScope in ClassDescriptorWithResolutionScopes and DeclarationScopeProvider
Original commit: d92e71861e
2015-08-27 12:01:13 +03:00
Michael Nedzelsky 87f9913f34 disable parallel compilation for Kotlin modules
Original commit: c061a3dbd8
2015-08-26 23:02:55 +03:00
Zalim Bashorov 7a7064677b Add test lookup tracking for local declarations
Original commit: 3465126bee
2015-08-24 19:50:10 +03:00
Zalim Bashorov 4032df4960 Add test for lookups to classifier members
Original commit: 3b21d391c5
2015-08-24 19:50:09 +03:00
Zalim Bashorov 60ce016ca5 Provide LookupLocation when resolve calls
Original commit: cca57af401
2015-08-24 19:50:04 +03:00
Zalim Bashorov 2d5f0f428c Add test for lookups to top level declarations
Original commit: 556c755e83
2015-08-24 19:50:03 +03:00
Zalim Bashorov 6ce54f59b8 No more record path to file which contains current scope in LookupTracker
Original commit: 673df1f085
2015-08-24 19:50:02 +03:00
Zalim Bashorov d3e29843aa Minor: ignore KDoc like comments which starts with /**
for example it can be used to mark lookups which we can't report yet

Original commit: 7790c2fd71
2015-08-24 19:50:02 +03:00
Zalim Bashorov b068d19bd2 Minor: fix warnings in AbstractIncrementalJpsTest.kt
* used new property access syntax
* splitBy -> split
* used string template instead of concatenation

Original commit: 6bed076228
2015-08-24 19:50:02 +03:00
Zalim Bashorov b983e9c868 Store lookup info inside testData code instead of separate file
Original commit: b32040f610
2015-08-24 19:50:01 +03:00
Alexander Udalov 2ea65e1cbc Refactor command-line interface to kotlin-preloader.jar
Use reasonable defaults for the options: no time profiling, no instrumenters,
empty classpath, 4096 as the class number estimate. Replace 4096 in the
codebase with the constant field.

Keep the old interface intact until the build is bootstrapped and the new one
can be used in all compilation steps

Original commit: aba6ab1299
2015-08-24 01:29:58 +03:00
Nikolay Krasko 83f9db33ce Don't filter class files and jars from build script. Get a warning about their absence.
Original commit: 5b3c05d039
2015-08-20 18:48:38 +03:00
Michael Nedzelsky e2130c606e temporarily adjust timeout limit for testCancelLongKotlinCompilation
Original commit: 6a1eb91e18
2015-08-11 02:24:34 +03:00
Zalim Bashorov 27ac8066f6 Add test infrastructure to check the tracking lookups
Added simple test to verify infrastructure.

Original commit: 7e250ab2ca
2015-08-08 02:08:19 +03:00
Zalim Bashorov 65031eb2c9 Minor: move some properties of AbstractIncrementalJpsTest to constructor
Original commit: 36f69d9fd6
2015-08-08 02:08:19 +03:00