Commit Graph

381 Commits

Author SHA1 Message Date
Pavel V. Talanov 35f5e8a075 Extract and move method from StaticContext to Namer 2012-07-04 12:01:12 +04:00
Pavel V. Talanov 592b0e9c37 Specify visibility in some files in jslibs 2012-07-03 21:36:04 +04:00
Pavel V. Talanov dd43f6b699 Deal with absence of js library. fix K2JSMessagingTest 2012-07-03 17:58:58 +04:00
Pavel V. Talanov 508b241553 Remove dead code. 2012-07-03 17:56:22 +04:00
Pavel V. Talanov e1ecdead75 Turn off the failing StdLibToJSTest. It fails due to some frontend bug. 2012-07-03 16:41:03 +04:00
Pavel V. Talanov 30a01a674d Fix a problem which caused temporary variables to be created in invalid context when creating object literal.
Only 2 tests failing atm.
2012-07-03 15:53:16 +04:00
Pavel V. Talanov d6ffb42497 pull https://github.com/develar/kotlin ecma5-iter3 Make most of the tests work.
Thanks to develar.
2012-07-03 15:27:37 +04:00
James Strachan 9b2e28c76e fixed test case 2012-07-03 08:54:25 +01:00
James Strachan b960bea2d9 added test cases to try reproduce yesterdays JS bug with missing "this.drop(1)" in List.tail property, found another JS compile issue... 2012-07-03 08:45:26 +01:00
James Strachan 541f3d4e78 got more map code compiling to JS and running as unit tests 2012-07-03 07:43:15 +01:00
Pavel V. Talanov 4b15023aec Turn off inlining. May be it'll help with KT-2314. 2012-07-02 17:29:10 +04:00
Pavel V. Talanov da24b36071 Turn on tests. 2012-07-02 17:29:09 +04:00
Pavel V. Talanov 5004b2e01b Separate library files which contain code and those which declarations only. Fixes builder test/ 2012-07-02 17:29:08 +04:00
Pavel V. Talanov 53e77abefc Fix most of the tests. Turn off 3 of the tests temporarily. 2012-07-02 17:29:07 +04:00
Pavel V. Talanov 3504106981 JsTests speed up: Analyze standard library only once. 2012-07-02 17:29:05 +04:00
Pavel V. Talanov 9878b60462 Fix KotlinLibTest and remove redundant tests. 2012-07-02 17:29:03 +04:00
Pavel V. Talanov 49c6555e5e JsTests speed up: cash the scope with Kotlin library. Refactor CodeGenerator class.
About 10% speed up (not much but still...)
2012-07-02 17:29:02 +04:00
James Strachan 63e0f169fc re-enabled compiling to JS test cases now we've fixed the compilation of the latest comparator based standard library code 2012-06-29 23:13:05 +01:00
develar 77320e07f2 ArrayList improvements:
1) remove must compare object using Kotlin.equals (the same as in contains)
2) use ArrayIterator instead of ListIterator (perfomance)
3) remove duplicated code (refactor)
4) toArray
5) fix "add((index, item)" — correct translation to JavaScript "addAt"
2012-06-28 11:13:48 +04:00
develar 07ae3afc95 update rhino 1.7R4 2012-06-28 10:30:36 +04:00
develar 1041837122 implement comparator more correct, so, we can get rid of skipSeal flag for std classes 2012-06-28 10:30:16 +04:00
develar 4ce4cdfbd5 when translator: don't add break after return 2012-06-28 10:29:00 +04:00
develar d6c725bcd9 classes declaration:
fix: class of the same unqualified name in package inside module (see MultiFileTest.testClassOfTheSameNameInAnotherPackage)

We don't ever try to use meaningful var name for temp class declaration — we remember about incremental compilation  inline final class declaration don't generate scope function if we don't need it

failed and fixed test: fast fix Kt817 (we must investigate, actually, it seems dart ast bug — we must have ability to declare name in our scope without check the same name in the parent scope)

perfomance: delete ClassSortingUtils, we don't need it
2012-06-28 10:28:33 +04:00
develar e83879e6f3 ExtensionFunctionCalledFromFor 2012-06-28 09:57:20 +04:00
develar 2c3f3d2960 partially implement KT-2310 (only cache call result) 2012-06-28 09:57:20 +04:00
develar 8d764af432 KT-2154 2012-06-28 09:57:20 +04:00
develar 9443007dc3 support multiple source roots 2012-06-28 09:57:20 +04:00
develar 63e41b771f KT-2298 js inter-module communication 2012-06-28 09:57:19 +04:00
develar 622235b172 test for KT-2219 2012-06-28 09:57:19 +04:00
develar 4158a7bf5d ability to skip lint test 2012-06-28 09:57:19 +04:00
develar 2108c08b2a test for KT-2177 and jslint 2012-06-28 09:57:18 +04:00
develar 39fe690ec8 js enumerable for ecma5 2012-06-28 09:57:18 +04:00
develar 3e491ba7f1 https://developer.mozilla.org/en/JSON (cherry picked from commit f91d3a8) 2012-06-28 09:57:18 +04:00
develar 06ecb45004 js compiler: module dependency 2012-06-28 09:57:18 +04:00
develar cd067cb32c createNamespace: don't produce empty object literal if properties are empty or empty function if there is no initializer 2012-06-28 09:57:17 +04:00
develar c7c7fda31e typo: Initalizers -> Initializers 2012-06-28 09:57:17 +04:00
develar 47a8ff060d KT-2137 console 2012-06-28 09:57:17 +04:00
develar 99614d5e14 don't enclose function if it is not necessary 2012-06-28 09:57:17 +04:00
develar 4d1c70d265 document reason why we don't declare ecma 5 property name as obfuscatable
use standard backing field name prefix for ecma 5 (was: _, must be: $)
2012-06-28 09:57:17 +04:00
develar 073fb6c499 print ecma version if test failed 2012-06-28 09:57:16 +04:00
James Strachan d6d99ec226 temporary disabled 2 failing JS compile tests until I figure out the fix ;) 2012-06-26 06:18:52 +01:00
James Strachan 4a4cf0467f more of the stdlib compiling to JS 2012-06-23 06:58:40 +01:00
James Strachan 7b36a22264 enabled the compiling of most of the collections based standard kotlin library to JavaScript 2012-06-22 14:52:13 +01:00
James Strachan 43b78649f3 added better error reporting, showing the real location of the kotlin code that causes the problem 2012-06-22 14:33:07 +01:00
James Strachan 32e0b06de1 added location information for when the assertion fails 2012-06-22 14:25:26 +01:00
James Strachan 1c26d7212f added some documentation on how the JavaScript generation and testing of the standard library works 2012-06-21 16:12:23 +01:00
James Strachan 8a6b752357 refactored the standard library so most of the collection APIs in the standard library can be compiled to JS 2012-06-21 15:53:39 +01:00
James Strachan 0a3809fa2e disabled a failing unit test for JS generation (will re-enable soon...) and made the generated QUnit test code work with many test classes 2012-06-19 08:12:28 -05:00
James Strachan 071e276e08 started compiling more of the kotlin library to JS; now testing the String methods in JS 2012-06-19 07:23:42 -05:00
Stepan Koltsov 11f2a98032 revert "DescriptorMatcher" 2012-06-18 20:53:55 +04:00