Anton Bannykh
59009430e5
JS: report inline suspend functions to IC
...
* Also inline suspend lambda'a
* Also use correct JsName's in exported suspend inline fun's
* Also use less unused imports
2018-11-07 12:11:01 +03:00
Anton Bannykh
5dae00182d
JS: fix suspend lambda inlining
...
* Also avoid casts when setting inline metadata
2018-11-07 12:07:02 +03:00
Anton Bannykh
4c5201d30e
JS: fix module parameter linking
2018-11-07 12:06:09 +03:00
Roman Artemev
7f215d3f52
Update tests
2018-11-01 16:51:38 +03:00
Alexander Udalov
911420d823
Minor, move InlineOnly-related utilities to frontend
2018-10-31 17:21:06 +01:00
Roman Artemev
fb499def59
Update tests
2018-10-25 15:49:21 +03:00
Roman Artemev
9515de0b7e
[JS IR BE] Fix name clash between top-level fields
2018-10-25 15:48:42 +03:00
Roman Artemev
59b1743c37
Add tests
2018-10-25 15:48:42 +03:00
Roman Artemev
7cb202934c
Update tests
2018-10-25 15:48:42 +03:00
Alexander Udalov
1ee1d15b91
Support annotations on property accessors in JS/common metadata
...
#KT-14529 Fixed
2018-10-24 18:17:12 +02:00
Anton Bannykh
b83df18e22
[JS IR BE] make default argument lowering support per-file mode
2018-10-19 23:49:18 +03:00
Roman Artemev
4c30888d89
Fix test data
2018-10-19 19:38:00 +03:00
Roman Artemev
1338d6d66f
Update tests
2018-10-19 14:07:20 +03:00
romanart
0260dc813f
Update tests
2018-10-19 14:03:06 +03:00
Anton Bannykh
3a105debb3
[JS IR BE] fix default arguments lowering
2018-10-18 14:25:48 +03:00
Anton Bannykh
29ff4d6677
[JS IR BE]: Disable incremental compilation tests until IC is supported
2018-10-18 14:24:05 +03:00
Anton Bannykh
995ac7aac2
[JS IR BE]: make deleteProperty non-inline due to new inliner limitations
2018-10-18 14:24:05 +03:00
Alexander Udalov
f868964e25
Fix most unchecked/deprecation javac warnings in compiler modules
2018-10-17 18:39:49 +02:00
Alexander Udalov
23c210e9f2
Use JvmWildcard on return type of getContributedVariables/getContributedFunctions
2018-10-17 18:39:49 +02:00
romanart
47b8e54f84
Update test data
2018-10-17 18:33:52 +03:00
romanart
71f109387a
Update tests
2018-10-17 14:10:37 +03:00
Svyatoslav Kuzmich
4c38d55f21
[JS IR BE] Unmute tests
2018-10-15 00:03:45 +03:00
Svyatoslav Kuzmich
5a057f8ca6
[JS IR BE] Support 'is Number' and 'is Comparable<>'
2018-10-14 23:53:03 +03:00
Svyatoslav Kuzmich
bad9534abd
[JS IR BE] Support integer operation overflow
2018-10-14 23:53:02 +03:00
Zalim Bashorov
8013a56286
[JS IR BE] process empty loops correctly in BlockDecomposerLowering
2018-10-13 01:51:59 +03:00
Zalim Bashorov
3f0bd20235
Add an ability to run/debug ir tests inside node.js (even from IDEA)
2018-10-12 13:57:03 +03:00
Svyatoslav Kuzmich
7074909230
[JS IR BE] Support enumValues<T>() and enumValueOf<T>(name)
2018-10-10 19:35:17 +03:00
Svyatoslav Kuzmich
bdc3daf972
[JS IR BE] Support Enum::values
2018-10-10 19:35:17 +03:00
Svyatoslav Kuzmich
0210ec3114
[JS BE] Fix KT-26787: handle JsSwitch in LabeledBlockToDoWhileTransformation
2018-10-10 19:35:16 +03:00
Svyatoslav Kuzmich
89f7ced0d4
[JS IR BE] Unmute tests
2018-10-10 17:27:37 +03:00
Anton Bannykh
44d56cb278
JS: fix val with backing field initialization in secondary constructors
...
This change reverts the AssignmentTranslator logic to a previous state
of "if we assign to a val, tranlate to backing field". Previously a
check whether or not we are inside of a constructor was added. The
check didn't detect secondary constructors, hence initializing of
val's with backing field started to work incorrectly.
The check itself was added in an attempt to prevent augmented assignment
operators to reference the backing field. The check seems to have been
wrong, because an augmented assignment could happen inside a construcotr.
A more correct fix was added later. It seems that it is safe now to
revert the logic back and rely on the frontend to only allow assignment
to a val property during initilization.
2018-10-10 17:25:55 +03:00
Anton Bannykh
8c6337f3f6
[JS IR BE]: support dynamic_var["foo"] = "bar"
...
Used EQ origin to detect. Added a test to check dynamic_var = "bar" case
is not affected
2018-10-10 13:43:22 +03:00
romanart
d77a0f109b
Update tests
2018-10-09 15:33:04 +03:00
Svyatoslav Kuzmich
b79dcbe8e6
[JS IR BE] Refactor equals and compareTo lowering
2018-09-24 18:21:57 +03:00
Anton Bannykh
8e347f9f39
[JS IR BE] lateinit support
...
* Functions with IrExpressionBody are lowered to IrBlockBody
* Implemented throwUninitializedPropertyAccessException function
2018-09-21 18:20:11 +03:00
Anton Bannykh
beaf6df8c5
[JS IR BE] support CharSequence and String methods
2018-09-21 18:16:03 +03:00
Roman Artemev
a807397f65
[JS_IR] Add inlineBox tests
2018-09-21 14:02:53 +03:00
Ilya Gorbunov
0ca59b3a40
Use modern API of Kotlin 1.3 in JS canvas examples
2018-09-20 22:08:56 +03:00
Anton Bannykh
6736987239
JS: fix unsigned literal inlining
2018-09-19 15:04:36 +03:00
Anton Bannykh
66b5dd92d9
JS: fix line number data
2018-09-19 13:57:43 +03:00
Anton Bannykh
7d5a304cf6
[JS IR BE] support Char.rangeTo()
2018-09-18 15:43:55 +03:00
Anton Bannykh
0660e4d616
[JS IR BE] support multimodule tests
2018-09-18 14:36:20 +03:00
Anton Bannykh
2e709a81fa
[JS IR BE] Arrays, varargs
2018-09-18 14:36:20 +03:00
Roman Artemev
e242a8b08b
Unmute tests
2018-09-17 15:29:19 +03:00
Anton Bannykh
b389e29db5
JS: update DCE testdata
2018-09-12 09:49:25 +03:00
Anton Bannykh
ead9b31e03
JS: support [suspend] fun main([args: Array<String>]) (KT-26628, KT-26572 fixed)
2018-09-12 09:49:25 +03:00
Denis Zharkov
c1cc722ac4
Turn off incorrect switch-optimization for when by enums
...
#KT-24708 Fixed
2018-09-12 09:49:25 +03:00
Denis Zharkov
38be1f6947
Minor. Parametrize MainFunctionDetector with LanguageVersionSettings
2018-09-12 09:49:25 +03:00
Ilya Gorbunov
62ffacab09
Raise deprecation level for jsClass functions
...
Suppress error in tests
#KT-21703
2018-09-11 18:15:04 +03:00
Anton Bannykh
65f98a285a
JS: fix test by using release coroutines
2018-09-11 15:29:48 +03:00