Commit Graph

11284 Commits

Author SHA1 Message Date
Zalim Bashorov df11dbe7a5 JS backend: added tests check the closure fields when use it from nested functions in method. 2013-08-09 14:29:55 +04:00
develar b9396ff7e8 JS backend: detect outer class if used in child local fun.
Fix closure fields when use it from nested functions in method.

(cherry picked from commit 20eea36)
2013-08-09 14:29:55 +04:00
develar 632d878877 JS backend: use native function for parseInt.
Add radix parameter to parseInt.

(cherry picked from commit b6be98d)
2013-08-09 14:29:55 +04:00
develar 33d576c31f JS backend: format builder.kt according to code style.
(cherry picked from commit 7c2a2cd)
2013-08-09 14:29:54 +04:00
develar 222c05dd00 JS backend: made Json::get and Json::set intrinsic.
(cherry picked from commit b1692e1)
2013-08-09 14:29:54 +04:00
develar 8867c7a33f JS backend: fixed Map set/get -- should work with jet Map/MutableMap.
Added to PatternBuilder the ability to check that method has been overridden.
2013-08-09 14:29:54 +04:00
develar 421c896416 JS backend: removed unused extension function List::equals. 2013-08-09 14:29:54 +04:00
develar 3e2d030e5d JS backend: removed parameters from PatternBuilder#receiverExists. 2013-08-09 14:29:54 +04:00
Zalim Bashorov 185ec381e3 JS backend: added tests that checks constructing ArrayList with capacity. 2013-08-09 14:29:54 +04:00
develar 1ddf60ef0a JS backend: don't search function intrinsic twice.
Use thashmap instead of hasmap -- less memory usage.

(cherry picked from commit e617f8f)
2013-08-09 14:29:53 +04:00
develar 4e07c60541 JS backend: fixed AbstractCollection#equals.
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +04:00
develar 411caef8ce JS backend: cosmetic changes in javautil.kt:
- added some methods to AbstractList
 - fixed codestyle
 - moved up LinkedList declaration
2013-08-09 14:29:53 +04:00
develar 1435bdb7c7 JS backend: made some exceptions more JS idiomatic -- translate Exception to Error, IndexOutOfBounds and IndexOutOfBoundsException to RangeError. 2013-08-09 14:29:53 +04:00
develar f5feb5e729 JS backend: added Kotlin.toString, Kotlin.arrayToString, Kotlin.arrayEquals and shim for Array.isArray to kotlin_lib.
Now jet.String will be translated to Kotlin.toString.
2013-08-09 14:29:53 +04:00
develar 50739b465e JS backend: move common code to CompositeFIF. 2013-08-09 14:29:53 +04:00
develar 7ba0f0eb33 JS backend: refactoring
- add KotlinFunctionIntrinsic;
- remove CallStandardMethodIntrinsic
- rename TranslationUtils#generateCallArgumentList to TranslationUtils#generateInvocationArguments;
- add to PatternBuilder#pattern with root(prefix) parameter.
2013-08-09 14:29:53 +04:00
develar 2dbfbfc7fb JS backend: fixed codestyle for TopLevelFIF.java.
(cherry picked from commit 6335bc4)
2013-08-09 14:29:52 +04:00
develar bf8d5d797a JS backend: refactoring the code for using special implementation of Map/Set for primitives (Int, String etc.) -- made it intrinsic.
Properly implementation for KT-2026.

