Commit Graph

  • 9bb6e64ce8 Add support for "copysign" for the text format. Volker Berlin 2019-08-03 20:51:00 +02:00
  • ae489b2f5a handle infinity values Volker Berlin 2019-08-03 20:49:45 +02:00
  • 24ec45e3a2 current default on Travis of Gradle 4.10 and openjdk11 is a bad combination Volker Berlin 2019-08-03 13:04:30 +02:00
  • ccbc633463 handle complex IF conditions Volker Berlin 2019-08-02 22:39:04 +02:00
  • 215d8ff70e calculate also the THEN position of an IF control structure Volker Berlin 2019-08-02 11:11:10 +02:00
  • a60e7ca823 more math tests Volker Berlin 2019-07-29 19:32:19 +02:00
  • be77f59ac0 Add support for OR concatenated IF conditions Volker Berlin 2019-07-29 19:15:47 +02:00
  • a019647094 fix && operator in if expression Volker Berlin 2019-07-26 23:05:54 +02:00
  • 3ec23fa3c9 more predictable function order depending the call dependency Volker Berlin 2019-07-25 23:18:34 +02:00
  • 6d4bf1d347 improve wat parser Volker Berlin 2019-07-25 16:50:38 +02:00
  • b934de9556 add flush() on publish() Volker Berlin 2019-07-23 21:50:22 +02:00
  • d32244c60c fix getPopCount() and getPushValue() Volker Berlin 2019-07-23 21:48:31 +02:00
  • b65027f156 fix push/pop value of compare instructions Volker Berlin 2019-07-23 18:23:59 +02:00
  • 0d58782f75 ConsoleHandler.setOutputStream(x) has closed System.err Volker Berlin 2019-07-23 17:19:52 +02:00
  • 8726bb92d6 use fine() log level because it is not enable by default Volker Berlin 2019-07-21 13:55:29 +02:00
  • e37caf06b1 add logging Volker Berlin 2019-07-19 22:29:34 +02:00
  • c2b8505634 Math.min/max operation Volker Berlin 2019-07-18 19:21:11 +02:00
  • 03ed725262 implements abs instruction Volker Berlin 2019-07-17 18:45:36 +02:00
  • eed21966d4 tests for round(double) Volker Berlin 2019-07-15 21:18:39 +02:00
  • 0f0928f4a8 handle duplicate function names/overloaded methods Volker Berlin 2019-07-15 21:16:47 +02:00
  • 815cd2eec9 Only write a JS file if the target is a file. Volker Berlin 2019-07-14 17:44:23 +02:00
  • abeec6cca4 NaN is written in lowercase in Wasm text format. Volker Berlin 2019-07-14 17:24:39 +02:00
  • 588ac6db47 implement reinterpret opcodes and use it in the WatParser. Volker Berlin 2019-07-14 12:41:40 +02:00
  • ed0eb9e4b6 handle different string formating of float values Volker Berlin 2019-07-13 20:17:23 +02:00
  • c15bea7d3d more math API tests Volker Berlin 2019-07-13 15:56:34 +02:00
  • c64c620a38 more math operation for the text format (Watparser) Volker Berlin 2019-07-13 15:46:20 +02:00
  • 0a789fd40e switch to node version 12.4.0 Volker Berlin 2019-07-06 21:45:32 +02:00
  • e53af239ce Add a test for System.currentTimeMillis() Volker Berlin 2019-07-06 21:26:51 +02:00
  • 2058acea7f enable --experimental-wasm-bigint for node Volker Berlin 2019-07-06 21:25:54 +02:00
  • d960ece4a7 Add function signature to error message Volker Berlin 2019-07-06 16:45:23 +02:00
  • 7a7377a7ae more Math function tests Volker Berlin 2019-07-06 16:09:34 +02:00
  • ed1b40f3a7 implement the sqrt instruction Volker Berlin 2019-07-06 15:42:47 +02:00
  • d9e8b70d06 Use JavaScript imports generated from the imports declarations. Volker Berlin 2019-07-03 20:09:22 +02:00
  • 5133890a6b Add the JavaScriptWriter and some tests. Volker Berlin 2019-07-02 18:40:11 +02:00
  • c50c7d15c7 API doc Volker Berlin 2019-06-30 15:18:09 +02:00
  • 3709e9cc55 Generalize the usage of WasmTarget Volker Berlin 2019-06-30 14:43:45 +02:00
  • ab39801cf4 imported functions need of course a signature. Volker Berlin 2019-06-28 18:01:33 +02:00
  • d2d6d363f1 handle different string formating of double values Volker Berlin 2019-06-27 18:43:44 +02:00
  • 6bcda0daa5 import only the needed functions to reduce the needed JS glue code Volker Berlin 2019-06-23 20:50:11 +02:00
  • b90d7e1dea use invalid default value to detect missing initializing Volker Berlin 2019-06-23 20:42:11 +02:00
  • fbdd0eb3d0 improve error handling Volker Berlin 2019-06-23 12:55:14 +02:00
  • 91ccf92796 If there a replacement method then use it also on scanning in prepare phase. Volker Berlin 2019-06-22 11:11:14 +02:00
  • 275db31ab3 Pass maxLocals ever to the LocalVariableTable Volker Berlin 2019-06-21 21:47:20 +02:00
  • 5ea58e30f8 Improve error message Volker Berlin 2019-06-21 21:45:49 +02:00
  • 1d36fbf1b2 Improve test speed by executing all tests of an wasm file at once. Volker Berlin 2019-06-17 19:07:25 +02:00
  • 40bb69fd16 Improve test speed by executing all tests of an wasm file at once. Volker Berlin 2019-06-17 19:00:16 +02:00
  • 2b67b6b1da compact the local variable table if there multiple of the same type Volker Berlin 2019-06-15 12:29:59 +02:00
  • 0a4d03e974 Mark override methods as needed if the super methods are needed. Volker Berlin 2019-06-10 11:39:19 +02:00
  • 3d5e3af432 fix NPE after restructure Volker Berlin 2019-06-09 23:25:28 +02:00
  • 185e3e98d3 enable virtual methods/functions Volker Berlin 2019-06-09 22:40:39 +02:00
  • d3bd4902fd Write the functions also in text format in the registered order. Volker Berlin 2019-06-09 22:39:53 +02:00
  • 90126b16da duplicate the this on stack before a virtual method call invoke Volker Berlin 2019-06-09 21:09:05 +02:00
  • 1ee77584d9 write the vtable of objects to the data section. Use the vtable offset into the data section in the new operation of objects. Volker Berlin 2019-06-09 17:17:47 +02:00
  • 6da4a93918 fix function count in table declaration Volker Berlin 2019-06-04 18:56:53 +02:00
  • c410adc636 define the types in the prepare phase. Volker Berlin 2019-06-04 18:09:34 +02:00
  • 557c348ed7 extract writeMethodParamStart() from writeMethodStart() and prepareImport() Volker Berlin 2019-06-02 11:44:28 +02:00
  • b8b751f909 fix NPE with import functions Volker Berlin 2019-06-02 11:01:53 +02:00
  • 57a2bd0827 save mapping between function and type. Volker Berlin 2019-06-01 18:42:24 +02:00
  • 6468df956f write the function type definitions to the text format Volker Berlin 2019-06-01 13:29:29 +02:00
  • 748b7e5b89 Api Doc Volker Berlin 2019-05-20 22:23:40 +02:00
  • 625e5fbef7 pass the type to a virtual function call Volker Berlin 2019-05-20 21:28:46 +02:00
  • fd43aca97b Move the analyzing and writing of types in the TypeManager Volker Berlin 2019-05-19 15:17:30 +02:00
  • 8f09d4d04a detect all needed types in the prepare phase Volker Berlin 2019-05-19 11:14:32 +02:00
  • 30efaaed95 pass virtual function index Volker Berlin 2019-05-18 21:37:19 +02:00
  • 5826d6dded add field vtable Volker Berlin 2019-05-17 21:40:38 +02:00
  • 5691446195 rename GET/SET_GLOBAL --> GOLBAL_GET/SET Volker Berlin 2019-05-16 21:38:51 +02:00
  • 8bbaae43e8 add memory operation codes Volker Berlin 2019-05-16 21:36:52 +02:00
  • 983d78de54 next step in handling virtual methods Volker Berlin 2019-05-14 21:47:49 +02:00
  • 45d1731126 print (table) in a new line Volker Berlin 2019-05-14 21:36:04 +02:00
  • f0d3027553 Replace a function name in call with its supper method if real target name does not exists. Volker Berlin 2019-05-12 18:38:11 +02:00
  • aa1ed68b3f scanning the Java methods on prepare Volker Berlin 2019-05-11 20:53:30 +02:00
  • 0b7fa50520 next step for scanning on prepare Volker Berlin 2019-05-09 22:13:02 +02:00
  • cd4f1cf307 remove not needed parentheses after fix of spidermonkey Volker Berlin 2019-05-09 21:41:39 +02:00
  • f52bca35e4 Use a FunctionState in the FunctionManager for later improvements Volker Berlin 2019-05-08 19:52:16 +02:00
  • 61c6523f14 Remove Hack for SpiderMonkey bug Volker Berlin 2019-05-08 17:26:28 +02:00
  • a8d11b5b68 use weak cache for ClassFiles Volker Berlin 2019-05-07 21:16:30 +02:00
  • 4e98efeb5d prepare the using of call_indirect Volker Berlin 2019-05-05 17:25:43 +02:00
  • 8e439eb83e prepare the using of memory and data section Volker Berlin 2019-05-01 17:11:14 +02:00
  • fbc687ee92 Use ref types alps in globals Volker Berlin 2019-04-27 21:14:55 +02:00
  • 30a8d55491 more debug details Volker Berlin 2019-04-27 20:27:33 +02:00
  • 272fa76af0 Write the type of Object fields in structs as ref type instead of anyref. Volker Berlin 2019-04-26 17:28:57 +02:00
  • b08a986945 Write the "this" parameter type of a method as ref type instead of anyref. Volker Berlin 2019-04-24 21:41:33 +02:00
  • e8a4613d74 split addStructInstruction() Volker Berlin 2019-04-24 19:54:30 +02:00
  • a2a185be8a Search className and fieldName separately Volker Berlin 2019-04-22 21:24:22 +02:00
  • 3e9e1e1601 Enable test for SpiderMonkey Volker Berlin 2019-04-22 16:34:47 +02:00
  • 3af321a076 Use a temporary hack for SpiderMonkey WasmTextToBinary Volker Berlin 2019-04-22 16:21:02 +02:00
  • b7323776d1 Use index for fields of structs in text format until there are better naming rules. Volker Berlin 2019-04-22 15:56:11 +02:00
  • 02a2e9d8ff Write also the fields of super classes in the struct description. Volker Berlin 2019-04-21 21:33:22 +02:00
  • 13fce427c3 update status and required features Volker Berlin 2019-04-21 10:56:18 +02:00
  • e037de5646 Also write prefix ref_type in the local variable declaration. Volker Berlin 2019-04-21 10:45:17 +02:00
  • 2be6f1a3be Write the default/initial values before struct.new Volker Berlin 2019-04-20 21:41:46 +02:00
  • 09b817117a Generalize the usage of SyntheticFuctionName Volker Berlin 2019-04-20 18:44:23 +02:00
  • 04b3b67927 Enable tests with SpiderMonkey WasmTextToBinary() Volker Berlin 2019-04-20 15:25:47 +02:00
  • cc0ba1498d Struct type variables must declared as ref Volker Berlin 2019-04-20 15:23:53 +02:00
  • 97e3c9616f Skip some Tests for SpiderMonkeyWat because bugs in WasmTextToBinary Volker Berlin 2019-04-20 15:11:08 +02:00
  • bddf4c7525 correct binary encoding for GC spec version 3 Volker Berlin 2019-04-19 21:22:20 +02:00
  • 31f86ae931 GcFeatureOptIn for SpiderMonkey Volker Berlin 2019-04-19 20:34:31 +02:00
  • f466fc5c09 Correct the coding of Struct like the spec https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version2.md Volker Berlin 2019-04-19 20:33:33 +02:00
  • efa65bb377 More normalize of names for SpiderMonkey Volker Berlin 2019-04-19 20:29:20 +02:00
  • 2cf6214d56 We does not use multiple return values anymore for "dup". Volker Berlin 2019-04-19 17:55:24 +02:00