511 Commits

Author SHA1 Message Date
Alexey Andreev
4dc6ca913b Fix incorrect compilation of try/catch block inside catch block
Fix #1012
2025-04-10 19:39:21 +02:00
Alexey Andreev
ab8fb13415 Refactor JUnit test runner and improve performance of running in browser 2025-04-10 18:57:43 +02:00
Alexey Andreev
53dca8fdd1 wasm gc: support Class.getMethods and Class.getConstructors 2025-04-08 20:15:36 +02:00
Alexey Andreev
4b1f11fa52 jso: static methods of exported class initialize module class to trigger static classinits 2025-04-08 14:44:52 +02:00
Alexey Andreev
04123c4562 wasm gc: support Class.getFields 2025-04-06 19:41:30 +02:00
Ivan Hetman
7be6af5819
classlib: fix bugs in System.identityHashCode and Arrays.deepToString 2025-04-06 19:10:39 +02:00
Alexey Andreev
203b34939a wasm gc: support Class.getInterfaces 2025-04-02 20:15:46 +02:00
Alexey Andreev
30ab6bfe7d wasm gc: support Class.getAnnotations 2025-04-02 19:28:24 +02:00
Alexey Andreev
e14993f509 Improve performance of test running by running all tests from single class in same iframe without recompilation 2025-03-21 12:20:54 +01:00
Alexey Andreev
5cd382da6d wasm gc: fix argument conversion when calling static Java methods in JS classes 2025-02-11 19:14:56 +01:00
Alexey Andreev
7fdaf3c0d1 jso: pass primitive arrays to JS as TypedArrays 2025-02-07 18:54:55 +01:00
Alexey Andreev
8c0af2ca27 jso: fix invalid tests, add support of optional parameter in JSByRef annotation to support Wasm GC 2025-02-06 19:25:04 +01:00
Alexey Andreev
a40c4a93f1 jso: support passing NIO buffers to JS 2025-02-06 18:45:18 +01:00
Alexey Andreev
a13111efe5 Implement traditional heap (malloc/free) for use in direct NIO buffers implementation 2025-02-04 19:47:09 +01:00
Alexey Andreev
2192b3a846 classlib: add specialized implementation of NIO buffers for native backends 2025-02-01 17:18:59 +01:00
Alexey Andreev
9a57a1f1c1 Suppress running failing tests on WebAssembly and WASI platforms 2025-01-26 18:38:52 +01:00
Alexey Andreev
1c8d99cd44 classlib: refactor nio buffers implementation so that they wrap typed arrays in JS
Fix #990
2025-01-26 18:07:28 +01:00
Alexey Andreev
f1a575564f jso: fix exporting class without members and with constructor in JS BE
Fix #997
2025-01-26 18:06:57 +01:00
Alexey Andreev
6ca538bb75 classlib: patch kotlin KClass implementation to avoid using unsupported reflection methods
This also fixes Kotlin serialization

Fix #996
2025-01-26 17:29:49 +01:00
Alexey Andreev
5259e18f64 jso: support conversions between Java long and JS BigInt 2025-01-19 19:17:51 +01:00
Alexey Andreev
254e858f56 classlib: fix greedy behaviour of InputStreamReader and BufferedReader
Fix #990
2025-01-17 18:55:14 +01:00
lax1dude
61e8c85d14
WASM: Intrinsify numberOfLeadingZeros, numberOfTrailingZeros, and bitCount (#978) 2024-12-03 21:29:36 +03:00
Alexey Andreev
4e3cb5628f Add test for System.arraycopy with different source/target indexes 2024-11-30 18:59:36 +01:00
Alexey Andreev
f11a5474d0 wasm: use non-trapping conversion instructions when casting floats and doubles to ints and longs
Fix #976
2024-11-30 18:50:43 +01:00
Alexey Andreev
18d63863c9 wasm gc: fix with passing JS objects to overlay methods of JS classes 2024-10-23 19:33:13 +02:00
Alexey Andreev
dff3e2f328 wasm gc: fix with passing JS objects to non-JS methods 2024-10-23 18:34:56 +02:00
Alexey Andreev
c56f5be2d9 wasm: add disassembler tool as a web application 2024-10-23 15:48:11 +02:00
Alexey Andreev
17b110debe jso: fix issues with JSSymbol
Inspired by PR #949
2024-10-22 19:54:08 +02:00
Alexey Andreev
f3e035148d wasm gc: add support for importing modules in more cases 2024-10-17 20:18:56 +02:00
Alexey Andreev
e4a2550cc6 wasm gc: add support for imports from JS 2024-10-17 19:35:23 +02:00
Alexey Andreev
4f9208c4d4 wasm gc: more configuration options to set up stack trace deobfuscation 2024-10-13 19:05:44 +02:00
Alexey Andreev
40d2ab97ec wasm gc: add stack trace deobfuscator 2024-10-12 20:04:38 +02:00
Alexey Andreev
cb3ce477e2 wasm gc: preprocess JS runtime with uglifyjs, add modular runtime 2024-10-11 13:48:29 +02:00
Alexey Andreev
14a4a99fa5 wasm gc: fix exporting classes to JS 2024-10-10 19:12:40 +02:00
Alexey Andreev
f61d893b6d wasm gc: fully support exporting classes to JS 2024-10-09 19:28:45 +02:00
Alexey Andreev
0dcc25d66b wasm gc: support exporting declarations as JS entities from module 2024-10-08 20:09:43 +02:00
Alexey Andreev
7aec0763fa wasm gc: fix issue with JS exceptions, trying to propagate Java exception message to JS error message 2024-10-04 16:56:47 +02:00
Alexey Andreev
3218a00eb9 wasm gc: support JS exceptions 2024-10-04 11:49:17 +02:00
Alexey Andreev
1d47146f43 wasm gc: support JS functions with varargs 2024-10-04 10:02:06 +02:00
Alexey Andreev
0057bbd00d wasm gc: fix issue with extracting elements from arrays of JS objects 2024-10-04 09:00:51 +02:00
Alexey Andreev
eba0e2b2e8 wasm gc: fix issues with arrays of JS objects, unignore passing test 2024-10-03 22:23:56 +02:00
Alexey Andreev
2aabddc32d wasm gc: fix conversion of multidimensional arrays from JS 2024-10-02 20:02:58 +02:00
Alexey Andreev
0bd7bc6ca9 wasm gc: fix support of legacy Object.cast method 2024-10-02 19:27:43 +02:00
Alexey Andreev
a291eb3026 wasm gc: support wrapping JS values in Java 2024-10-02 14:31:33 +02:00
Alexey Andreev
2340760647 wasm gc: unignore JSO test that now passes 2024-10-01 14:48:28 +02:00
Alexey Andreev
4b76396332 wasm gc: basic support for functors in JSO 2024-10-01 14:43:53 +02:00
Alexey Andreev
383fee67c5 wasm gc: support exporting Java classes to JavaScript 2024-10-01 13:57:20 +02:00
Alexey Andreev
5ad4496c34 wasm gc: support primitive array conversion to JavaScript in JSO 2024-09-28 19:52:14 +02:00
Alexey Andreev
bbf45760b8 wasm gc: implement simple features from JSO 2024-09-28 19:20:48 +02:00
Alexey Andreev
1d81b7004f Fix possible bug with exceptions in GVN 2024-09-26 20:39:29 +02:00