(cherry picked from commit 6335bc4)
2013-08-09 14:29:52 +04:00
develar 1fab7346cc JS backend: don't bind this if it is not need -- skip methods defined in class, for example Int::plus
(cherry picked from commit e2334f7)
2013-08-09 14:29:52 +04:00
develar 995f898116 JS backend: added String.isEmpty
(cherry picked from commit 6cf1761)
2013-08-09 14:29:52 +04:00
develar 7c18ab3ca8 JS backend: cleanup strings code.
Added String.size and String.length().
2013-08-09 14:29:52 +04:00
develar 678f6601dd JS backend: made as intrinsic map accessing methods and fixed accessing to native map. 2013-08-09 14:29:52 +04:00
develar be4e1b7599 JS backend: translate invoke function as intrinsic. 2013-08-09 14:29:52 +04:00
develar 7b67c47594 JS backend: descriptor parameter of DescriptorPredicate#apply marked as @NotNull. 2013-08-09 14:29:51 +04:00
Zalim Bashorov 9b09d5f6df JS backend: fixed String.split for the case when using regexp.
Added(overload) String.split with limit parameter.
2013-08-09 14:29:51 +04:00
develar 0341d875a9 JS backend: cleanup code.
Drop Kotlin.toString and jet.sure.
2013-08-09 14:29:51 +04:00
develar f1c258f601 JS backend: make MutableMap.set as function intrinsic.
Fixed test WebDemoExamples2Test#builder.
2013-08-09 14:29:51 +04:00
develar 63a72b1095 JS backend: performance optimization for CompositeFIF -- we don't need hash map.
(cherry picked from commit 7b29a01)
2013-08-09 14:29:51 +04:00
develar 8302879991 JS backend: added reviver parameter to JSON.parse.
Fixed code style in json.kt.

(cherry picked from commit b3bf97c)
2013-08-09 14:29:51 +04:00
develar ddbea17e0f JS backend: improve js readability which generated in the Dangerous translator -- initialize temporary vars in declaration.
(cherry picked from commit 4d8355c)
2013-08-09 14:29:50 +04:00
Zalim Bashorov d4bf98de97 JS backend: fixed intrinsic of the typed array factory methods(intArray etc). 2013-08-09 14:29:50 +04:00
develar 1af35a6aff JS backend: make intrinsic array factory methods.
#KT-2511 fixed

(cherry picked from commit 31843c5)
2013-08-09 14:29:50 +04:00
Natalia.Ukhorskaya e0a899902c Merge remote-tracking branch 'origin/pr/292' 2013-08-09 12:38:54 +04:00
Natalia.Ukhorskaya 2436ed1a17 Temporary change gradle output to show it in MessageView in Android-Studio 2013-08-09 12:24:09 +04:00
Evgeny Gerashchenko 3f7627120b KT-3853 ISE on resolving function implementation from trait from Java
The fix is simple and dirty, because the related code will be removed soon anyways. Fix is necessary for compiling Kara.

 #KT-3853 fixed
2013-08-08 21:39:25 +04:00
Nikita Skvortsov 405465fd25 Support kotlin-android-sdk-annotations in gradle plugin 2013-08-08 21:09:45 +04:00
Natalia.Ukhorskaya 6bb1474ee8 Publish android-sdk-annotations in Maven 2013-08-08 17:54:18 +04:00
Natalia.Ukhorskaya aec1fa8697 Implement method from super class 2013-08-08 16:03:03 +04:00
Natalia.Ukhorskaya bc9af296a5 Check is JavaBuilder.IS_ENABLED public 2013-08-08 16:02:58 +04:00
Natalia.Ukhorskaya 42b8cb122b Add pom.xml android-sdk-annotations 2013-08-08 14:07:52 +04:00
Natalia.Ukhorskaya 2cc4638b09 Disable kotlin-jps-plugin when java-jps-plugin is disabled 2013-08-08 14:07:50 +04:00
Nikolay Krasko 9205c0251e Cache result of resolveElement requests 2013-08-08 00:37:46 +04:00
Nikolay Krasko 8d06a72157 Store exception caught during computation as a result and rethrow it 2013-08-08 00:37:45 +04:00
Nikolay Krasko ca675290a8 Allow to monitor only thread name 2013-08-08 00:37:45 +04:00
Nikolay Krasko bee3295f34 Fix tracking slices 2013-08-08 00:37:44 +04:00
Nikolay Krasko 585cd15a03 Remove YourKit profile settings
New idea remove them each time it gets focus
2013-08-08 00:37:43 +04:00
Nikolay Krasko e402c4d527 Guard creation of LazyClassDescriptor with lock to avoid getting 'this' in invalid state 2013-08-08 00:37:42 +04:00
Nikolay Krasko 70ae9e589c Generate only final fields for injectors - make the access thread-safe 2013-08-08 00:37:42 +04:00
Nikolay Krasko 14247ea2ab Guard construction of imports index under common lock 2013-08-08 00:37:41 +04:00
Nikolay Krasko fbe1491ad4 Lock based binding context 2013-08-08 00:37:40 +04:00