Commit Graph

2612 Commits

Author SHA1 Message Date
Alexey Andreev efb82a044f JS: move inline test to box tests 2016-09-29 12:00:40 +03:00
Alexey Andreev b159049be8 JS: move expressions test to box tests 2016-09-29 12:00:40 +03:00
Alexey Andreev 2bf0199959 JS: create new common directory for all generated tests, migrate several tests there 2016-09-29 12:00:39 +03:00
Alexey Andreev 34a57f863b JS: refactor test classes 2016-09-29 12:00:39 +03:00
Alexey Andreev db86d34699 JS: move InlineMultiModuleTestGenerated under new test class 2016-09-29 12:00:38 +03:00
Alexey Andreev dc0d7114be JS: introduce a new base class for generated tests 2016-09-29 12:00:38 +03:00
Ilya Gorbunov 282629f618 Remove overrides of equals and hashCode from AbstractCollection and AbstractMap.values, making the equality referential again. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov 976260bda6 Fix state check in ListIterator.set, improve diagnostics. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov 8627547a63 Provide java.util.AbstractCollection and AbstractList as deprecated classes with implemented abstract methods rather than as typealiases to smooth migration.
This comes at price that `ArrayList is java.util.AbstractColleciton` is false.
2016-09-28 22:06:03 +03:00
Ilya Gorbunov ec6dbe7441 JS: use read-only AbstractList as a base class for read-only collection implementations. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov 7dde8df9ae Make mutation methods in AbstractMutable-collections abstract rather than implement them unsupported. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov 74e964aabe Rename files to match class names. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov f88a009653 Do not recreate entries, keys and values collections on each access to property. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov c6654fc9d8 Remove unused/redundant implementation details. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov 38f030dce4 Split AbstractMap into readonly and mutable. 2016-09-28 22:06:03 +03:00
Ilya Gorbunov a5c0f11d60 Split AbstractCollection, List, Set in JS to readonly Abstract[Collection] and mutable AbstractMutable[Collection].
Update compatibility type aliases.
2016-09-28 22:06:03 +03:00
Pavel V. Talanov 24d805d2c1 Minor: remove code commited by mistake 2016-09-26 14:46:39 +03:00
Pavel V. Talanov 32daf048c2 PlatformConfigurator: create container for each platform (it contains static services, mostly checkers) ahead of time 2016-09-26 14:42:57 +03:00
Simon Ogorodnik 47bfb8133d KT-13146 J2K recursion while converting self-referenced anonymous functions (#956) 2016-09-26 13:47:31 +03:00
Ilya Gorbunov ed70d1dfa6 Provide type aliases for collections in java.util to ease migration. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov bf56f04368 Simplify Kotlin.collectionsSort as it always being provided with MutableList. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov 889040218b Rewrite ChainEntry not to be inner class. Cleanup unused code. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov 54a640d733 Cleanup: remove unused code from HashMap, remove commented out specialization intrinsics. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov d0b7ddfceb Minor cleanup, rename parameters to match supertype names. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov 26cbad8e7f Provide message for UnsupportedOperationException thrown from AbstractCollection.add. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov 23d2654afd Refactor Map-InternalMap to provide specialized linked string map and set 2016-09-24 07:08:21 +03:00
Ilya Gorbunov e342593d2e Flatten HashMap hierarhy, provide string-keyed map and set specializations. 2016-09-24 07:08:21 +03:00
Ilya Gorbunov 5833d32f25 Import StringMap from GWT 2016-09-24 07:08:21 +03:00
Ilya Gorbunov d1a24de278 Consequences of map/set specializations removal:
- NaNs are no longer usable as keys in maps or elements in sets.
- Chars are stored as their underlying type string, and Longs are stored as objects.
Opened #KT-13610
2016-09-24 07:08:21 +03:00
Ilya Gorbunov ea82c20692 Remove js implementations of java.util maps and sets, disable intrinsic to select specialized implementations.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov 5cd3417d4c Maps and sets: cleanup, simplify, refactor.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov b05c2c1f6a Import AbstractHashMap, HashMap, HashSet, LinkedHashMap, LinkedHashSet from GWT
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov f5e0c504d6 AbstractMap: cleanup and refactor
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov c54bc2ea18 Import AbstractMap implementation from GWT.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov d900efb34e AbstractSet implementation.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov 89388f1f83 Fixes in ArrayList after review.
Provide better implementations for some methods of AbstractList.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov 472ef89baf AbstractList: cleanup and rename
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov 75069143c7 Rewrite ArrayList, AbstractList, AbstractCollection in kotlin.
AbstractList is imported from GWT.
#KT-12386
2016-09-24 07:08:21 +03:00
Dmitry Petrov 07198cf86d SAM constructors for type aliases. 2016-09-22 10:38:34 +03:00
Dmitry Petrov 796d11c860 ClassDescriptor is now a super-interface for ClassConstructorDescriptor and TypeAliasConstructorDescriptor. 2016-09-20 10:55:36 +03:00
Dmitry Petrov 9d373fba67 (@alexey.andreev) JS BE should handle TypeAliasConstructorDescriptor accordingly. 2016-09-20 10:55:36 +03:00
Alexander Udalov c91f77f2a4 Rename LanguageFeatureSettings -> LanguageVersionSettings 2016-09-19 15:21:24 +03:00
Alexander Udalov aec31bd88f Uninherit LanguageVersion from LanguageFeatureSettings
Introduce LanguageVersionSettingsImpl to store everything related to the
selected language version
2016-09-19 15:20:47 +03:00
Alexey Andreev 7dbada0d06 JS: repair serialization of type aliases 2016-09-19 12:30:32 +03:00
Alexey Andreev 9dd6c9a65c KT-13664: write values of long compile-time constants as constants. Fix #KT-13664 2016-09-19 12:29:58 +03:00
Dmitry Petrov 34240e2ff9 Create special descriptor for an object corresponding to type alias. 2016-09-16 15:44:44 +03:00
Ilya Gorbunov 3471b3311f Fix js RegExp test not to rely on array equality. #KT-8283 2016-09-14 20:41:41 +03:00
Alexey Andreev dd062bfd6d JS: add explanation to inline/arrayLiteralAliasing.kt test 2016-09-14 16:37:54 +03:00
Alexey Andreev a9330057cc KT-8283: fix Kotlin.equals method to compare arrays by reference 2016-09-14 16:37:53 +03:00
Alexey Andreev 5534350fd6 KT-7397: use reference comparison (===) when translating a is A, where A is an object. Use more sophisticated check for reified parameters. 2016-09-14 13:16:24 +03:00