Commit Graph

7316 Commits

Author SHA1 Message Date
Pavel V. Talanov de3ebf9baa Tests:ObjectInheritingFromATrait test enhanced, ObjectInheritingFromClass test added. 2012-08-14 12:44:40 +04:00
Pavel V. Talanov 6febebc7b3 Tests: drop EcmaVersions usage, add test inheritFromJetIterator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:39 +04:00
Pavel V. Talanov 0a002bcc53 Test for calling functions in initializers.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:38 +04:00
Pavel V. Talanov d734cbb5b5 Enhanced test data: KT-1361-1, toArray.kt, objectDeclaration.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:37 +04:00
Pavel V. Talanov c48e1d6319 Tests: added package declaration in hexademicalConstant, enclosingThis tests. 2012-08-14 12:44:36 +04:00
Pavel V. Talanov d0d08b16be Changes to js_libs.js:
Extract maps into separate file.
Straight forward solution for "JS_TESTS" hack.
Numerous optimizations.
2012-08-14 12:44:35 +04:00
Pavel V. Talanov f54c5fad29 Drop unused stuff in *Utils.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:44:32 +04:00
Pavel V. Talanov 40ea266a8a Use DEFAULT_ECMA_VERSIONS constant in tests instead of EcmaVersions#all(). Some code style issues as well.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:29 +04:00
Pavel V. Talanov a7c6776876 Code style issues: use iterable instead of enum set, remove public in interface.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:25 +04:00
Pavel V. Talanov fe9a2b6e5e Enhanced logic in EqualsIntrinsic.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:24 +04:00
Pavel V. Talanov 8ed7e7de50 Better logic for "invoke" call.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:23 +04:00
Pavel V. Talanov 60f6762578 Direct property access for object properties. 2012-08-14 12:43:20 +04:00
Pavel V. Talanov ac87d8497a Refactor Dangerous*: drop unused stuff.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:19 +04:00
Pavel V. Talanov 29391e6c92 Rework logic in class declaration and namespace declaration.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:18 +04:00
Pavel V. Talanov 124ba541ac Refactor translation of if expression in ExpressionVisitor.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:15 +04:00
Pavel V. Talanov cb60e938d3 Remove duplicating code in translation of while/do while expressions.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:14 +04:00
Pavel V. Talanov 80219b908c Fix strange code in StandardClasses.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:12 +04:00
Pavel V. Talanov cc67b56b3c Rename: translateExtensionFunctionAsEcma5PropertyDescriptor -> translateExtensionFunctionAsEcma5DataDescriptor.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:11 +04:00
Pavel V. Talanov 226a01fa80 Null check logic in TranslationUtils.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:10 +04:00
Pavel V. Talanov 2ca5c276ef Add doubtful functionality to TemporaryVariable.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:07 +04:00
Pavel V. Talanov a923274e05 Rework Closure* for FunctionLiteralTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:05 +04:00
Pavel V. Talanov 29d1b7e29f Change the logic of how initializers are constructed.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:04 +04:00
Pavel V. Talanov 5694a3644c Remove functionality delegated to LiteralFunctionTranslator from FunctionTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:03 +04:00
Pavel V. Talanov 02622595b5 Inner*Translator used by LiteralFunctionTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:02 +04:00
Pavel V. Talanov 86b85177b7 Using new ast instead of utilities.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:01 +04:00
Pavel V. Talanov d6a6bd7cac New aliasing context usages.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:53 +04:00
Pavel V. Talanov 4b69fa1014 Refactor AliasingContext.
Introduce TraceableThisAliasProvider.

Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:51 +04:00
Pavel V. Talanov a4564aad80 Name to literal utility in TranslationContext.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:48 +04:00
Pavel V. Talanov 751cf0233a Refactor constructors in TranslationContext.java.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:47 +04:00
Pavel V. Talanov ec905d3892 Remove hack introduced for in IteratorForTranslator. 2012-08-14 12:38:46 +04:00
Pavel V. Talanov f140f611ed Use FileUtil to write files in K2JSTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:45 +04:00
Pavel V. Talanov 8e1cfd38d4 Introduce literal function translator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:44 +04:00
Pavel V. Talanov a1a3c5cfe5 Use Namer.CALLEE_NAME in ClassInitializerTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:00 +04:00
Pavel V. Talanov 22e4c6dd4b Label generator utility.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:59 +04:00
Pavel V. Talanov c66df38da5 Rename WhenTranslator.translateWhenExpression -> WhenTranslator#translate.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:58 +04:00
Pavel V. Talanov 14a9986ddc Remove unnecessary code in PatternTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:57 +04:00
Pavel V. Talanov 8939dd1a6e Use notNullConditionalTestExpression utility in UnaryOperationTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:56 +04:00
Natalia.Ukhorskaya 98ed261eb3 Fix android build 2012-08-14 12:25:06 +04:00
Alex Tkachman 71208de565 revert unsuccessful attempt to fix android build 2012-08-14 09:26:27 +03:00
Alex Tkachman 6f4e84287e fix broken compilation 2012-08-14 09:11:27 +03:00
Alex Tkachman 016f528334 some codegen tests use main instead of box 2012-08-14 07:09:13 +03:00
Alex Tkachman 5947759684 proper compilation of enums 2012-08-13 22:37:27 +03:00
Alexander Udalov e5820722ec fix failing CompileKotlinAgainstKotlinTest 2012-08-13 17:08:21 +04:00
Andrey Breslav 39f96b80fd Clarifying renames 2012-08-13 13:29:44 +04:00
Andrey Breslav b76bdd09ff Formatting + redundant modifiers removed 2012-08-13 11:57:10 +04:00
Andrey Breslav 3b3f1aa016 All the special types are now handled by SpecialTypes class
- this concept used to be called "known types" before
2012-08-13 11:56:26 +04:00
Andrey Breslav f7321a40e0 Format method with multiline parameter list like this:
int foo(
        Bar buzz
) {
    // ...
}
2012-08-10 20:08:16 +04:00
Alexander Udalov dcf2982288 copy-paste bug fix in test 2012-08-10 17:24:44 +04:00
Alexander Udalov 9350369fab Fixed codegen for single-branch if
#KT-2597 Fixed
 #KT-2598 Fixed
2012-08-10 14:39:34 +04:00
Alexander Udalov 4bc1b2636a StackValue.pop() 2012-08-10 14:39:33 +04:00