Ilya Gorbunov
bf21e1282a
Suppress most of unused parameter warnings
2020-05-19 19:24:00 +03:00
Ilya Gorbunov
188bcf0e7b
stdlib-js-ir: do not copy source directories from the same project
2020-05-14 10:40:34 +03:00
Ilya Gorbunov
46b0784508
Disable kotlinMetadata compilation for js-ir-minimal-for-test
...
Use more convenient way to specify dependency on source syncing tasks.
2020-05-14 10:40:18 +03:00
Abduqodiri Qurbonzoda
0c7b04a495
Document fromIndex and toIndex parameters #KT-38388
2020-05-09 23:34:03 +03:00
Svyatoslav Kuzmich
3d5003d476
[JS_IR] Use new plugin to build Kotlin/JS stdlib with IR compiler
...
- Switch to building stdlib with bootstrap compiler since IR is stable
enough
- Build stdlib with coreLibs by default
- Include JS IR stdlib to kotlin distribution
2020-05-08 10:37:48 +03:00
Anton Bannykh
2992d49a1d
JS IR: fix findAssociatedObjects for primitive type KClass'es
2020-04-28 19:08:44 +03:00
Anton Bannykh
e8a6ddceaa
JS IR: hide runtime helpers from users
2020-04-28 16:40:07 +03:00
Anton Bannykh
442331acc9
IR JS: support findAssociatedObject feature (KT-37418 fixed)
2020-04-27 17:23:19 +03:00
Abduqodiri Qurbonzoda
5af76a07d4
Fix CharArray sort in JS IR-backend
2020-04-22 23:46:50 +03:00
Abduqodiri Qurbonzoda
d6472aa700
Reverse range and sortDescending range #KT-36955
2020-04-20 22:06:28 +03:00
Dmitry Petrov
05cb0e8994
KNVE: support in JVM_IR and JS_IR
2020-04-20 20:07:52 +03:00
Ilya Gorbunov
ec9c7c98cd
Use stubs in reduced js-ir runtime instead of new throwable extensions
...
To avoid bringing a lot of API required for their full implementation
to reduced runtime.
2020-04-13 09:32:42 +03:00
Ilya Gorbunov
d115792d9a
Move a couple ad-hoc properties to buildSrc/BuildPropertiesExt
2020-04-07 10:54:34 +03:00
Ilya Gorbunov
f3fc1197ae
Add SIZE_BITS and SIZE_BYTES constants to Double and Float
...
#KT-29182
2020-04-01 08:06:57 +03:00
Ilya Gorbunov
1c93911279
Make Double and Float known values constant
...
#KT-13887
2020-04-01 08:06:57 +03:00
Ilya Gorbunov
2bb36899da
Introduce 'fail' method to throw AssertionError with cause
...
#KT-37804
2020-03-31 13:37:03 +03:00
Abduqodiri Qurbonzoda
e632d58936
Nullable Array.contentEquals/contentHashCode/contentToString #KT-34161
2020-03-12 18:01:23 +03:00
Zalim Bashorov
8e788e2169
[stdlib-js-ir] Copy Boolean and String sources and add equals, hashCode, toString
2020-03-11 12:54:42 +03:00
Zalim Bashorov
adfb296e45
[stdlib-js-ir] Add equals, hashCode, toString to some builtins
...
Namely:
* Throwable;
* primitive numbers except Long (which implemented in Kotlin).
2020-03-11 12:54:42 +03:00
Zalim Bashorov
97e86fb2ce
[stdlib-js-ir] Char shouldn't be a data class
2020-03-11 12:54:41 +03:00
Zalim Bashorov
7c874ccf0c
[stdlib-js-ir] Hack: mark Char.toString by JsName to force keeping it
2020-03-11 12:54:41 +03:00
Zalim Bashorov
9e7f72382f
[stdlib-js-ir] Remove BitUtils object and make all members toplevel
...
It works slightly better with IR DCE --
we get about 6% less code on box tests.
2020-03-11 12:54:41 +03:00
Zalim Bashorov
43171f67a8
[stdlib-js-ir] Cleanup exceptions
2020-03-11 12:54:41 +03:00
Alexander Udalov
787e4503e5
Migrate -Xuse-experimental -> -Xopt-in in project sources
2020-03-10 12:07:15 +01:00
Roman Artemev
c2676ded31
[JS IR] Implement KProperty runtime utils
2020-03-03 18:54:36 +03:00
Roman Artemev
0e67c6ac7d
[JS IR] Update coroutine runtime
2020-03-03 18:54:35 +03:00
Roman Artemev
26237f8bd5
[JS IR] Implement new function references scheme
2020-03-03 18:54:34 +03:00
Vyacheslav Gerasimov
2f087fe7a2
Build: Fix kotlin-stdlib-js-ir:tryRunFullCli task inputs
2020-03-03 18:46:05 +03:00
Vyacheslav Gerasimov
a4030d3abf
Build: Make JavaExec relative path system independent
2020-03-03 16:47:55 +03:00
Vyacheslav Gerasimov
08ac7da7a6
Build: Fix input declaration for :kotlin-stdlib-js-ir:fullRuntimeSources
...
Input order was random because of unordered set
2020-03-03 16:47:55 +03:00
Vyacheslav Gerasimov
bb2cf38617
Build: Make :kotlin-stdlib-js-ir buildKLib tasks cacheable
2020-03-03 16:47:55 +03:00
Abduqodiri Qurbonzoda
1f721796b8
Add vararg overloads for maxOf/minOf functions #KT-33906
2020-02-26 04:17:19 +03:00
Mikhail Zarechenskiy
155b716e7e
Revert "Disable NewInference for stdlib tests"
...
This reverts commit cdf5323f8c .
2020-02-17 10:29:46 +03:00
Mikhail Zarechenskiy
cdf5323f8c
Disable NewInference for stdlib tests
...
There is one failing test namely `ValByMapExtensionsTest.doTest`, which
is quite questionable because its checks the use of out projection and
Exact annotation (see KT-18789)
2020-02-13 11:15:56 +03:00
Nikolay Krasko
2a71fe97cf
201: picocontainer.jar is removed
2020-02-11 20:27:59 +03:00
Ilya Gorbunov
8f37ace9ee
Finally drop deprecated mod functions from numeric types
...
#KT-26654
2020-01-23 19:28:22 +03:00
Abduqodiri Qurbonzoda
1203df7405
Deprecate floating point to integral types lesser than Int #KT-30360
2020-01-22 23:27:35 +03:00
Ilya Gorbunov
09b1960dd0
Regenerate stdlib sources: update copyright year
2020-01-16 15:57:06 +03:00
Vyacheslav Gerasimov
fa1c6c9697
Build: Add missing com.github.node-gradle.node plugin versions
2020-01-13 19:40:08 +03:00
Ilya Gorbunov
c084dfa1d7
[JS IR] stdlib: use 'base' plugin instead of kotlin("jvm")
...
'base' plugin is enough in this case, given that a couple of tasks is registered and configured manually.
Fix kotlin-reflect dependency to be a project dependency.
2020-01-09 22:57:50 +03:00
Ilya Gorbunov
372a4009bd
Fix coreLibsInstall composite task again
...
See the commit f0e67f8397 for details
2020-01-09 22:54:57 +03:00
Svyatoslav Kuzmich
d74721716a
[JS IR] Use short klib names instead of absolute paths
2019-12-25 13:44:57 +03:00
Svyatoslav Kuzmich
31c84e9ac4
[JS IR] Build stdlib using compiler from repo
...
Previously JS IR versions of stdlib and kotlin-test were build
by default using compiler previously built on a buildserver.
It had some issues:
- This required us to advance bootstrap every time we made any
incompatible IR changes. This happens often since IR ABI is
not quite stable yet.
- We never tested the exact combination of compiler and stdlib we publish
We tested:
- new compiler with new stdlib build by new compiler (in box tests)
- old compiler with new stdlib build by old compiler (in stdlib tests)
We published:
- new compiler with new stdlib build by old compiler
After this change JS IR compiler tests, builds and publishes
single configuration:
new compiler with new stdlib build by new compiler
JS IR stdlib and kotlin-test are now built using JavaExec of CLI instead
of Gradle plugin to avoid troubles of loading a freshly built plugin.
This also allows to have a granular dependencies: we don't rebuild klib
if we changed a lowering in a compiler backend, but we do rebuild it if
we changed IR serialization algorithm.
2019-12-25 13:44:57 +03:00
Roman Artemev
9871f8c579
[JS BE] Fix DCE to let it remove constant properties
2019-12-24 19:26:05 +03:00
Ilya Gorbunov
f0e67f8397
Fix coreLibsInstall composite task
...
It was broken after the commit bbdbc2896b ,
which included kotlin-stdlib-js-ir project into coreLibs list,
but that project didn't have 'install' task, on which 'coreLibsInstall' depends
2019-12-11 06:36:40 +03:00
Roman Artemev
757ddd9179
[JS IR] Fix standard collections
...
- remove PlatformDependent annotated methods
2019-11-28 14:45:34 +03:00
Vyacheslav Gerasimov
8d31d4a60f
Replace com.moowork.node plugin with com.github.node-gradle.node
2019-11-27 21:26:34 +03:00
Vyacheslav Gerasimov
81e24fbdb4
Build: Extract version of com.moowork.node to the settings.gradle
2019-11-27 21:26:34 +03:00
Anton Bannykh
9fec2c78d1
JS IR: apply forLoopsLowering
...
Replaced createTemporaryVariable usages with createTmpVariables.
The latter doesn't rely on KotlinType's. Using KotlinType with
JS_IR backend causes runtime excpetions, as some expected descriptor
API is not implemented, because it avoids descriptors as much as
possible.
2019-11-26 15:08:10 +03:00
Anton Bannykh
81699299f5
JS_IR: DCE
...
Could be enabled by toggling `-Xir-dce`
Box test output in js/js.translator/testData/out-min
2019-11-26 12:20:39 +03:00