825 Commits

Author SHA1 Message Date
Volker Berlin
8262a45343 Write also the import function names into the debug section (custom section name). 2020-04-05 21:42:40 +02:00
Volker Berlin
87f986e30b Also static code from Java VM code must be registered. Disable static code to find a solution for the cyclic dependency between static code. 2020-04-05 21:03:13 +02:00
Volker Berlin
c1b3e34eb7 remove the static constructor because it will inlined else 2020-04-04 21:32:34 +02:00
Volker Berlin
026f962677 Add support for primitive classes 2020-04-04 16:09:58 +02:00
Volker Berlin
9bbc82bb6d Remove all special handling for SpiderMonkey. It is compatible now. 2020-04-04 11:40:35 +02:00
Volker Berlin
561dc37540 improve Class Replacement, also the class in method signatures was replaced 2020-04-04 11:18:25 +02:00
Volker Berlin
65a1f3ff76 implements support for static class constructors 2020-04-02 21:01:11 +02:00
Volker Berlin
645996ceb0 add support for static constructors, WIP 2020-03-30 22:27:30 +02:00
Volker Berlin
41c795eaee API doc 2020-03-30 22:26:27 +02:00
Volker Berlin
d4f4d9b7c6 Reuse the temp variable of a DUP operation for further DUP operations 2020-03-29 21:33:30 +02:00
Volker Berlin
f95b21a1f8 Reuse the temp variable of a DUP operation for further DUP operations 2020-03-29 21:24:09 +02:00
Volker Berlin
7a9750afdd code optimize 2020-03-29 18:39:45 +02:00
Volker Berlin
b1c6794a94 fix the position of the DupThis instruction to access the vtable 2020-03-29 18:35:01 +02:00
Volker Berlin
c52bc2a0fe Rewrite stack analyze to handle conditional parameters on the stack. 2020-03-29 14:31:58 +02:00
Volker Berlin
7fd8d16403 add opcodes for function references https://github.com/WebAssembly/function-references/blob/master/proposals/function-references/Overview.md#instructions-1 2020-03-28 16:27:06 +01:00
Volker Berlin
d3f7069cc8 pass the signature from synthetic functions to the wat parser. 2020-03-27 21:10:02 +01:00
Volker Berlin
03957b0988 Add a placeholder for jumps instructions to better inspect the stack. 2020-03-26 18:21:50 +01:00
Volker Berlin
93b32823f9 Remove obsolete hacks for SpiderMonkey 2020-03-24 19:54:37 +01:00
Volker Berlin
b3bef1570a write string constant in the text format for easer reading 2020-03-22 12:36:01 +01:00
Volker Berlin
548d701444 write string constant in the text format for easer reading 2020-03-21 22:57:42 +01:00
Volker Berlin
63384e359a fix do while with multiple conditions 2020-03-21 21:16:10 +01:00
Volker Berlin
ab95396471 never break inside conditional operator 2020-03-21 15:58:50 +01:00
Volker Berlin
a3aa825ebc fix branch result with reference type 2020-03-21 11:59:05 +01:00
Volker Berlin
1882d016ac test for abstract method calls 2020-03-21 11:25:32 +01:00
Volker Berlin
6e04ade375 abstract Methods and interfaces not counting as real WASM functions 2020-03-21 11:05:51 +01:00
Volker Berlin
7bf1a26a37 add all used functions to the vtable (also abstract methods) 2020-03-21 10:40:22 +01:00
Volker Berlin
be29e7c456 class support and resources 2020-03-21 10:03:11 +01:00
Volker Berlin
ae0f1e3410 add FunctionType to differ between real and abstract methods 2020-03-20 20:35:13 +01:00
Volker Berlin
dbf658ec41 fix getAbstractedFunctions() 2020-03-20 19:47:42 +01:00
Volker Berlin
dd01ad10b2 generalize the use of the flag useGC 2020-03-18 22:23:45 +01:00
Volker Berlin
ff5b8f8442 add support for abstract methods, WIP 2020-03-18 21:37:56 +01:00
Volker Berlin
16f49f3078 add isAbstract() 2020-03-16 21:48:32 +01:00
Volker Berlin
d73612715f recursive scan methods and type hierarchy 2020-03-15 20:51:19 +01:00
Volker Berlin
52204c23a5 use also UTF-8 encoding for JavaDoc 2020-03-15 16:02:12 +01:00
Volker Berlin
775496640c add support for Class constants 2020-03-15 15:49:52 +01:00
Volker Berlin
eba564fe67 Tests for getClass().getName() 2020-03-15 12:05:54 +01:00
Volker Berlin
386c5adf28 Class replacement need also StringManager.stringsMemoryOffset. 2020-03-15 12:00:15 +01:00
Volker Berlin
d3e3c4ff5d API docu 2020-03-15 11:09:10 +01:00
Volker Berlin
af5f713a70 skip the length of the instanceof list 2020-03-15 11:08:55 +01:00
Volker Berlin
d2cf5eaaaf remove debug code 2020-03-15 10:55:43 +01:00
Volker Berlin
259a7130f1 improve java.lang.Class replacement, WIP 2020-03-14 23:02:58 +01:00
Volker Berlin
3989070fe0 improve Class replacement 2020-03-14 23:00:51 +01:00
Volker Berlin
946e911982 implementation of a a replacement for java.lang.Class 2020-03-14 19:21:37 +01:00
Volker Berlin
a6f1743109 simplify the string count 2020-03-11 20:03:00 +01:00
Volker Berlin
cc4a5e7858 add table for classes 2020-03-11 19:55:59 +01:00
Volker Berlin
9a157b74a2 Does not export memory. No JavaScript access is needed. 2020-03-11 19:34:49 +01:00
Volker Berlin
7774b7c04a Test for hashCode() 2020-03-08 21:15:31 +01:00
Volker Berlin
853ee503e7 Add a field for the HashCode to any object. 2020-03-08 21:14:57 +01:00
Volker Berlin
83188e87e6 remove obsolete TODO 2020-03-08 17:37:58 +01:00
Volker Berlin
2121984eea Roadmap updated 2020-03-08 12:18:31 +01:00