Igor Laevsky
2c9bfe901d
[Wasm] Pull array range checks into single function
2022-04-05 18:00:31 +00:00
Ivan Kylchik
6f448820f0
Add new internal annotation IntrinsicConstEvaluation
2022-04-05 17:20:38 +00:00
Abduqodiri Qurbonzoda
1cb5cab28f
[K/N and WASM] Fix ESCAPE and COMMENTS modes
2022-04-05 15:21:31 +00:00
Abduqodiri Qurbonzoda
7b46738796
[K/N and WASM] Throw on unknown inline flag modifier
2022-04-05 15:21:30 +00:00
Abduqodiri Qurbonzoda
9593069cb3
[K/N and WASM] Throw on duplicate group name
2022-04-05 15:21:30 +00:00
Abduqodiri Qurbonzoda
187faa121e
Test backreference to group with index zero
2022-04-05 15:21:29 +00:00
Abduqodiri Qurbonzoda
74121b26c0
Test octal literal in regex
2022-04-05 15:21:28 +00:00
Abduqodiri Qurbonzoda
46408ffd9d
Fix tests by adjusting to platform behavior
2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda
d500d03baa
[K/N and WASM] Support back references to groups with multi-digit index #KT-51776
2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda
9c4c1ed557
[K/N and WASM] Implement named capturing group in Regexes #KT-41890
2022-04-05 15:21:26 +00:00
Abduqodiri Qurbonzoda
c3f5d03b36
[JS] Support named capture groups in Regex #KT-51775
2022-04-05 15:21:25 +00:00
Vsevolod Tolstopyatov
cf79752c14
Stabilize deepRecursiveFunction and DeepRecursiveScope
...
#KT-51848
2022-04-05 12:49:35 +00:00
Ilya Gorbunov
4c461d7864
Add min/max test generator and generated tests
...
Temporarily exclude these tests from kotlin-stdlib-wasm testing due to KT-51647
2022-04-04 22:33:25 +00:00
Ilya Gorbunov
60fbb0d171
Reintroduce min/max operations for non-empty collections KT-50146
2022-04-04 22:33:24 +00:00
Abduqodiri Qurbonzoda
42c9a27b8a
Specialize Progression first/last/OrNull functions #KT-42178
2022-04-04 22:27:49 +00:00
Vsevolod Tolstopyatov
82c959c4be
KT-51082 introduce Class<E : Enum<E>>.declaringJavaClass as a future replacement for synthetic declaringClass
2022-04-04 13:36:14 +00:00
Ilya Gorbunov
000165b12b
Fix incorrect conversion of Long to String in base 36 in JS KT-48924
2022-03-30 06:13:51 +00:00
Artem Kobzar
0153f5d92a
chore: set isComplete flag also for interfaces that do not contain constructor fields.
2022-03-21 18:53:04 +00:00
Igor Yakovlev
d881f0d2a6
[WASM] Replace String storage type from CharArray to WasmCharArray
2022-03-21 17:24:38 +00:00
Artem Kobzar
ac542d4c01
feat(JS/IR isInterfaceImpl perf): improve isInterfaceImpl performance by memoize an result.
2022-02-28 20:28:10 +00:00
Mikhail Glukhikh
53d6ac24e5
Switch kotlin version to 1.7
...
* Change 1.6 to 1.7 constants
* Fix SAFE_CALL_WILL_CHANGE_NULLABILITY for testData
* Change EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_WARNING to EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR
* Change NON_EXHAUSTIVE_WHEN_STATEMENT to NO_ELSE_IN_WHEN
* Fix testData for SafeCallsAreAlwaysNullable
* Change T -> T & Any in test dumps
* Change INVALID_CHARACTERS_NATIVE_WARNING -> INVALID_CHARACTERS_NATIVE_ERROR
* TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_WARNING -> TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_ERROR
2022-02-25 11:46:27 +00:00
Ilya Matveev
f7468cf9bc
[K/N][stdlib] Support \V, \v, \H, \h, \R in regex engine
...
Issue #KT-50742 Fixed
2022-02-21 13:20:23 +07:00
Dmitriy Novozhilov
baf300a815
[StdLib] Suppress INVISIBLE_REFERENCE alongside with INVISIBLE_MEMBER
...
This is needed to successful compilation of stdlib with FIR compiler
2022-02-18 17:44:43 +03:00
Dmitriy Novozhilov
aef752a8cb
[StdLib] Add -Xbuiltins-from-sources to arguments of stdlib for JVM
...
This flag is needed to successful compilation of stdlib with FIR compiler
2022-02-18 17:44:42 +03:00
Artem Kobzar
804eb61bf0
feat: add polyfills insertion for ES Next used features
2022-02-16 10:49:11 +00:00
Svyatoslav Kuzmich
4636f71076
[Wasm] Loader improvements
...
- Output ES modules instead of plain files
- Support -Xwasm-launcher=d8 for d8 shell used in tests and benchmarks.
- Reuse launcher generation logic in CLI and box tests runners.
- Create separate output directory for each box since
there are multiple output files generated for each test.
- Stop using absolute paths in generate JS files
to simplify running generated code on different machine
- Remove ">>>" from println output
Merge-request: KT-MR-5729
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com >
2022-02-10 22:59:44 +00:00
Igor Yakovlev
eb8c3aa54e
[WASM] Remove WasmImport annotation
2022-02-03 21:25:59 +01:00
Igor Yakovlev
d30a4fa4d5
[WASM/Native] Split AllCodePointsTest into two separate tests
2022-02-03 21:25:59 +01:00
Igor Yakovlev
8eec1743fb
[WASM] Remove TODO with UOE for std readln actuals
2022-02-03 21:25:59 +01:00
Igor Yakovlev
0fe7ad8157
[WASM] Enable std tests
2022-02-03 21:25:58 +01:00
Igor Yakovlev
32fbf69738
[WASM] Std code clean up
2022-02-03 21:25:58 +01:00
Igor Yakovlev
195513d4f2
[WASM] Workaround about call toTypedArray on AbstractCollection
2022-02-03 21:25:58 +01:00
Igor Yakovlev
c3a6d0b499
[WASM] Fix invalid constructors call flow for exceptions
2022-02-03 21:25:58 +01:00
Igor Yakovlev
e30b449454
[WASM] Replace non-performance way of building String from CharArray
2022-02-03 21:25:58 +01:00
Igor Yakovlev
a44b103da9
[WASM] Fix invalid equals/hashCode for Double.NaN and Float.NaN
2022-02-03 21:25:58 +01:00
Igor Yakovlev
ea76501f9e
[WASM] Implement ConstrainedOnceSequence
2022-02-03 21:25:58 +01:00
Igor Yakovlev
d0370bd145
[WASM] Fix invalid Array.fill methods implementations
2022-02-03 21:25:58 +01:00
Igor Yakovlev
5ed104063d
[WASM] Implement missing test asserter
2022-02-03 21:25:58 +01:00
Igor Yakovlev
ece0f83ab2
[WASM] Implement std kotlin.time
2022-02-03 21:25:57 +01:00
Igor Yakovlev
1052ebb44d
[WASM] Fix invalid rounding for Double to Int/Long conversion
2022-02-03 21:25:57 +01:00
Igor Yakovlev
b4435fe091
[WASM] Escape wasm trap on division of s32/s64 min values on -1
2022-02-03 21:25:57 +01:00
Igor Yakovlev
0acb1c0c05
[WASM] Implemented Wasm unhandled exceptions on JS site
2022-02-03 21:25:57 +01:00
Igor Yakovlev
e32f9eb2ce
[WASM] throwableExtensions implementation
2022-02-03 21:25:57 +01:00
Alexander Korepanov
769fbcf3d0
[JS IR] Improve performance for runtime typecheck
...
This is a part of KT-42743
2022-01-31 09:15:58 +00:00
Alexander Korepanov
d584cfc31d
Remove workaround for KT-45620 from NumbersTest.kt.
2022-01-28 17:10:01 +00:00
Sergej Jaskiewicz
d5e46e0607
[JS IR] Introduce intrinsics for slicing array-like objects
2022-01-27 11:06:16 +00:00
Sergej Jaskiewicz
08e6116ecb
[JS IR] Introduce jsArguments() intrinsic function
...
`jsArguments()` is lowered into a reference of the `arguments` object.
This is useful for extracting varargs, when calling Kotlin code from
JavaScript. For a concrete example, see KT-15223.
2022-01-27 11:06:16 +00:00
Dmitriy Dolovov
3ec4a8d6f3
[IR] Rename LinkageError symbol to IrLinkageError
...
This is needed to 1) avoid ambiguity about the type of linkage used in Kotlin/Native compiler, 2) have the same exception name in JS and Native backends.
^KT-50775
2022-01-26 13:36:24 +03:00
Nikolay Krasko
da556452c9
Use project directory as a base for stdlib js build
...
Some sources for kotlin-stdlib-js-ir are not copied to build dir
and used directly from the project.
Modify kotlin.test/js-ir as well, while there's no evidence of the
problem so far.
Should be removed after KT-50876 fix.
^KTI-730 In Progress
2022-01-25 00:58:54 +03:00
Nikolay Krasko
87bf6e010e
Use relative paths in stdlib klib artifacts
...
Intentionally use doFirst section to trick gradle and not affect
inputs with absolute path usage.
Old behaviour can be returned by kotlin.build.use.absolute.paths.in.klib
in local.properties
Should be removed after KT-50876 fix.
^KTI-730 In Progress
2022-01-20 21:50:20 +03:00