Commit Graph

2864 Commits

Author SHA1 Message Date
Alexey Andreev
f938db798b Wasm: add information about parameters and local variables to DWARF 2022-11-22 17:53:12 +01:00
Alexey Andreev
13cc56feb5 Wasm: split declarations and specifications of methods in DWARF 2022-11-21 16:00:27 +01:00
Alexey Andreev
8fac3237ba Wasm: generate nested DIEs for namespaces/classes/methods 2022-11-20 16:12:00 +01:00
Alexey Andreev
6222241651 Wasm: update loader to use instantiateStreaming method 2022-11-20 14:05:35 +01:00
Alexey Andreev
1399045ff6 Wasm: fix issues in DWARF generator 2022-11-20 08:42:32 +01:00
Alexey Andreev
7f38697d50 Wasm: don't emit DW_LNE_end_sequence when there were no previous command emitted 2022-11-19 20:15:54 +01:00
Alexey Andreev
f7768efd51 Wasm: fix bugs in DWARF generator, emit DW_LNE_end_sequence after each function 2022-11-19 15:14:21 +01:00
Alexey Andreev
0604c6a613 Wasm: fix default file name used by wasi target 2022-11-19 13:14:24 +01:00
Alexey Andreev
06bcaec1e5 Wasm: emit simple DW_TAG_subprogram DIEs (however, no success with debuggers). 2022-11-19 13:00:52 +01:00
Alexey Andreev
f06ba832d7 Wasm: generate DWARF line numbers
Despite generated DWARF sections pass different verifications, they don't work in chrome or wasmtime.
2022-11-19 11:52:43 +01:00
Alexey Andreev
c5011ebf69 Wasm: initial skeleton implementation of DWARF generator 2022-11-18 22:07:23 +01:00
Alexey Andreev
a543b91b84 Wasm: fix error when parsing command line args 2022-11-17 16:35:28 +01:00
Alexey Andreev
238873cbe7 Apply Java 11 syntax 2022-11-17 14:36:55 +01:00
Alexey Andreev
06748fa12b Fix class initializer optimization.
Assume that class initializer is dynamic if it initializes another class with dynamic initializer
2022-11-17 14:35:37 +01:00
Alexey Andreev
238930bfc3 IDEA: bump maven-shade-plugin version 2022-11-17 13:10:57 +01:00
Alexey Andreev
df98b411d0 Wasm: fix issue with attempt to shrink heap after GC 2022-11-17 12:02:46 +01:00
Alexey Andreev
64ae44ee01 JS: store global object in a variable to avoid name clashes between generated declarations (in minified mode) and global declarations 2022-11-17 12:02:46 +01:00
Alexey Andreev
68efdddddf JS: fix writing from JS to stdout 2022-11-16 16:41:29 +01:00
Alexey Andreev
70e37dfed9 Wasi: fix bugs in IO implementation 2022-11-12 21:52:29 +01:00
Alexey Andreev
d9fb2bc159 Fix bugs in Wasi support. Fix GC issue in Wasm 2022-11-11 21:01:22 +01:00
Alexey Andreev
1b6acc9eb1 Update Java version to 11 2022-11-11 14:37:12 +01:00
Alexey Andreev
4a025f2605 Wasm: trying to revive GC debugger in wasm2c generator and implement emulation for WASI 2022-11-11 14:04:56 +01:00
Alexey Andreev
8285799b2b Fix checkstyle warning 2022-11-11 11:09:19 +01:00
Alexey Andreev
1fb70b0903 Fix private method call resolution in Java 11 2022-11-11 10:56:20 +01:00
Alexey Andreev
5fb83ca2ac Remove unnecessary Wasm runtime imports, implement isFinite method 2022-11-11 09:38:21 +01:00
Alexey Andreev
c52b71292d Fix Math.pow implementation in JS 2022-11-11 09:15:52 +01:00
Alexey Andreev
485f8ac902 Wasi: fix file system issues, add support for Math.pow 2022-11-10 17:08:58 +01:00
Alexey Andreev
292aa21aef classlib: use built-in unicode table to implement tolower/toupper methods.
This makes it possible to use TeaVM in environments where these functions aren't natively available.
For example, WASI
2022-11-09 12:08:17 +01:00
Alexey Andreev
a49f47dac7 Fix WASI support in CLI runner 2022-11-08 19:46:40 +01:00
Alexey Andreev
224810d0ab Wasm: support file IO and random generator in WASI 2022-11-08 19:44:56 +01:00
Alexey Andreev
e428e2ac7a Wasm: implement file IO in WASI 2022-11-08 17:24:58 +01:00
Alexey Andreev
3eb4b742ea Move FS support to teavm-core module 2022-11-07 09:53:46 +01:00
Alexey Andreev
bb087b7630 Wasm: support running WASI tests in JUnit 2022-11-06 21:41:35 +01:00
Alexey Andreev
8f4e4e811f Wasm: don't emit wasm-runtime.js file in WASI mode 2022-11-06 21:41:09 +01:00
Alexey Andreev
34eb06f5f0 Wasm: support command line args in WASI 2022-11-06 21:21:49 +01:00
Alexey Andreev
1ca2c75e1c Wasm: initial WASI support 2022-11-06 11:53:52 +01:00
Alexey Andreev
d5cdd740f5 Fix incorrect behaviour of Class.getInterfaces
fix #635
2022-11-04 16:15:30 +01:00
Alexey Andreev
752ec040b0 Wasm: fix resource files getting into garbage collection metadata 2022-11-04 14:48:53 +01:00
Alexey Andreev
6c6d440ebb С/wasm: don't include references metadata resource into GC stack roots and into class layout for GC. 2022-11-01 09:38:10 +01:00
Ivan Hetman
2c1bf6e270
Enable build for Java 17 version (#631) 2022-10-22 09:23:16 +03:00
Kirill Prazdnikov
fc9748ab06
jso: add missing scrollIntoView method to Element (#623) 2022-10-12 11:03:25 +03:00
Alexey Andreev
d097350787 Bump ASM version, use common ASM API version everywhere, bump ASM API version to 9 2022-10-05 11:09:53 +02:00
Alexey Andreev
a40c955d39 classlib: fix StringBuilder.indexOf
Fix #615
2022-10-05 10:16:54 +02:00
Alexey Andreev
fcb13b24ad classlib: force class initialization in EnumSet implementation in order to get enum constants array filled 2022-09-13 16:03:37 +02:00
Alexey Andreev
2b671b8088 Fix issue with precedence of % operator 2022-08-25 12:48:59 +02:00
Alexey Andreev
bab6c8bddf Fix checkstyle error 2022-08-16 10:15:48 +02:00
Alexey Andreev
38d3bf1c63 classlib: fix ByteBuffer.slice
Probably fixes #607
2022-08-16 10:06:08 +02:00
iamdudeman
2d73403b9a Moved next origin/bound implementations from TThreadLocalRandom to TRandom. 2022-08-16 10:34:47 +03:00
Ulugbek
f57af7631b fix: don't terminate if the target directory already exists 2022-08-12 17:48:58 +03:00
Alexey Andreev
10415b356e classlib: fix AbstractSet.hashCode 2022-08-12 16:47:59 +02:00