549 Commits

Author SHA1 Message Date
Volker Berlin
e37caf06b1 add logging 2019-07-19 22:29:34 +02:00
Volker Berlin
c2b8505634 Math.min/max operation 2019-07-18 19:21:11 +02:00
Volker Berlin
03ed725262 implements abs instruction 2019-07-17 18:45:36 +02:00
Volker Berlin
eed21966d4 tests for round(double) 2019-07-15 21:18:39 +02:00
Volker Berlin
0f0928f4a8 handle duplicate function names/overloaded methods 2019-07-15 21:16:47 +02:00
Volker Berlin
815cd2eec9 Only write a JS file if the target is a file. 2019-07-14 17:44:23 +02:00
Volker Berlin
abeec6cca4 NaN is written in lowercase in Wasm text format. 2019-07-14 17:24:39 +02:00
Volker Berlin
588ac6db47 implement reinterpret opcodes and use it in the WatParser. 2019-07-14 12:41:40 +02:00
Volker Berlin
ed0eb9e4b6 handle different string formating of float values 2019-07-13 20:17:23 +02:00
Volker Berlin
c15bea7d3d more math API tests 2019-07-13 15:56:34 +02:00
Volker Berlin
c64c620a38 more math operation for the text format (Watparser) 2019-07-13 15:46:20 +02:00
Volker Berlin
0a789fd40e switch to node version 12.4.0 2019-07-06 21:45:32 +02:00
Volker Berlin
e53af239ce Add a test for System.currentTimeMillis() 2019-07-06 21:26:51 +02:00
Volker Berlin
2058acea7f enable --experimental-wasm-bigint for node 2019-07-06 21:25:54 +02:00
Volker Berlin
d960ece4a7 Add function signature to error message 2019-07-06 16:45:23 +02:00
Volker Berlin
7a7377a7ae more Math function tests 2019-07-06 16:09:34 +02:00
Volker Berlin
ed1b40f3a7 implement the sqrt instruction 2019-07-06 15:42:47 +02:00
Volker Berlin
d9e8b70d06 Use JavaScript imports generated from the imports declarations. 2019-07-03 20:09:22 +02:00
Volker Berlin
5133890a6b Add the JavaScriptWriter and some tests. 2019-07-02 18:40:11 +02:00
Volker Berlin
c50c7d15c7 API doc 2019-06-30 15:18:09 +02:00
Volker Berlin
3709e9cc55 Generalize the usage of WasmTarget 2019-06-30 14:43:45 +02:00
Volker Berlin
ab39801cf4 imported functions need of course a signature. 2019-06-28 18:01:33 +02:00
Volker Berlin
d2d6d363f1 handle different string formating of double values 2019-06-27 18:43:44 +02:00
Volker Berlin
6bcda0daa5 import only the needed functions to reduce the needed JS glue code 2019-06-23 20:50:11 +02:00
Volker Berlin
b90d7e1dea use invalid default value to detect missing initializing 2019-06-23 20:42:11 +02:00
Volker Berlin
fbdd0eb3d0 improve error handling 2019-06-23 12:55:14 +02:00
Volker Berlin
91ccf92796 If there a replacement method then use it also on scanning in prepare phase. 2019-06-22 11:11:14 +02:00
Volker Berlin
275db31ab3 Pass maxLocals ever to the LocalVariableTable 2019-06-21 21:47:20 +02:00
Volker Berlin
5ea58e30f8 Improve error message 2019-06-21 21:45:49 +02:00
Volker Berlin
1d36fbf1b2 Improve test speed by executing all tests of an wasm file at once. 2019-06-17 19:07:25 +02:00
Volker Berlin
40bb69fd16 Improve test speed by executing all tests of an wasm file at once. 2019-06-17 19:00:16 +02:00
Volker Berlin
2b67b6b1da compact the local variable table if there multiple of the same type 2019-06-15 12:29:59 +02:00
Volker Berlin
0a4d03e974 Mark override methods as needed if the super methods are needed. 2019-06-10 11:39:19 +02:00
Volker Berlin
3d5e3af432 fix NPE after restructure 2019-06-09 23:25:28 +02:00
Volker Berlin
185e3e98d3 enable virtual methods/functions 2019-06-09 22:40:39 +02:00
Volker Berlin
d3bd4902fd Write the functions also in text format in the registered order. 2019-06-09 22:39:53 +02:00
Volker Berlin
90126b16da duplicate the this on stack before a virtual method call invoke 2019-06-09 21:09:05 +02:00
Volker Berlin
1ee77584d9 write the vtable of objects to the data section. Use the vtable offset into the data section in the new operation of objects. 2019-06-09 17:17:47 +02:00
Volker Berlin
6da4a93918 fix function count in table declaration 2019-06-04 18:56:53 +02:00
Volker Berlin
c410adc636 define the types in the prepare phase. 2019-06-04 18:09:34 +02:00
Volker Berlin
557c348ed7 extract writeMethodParamStart() from writeMethodStart() and prepareImport() 2019-06-02 11:44:28 +02:00
Volker Berlin
b8b751f909 fix NPE with import functions 2019-06-02 11:01:53 +02:00
Volker Berlin
57a2bd0827 save mapping between function and type. 2019-06-01 18:42:24 +02:00
Volker Berlin
6468df956f write the function type definitions to the text format 2019-06-01 13:29:29 +02:00
Volker Berlin
748b7e5b89 Api Doc 2019-05-20 22:23:40 +02:00
Volker Berlin
625e5fbef7 pass the type to a virtual function call 2019-05-20 21:28:46 +02:00
Volker Berlin
fd43aca97b Move the analyzing and writing of types in the TypeManager 2019-05-19 15:17:30 +02:00
Volker Berlin
8f09d4d04a detect all needed types in the prepare phase 2019-05-19 11:14:32 +02:00
Volker Berlin
30efaaed95 pass virtual function index 2019-05-18 21:37:19 +02:00
Volker Berlin
5826d6dded add field vtable 2019-05-17 21:40:38 +02:00