861 Commits

Author SHA1 Message Date
Volker Berlin
7692880b7e Enable debug names in Wat2Wasm; use enable-all with Wat2Wasm to compatible with future features. 2020-04-26 14:03:06 +02:00
Volker Berlin
b251141f45 Scan also the types of used imports 2020-04-26 00:08:50 +02:00
Volker Berlin
11f338eea8 implements dup_x2 instruction 2020-04-25 22:22:18 +02:00
Volker Berlin
f15fb1cdf9 implements dup_x1 instruction 2020-04-25 19:31:30 +02:00
Volker Berlin
f0828196b7 first multi catch support, WIP 2020-04-25 18:03:16 +02:00
Volker Berlin
063f035155 Correct catch code positions for a correct END of the CATCH. 2020-04-24 22:14:11 +02:00
Volker Berlin
4738619e62 create dir first 2020-04-24 22:03:35 +02:00
Volker Berlin
570b7090b0 enable first exception tests 2020-04-24 20:56:28 +02:00
Volker Berlin
374ab7121b revert event section order until v8 in node it support 2020-04-24 20:55:52 +02:00
Volker Berlin
af50221b44 update node version 2020-04-24 20:54:56 +02:00
Volker Berlin
e533c97d0f throw an ArithmeticException on a division by zero of integer values 2020-04-19 19:29:14 +02:00
Volker Berlin
1ce3e97464 add i32.div_s, i64.div_s, i64.eqz and throw to the wat parser 2020-04-19 19:09:58 +02:00
Volker Berlin
d99eb77de8 fix drop exnref in a try/finally structure 2020-04-19 17:35:56 +02:00
Volker Berlin
df8aade0fa Support for multiple catch blocks, WIP 2020-04-19 12:05:35 +02:00
Volker Berlin
87359fb497 Simplify the try/catch structure 2020-04-18 13:09:11 +02:00
Volker Berlin
5a665b7c11 prevent dead lock on large error stream from external process 2020-04-18 11:25:11 +02:00
Volker Berlin
850d990264 fix available() == 0 for SSL streams 2020-04-13 21:58:00 +02:00
Volker Berlin
25423c6bb8 pass LocalvariableManager to the BranchManager to create temp variable for CATCh blocks. 2020-04-13 16:05:41 +02:00
Volker Berlin
87374ff41b remove V8 flags for features that are already default 2020-04-13 16:03:39 +02:00
Volker Berlin
d14fd790b5 prevent dead lock on large error stream from external process 2020-04-13 16:00:12 +02:00
Volker Berlin
b0ee655aea node 13.12.0 2020-04-13 15:55:52 +02:00
Volker Berlin
02f41dd52a convert try/catch to block/br 0 if exception handling is disabled 2020-04-13 12:01:21 +02:00
Volker Berlin
cbf27fdfa6 fix the exception type check 2020-04-12 10:59:40 +02:00
Volker Berlin
d6a7ead579 fix the stack inspector for catch blocks 2020-04-12 10:44:53 +02:00
Volker Berlin
5b04573469 First type check of the Exception in an catch block. WIP 2020-04-11 17:04:21 +02:00
Volker Berlin
f38d3033d8 use table names 2020-04-11 14:35:47 +02:00
Volker Berlin
4c5c41eb5c add method name to the WasmException 2020-04-10 22:22:45 +02:00
Volker Berlin
2f1c0f0706 test for empty catch block 2020-04-10 21:27:29 +02:00
Volker Berlin
06fc9dddfd fix reuse of local variable slot for empty catch blocks 2020-04-10 21:09:22 +02:00
Volker Berlin
5ec2e34c57 add isSubTypeOf(9 to the type hierarchy 2020-04-10 21:05:46 +02:00
Volker Berlin
bab77094c2 Write also for BR_ON_EXN an UNREACHABLE instruction 2020-04-10 16:33:32 +02:00
Volker Berlin
c19a9ca9b6 Also try blocks skip 2020-04-10 16:32:06 +02:00
Volker Berlin
23da864f1d API Doc 2020-04-10 16:30:59 +02:00
Volker Berlin
432168f002 improve error handling in the BranchManager 2020-04-10 13:40:55 +02:00
Volker Berlin
ea2a179161 fix non gc array operations 2020-04-10 12:15:53 +02:00
Volker Berlin
128ac19242 fix cyclic dependencies between static class initializers 2020-04-10 11:40:07 +02:00
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