Commit Graph

1408 Commits

Author SHA1 Message Date
Ilya Gorbunov 5c2fe13a89 Refer to java.util.Arrays fully-qualified in generated code 2016-11-16 18:47:42 +03:00
Ilya Gorbunov fae5c88f22 Remove java.util references from the common code 2016-11-16 18:47:42 +03:00
Ilya Gorbunov 09072f6cdc Remove toInt() conversion as it's hardly required.
#KT-14789
2016-11-15 16:38:52 +03:00
Ilya Gorbunov 8de67d039b Expose maximum version component value as a constant, increase it to 255.
Add tests for KotlinVersion, document remaining parts of API.
#KT-14789
2016-11-15 16:38:52 +03:00
Ilya Gorbunov 5f7d779370 Introduce KotlinVersion API
#KT-14789
2016-11-15 16:38:52 +03:00
Alexey Andreev 08f0636d39 JS: fix AMD emulation in Maven tests 2016-11-15 12:28:33 +03:00
Alexander Udalov eedad9194e Drop KParameter.isNoinline, KParameter.isCrossinline
There seems to be no valuable use cases for them at the moment
2016-11-15 11:01:17 +03:00
Alexander Udalov 7e82d139cf Drop KFunction.isTailrec
The fate of this modifier seems unclear, and there doesn't seem to be any
valuable use cases for it in reflection
2016-11-15 11:01:16 +03:00
Mikhael Bogdanov 61da8be260 Generate parameters metadata for java 8 reflection 2016-11-14 14:27:08 +01:00
Alexey Tsvetkov f381f1e699 Revert default value for "main" parameter for Gradle JS plugin to "call"
#KT-14724 fixed
2016-11-11 21:25:05 +03:00
Ilya Chernikov d2ba25e758 Fix script util test 2016-11-10 23:37:09 +01:00
Denis Zharkov da5c81448b Add CoroutineImpl to rendered public API 2016-11-09 12:25:31 +03:00
Ilya Gorbunov 8feaaf4df0 Allow to annotate generated API with SinceKotlin and annotate new array functions. 2016-11-08 18:08:59 +03:00
Ilya Gorbunov dceec89572 JS: Array.toString is const, Array.contentToString is shallow, Array.contentDeepToString is deep and self-reference aware
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov f3da656d6e contentEquals, contentHashCode, contentToString: Add js implementation and tests
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov a868eecb1a Introduce contentEquals/HashCode/ToString for Arrays. Different methods for deep equals/hashCode/toString rather than overloads with a parameter, because most of the time it would be constant, and make these methods inline-only.
Make `contentEquals` infix function.
Add docs.
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov ab2facf030 Remove special source generation for js stdlib, use same template, rename generated file. 2016-11-08 17:23:45 +03:00
Alexander Udalov 3db459c1d8 JS: drop Collections.reverse and java.util.Collections altogether 2016-11-07 12:27:54 +03:00
Alexander Udalov 30a7790dca Minimize references to java.util.Collections in stdlib sources
Only three usages are left in platform-independent code: in reverse, sort and
sortWith for mutable lists
2016-11-07 12:20:14 +03:00
Alexander Udalov b52f67132e Fix some warnings in JS-specific stdlib sources 2016-11-07 12:20:14 +03:00
Denis Zharkov 77e2b12566 Add kotlin.DslMarker to binary public API 2016-11-03 17:55:41 +03:00
Ilya Gorbunov adaad58cc7 Add required builtins when building tests. Either as reference to kotlin-runtime, or resort to those from the compiler with the -Xadd-compiler-builtins argument. 2016-10-31 22:03:16 +03:00
Alexey Tsvetkov 2ffb0abb59 Fix caches closing/flushing when IC builds non-incrementally 2016-10-28 23:55:03 +03:00
Alexey Tsvetkov 49bf1e5917 Fix forcing java to compile if kotlin classes are compiled 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov fa6ed71fbd Fix running gradle tests on windows 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 2c1699bc89 Minor: remove js-library dependency from jvm module 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 7642314780 Always flush caches 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 151cf7d073 Gradle IC: support multifile classes 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov f25d948b3f Gradle IC should fail if duplicating class is added
#KT-14554 fixed
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 67b3d54b37 In case of IC failure rebuild all files since last build
Before this change only files from last iteration were rebuilt.
It is correct and optimal, but there are many diffs with JPS/Gradle
logs.
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 7c16d086aa Groundwork for using IC without Gradle 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 7c1ebba57a Minor: do not print index in parametrized test name 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 6191fd87ec Minor: shorten references after move 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 68a7d88673 Refactoring: reorder IncrementalJvmCompilerRunner constructor parameters 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 3fabe6e4a7 Minor: update copyright in Gradle plugin 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 4a48c30f02 Cleanup: optimize imports in Gradle plugin 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 4ea9216672 Minor: replace File::isFile with File::exists 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov b0411de5c6 Minor: make Rebuild object 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 417f4f821b Minor: remove duplicated logger utils 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 368e48780e Refactoring: move IC classes into separate package 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 3bcd6e9a93 Refactoring: do not pass properties as parameters 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov c283515922 Refactoring: pass classpath and destination in K2JVMCompilerArguments 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 90dbf6c5fc Refactoring: delegate IC files management to IncrementalJvmCompilerRunner 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov d569651099 Refactoring: split GradleMessageCollector and remove Gradle Logger from IncrementalJvmCompilerRunner 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 78c115523c Refactoring: move all IC logic to IncrementalJvmCompilerRunner 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 0d1c803f71 Rebuild on cache corrupted exception
#KT-14055 fixed
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov fafde1e948 Refactoring: introduce IncReporter to report IC progress 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov e32c19ce4e Refactoring: extract calculateSourcesToCompile 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 388dd9c2a6 Refactoring: return removed dirty files from calculateSourcesToCompile 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov b4c17dabf4 Refactoring: introduce class ChangedFiles 2016-10-28 17:58:10 +03:00