874 Commits

Author SHA1 Message Date
Volker Berlin
c4d4bf04be does not create a reference on a isUsed check to reduce memory usage 2020-05-03 09:20:49 +02:00
Volker Berlin
daaa648a04 Use NODE_PATH instead linking to wabt to improve test speed. 2020-05-02 21:42:32 +02:00
Volker Berlin
c4ed671b99 install wabt@nightly globally to improve speed of tests 2020-05-02 16:09:50 +02:00
Volker Berlin
ee5b3ce326 only set a function index if method is used 2020-05-02 15:31:26 +02:00
Volker Berlin
4b581dd969 test for a primitive class name 2020-05-02 14:42:22 +02:00
Volker Berlin
a511e9b090 version 0.3 v0.3 2020-04-27 21:00:44 +02:00
Volker Berlin
676bd8efa0 cheerpj 2020-04-26 20:42:06 +02:00
Volker Berlin
5eb6f9aad6 enable class initializers (static constructors) 2020-04-26 20:30:49 +02:00
Volker Berlin
6e9ea1f1e8 Does not write a static constructors only because it has a replacement. 2020-04-26 20:28:40 +02:00
Volker Berlin
7eb0406db8 Only ASCII strings as comment 2020-04-26 19:47:51 +02:00
Volker Berlin
fd27656b65 Does not unbox if exception handling is not supported. 2020-04-26 18:37:10 +02:00
Volker Berlin
f04369fac5 Also replace static constructor methods 2020-04-26 17:59:05 +02:00
Volker Berlin
820a4ac6df On Class replacement also patch the local variable signatures. 2020-04-26 14:06:31 +02:00
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