Commit Graph

318 Commits

Author SHA1 Message Date
Ilya Gorbunov 3106458cc4 Replace assert with lazy assert, times with repeat. 2015-10-07 22:36:23 +03:00
Ilya Chernikov e27abe2f03 Caching daemon connection in JPS, additional logging and minor perf measurements refactoring
# Conflicts:
#	jps-plugin/src/org/jetbrains/kotlin/compilerRunner/KotlinCompilerRunner.kt
2015-10-07 19:55:05 +02:00
Ilya Chernikov 99b638a58b Adding support for JS compilation on daemon 2015-10-07 19:55:03 +02:00
Ilya Chernikov be66c24467 Extracting performance measuring utils into mini-framework, implement measurements of the rpc time, adding more measurements to performance logging, minor refactorings 2015-10-07 19:55:01 +02:00
Alexander Udalov bdd69d9e46 Use internal names in multifile class metadata
To reuse the strings already existing in the constant pool of the class file
2015-10-03 00:59:34 +03:00
Alexander Udalov 8c0a86617a Write JVM signatures to new protobuf messages 2015-10-03 00:59:33 +03:00
Alexander Udalov ad735cd788 Split ProtoBuf.Callable to three messages: constructor, function, property
Serialize both at the moment, will drop the old one after bootstrap
2015-10-03 00:59:30 +03:00
Alexander Udalov 041af28166 Deprecate and don't write KotlinClass$Kind, to be removed later 2015-10-03 00:59:30 +03:00
Alexander Udalov 056bb3f833 Deprecate and don't write KotlinSyntheticClass$Kind, to be removed later 2015-10-03 00:59:28 +03:00
Alexander Udalov e4090d3f30 Cleanup descriptors.proto, regenerate
- move enums and messages nested in Callable to top level, since they're likely
  to be reused in other messages soon
- delete obsolete comments: some did not any value, some became obsolete with
  custom options ("id in StringTable" -> name_id_in_table)
2015-10-02 20:30:55 +03:00
Michael Nedzelsky 8557e540fc incremental compilation: do not recompile on changes in private static final values. 2015-10-01 15:16:26 +03:00
Michael Nedzelsky c7b52bfdc1 fix KT-8977 Ignore non-public API changes for packages in incremental compilation
#KT-8977 Fixed
2015-10-01 15:16:18 +03:00
Dmitry Petrov 9a41ee41d7 Migrate to new storage API.
Remove IncrementalPackageFragment::getMultifileFacade.
2015-09-30 09:56:05 +03:00
Dmitry Petrov 3dfe9951ef Incremental compilation support for multifile classes. 2015-09-30 09:56:05 +03:00
Zalim Bashorov 0eac238f9b KotlinBuilder: improve logging 2015-09-29 19:42:29 +03:00
Alexander Udalov 6a8d0fbd75 Introduce infrastructure to separate string table from metadata on JVM
Nothing especially helpful happens here, this is only a big refactoring
introducing a separate string array for the string table, which is currently
always empty, but will contain actual strings soon
2015-09-29 16:26:27 +03:00
Alexander Udalov 89fe54c951 Remove NameResolver#getFqName, replace with getClassId 2015-09-29 16:26:26 +03:00
Alexander Udalov 7d5bd3cf50 Simplify storage of JVM signatures in binary metadata
Store the whole method & field descriptor strings. Moving these strings to
separate annotation arguments later will allow to reuse them with the ones in
the constant pool, presumably allowing to save lots of space (up to 10%)
2015-09-29 16:26:25 +03:00
Alexander Udalov e749bc262d Delete deprecated Type.Constructor message, advance ABI version 2015-09-29 16:26:24 +03:00
Alexey Tsvetkov 1002d233cb Update cache version 2015-09-25 20:11:58 +03:00
Alexey Tsvetkov ba33020140 Clean only kotlin caches when incremental compilation is off 2015-09-25 20:11:58 +03:00
Alexey Tsvetkov c7f66a1585 Fix recompilation of dependent modules on cache/abi version change
New cache version was written to dependent targets,
when they have not been compiled yet

 #KT-9190 Fixed
