Alexander Udalov
8e59e789dc
Extract util.runtime module out of util
...
Cleanup module dependencies: a lot of modules depended on 'frontend.java' just
to use something from 'util' module, exported by 'frontend.java', whereas they
really need nothing from 'frontend.java'. Also 'frontend.java' just exported
'util', not using anything from it.
Create a new 'util.runtime' module, which will be available at runtime. Make
'util' export 'util.runtime' and make all modules who needed these utils depend
on 'util' directly instead of 'frontend.java'
2013-09-18 17:21:11 +04:00
Erokhin Stanislav
c3d0392413
JS backend: add $metadata$ property & remake extension utilities
2013-09-17 21:52:55 +04:00
Erokhin Stanislav
12cb774f1c
JS backend: remake NameGenerator in case Property & PropertyAccessor. Fix overload extension property.
2013-09-17 21:46:25 +04:00
Erokhin Stanislav
638beff551
JS backend: Remove {value: function...} and {value: Kotlin.createClass() } structures.
2013-09-17 21:44:57 +04:00
Erokhin Stanislav
dcddd04a2f
JS backend: fix root package initialize.
2013-09-17 21:43:25 +04:00
Erokhin Stanislav
05d61c1c5a
JS backend: add several RegressionMergeEcmaTests
2013-09-17 21:43:25 +04:00
Erokhin Stanislav
4c57d70be9
JS backend: remove ECMA 3, but several tests is broken.
...
Main reason: overload extention property:
Int.bar = 1
String.bar = 2
2013-09-17 21:43:25 +04:00
Erokhin Stanislav
9100a0d0a6
JS backend: add RegressionMergeEcmaTest
2013-09-17 21:43:24 +04:00
Erokhin Stanislav
45e827aeb9
JS backend: add support multi declaration
2013-09-17 21:43:11 +04:00
develar
3ab095a4f5
JS backend: started to implement source maps
...
#KT-927 in progress
(cherry picked from commits 5543cda, 6ed296b, 11186f9, 5b84d0b)
2013-08-30 13:17:20 +04:00
develar
4f9485b40e
JS backend: fixed bug when explicitly use invoke method in function literal call.
...
(cherry picked from commit f832cee)
2013-08-29 21:45:27 +04:00
develar
92e76d18d9
JS backend: change name mangling -- right now before indexing we sort functions by Visibility and Modality.
...
(cherry picked from commit 7620a07)
2013-08-29 21:45:26 +04:00
develar
b122893823
JS backend: fixed closure variables in object which declared in another object in method.
...
(cherry picked from commit f3e8325)
2013-08-29 21:45:23 +04:00
develar
39a135c824
JS backend: support object declaration in other declarations.
...
#KT-2696 fixed
(cherry picked from commits 8931d13, 627b100 and f6b8686)
2013-08-29 21:25:15 +04:00
Erokhin Stanislav
8c952ebfdb
JS backend: added delegate property support.
2013-08-14 20:05:27 +04:00
Erokhin Stanislav
adcb359c38
JS backend: added enum class support.
2013-08-12 21:48:18 +04:00
Erokhin Stanislav
3b5d5a4a95
JS backend: added identityEquals support.
2013-08-12 21:48:18 +04:00
Erokhin Stanislav
48cd8f4df4
JS backend: Fix override val property in ecma5.
2013-08-12 21:48:18 +04:00
Erokhin Stanislav
9d1ae5e3d9
JS backend: Add class object support.
2013-08-09 14:59:09 +04:00
develar
e786e62fd7
JS backend: fixed variable capturing in extension functions.
...
Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.
(cherry picked from commit f8f1895)
2013-08-09 14:29:55 +04:00
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
Zalim Bashorov
185ec381e3
JS backend: added tests that checks constructing ArrayList with capacity.
2013-08-09 14:29:54 +04:00
develar
4e07c60541
JS backend: fixed AbstractCollection#equals.
...
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +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
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
f1c258f601
JS backend: make MutableMap.set as function intrinsic.
...
Fixed test WebDemoExamples2Test#builder.
2013-08-09 14:29:51 +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
Zalim Bashorov
bf60cb2fee
JS backend: fixed the division operation for integral types.
...
#KT-2342 fixed
2013-07-23 19:10:54 +04:00
Zalim Bashorov
e8b95ca074
JS backend: simplify and rename tests for closure in nested functions.
2013-07-23 19:10:54 +04:00
develar
462e1bdc98
JS backend: fixed the variable capturing in deeply nested functions which mixed with the object declaration.
...
(cherry picked from commit 41cb0ab)
2013-07-23 19:10:54 +04:00
develar
4a37d56a1b
JS backend: fixed the variable capturing in deeply nested functions.
...
(cherry picked from commit cee29a6)
2013-07-23 19:10:54 +04:00
develar
2419fc36ed
JS backend: partial fix for #KT-2670 -- throw NPE when unsafe cast null value to not nullable type.
2013-07-23 19:10:54 +04:00
Zalim Bashorov
e292034141
JS backend: fixed trait inheritance implementation in ES3.
...
Now each traits in same hierarchy represent separate object, instead a single object.
2013-07-18 16:04:42 +04:00
develar
9cd22942e2
Translate when as if-else instead for loop.
2013-06-22 01:34:36 +04:00
Zalim Bashorov
ee5c7c8f5c
Added support spread operator in JS-Backend.
2013-06-15 00:52:02 +04:00
Zalim Bashorov
2bae647412
Make nullable check less verbose in JS-backend.
...
For check what variable is equal null or undefined enough to compare with null (or undefined).
See ECMAScript specification 11.9.1, 11.9.2, 11.9.3
2013-06-15 00:52:02 +04:00
Zalim Bashorov
60a2f4ef08
Added SingleFileTranslationTest#checkFooBoxIsOk without arguments which use test name as filename.
2013-06-15 00:52:00 +04:00
Zalim Bashorov
7680203de2
Fixed wrong linearization for open classes and traits.
...
openList changed during neighbors calculation because the same TLinkable object cannot be put into more than one TLinkedList at the same time.
#KT-3499 fixed
2013-04-11 20:26:47 +04:00
Zalim Bashorov
282c69eb6b
Fixed return value for ArrayList#remove in js library.
...
Removed unnecessary Kotlin.IndexOutOfBounds.
2013-03-27 18:40:10 +04:00
Zalim Bashorov
7143393172
Added support bitwise operations in js translator
2013-03-19 16:31:02 +04:00
Zalim Bashorov
9c2d5a8ddb
Fixed translating primitive arrays to js.
2013-03-19 16:31:02 +04:00
goodwinnk
bb53985c00
Spelling correction
2013-03-14 15:04:01 +04:00
Evgeny Gerashchenko
ec5331057a
Removed unnecessary final on local variables.
2013-03-13 14:12:50 +04:00
Zalim Bashorov
220682afe2
fixed mapping sort and max functions from java.util.Collections
2013-03-06 19:16:14 +04:00
Evgeny Gerashchenko
52b7ee6447
Happy new year 2013!
2013-01-28 18:58:08 +04:00
Evgeny Gerashchenko
e03eaf6dde
Removed @author javadocs from code.
2012-12-28 17:44:31 +04:00
Andrey Breslav
4e9f166a89
Fix Rhino dependency after updating to IntelliJ IDEA EAP 122.519
2012-10-10 15:57:36 +04:00
pTalanov
5bc4fc458a
Don't call redundant toString for variables of type Int
...
Refactor StringTemplateTranslator a little
2012-10-01 21:15:13 +04:00
pTalanov
622ad8cbb4
Add checks that test that there are no redundant toString calls for numbers and strings in string templates
2012-10-01 20:42:44 +04:00