658 Commits

Author SHA1 Message Date
Volker Berlin
c6d569c66c add support for more const instructions on WatParser 2019-11-12 20:06:31 +01:00
Volker Berlin
8f36ed4d6d initial checkin for StringManager (WIP) 2019-11-10 12:57:58 +01:00
Volker Berlin
6d7c8b12a9 add support for ref.is_null to wat parser 2019-11-09 18:59:47 +01:00
Volker Berlin
5e2b65ddd0 static constructors 2019-11-09 18:50:37 +01:00
Volker Berlin
0ae27b2c86 add support for local.tee to wat parser 2019-11-09 18:48:28 +01:00
Volker Berlin
baf7fb9cf0 Add table.set/get 2019-11-03 19:00:49 +01:00
Volker Berlin
b47274e007 add @Override 2019-11-03 18:04:45 +01:00
Volker Berlin
ca9efce370 constant pool can also contains string constants 2019-11-03 13:52:07 +01:00
Volker Berlin
4f79782bfe add table instructions 2019-11-03 13:38:53 +01:00
Volker Berlin
672574abd0 Rename anyfunc -> funcref 2019-11-03 10:14:29 +01:00
Volker Berlin
87039232eb export the memory with the name "memory" 2019-11-02 19:20:28 +01:00
Volker Berlin
fac7e68b43 optimize the memory section, write only if needed 2019-11-02 19:11:18 +01:00
Volker Berlin
1dd644b67a Generalize the writing of the export section for future improvements 2019-11-02 18:59:09 +01:00
Volker Berlin
3f4462064d provide the wasm.exports to the JavaScript import functions for possible callbacks. 2019-11-02 18:09:35 +01:00
Volker Berlin
ec96a8c9f8 Wabt has a slow release cycle then we can use ever the cached version. 2019-11-02 16:43:49 +01:00
Volker Berlin
6c0939f341 v128 added 2019-11-02 12:22:10 +01:00
Volker Berlin
2efe7768e2 Rename anyfunc -> funcref 2019-11-02 12:11:10 +01:00
Volker Berlin
5e880bab5b first string tests 2019-10-29 18:56:39 +01:00
Volker Berlin
ebe1c27e9a Add support for outsourcing of a constructor to JavaScript 2019-10-27 20:11:47 +01:00
Volker Berlin
1fdcae5191 expand the hierarchy of SyntheticFunctionName for future improvements 2019-10-27 19:41:43 +01:00
Volker Berlin
9692b3b98f Accept also new functions in the cache after prepare finish to simplify the handling with unknown functions. 2019-10-27 19:37:55 +01:00
Volker Berlin
3c0199c000 fix parameter order for struct.set polyfill 2019-10-26 12:26:35 +02:00
Volker Berlin
431d5f5a4a parse InvokeDynamic constants 2019-10-26 12:23:36 +02:00
Volker Berlin
81c865706c Support NULL as test result. 2019-10-20 14:43:05 +02:00
Volker Berlin
b3ac7c49fc tests for System.arraycopy 2019-10-20 14:14:50 +02:00
Volker Berlin
7518188ded String support 2019-10-20 14:13:55 +02:00
Volker Berlin
b81ea073a9 Improve error message if there is not an expected number 2019-10-20 12:43:26 +02:00
Volker Berlin
833cd8c80a handle MODULE and PACKAGE constant on the pool (module-info.class) 2019-10-14 21:51:54 +02:00
Volker Berlin
e0659a7033 update the status 2019-10-14 21:50:32 +02:00
Volker Berlin
023ea867a1 Add test for update a single byte 2019-10-05 16:17:40 +02:00
Volker Berlin
19a119d7f4 fix position of duplicating THIS on virtual method calls 2019-10-05 16:15:18 +02:00
Volker Berlin
be12f047dd move some helper method into the parent 2019-10-02 18:56:35 +02:00
Volker Berlin
ec898cad71 skip ELSE blocks on counting the stack 2019-09-29 13:47:45 +02:00
Volker Berlin
4f40976019 ignore redefinition replacements 2019-09-29 11:44:01 +02:00
Volker Berlin
41d45af53d Add CRC32 support 2019-09-28 21:31:45 +02:00
Volker Berlin
ab284c2a84 remove test skip after wabt fix 2019-09-26 17:25:36 +02:00
Volker Berlin
432baef4b4 fix end detecting of ELSE block and sub structures in the THEN block. 2019-09-25 22:32:41 +02:00
Volker Berlin
40375316e2 detect some optimization of GOTO jumps 2019-09-25 19:24:01 +02:00
Volker Berlin
c29d19178a remove additional parameter from copy/paste 2019-09-24 20:03:28 +02:00
Volker Berlin
a0ddb00a73 pass the method with signature to the VariableManager as fallback 2019-09-23 21:24:46 +02:00
Volker Berlin
35c9845886 Split structs test for NonGC and GC script engines because the different implementation state 2019-09-23 20:34:34 +02:00
Volker Berlin
d1bb7cac23 pass the method with signature to the VariableManager as fallback 2019-09-23 20:33:21 +02:00
Volker Berlin
e3eb66efc9 Set flag --wasm-gc only for GC tests to improve performance. 2019-09-22 17:09:12 +02:00
Volker Berlin
53319942ae set initial values of non GC struct values 2019-09-15 15:42:50 +02:00
Volker Berlin
f19423d53a evaluate the JavaScript lazy for more dynamic JavaScript (non GC polyfill) 2019-09-15 15:38:32 +02:00
Volker Berlin
2a5856971b Run the compiler also with SpiderMonkeyWatGC also if the script engine does not support arrays currently 2019-09-15 10:50:45 +02:00
Volker Berlin
d17648a448 Split structs test for NonGC and GC script engines because the different implementation state 2019-09-15 10:45:29 +02:00
Volker Berlin
9a03a70e8f better error message 2019-09-15 10:41:00 +02:00
Volker Berlin
5295096d89 fix parameter order of nonGC polyfill call 2019-09-14 22:59:12 +02:00
Volker Berlin
6ddf5b1c85 write memory/data section also with nonGC polyfill 2019-09-14 21:26:46 +02:00