1
0
mirror of https://github.com/i-net-software/JWebAssembly.git synced 2025-03-16 02:48:51 +01:00

Commit Graph

  • fd27656b65 Does not unbox if exception handling is not supported. Volker Berlin 2020-04-26 18:37:10 +02:00
  • f04369fac5 Also replace static constructor methods Volker Berlin 2020-04-26 17:59:05 +02:00
  • 820a4ac6df On Class replacement also patch the local variable signatures. Volker Berlin 2020-04-26 14:06:31 +02:00
  • 7692880b7e Enable debug names in Wat2Wasm; use enable-all with Wat2Wasm to compatible with future features. Volker Berlin 2020-04-26 14:03:06 +02:00
  • b251141f45 Scan also the types of used imports Volker Berlin 2020-04-26 00:08:50 +02:00
  • 11f338eea8 implements dup_x2 instruction Volker Berlin 2020-04-25 22:22:18 +02:00
  • f15fb1cdf9 implements dup_x1 instruction Volker Berlin 2020-04-25 19:31:30 +02:00
  • f0828196b7 first multi catch support, WIP Volker Berlin 2020-04-25 18:03:16 +02:00
  • 063f035155 Correct catch code positions for a correct END of the CATCH. Volker Berlin 2020-04-24 22:14:11 +02:00
  • 4738619e62 create dir first Volker Berlin 2020-04-24 22:03:35 +02:00
  • 570b7090b0 enable first exception tests Volker Berlin 2020-04-24 20:56:28 +02:00
  • 374ab7121b revert event section order until v8 in node it support Volker Berlin 2020-04-24 20:55:52 +02:00
  • af50221b44 update node version Volker Berlin 2020-04-24 20:54:56 +02:00
  • e533c97d0f throw an ArithmeticException on a division by zero of integer values Volker Berlin 2020-04-19 19:29:14 +02:00
  • 1ce3e97464 add i32.div_s, i64.div_s, i64.eqz and throw to the wat parser Volker Berlin 2020-04-19 19:09:58 +02:00
  • d99eb77de8 fix drop exnref in a try/finally structure Volker Berlin 2020-04-19 17:35:56 +02:00
  • df8aade0fa Support for multiple catch blocks, WIP Volker Berlin 2020-04-19 12:05:35 +02:00
  • 87359fb497 Simplify the try/catch structure Volker Berlin 2020-04-18 13:09:11 +02:00
  • 5a665b7c11 prevent dead lock on large error stream from external process Volker Berlin 2020-04-18 11:25:11 +02:00
  • 850d990264 fix available() == 0 for SSL streams Volker Berlin 2020-04-13 21:58:00 +02:00
  • 25423c6bb8 pass LocalvariableManager to the BranchManager to create temp variable for CATCh blocks. Volker Berlin 2020-04-13 16:05:41 +02:00
  • 87374ff41b remove V8 flags for features that are already default Volker Berlin 2020-04-13 16:03:39 +02:00
  • d14fd790b5 prevent dead lock on large error stream from external process Volker Berlin 2020-04-13 16:00:12 +02:00
  • b0ee655aea node 13.12.0 Volker Berlin 2020-04-13 15:55:52 +02:00
  • 02f41dd52a convert try/catch to block/br 0 if exception handling is disabled Volker Berlin 2020-04-13 12:01:21 +02:00
  • cbf27fdfa6 fix the exception type check Volker Berlin 2020-04-12 10:59:40 +02:00
  • d6a7ead579 fix the stack inspector for catch blocks Volker Berlin 2020-04-12 10:44:53 +02:00
  • 5b04573469 First type check of the Exception in an catch block. WIP Volker Berlin 2020-04-11 17:04:21 +02:00
  • f38d3033d8 use table names Volker Berlin 2020-04-11 14:35:47 +02:00
  • 4c5c41eb5c add method name to the WasmException Volker Berlin 2020-04-10 22:22:45 +02:00
  • 2f1c0f0706 test for empty catch block Volker Berlin 2020-04-10 21:27:29 +02:00
  • 06fc9dddfd fix reuse of local variable slot for empty catch blocks Volker Berlin 2020-04-10 21:09:22 +02:00
  • 5ec2e34c57 add isSubTypeOf(9 to the type hierarchy Volker Berlin 2020-04-10 21:05:46 +02:00
  • bab77094c2 Write also for BR_ON_EXN an UNREACHABLE instruction Volker Berlin 2020-04-10 16:33:32 +02:00
  • c19a9ca9b6 Also try blocks skip Volker Berlin 2020-04-10 16:32:06 +02:00
  • 23da864f1d API Doc Volker Berlin 2020-04-10 16:30:59 +02:00
  • 432168f002 improve error handling in the BranchManager Volker Berlin 2020-04-10 13:40:55 +02:00
  • ea2a179161 fix non gc array operations Volker Berlin 2020-04-10 12:15:53 +02:00
  • 128ac19242 fix cyclic dependencies between static class initializers Volker Berlin 2020-04-10 11:40:07 +02:00
  • 8262a45343 Write also the import function names into the debug section (custom section name). Volker Berlin 2020-04-05 21:42:40 +02:00
  • 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. Volker Berlin 2020-04-05 21:03:13 +02:00
  • c1b3e34eb7 remove the static constructor because it will inlined else Volker Berlin 2020-04-04 21:32:34 +02:00
  • 026f962677 Add support for primitive classes Volker Berlin 2020-04-04 16:09:58 +02:00
  • 9bbc82bb6d Remove all special handling for SpiderMonkey. It is compatible now. Volker Berlin 2020-04-04 11:40:35 +02:00
  • 561dc37540 improve Class Replacement, also the class in method signatures was replaced Volker Berlin 2020-04-04 11:18:25 +02:00
  • 65a1f3ff76 implements support for static class constructors Volker Berlin 2020-04-02 21:01:11 +02:00
  • 645996ceb0 add support for static constructors, WIP Volker Berlin 2020-03-30 22:27:30 +02:00
  • 41c795eaee API doc Volker Berlin 2020-03-30 22:26:27 +02:00
  • d4f4d9b7c6 Reuse the temp variable of a DUP operation for further DUP operations Volker Berlin 2020-03-29 21:33:30 +02:00
  • f95b21a1f8 Reuse the temp variable of a DUP operation for further DUP operations Volker Berlin 2020-03-29 21:24:09 +02:00
  • 7a9750afdd code optimize Volker Berlin 2020-03-29 18:39:45 +02:00
  • b1c6794a94 fix the position of the DupThis instruction to access the vtable Volker Berlin 2020-03-29 18:35:01 +02:00
  • c52bc2a0fe Rewrite stack analyze to handle conditional parameters on the stack. Volker Berlin 2020-03-29 14:31:58 +02:00
  • 7fd8d16403 add opcodes for function references https://github.com/WebAssembly/function-references/blob/master/proposals/function-references/Overview.md#instructions-1 Volker Berlin 2020-03-28 16:27:06 +01:00
  • d3f7069cc8 pass the signature from synthetic functions to the wat parser. Volker Berlin 2020-03-27 21:10:02 +01:00
  • 03957b0988 Add a placeholder for jumps instructions to better inspect the stack. Volker Berlin 2020-03-26 18:21:50 +01:00
  • 93b32823f9 Remove obsolete hacks for SpiderMonkey Volker Berlin 2020-03-24 19:54:37 +01:00
  • b3bef1570a write string constant in the text format for easer reading Volker Berlin 2020-03-22 12:36:01 +01:00
  • 548d701444 write string constant in the text format for easer reading Volker Berlin 2020-03-21 22:57:42 +01:00
  • 63384e359a fix do while with multiple conditions Volker Berlin 2020-03-21 21:16:10 +01:00
  • ab95396471 never break inside conditional operator Volker Berlin 2020-03-21 15:58:50 +01:00
  • a3aa825ebc fix branch result with reference type Volker Berlin 2020-03-21 11:59:05 +01:00
  • 1882d016ac test for abstract method calls Volker Berlin 2020-03-21 11:25:32 +01:00
  • 6e04ade375 abstract Methods and interfaces not counting as real WASM functions Volker Berlin 2020-03-21 11:05:51 +01:00
  • 7bf1a26a37 add all used functions to the vtable (also abstract methods) Volker Berlin 2020-03-21 10:40:22 +01:00
  • be29e7c456 class support and resources Volker Berlin 2020-03-21 10:03:11 +01:00
  • ae0f1e3410 add FunctionType to differ between real and abstract methods Volker Berlin 2020-03-20 20:35:13 +01:00
  • dbf658ec41 fix getAbstractedFunctions() Volker Berlin 2020-03-20 19:47:42 +01:00
  • dd01ad10b2 generalize the use of the flag useGC Volker Berlin 2020-03-18 22:23:45 +01:00
  • ff5b8f8442 add support for abstract methods, WIP Volker Berlin 2020-03-18 21:37:56 +01:00
  • 16f49f3078 add isAbstract() Volker Berlin 2020-03-16 21:48:32 +01:00
  • d73612715f recursive scan methods and type hierarchy Volker Berlin 2020-03-15 20:51:19 +01:00
  • 52204c23a5 use also UTF-8 encoding for JavaDoc Volker Berlin 2020-03-15 16:02:12 +01:00
  • 775496640c add support for Class constants Volker Berlin 2020-03-15 15:49:52 +01:00
  • eba564fe67 Tests for getClass().getName() Volker Berlin 2020-03-15 12:05:54 +01:00
  • 386c5adf28 Class replacement need also StringManager.stringsMemoryOffset. Volker Berlin 2020-03-15 12:00:15 +01:00
  • d3e3c4ff5d API docu Volker Berlin 2020-03-15 11:09:10 +01:00
  • af5f713a70 skip the length of the instanceof list Volker Berlin 2020-03-15 11:08:55 +01:00
  • d2cf5eaaaf remove debug code Volker Berlin 2020-03-15 10:55:43 +01:00
  • 259a7130f1 improve java.lang.Class replacement, WIP Volker Berlin 2020-03-14 23:02:58 +01:00
  • 3989070fe0 improve Class replacement Volker Berlin 2020-03-14 23:00:51 +01:00
  • 946e911982 implementation of a a replacement for java.lang.Class Volker Berlin 2020-03-14 19:21:37 +01:00
  • a6f1743109 simplify the string count Volker Berlin 2020-03-11 20:03:00 +01:00
  • cc4a5e7858 add table for classes Volker Berlin 2020-03-11 19:55:59 +01:00
  • 9a157b74a2 Does not export memory. No JavaScript access is needed. Volker Berlin 2020-03-11 19:34:49 +01:00
  • 7774b7c04a Test for hashCode() Volker Berlin 2020-03-08 21:15:31 +01:00
  • 853ee503e7 Add a field for the HashCode to any object. Volker Berlin 2020-03-08 21:14:57 +01:00
  • 83188e87e6 remove obsolete TODO Volker Berlin 2020-03-08 17:37:58 +01:00
  • 2121984eea Roadmap updated Volker Berlin 2020-03-08 12:18:31 +01:00
  • 5eed2c2e79 write the class name of all classes in the wasm file for later use Volker Berlin 2020-03-07 18:35:52 +01:00
  • 62b16ac07e Fix switch blocks with string cases and add tests. Volker Berlin 2020-03-07 17:01:59 +01:00
  • f120c40de3 fix NPE with a string switch if the default case is not the last case block. Volker Berlin 2020-03-05 22:30:36 +01:00
  • 6923765683 add support for SWICH of strings Volker Berlin 2020-03-05 21:31:15 +01:00
  • a4040a8d3b optimize the DUP instruction, only use a temp local variable if needed. Volker Berlin 2020-03-01 19:02:49 +01:00
  • 3d8f49c79a simplify the scan and the compiler structure, remove some old hacks. Volker Berlin 2020-02-29 16:14:32 +01:00
  • 7ed9ee576a add the original method name as comment to a call_indirect. Volker Berlin 2020-02-29 15:56:36 +01:00
  • 758f31e79c add support for CAST operation Volker Berlin 2020-02-28 18:04:28 +01:00
  • dd74a8beae add unreachable to the wat parser Volker Berlin 2020-02-28 15:58:35 +01:00
  • 499cddfb0b print the JavaScript stacktrace on error for simpler debugging Volker Berlin 2020-02-28 10:00:44 +01:00
  • 8264897215 fix JavaDoc Volker Berlin 2020-02-27 11:25:41 +01:00