Alexey Andreev
1dd73fe210
wasm gc: lazy generation of virtual table and class instances
2025-03-06 20:44:59 +01:00
Alexey Andreev
5ee26e5281
wasm gc: improve VT fill size by choosing VT structures closer to root
2025-03-06 19:20:35 +01:00
Alexey Andreev
6bb53fb3a5
wasm gc: merge marker interfaces into corresponding classes to reduce number of merged interfaces in VT
2025-03-06 18:56:07 +01:00
Alexey Andreev
42dcddceb5
wasm gc: (minor) remove unused parameter from function type mapper
2025-03-06 18:21:34 +01:00
Alexey Andreev
e2a55a3438
Improve devirtualization speed in fast dependency analysis mode
2025-03-06 18:07:31 +01:00
Alexey Andreev
df4f11b0f0
wasm gc: further optimizations of virtual tables
2025-03-06 07:43:04 +01:00
Alexey Andreev
3a5ffc98a6
wasm gc: fix usage of type indexes
2025-02-27 19:47:27 +01:00
Alexey Andreev
1424bf8649
wasm gc: split representations of classes and virtual tables
2025-02-27 19:10:01 +01:00
Alexey Andreev
f2eb9d7dbc
maven: fix copying modular Wasm GC runtime
...
Fix #1006
2025-02-24 20:08:50 +01:00
Alexey Andreev
77d95a8881
wasm gc: fix issue in virtual table builder
2025-02-24 20:05:20 +01:00
Alexey Andreev
8cbbb35d9b
wasm gc: compiler performance optimization
2025-02-23 20:31:34 +01:00
Alexey Andreev
78282158a9
wasm gc: fix bug with dependency analysis in fast mode
2025-02-23 19:46:07 +01:00
Alexey Andreev
7a21e5547a
wasm gc: fix bug in virtual table optimizer
2025-02-23 10:21:00 +01:00
Alexey Andreev
ccfb0b9bc5
wasm gc: optimize virtual table generation
...
In certain cases assume that interface VT behaves as a class VT, thus don't move it to common superclass
2025-02-22 17:59:52 +01:00
Alexey Andreev
64c3ee81c2
js: more informative exception message when trying to suspend from non-thread context
2025-02-13 19:57:31 +01:00
Alexey Andreev
c083a62740
Fix Object.monitorEnter/monitorExit methods not being transformed into async state machine in some cases
...
Fix #969
2025-02-13 18:59:36 +01:00
Alexey Andreev
177f67b5af
samples: remove unnecessary broken dependencies
2025-02-13 18:55:56 +01:00
Alexey Andreev
ef52e48187
wasm gc: fix bug in WeakReference implementation
2025-02-12 18:24:33 +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
2958e63657
wasm gc: prevent null constant instructions that are used more that once
...
Rationale: since Wasm GC is statically typed IR, with even nulls having some type, sharing null constants between expressions can cause unsolvable contradictions in types
2025-02-10 20:10:34 +01:00
Alexey Andreev
54d65374bb
jso: fix accidental change
2025-02-09 19:27:55 +01:00
Alexey Andreev
bdc9fe757a
wasm gc: support JSExceptions.getJSException
2025-02-08 16:03:09 +01:00
Alexey Andreev
da848c523b
wasm gc: fix issues with type inference
2025-02-08 16:02:48 +01:00
Alexey Andreev
6a2bd3e6bf
wasm gc: add classes that are not directly reachable, but are mentioned in method signatures
...
Rationale: it can be that some function `foo` declares that it takes class C, but class C is never reachable from code (e.g. never get instantiated, and `foo` only takes nulls). In this case it can be that class C has no representation in Wasm module, which can lead to type validation errors.
2025-02-08 09:11:21 +01:00
Alexey Andreev
7fdaf3c0d1
jso: pass primitive arrays to JS as TypedArrays
2025-02-07 18:54:55 +01:00
Alexey Andreev
e28b27c7d8
jso: fix support of optional JSByRef parameter
2025-02-07 13:36:33 +01:00
Alexey Andreev
0b1559cf8d
wasm gc: provide import function that returns JS exports container
2025-02-07 13:22:30 +01:00
Alexey Andreev
040b6f7ff6
wasm gc: use async method to instantiate module in order to support large wasm files
2025-02-07 13:05:12 +01:00
Alexey Andreev
196ac85da1
wasm gc: fix support of clone method of non-cloneable classes
2025-02-07 11:56:06 +01:00
Alexey Andreev
f893cfab28
jso: fix support of optional JSByRef return value
2025-02-07 11:33:45 +01:00
Alexey Andreev
d9cac84056
wasm gc: fix bug in dependency analyzer
2025-02-07 11:33:14 +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
b3af74ddd4
wasm gc: support setting min/max size of linear memory, available for direct buffers, in Maven and Gradle
2025-02-05 18:54:14 +01:00
Alexey Andreev
aefc9dfedb
wasm gc: implement direct NIO buffers over linear memory
2025-02-05 18:41:34 +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
a33f178ba3
samples: add Kotlin coroutine integration sample
2025-01-29 19:30:36 +01:00
Alexey Andreev
9a57a1f1c1
Suppress running failing tests on WebAssembly and WASI platforms
2025-01-26 18:38:52 +01:00
Alexey Andreev
7145ca70d9
js: initialize native exception immediately on construction of Java exception
...
Fix #1001
2025-01-26 18:36:05 +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
13e7cc96b1
jso: add BigInt get/set methods to DataView
2025-01-19 19:22:52 +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
scf37
a8fb7188d3
js: remove deprecated Long converions from the runtime ( #993 )
2025-01-08 11:01:57 +01:00
Alexey Andreev
c313e513be
Fix TeaVM version in samples
...
Fix #988
2024-12-15 10:53:59 +01:00
Bernd Busse
db0bbba7df
Fix warnings about wrong/missing javadoc tags ( #981 )
2024-12-15 12:46:03 +03:00
Leonid Bogdanov
9489f2c5d5
classlib: fix TByte.decode() value range check ( #986 )
2024-12-15 12:44:05 +03:00