1254 Commits

Author SHA1 Message Date
Volker Berlin
bf58d2968a
Change the used Wasm instruction from IF ELSE END to BLOCK BLOCK BR_IF END END to solve problems of complex if expressions. 2022-05-26 21:50:45 +02:00
Volker Berlin
d1b4e6af5a
add params to findBlockStart() 2022-05-22 19:10:34 +02:00
Volker Berlin
20c6516b59
toString() for debugging 2022-05-22 18:52:12 +02:00
Volker Berlin
5a22c94b29
Detect also marked as needed methods if the method was previous add as replacement 2022-05-22 18:36:36 +02:00
Volker Berlin
52dd9a1665
use "java/lang/Object" as fallback type for NULL values 2022-05-08 18:53:45 +02:00
Volker Berlin
23199840c8
An array returns i32 for i8 and i16. 2022-05-08 17:43:47 +02:00
Volker Berlin
9acda37be4
fix conditionals expressions as method parameters in a SWITCH. 2022-05-07 21:19:48 +02:00
Volker Berlin
f61a994d40 Merge branch 'master' of https://github.com/i-net-software/JWebAssembly.git 2022-05-05 20:39:08 +02:00
Volker Berlin
dc8e1fe70c
Merge pull request #34 from zephyraft/master
Fix the serialization format error of sourceRoot field in sourcemap.
2022-05-05 18:04:06 +02:00
zephyr
fe3609649f Fix the serialization format error of sourceRoot field in sourcemap. 2022-05-05 17:16:17 +08:00
Volker Berlin
4b2b65e883 prevent empty ELSE branches 2022-04-24 18:18:29 +02:00
Volker Berlin
2f8538dbf5 extract method calculateSubOperations() 2022-04-24 17:19:10 +02:00
Volker Berlin
aabff4d93c Use BR_IF if possible. 2022-04-24 16:19:41 +02:00
Volker Berlin
7aaf9619bd first step for field description of classes for reflection API 2022-04-18 23:20:17 +02:00
Volker Berlin
4525c29263 register callbacks only if imports is needed. 2022-04-18 23:10:18 +02:00
Volker Berlin
593c1ee50a api doc 2022-04-17 20:38:34 +02:00
Volker Berlin
128906e4ef add support for global.get/set for the WatParser 2022-04-16 17:31:48 +02:00
Volker Berlin
0dfb7c4a34 add forName(String,ClassLoader) and cast(Object) 2022-04-16 17:27:02 +02:00
Volker Berlin
9c7b69b2a7 Block duplicate export names 2022-04-10 11:35:20 +02:00
Volker Berlin
ee8e9c797e documentation link 2022-04-10 10:56:52 +02:00
Volker Berlin
a6b8862e25 Add support for callbacks in import annotations. 2022-04-03 13:58:43 +02:00
Volker Berlin
d8a1d6abf0 release candidate 2022-04-03 13:46:35 +02:00
Volker Berlin
4ceea41ebc remove bintrayUpload 2022-03-27 13:11:43 +02:00
Volker Berlin
d57b8bc00c Emuns and Collection framework work now v0.4 2022-03-20 18:54:20 +01:00
Volker Berlin
c2231241ab remove debug code 2022-03-20 18:28:37 +01:00
Volker Berlin
04fc77e8f7 micro optimizing 2022-03-20 18:17:24 +01:00
Volker Berlin
379d2e5c27 Enums is working now 2022-03-20 18:09:06 +01:00
Volker Berlin
09ab338aa7 correct type hierarchy in isSubTypeOf() 2022-03-20 18:06:08 +01:00
Volker Berlin
1f51fbf036 API doc 2022-03-20 18:02:09 +01:00
Volker Berlin
4fbce5800c use node version 17.0.0-v8-canary2021.10.19 2022-03-20 17:58:57 +01:00
Volker Berlin
8d17e7cfc5 Use the Enum hack fpr all used enums. Before it was for the enums in the libraries 2022-03-19 22:12:30 +01:00
Volker Berlin
bf0b43fd1a The writer must be prepared before the types are written. 2022-03-19 22:08:43 +01:00
Volker Berlin
8ce6c1d919 Add also the result/stack if possible also if execution of the script is failing. 2022-03-19 20:37:20 +01:00
Volker Berlin
3e4d1794a4 correct method parameter names with debugging 2022-03-19 20:05:29 +01:00
Volker Berlin
b11ad30ecb Ignore native methods without import annotation in replacement classes as placeholder 2022-03-19 17:38:23 +01:00
Volker Berlin
9470db15b7 fix loop detection for nested loops 2022-03-19 17:35:18 +01:00
Volker Berlin
d42620ddf0 API doc 2022-03-13 17:54:56 +01:00
Volker Berlin
f52c41ae14 fix loop detection for nested loops 2022-03-13 14:16:31 +01:00
Volker Berlin
7823db2708 add the field name as comment on get/set 2022-03-08 16:21:58 +01:00
Volker Berlin
c44e24c373 API doc 2022-03-08 15:30:55 +01:00
Volker Berlin
69b8db16d1 call class initializer before access to static fields 2022-03-08 15:13:19 +01:00
Volker Berlin
710127bb44 Fix NULL values for INSTANCEOF and CAST. 2022-03-06 17:00:41 +01:00
Volker Berlin
91fafe3d24 Reduce cycle of static constructors 2022-03-06 14:41:53 +01:00
Volker Berlin
097dfae696 Add a hook to run the class/static constructor only once 2022-03-06 14:27:33 +01:00
Volker Berlin
28bf07567f Add setCopy()/getCopy() 2022-02-27 20:46:41 +01:00
Volker Berlin
3fd3c63351 share the LocaleVariableManager between multiple WasmCodeBuilder 2022-02-27 20:44:42 +01:00
Volker Berlin
9680ba6445 @Nonnull annotation 2022-02-27 19:27:10 +01:00
Volker Berlin
d629fbcd02 correct LOOP detection in an ELSE block 2022-02-20 18:32:07 +01:00
Volker Berlin
d4cf26ee05 docu 2022-02-20 18:29:13 +01:00
Volker Berlin
9f0f82bb06 Use also RETURN in the BranchManager to calculate the IF THEN ELSE blocks. 2022-02-19 22:15:56 +01:00