Svyatoslav Kuzmich
7578dbf8f2
[JS BE] KT-22053 Fix constructor delegation of immediate subtype of Error
2018-08-20 12:08:30 +03:00
Zalim Bashorov
8966e220f0
Update tests
2018-08-17 21:44:08 +03:00
Zalim Bashorov
0f6a77e700
[JS IR BE] take into account receiver's type when generate name for callables (including properties)
...
Also, add special markers for receiver type and generic types to avoid accidental clashes.
2018-08-17 20:31:06 +03:00
Ilya Gorbunov
ebc64da52a
Update EXPECTED_REACHABLE_NODES after introducing top-level comparator
...
#KT-18067
2018-08-15 21:28:57 +03:00
Svyatoslav Kuzmich
ff70b837ee
[JS IR BE] Support local delegated properties
2018-08-15 13:35:14 +03:00
Svyatoslav Kuzmich
392ad521fd
[JS IR BE] Reflection support
2018-08-15 13:35:14 +03:00
Roman Artemev
6c8e30eb05
Fix test failures
...
* add metadata
* unmute working tests
* mute temporary broken ones
2018-08-09 20:55:50 +03:00
Zalim Bashorov
3c765e3625
[JS BE] Support val in when subject
...
#KT-25014 Fixed
2018-08-09 16:22:25 +03:00
Zalim Bashorov
289ff845c4
Minor: remove extra slash from a testdata file
2018-08-09 16:22:25 +03:00
Roman Artemev
efec82c0eb
Update test data
...
* add new tests for coroutines
* add copy of some tests without dependency on stdlib
2018-08-08 18:33:41 +03:00
Roman Artemev
c62e4b4fcf
[JS IR BE] Support coroutines
...
* Move FinallyBlockLowering to common part
* Fix catching of dynamic exception
* Fix bridges for suspend functions
* Disable explicit cast to Unit
* Run lowering per module
* Update some test data
2018-08-08 18:33:39 +03:00
Svyatoslav Kuzmich
a1c10956cb
[JS IR BE] Support super calls for methods of Any
2018-08-07 14:41:50 +03:00
Zalim Bashorov
8d97512179
[JS IR BE] Improve diagnostics in tests
2018-07-31 11:28:39 +03:00
Zalim Bashorov
2fb286e39c
[JS IR BE] Update tests
2018-07-31 11:28:39 +03:00
Roman Artemev
14b1f0ef6a
Fix issue #KT-24475
...
* count coroutine metadata references during RemoveUnusedImport pass in JsInliner
* add cases to test usage of stdlib symbols in inlined functions
2018-07-26 19:23:06 +03:00
Ilya Gorbunov
a81c06049a
Fix creatures web-demo example
...
Rewrite val reassignment in getter with lazy property
2018-07-25 20:25:36 +03:00
Nikolay Krasko
c210d3d10a
Minor: remove duplicated copyright comment
2018-07-25 19:52:26 +03:00
Zalim Bashorov
a6cd552a71
[JS IR BE] Implement Long.rangeTo and unmute tests
2018-07-25 14:51:08 +03:00
Roman Artemev
0c6256d003
Fix initialization order
...
* put inheritance code in the beginning
* put top-level initializer after any declaration
2018-07-24 20:16:39 +03:00
Svyatoslav Kuzmich
625983b28a
[JS IR BE] Enum class lowering
2018-07-23 15:08:18 +03:00
Alexander Udalov
871b896a21
Add internal compiler argument to change metadata version
...
Will be used in tests to check how we behave on binaries produced by a
"future" compiler
2018-07-18 17:59:37 +02:00
Roman Artemev
e4b314c26c
Fix inlining of invoke operator [#KT-25474]
...
* add test
2018-07-18 16:12:41 +03:00
Svyatoslav Kuzmich
b23dabb8b7
Revert EXPECTED_REACHABLE_NODES for failed tests
2018-07-18 15:31:29 +03:00
Svyatoslav Kuzmich
1abb4f42ac
[JS IR BE] Add ranges to runtime, rangeTo for primitive numbers
2018-07-17 20:18:29 +03:00
Ilmir Usmanov
8fa3584c5c
Minor. Fix test
2018-07-16 15:09:23 +03:00
Ilmir Usmanov
bc4a7aec76
Remove suspendCoroutineOrReturn intrinsic from compiler
...
#KT-21240: Fixed
Also, change logic of intrinsics check.
#KT-23438: Fixed
2018-07-16 15:09:18 +03:00
Zalim Bashorov
3f0b31dc23
Speed up JS IR BE tests compiling the common parts (runtime + test common utils) once (on demand) and sharing the result between tests
...
It's a temporary hack until we implement IR based library format.
It relies on the fact that currently, IR BE generates stable (enough) names.
2018-07-13 23:42:41 +03:00
Anton Bannykh
6a9b8d27e6
JS: update DCE test data
2018-07-12 14:18:34 +03:00
Anton Bannykh
9c6452778f
JS IR: unmute tests
2018-07-11 15:25:41 +03:00
Anton Bannykh
ac1a97ad83
JS IR: unmute tests
2018-07-11 14:49:36 +03:00
Svyatoslav Kuzmich
77ad97a39e
[JS IR BE] Bridges construction
2018-07-10 14:11:09 +03:00
Anton Bannykh
07b3b66fd9
JS IR: unmute tests
2018-07-10 13:34:19 +03:00
Anton Bannykh
4872c97929
JS: enable release coroutines
2018-07-10 13:11:39 +03:00
Svyatoslav Kuzmich
83f8cfaa66
[JS IR BE] hashCode, toString, number conversion support
2018-07-03 19:51:58 +03:00
Zalim Bashorov
15f33dd94a
Unmute some tests for JS IR BE
...
(cherry picked from commit 04a9622)
2018-06-29 11:24:46 +03:00
Zalim Bashorov
7e9cf64754
KJS: don't use onlyIf from ir/backend.common
...
(cherry picked from commit 34574a9)
2018-06-29 11:24:46 +03:00
Ilya Gorbunov
6d027bbbfc
Remove state from parts of multifile classes
...
Split COROUTINE_SUSPENDED marker to expect and actual because Kotlin/JS backend
expects it to be property without getter.
Update EXPECTED_REACHABLE_NODES in JS test data.
#KT-24986 Fixed
2018-06-22 11:35:05 +03:00
Dmitry Savvinov
70714cb71e
Deprecate smartcasts on local delegated properties
...
^KT-22517 Fixed
2018-06-21 13:36:43 +03:00
Anton Bannykh
6edf138460
JS IR: muted newly failing tests
2018-06-21 13:27:17 +03:00
Anton Bannykh
04a2ffc0c1
JS IR: unmute tests
2018-06-21 13:27:17 +03:00
Anton Bannykh
9039b75c25
JS IR: unmute tests
2018-06-21 13:27:17 +03:00
Dmitry Petrov
f956e8d85d
Record special descriptor in REFERENCE_TARGET for type alias object
...
If a type alias is used to reference an object (companion object) as a
qualifier, record FakeCallableDescriptorForTypeAliasObject in
REFERENCE_TARGET. This tells IDE that type alias was used in the file,
thus, if it's imported, such import isn't redundant.
REFERENCE_TARGET is used mostly by IDE and by ClassifierUsageChecker,
which we also have to update to handle qualifiers with
FakeCallableDescriptorForTypeAliasObject in REFERENCE_TARGET.
Rewrite some parts of ClassifierUsageChecker for cleaner interaction.
#KT-21863 Fixed Target versions 1.2.40
2018-06-20 17:16:25 +03:00
Toshiaki Kameyama
84e49e5b57
JS: Fix ClassCastException that occurs when 'when' clause has map range #KT-23458 Fixed
2018-06-20 14:00:29 +03:00
Toshiaki Kameyama
65ba57bcae
JS: Fix TranslationRuntimeException on 'for (x in ("a"))' #KT-22376 Fixed
2018-06-20 13:59:10 +03:00
Roman Artemev
f69bd54d6c
[JS IR BE] Update test data
2018-06-19 17:09:31 +03:00
Roman Artemev
02628e8de3
[JS IR BE] Support exceptions in IR BE runtime
2018-06-19 17:09:24 +03:00
Anton Bannykh
b551afb202
JS IR: minor fix for callable ref translation
...
The caching variable has to have no initializers so that there is no
dependence on evaluation order.
2018-06-18 13:15:19 +03:00
Anton Bannykh
43e3314255
JS IR: Remove inline functions with reified type parameters
...
Otherwise we cannot handle type casts
2018-06-18 13:15:19 +03:00
Anton Bannykh
3808d77bf4
JS IR: inliner
2018-06-18 13:15:19 +03:00
Anton Bannykh
d938c91711
JS IR: top-level initializer lowering
2018-06-18 13:15:19 +03:00