2015-09-25 20:11:57 +03:00
Alexey Tsvetkov 7ef23da289 Clean all storages if incremental compilation is off 2015-09-25 20:11:57 +03:00
Alexey Tsvetkov 2bed8d0557 Test caches creation with turning incremental on/off 2015-09-25 20:11:57 +03:00
Alexey Tsvetkov 68437175f6 Enable disabling incremental compilation for tests 2015-09-25 20:11:57 +03:00
Alexey Tsvetkov b6bbc4015b Write cache version only if incremental compilation is enabled 2015-09-25 20:11:57 +03:00
Alexey Tsvetkov a3f2ccf72d Test that Kotlin incremental caches are created lazily 2015-09-25 20:11:57 +03:00
Alexey Tsvetkov 4b880f324a Access cache version file in tests using CacheVersionFormat 2015-09-25 20:11:56 +03:00
Alexey Tsvetkov 92d5b93cc7 Move incremental compilation enabled check from CacheFormatVersion to KotlinBuilder 2015-09-25 20:11:56 +03:00
Alexey Tsvetkov 0904b4bae8 Move CacheFormatVersion to separate file 2015-09-25 20:11:56 +03:00
Alexey Tsvetkov 5c9b962567 Create map so it will always be added to maps 2015-09-25 20:11:56 +03:00
Alexey Tsvetkov a611dd9d25 Minor: remove unused function 2015-09-25 20:11:56 +03:00
Alexey Tsvetkov b8388ae7ed Minor: remove unused ClassToSources map 2015-09-25 20:11:56 +03:00
Alexey Tsvetkov fe390a04c5 Create Kotlin incremental caches only on write 2015-09-25 20:11:56 +03:00
Ilya Chernikov 4b1601974f Refactoring parts related to passing services to compiler in daemon, adding uniform support for cancellation check and lookup tracking 2015-09-24 10:44:44 +02:00
Ilya Chernikov 3c16b2de87 Converting KotlinCompilerRunner.java to kotlin - phase 3 - refactoring to more kotlin style 2015-09-24 10:42:54 +02:00
Ilya Chernikov 0047fb1272 Converting KotlinCompilerRunner.java to kotlin - phase 2 - converter + manual fixes 2015-09-24 09:56:26 +02:00
Ilya Chernikov fffe6dd837 Converting KotlinCompilerRunner.java to kotlin - phase 1 - renaming to .kt to preserve history 2015-09-24 09:56:26 +02:00
Alexander Udalov 4ca8a51234 Move Interner from deserialization to util
This class is not used in core and should not end up in kotlin-reflect.jar
2015-09-22 18:22:59 +03:00
Alexander Udalov 1878f892c1 Minor, fix annoying nullability warning 2015-09-22 18:22:58 +03:00
Michael Nedzelsky 34d4d2e7d9 ProtoCompareGenerated: get rid ofusage of internal details of NameResolver 2015-09-22 18:22:53 +03:00
Dmitry Jemerov 4ca434da54 remove support for 'trait' keyword 2015-09-22 15:00:24 +02:00
Michael Nedzelsky df283c8f02 add protoDifferenceUtils and implementation for calculation difference between proto data for classes. 2015-09-19 00:14:04 +03:00
Michael Nedzelsky 4c9ec56bc8 GenerateProtoBufCompare: optimization and generate difference and hashCode methods 2015-09-19 00:13:58 +03:00
Michael Nedzelsky be875d797f descriptors.proto: add skip_in_comparison option for (prepared to retire) constructor field in Class message 2015-09-19 00:13:51 +03:00
Michael Nedzelsky 20bae99166 GenerateProtoBufCompare: do not generate unnecessary empty lines 2015-09-19 00:13:48 +03:00
Stanislav Erokhin 377f752837 Minor. Moved deserialized util functions from top-level to object 2015-09-18 21:00:15 +03:00
Denis Zharkov 9c4564a5a6 Get rid of deprecated annotations and modifiers in project code 2015-09-18 09:34:27 +03:00
Dmitry Jemerov 35d9880266 don't initialize Kotlin caches if there is no Kotlin code to compile 2015-09-15 14:21:01 +02:00
Alexander Udalov 6cecc66d10 Improve ABI version from one number to "major.minor.patch" 2015-09-11 19:28:46 +03:00