Svyatoslav Kuzmich
de020ed58a
[JS IR BE] Generate and export JS properties
2019-02-25 15:09:26 +03:00
Svyatoslav Kuzmich
326cbcc218
[JS IR BE] Unmute tests
2019-02-25 15:09:26 +03:00
Svyatoslav Kuzmich
1184c158e4
[JS IR BE] Support @JsName in bridges
2019-02-25 15:09:26 +03:00
Svyatoslav Kuzmich
e09a6f0007
[JS IR BE] Fix codegen for external companion objects
2019-02-25 15:09:25 +03:00
Svyatoslav Kuzmich
c4ffe36a21
[JS IR BE] Add CharSequence type check
2019-02-25 15:09:25 +03:00
Svyatoslav Kuzmich
3be4248791
[JS IR BE] Disable deprecated jsName tests
2019-02-25 15:09:25 +03:00
Svyatoslav Kuzmich
74c8f54fc8
[JS IR BE] Support cast to native interface
2019-02-25 15:09:25 +03:00
Yaroslav Russkih
028a311949
Use https everywhere - tests and test data
2019-02-19 21:35:36 +01:00
Dmitry Petrov
e1fdf0aa43
KT-29959 fix IR generation for 'd.m = e'
2019-02-19 09:59:42 +03:00
Dmitry Petrov
740d5ec468
Mute some tests in JS_IR after adding basic dynamic expressions support
2019-02-14 16:03:11 +03:00
Anton Bannykh
f8dc6763bd
JS: minor review fixes
2019-02-14 15:14:28 +03:00
Anton Bannykh
4e298ae5cb
JS: Inlined local declarations should be positioned after imports
2019-02-14 15:14:28 +03:00
Anton Bannykh
0bfd332580
JS: improve a test (review fix)
2019-02-14 15:14:28 +03:00
Anton Bannykh
4b39e2df12
JS: (review fix) Header -> InlineData
2019-02-14 15:14:28 +03:00
Anton Bannykh
5c1664ebf8
JS: collect label definitions, not some of their usages
2019-02-14 15:14:28 +03:00
Anton Bannykh
32de99fe32
JS: review fixes
2019-02-14 15:14:28 +03:00
Anton Bannykh
990ee849e2
JS: test local declaration deduplication with name clash; fix the test
2019-02-14 15:14:28 +03:00
Anton Bannykh
60aa6e4971
JS: a cross-module local declaration fake override test;
...
Also describe an alternative, more robust approach in a TODO comment
2019-02-14 15:14:28 +03:00
Anton Bannykh
b4b406af99
JS: explain what validateJsAst does; enable validation in non-incremental tests
2019-02-14 15:14:28 +03:00
Anton Bannykh
d7499363bc
JS: review fixes
2019-02-14 15:14:28 +03:00
Anton Bannykh
44dedf3a64
JS: minor refactoring
2019-02-14 15:14:28 +03:00
Anton Bannykh
396ec20788
JS: add constructor binding and inlining test
2019-02-14 15:14:28 +03:00
Anton Bannykh
92401f0561
JS: fix primary constructor name tag generation
2019-02-14 15:14:28 +03:00
Anton Bannykh
36fd4d24fb
JS: move label renaming to new fragment post-processing
...
Also remove metadata renaming from the global passes
2019-02-14 15:14:28 +03:00
Anton Bannykh
6921d4d128
JS: minor
2019-02-14 15:14:28 +03:00
Anton Bannykh
2022a9c887
JS: fix inheriting fake overrides in inlined object literals
2019-02-14 15:14:28 +03:00
Anton Bannykh
9716abcc12
JS: inline private properties
2019-02-14 15:14:28 +03:00
Anton Bannykh
50aeeee462
JS: fix the test
2019-02-14 15:14:28 +03:00
Anton Bannykh
299a45ccbf
JS: validate AST when serializing to IC cache
2019-02-14 15:14:28 +03:00
Anton Bannykh
b5b770c804
JS: line number fix
2019-02-14 15:14:28 +03:00
Anton Bannykh
6d5ef2d324
JS: fix long constants importing
2019-02-14 15:14:28 +03:00
Anton Bannykh
cd0fd569b4
JS: visit tests and main in import remover; update line numbers
2019-02-14 15:14:28 +03:00
Anton Bannykh
52b705e7ae
JS: Fix local aliases
...
Local aliases can be copied as-is to a different fragment now. Before this change we would have had to extract the local alias tag (if any) from the source fragment and add to the destination fragment name bindings.
2019-02-14 15:14:28 +03:00
Anton Bannykh
3a258ad08a
JS: fix module references in case of @JsModule annotation
2019-02-14 15:14:28 +03:00
Anton Bannykh
a1649e9e4d
JS: fix import cleaner
...
The tag generated during the source file translation could differ from
the tag generated based on the import statement (e.g. "intrinsic:..."
during generation becomes "'Kotlin'...." later on).
This means that the same function imported from the start and imported
during inlining has different tags. Which makes duplicate import removal
trickier. The best solution would be to make sure the tag generation
algorithms are consistent.
Current solution: rewrite the tags in terms of the Inliner tag
generation algorithm right after the source file translation.
Also it seems that some `var` statements we treated as imports, even
though they were not. Supported this behavior for now.
TODO: Get rid of these workaround
2019-02-14 15:14:28 +03:00
Anton Bannykh
a30c7fbee1
JS: Support imported wrapper serialization
2019-02-14 15:14:28 +03:00
Anton Bannykh
2cbdc7ecb0
JS: store whole JsImportedModule's in the module local alias
...
Module references were stored as plain JsName's. When inlining a function
from one fragment to another, those references should be re-interpreted
in terms of the destination fragment. Storing the whole module information
makes that much easier.
2019-02-14 15:14:28 +03:00
Anton Bannykh
a0ff581a2f
JS: refactoring
2019-02-14 15:14:28 +03:00
Anton Bannykh
6d26bf9622
JS: don't load binary AST unless required by the inliner
2019-02-14 15:14:28 +03:00
Anton Bannykh
c83b6d46cc
JS: split JsInliner
2019-02-14 15:14:28 +03:00
Anton Bannykh
c65383fa3f
JS: postpone JS AST merging
2019-02-14 15:14:28 +03:00
Anton Bannykh
039625bb7e
JS: convert K2JSTranslator to Kotlin
2019-02-14 15:14:28 +03:00
Anton Bannykh
1052ec898c
JS: review fixes (mostly tests)
2019-02-14 15:14:28 +03:00
Anton Bannykh
3529114913
JS: incremental translation of tests and main fun invocation
2019-02-14 15:14:28 +03:00
Svyatoslav Kuzmich
cfde97a7a0
[JS IR BE] Support nested external classes
2019-02-12 18:45:35 +03:00
Svyatoslav Kuzmich
0ff23544fc
[JS IR BE] Initial support for mudule wrapper generation
2019-02-12 18:45:35 +03:00
Svyatoslav Kuzmich
d8b1d09566
[JS IR BE] Support codegen for external objects and properties
2019-02-12 18:45:35 +03:00
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Svyatoslav Kuzmich
24ab36616e
[JS] Fix runtime file order in runIrTestInNode.js
2019-01-29 19:06:31 +03:00
Anton Bannykh
b1f6a05aa0
JS: fix incremental suspend inline test (KT-29360 fixed)
2019-01-29 13:16:39 +03:00